/* =========================================
   LEADWAKE — STYLES.CSS
   Dark Premium Theme
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base: #080c14;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(99,179,237,0.35);

  --accent-1: #4f8ef7;
  --accent-2: #a78bfa;
  --gradient: linear-gradient(135deg, #4f8ef7 0%, #a78bfa 100%);
  --gradient-text: linear-gradient(135deg, #7eb3ff 0%, #c4b5fd 100%);

  --text-primary: #f0f4ff;
  --text-secondary: #8b99b5;
  --text-muted: #4a5568;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(79,142,247,0.15);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- GLASS --- */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,247,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,142,247,0.5);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  background: rgba(79,142,247,0.05);
}

.btn--sm  { padding: 8px 18px;  font-size: 13px; }
.btn--lg  { padding: 15px 32px; font-size: 16px; }
.btn--block { width: 100%; display: flex; }

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--transition), border-bottom var(--transition);
}
.header.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo span { color: var(--accent-1); }

.nav { display: flex; gap: 6px; margin-right: auto; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav__link.active { color: var(--accent-1); background: rgba(79,142,247,0.08); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- MOBILE NAV --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(8,12,20,0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform var(--transition);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__link:hover { color: var(--text-primary); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 80px;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.12), transparent 70%);
  top: -100px; left: -100px;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.1), transparent 70%);
  bottom: -50px; right: -50px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  color: #7eb3ff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 8px var(--accent-1);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__video {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 24px;
}

/* Cases */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.case-card {
  padding: 28px;
  text-align: left;
}

/* FAQ */
.faq__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.faq-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-1);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-question:hover {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.3);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding var(--transition);
  padding: 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  background: rgba(79,142,247,0.03);
  border-left: 2px solid rgba(79,142,247,0.2);
  margin-top: 4px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 14px 18px;
}

/* Calculator */
.calculator {
  margin-top: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.calculator__label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
  width: 100%;
  text-align: center;
}
.calculator__input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  width: 140px;
  outline: none;
  transition: border-color var(--transition);
}
.calculator__input:focus {
  border-color: var(--accent-1);
}
.calculator__input::placeholder {
  color: var(--text-muted);
}
.calculator__btn {
  align-self: auto;
}
.calculator__result {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-1);
  width: 100%;
  text-align: center;
  min-height: 24px;
}

/* --- HERO STATS --- */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.stat__label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat__divider { width: 1px; height: 36px; background: var(--border); }

/* --- SECTION BASE --- */
.section {
  padding: 100px 0;
  position: relative;
}

/* --- WHAT WE DO --- */
.what__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.what__card {
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition);
}
.what__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.what__icon {
  font-size: 36px;
  margin-bottom: 20px;
}
.what__card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* --- FEATURE LIST --- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}
.feature-list--pos li::before { content: '✓'; color: #4ade80; }
.feature-list--neg li::before { content: '✕'; color: #f87171; }

/* --- SERVICES --- */
.services {
  background: linear-gradient(180deg, transparent, rgba(79,142,247,0.03), transparent);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.service-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-card--highlight {
  border-color: rgba(79,142,247,0.35);
  background: rgba(79,142,247,0.06);
}
.service-card--highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.service-card__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.service-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.service-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.service-card__result {
  margin: 20px 0;
}
.result-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #7eb3ff;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  padding: 6px 14px;
  border-radius: 8px;
}

/* --- TIMELINE --- */
.how {
  background: linear-gradient(180deg, transparent, rgba(167,139,250,0.03), transparent);
}
.timeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  opacity: 0.3;
}
.timeline__item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline__item:last-child { border-bottom: none; }

.timeline__step {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-1);
  z-index: 1;
  transition: background var(--transition), border-color var(--transition);
}
.timeline__item:hover .timeline__step {
  background: rgba(79,142,247,0.1);
  border-color: rgba(79,142,247,0.4);
}

.timeline__content { padding-top: 12px; }
.timeline__content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.timeline__content p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* --- WHO --- */
.who__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.who__card {
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition);
}
.who__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.who__card-icon { font-size: 32px; margin-bottom: 16px; }
.who__card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.who__card-also {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.who__card-also strong {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* --- CTA SECTION --- */
.cta-section { overflow: hidden; }
.cta-section__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(79,142,247,0.07), transparent);
  pointer-events: none;
}
.cta-box {
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}
.cta-box__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 24px;
}
.cta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 32px;
}
.cta-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.cta-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-1);
}
.cta-box__tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__links { display: flex; gap: 20px; }
.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent-1); }

/* --- MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  animation: fadeUp 0.35s cubic-bezier(0.4,0,0.2,1);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal__close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal__sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- FORM --- */
.modal__form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-1); }

.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0;
}
.modal__success.show { display: flex; }
.success-icon { font-size: 48px; }
.modal__success h3 { font-size: 22px; font-weight: 700; }
.modal__success p { color: var(--text-secondary); }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- KEYFRAMES --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE 768px --- */
@media (max-width: 768px) {
  .nav { display: none; }
  #header-cta { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }

  /* Hero */
  .hero__stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .stat__divider { width: 100%; height: 1px; }
  .hero__video { margin-top: 16px; }
  .hero__title { letter-spacing: -0.5px; }

  /* Section padding */
  .section { padding: 64px 0; }

  /* Cards — force single column */
  .what__grid,
  .cases__grid,
  .who__grid { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline::before { display: none; }
  .timeline__step { width: 48px; height: 48px; font-size: 12px; }
  .timeline__item { gap: 16px; }

  /* CTA */
  .cta-box { padding: 36px 20px; }
  .cta-list { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Calculator — stack vertically on mobile */
  .calculator { flex-direction: column; align-items: stretch; padding: 16px; }
  .calculator__input { width: 100%; }
  .calculator__btn { width: 100%; }
  .calculator__label { text-align: left; }
  .calculator__result { text-align: left; }

  /* FAQ */
  .faq-question { font-size: 14px; padding: 12px 14px; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

/* --- RESPONSIVE 480px --- */
@media (max-width: 480px) {
  .modal { padding: 28px 16px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero__stats { padding: 16px; }
  .stat__num { font-size: 17px; }
  .section-title { font-size: 24px; }
  .cta-box__title { font-size: 24px; }
  .service-card, .what__card, .case-card, .who__card { padding: 22px 18px; }
  .timeline__item { flex-direction: column; gap: 12px; }
  .timeline__step { width: 40px; height: 40px; font-size: 11px; }
}
