/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --bg:           #f8f8f6;
  --surface:      #ffffff;
  --surface-2:    #f2f2ef;
  --border:       #e8e8e4;
  --text-primary: #161614;
  --text-body:    #3d3d39;
  --text-muted:   #7a7a74;
  --accent:       #3b5bdb;
  --accent-light: #eef1ff;
  --accent-mid:   #748ffc;
  --accent-dark:  #2f4ac0;
  --amber:        #f59f00;
  --amber-light:  #fff4de;
  --amber-soft:   rgba(245, 159, 0, .16);
  --amber-border: rgba(245, 159, 0, .28);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1100px;
  --section-gap:  96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent-light), var(--amber-light));
  border: 1px solid var(--amber-border);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.section-label.light {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-sm:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 64%, var(--amber) 140%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 91, 219, .26), 0 8px 26px rgba(245, 159, 0, .14);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, var(--amber) 130%);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59, 91, 219, .34), 0 10px 30px rgba(245, 159, 0, .18);
}

.btn-lg {
  font-size: 15px;
  padding: 16px 32px;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 246, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.logo-mark {
  font-size: 20px;
  color: var(--amber);
  line-height: 1;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 91, 219, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 91, 219, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 159, 0, .18) 0%, rgba(245, 159, 0, .06) 38%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -160px;
  bottom: 40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 159, 0, .12) 0%, transparent 68%);
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  background: linear-gradient(180deg, #fff, var(--amber-light));
  border: 1px solid var(--amber-border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(245, 159, 0, .10);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 20px;
}

.hero-body {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-secondary-cta {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 480px;
  margin: 0 auto;
}

.br-desktop { display: block; }

/* Hero video embed */
.hero-video-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: left;
}

.hero-vid-label {
  margin-bottom: 16px;
}

/* ============================================================
   VIDEO WRAPPER (shared)
============================================================ */
.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: var(--surface);
}

.video-chrome {
  background: #f0f0ed;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.video-chrome-dots {
  display: flex;
  gap: 6px;
}

.video-chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.video-chrome-dots span:first-child { background: #ff5f57; }
.video-chrome-dots span:nth-child(2) { background: #febc2e; }
.video-chrome-dots span:last-child { background: #28c840; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   PROBLEM SECTION
============================================================ */
.problem-section {
  background: var(--surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(59,91,219,.2);
}

.problem-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--amber-light));
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.problem-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how-section {
  background: var(--bg);
}

.steps-wrapper {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  opacity: 0;
  transition: opacity .2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-card:hover::before { opacity: 1; }

.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.04em;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   DASHBOARD EXAMPLES
============================================================ */
.dashboard-section {
  background: var(--surface);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.dashboard-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  cursor: pointer;
}

/* First card spans full width, second and third share a row */
.dashboard-card:nth-child(1) { grid-column: span 12; }
.dashboard-card:nth-child(2) { grid-column: span 6; }
.dashboard-card:nth-child(3) { grid-column: span 6; }

.dashboard-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dashboard-img-wrap {
  background: #e8e8e4;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.dashboard-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.dashboard-card:hover .dashboard-img-wrap img {
  transform: scale(1.02);
}

.dashboard-caption {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-caption strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-caption strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  flex-shrink: 0;
}

.dashboard-card:first-child .dashboard-caption strong {
  font-size: 14px;
}

.dashboard-caption span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  object-fit: contain;
}

.lightbox-caption {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   OUTCOMES
============================================================ */
.outcome-section {
  background: var(--bg);
}

.outcome-sub {
  max-width: 640px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.outcome-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: box-shadow .2s ease;
}

.outcome-card:hover { box-shadow: var(--shadow-md); }

.outcome-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: 50%;
  color: #b86b00;
  font-size: 13px;
  font-weight: 700;
}

.outcome-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.45;
}

/* ============================================================
   BEST FIT
============================================================ */
.fit-section {
  background: var(--surface);
}

.fit-inner {
  max-width: 680px;
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-body);
}

.fit-list li svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================================
   FINAL CTA
============================================================ */
.cta-section {
  background: var(--bg);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #2f4ac0 48%, #3b5bdb 78%, #f59f00 145%);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245, 159, 0, .28) 0%, rgba(116, 143, 252, .24) 42%, transparent 72%);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.cta-body {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 6px;
}

.footer-note {
  font-size: 14px;
  color: var(--text-body);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-card:nth-child(1) { grid-column: span 12; }
  .dashboard-card:nth-child(2) { grid-column: span 12; }
  .dashboard-card:nth-child(3) { grid-column: span 12; }

  .cta-card { padding: 56px 32px; }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .br-desktop { display: inline; }

  .hero { padding: 72px 0 60px; }

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

  .dashboard-card:nth-child(n) { grid-column: span 12; }

  .cta-card { padding: 44px 24px; }

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

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

/* Mobile CTA fixes */
@media (max-width: 700px) {
  .cta-section {
    padding: 64px 0;
  }

  .cta-card {
    padding: 44px 20px;
    border-radius: 28px;
    overflow: hidden;
  }

  .cta-heading {
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  .cta-body {
    font-size: 16px;
    line-height: 1.65;
    max-width: 100%;
  }

  .cta-card .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 16px 18px;
    border-radius: 18px;
  }

  .cta-card .btn svg {
    flex-shrink: 0;
  }

  .footer {
    padding: 46px 0 70px;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-note,
  .footer-disclaimer {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
