@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display&display=swap');

/* ── Design tokens ─────────────────────────────────────── */
:root {
  --primary: #5b5fcf;
  --primary-dark: #3538c8;
  --text: #0d0f2b;
  --muted: #555;
  --muted-light: #888;
  --bg: #f9f9fb;
  --surface: #ffffff;
  --border: #e0e2f5;
  --content-width: 1200px;
  --container-max: 1200px;
  --container-padding: 0 1.5rem;
  /* aliases used by cn-* components */
  --color-background-primary: #ffffff;
  --color-text-primary: #0d0f2b;
  --color-text-secondary: #555;
  --color-border-tertiary: #e0e2f5;
}

/* ── Reset / base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  color: var(--text);
  font-weight: 400;
}

/* ── Shell ──────────────────────────────────────────────── */
.site-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── Nav ────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: none;
  box-shadow: 0 1px 0 #e8eaf0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 65px;
  width: auto;
  display: block;
}

/* White logo shown on dark hero, hidden when scrolled */
.brand-logo-dark  { display: block; }
.brand-logo-light { display: none; }
.topbar.scrolled .brand-logo-dark  { display: none; }
.topbar.scrolled .brand-logo-light { display: block; }

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: normal;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav { display: flex; gap: 24px; }

.nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  transition: color 200ms ease;
}

.nav a:hover { color: rgba(255, 255, 255, 1); }

.topbar.scrolled .nav a { color: var(--muted); }
.topbar.scrolled .nav a:hover { color: var(--primary); }

.footer a:hover { color: var(--primary); }

/* Demo button */
.button-demo {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  min-height: 36px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}

.button-demo:hover {
  background: rgba(255, 255, 255, 0.25);
}

.topbar.scrolled .button-demo {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.topbar.scrolled .button-demo:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease;
}

.button:hover { background: var(--primary-dark); }

.button-secondary,
.button-ghost {
  background: var(--surface);
  color: var(--text);
  border: 0.5px solid var(--border);
}

.button-secondary:hover,
.button-ghost:hover { background: #f0f1fb; }

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 4rem 2rem; }

.eyebrow, .card-kicker {
  display: block;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.section-heading p:last-child {
  max-width: 48ch;
  margin-top: 0.5rem;
}

/* ── Dark hero (full-viewport) ──────────────────────────── */
.hero-dark {
  position: relative;
  min-height: 100vh;
  background: #0a0b1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ambient blobs */
.hero-blob-left {
  position: absolute;
  top: -10%;
  left: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 95, 207, 0.45) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-right {
  position: absolute;
  top: 5%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-center {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 95, 207, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b8fff;
  margin-bottom: 1.25rem;
}

.hero-dark h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: #ffffff;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.25rem;
  width: 100%;
}

.hero-subtext {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.hero-subtext-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms ease, transform 150ms ease;
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.btn-hero-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Device frame at hero bottom */
.hero-device {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.device-frame {
  background: #1a1c2e;
  border-radius: 16px 16px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 -20px 80px rgba(91, 95, 207, 0.25), 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.device-topbar {
  background: #13152a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.device-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.device-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.device-url {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}

.device-screenshot {
  width: 100%;
  height: 600px;
  display: block;
  border: none;
}

/* White page content lifts over dark hero */
.page-content {
  background: white;
  position: relative;
  z-index: 2;
}

/* ── Light hero (legacy, kept for fallback) ─────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 80px);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  max-width: 12ch;
}

.hero-text {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.hero-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.laptop-mockup { position: relative; }

.laptop-top {
  position: relative;
  padding: 12px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #3a3f52 0%, #1e2235 100%);
}

.laptop-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.35);
}

.dashboard-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  aspect-ratio: 1.56 / 1;
}

.dashboard-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.laptop-base {
  width: 110%;
  height: 16px;
  margin: -2px auto 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #bcc3cf 0%, #8b92a1 100%);
}

.laptop-base::after {
  display: block;
  width: 18%;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  content: '';
  background: rgba(69, 75, 89, 0.3);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-metrics article {
  flex: 1 1 150px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
}

.hero-metrics span { color: var(--muted); font-size: 0.78rem; }

.hero-metrics strong {
  display: block;
  margin-top: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: normal;
}

/* ── Proof strip ────────────────────────────────────────── */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
}

.proof-strip div { display: flex; flex-direction: column; gap: 5px; }
.proof-strip span { color: var(--muted); font-size: 0.8rem; }

.proof-strip strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: normal;
}

/* ── Intro grid ─────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-card {
  padding: 2rem;
  border-radius: 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
}

.intro-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.intro-card p:last-child { margin-top: 1rem; font-size: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
  min-height: 140px;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
}

.stat-card strong,
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #5b5fcf;
  letter-spacing: -0.02em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.stat-card span,
.stat-label {
  max-width: 160px;
  margin-top: 6px;
  color: #888;
  font-size: 13px;
}

/* ── Supported By logo strip ────────────────────────────── */
.logo-strip {
  background: white;
  border-top: 0.5px solid #e8eaf0;
  border-bottom: 0.5px solid #e8eaf0;
  padding: 4rem 2rem;
}

.logo-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-strip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0d0f2b;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-strip-divider {
  width: 1px;
  height: 28px;
  background: #e8eaf0;
  flex-shrink: 0;
}

.logo-strip-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-strip-img {
  height: 73px;
  max-width: 224px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
}

/* ── Timeline (v3 .tl scoped) ───────────────────────────── */
#how-it-works {
  background: white;
  padding-top: 4rem;
}

.tl {
  font-family: 'DM Sans', sans-serif;
  color: #0d0f2b;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.tl-head {
  max-width: 680px;
  margin: 0 auto 3rem;
}

.tl-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.tl-head h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  line-height: 1.15;
  color: #0d0f2b;
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.tl-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.tl-grid {
  display: grid;
  grid-template-columns: 48px 1fr;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.tl-rail {
  position: absolute;
  left: 24px; /* centre of the 48px number column */
  top: 32px;  /* start below the first number bubble */
  bottom: 32px; /* stop above the last number bubble */
  width: 2px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    #c0c4f0 0px,
    #c0c4f0 5px,
    transparent 5px,
    transparent 11px
  );
  z-index: 1;
  pointer-events: none;
}

.tl-num-cell {
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.tl-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #eef0ff;
  color: #3538c8;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #d8daf5;
  position: relative;
  z-index: 3;
}

.tl-content {
  grid-column: 2;
  padding-left: 1.5rem;
  padding-bottom: 2.5rem;
}

.tl-step-label { margin-bottom: 1rem; }

.tl-step-label h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0d0f2b;
  margin-bottom: 4px;
}

.tl-step-label p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
}

.tl-card {
  border-radius: 14px;
  border: 0.5px solid #d8daf5;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--surface);
}

.tl-panel {
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 180px;
  position: relative;
}

.bg1 { background: #f7f8ff; }
.bg2 { background: #f3fbf7; }
.bg3 { background: #fffaf3; }
.bg4 { background: #f9f5ff; }

.sc {
  background: white;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 12px rgba(91, 95, 207, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid #e8eaf8;
}

.sc-header {
  padding: 7px 10px 6px;
  border-bottom: 0.5px solid #f0f0f8;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fafafa;
}

.sc-dots { display: flex; gap: 3px; }
.sc-dot  { width: 5px; height: 5px; border-radius: 50%; }
.sc-title { font-size: 9px; font-weight: 500; color: #666; margin-left: 3px; }
.sc-body  { padding: 10px 11px; }

.form-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 0.5px solid #f5f5fa;
}
.form-row:last-child { border: none; }
.form-label { font-size: 8px; color: #aaa; width: 68px; flex-shrink: 0; }
.form-val   { font-size: 8px; color: #0d0f2b; font-weight: 500; flex: 1; }
.form-check {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.tag      { display: inline-block; font-size: 8px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.tag-ok   { background: #e0f5eb; color: #0d7a4a; }
.tag-warn { background: #fff3e0; color: #a06000; }

.arrow-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.arrow-label { font-size: 8px; font-weight: 600; }

.inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 0.5px solid #f5f5fa;
}
.inbox-row:last-child { border: none; }

.av {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 700;
  flex-shrink: 0;
}

.inbox-from { font-size: 8px; font-weight: 600; color: #0d0f2b; }
.inbox-sub  { font-size: 7.5px; color: #888; margin-top: 1px; }
.inbox-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }

.tl-before {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.tl-after {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #3538c8;
  line-height: 1.65;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta-card {
  background: #0d0f2b;
  color: white;
  border-radius: 16px;
  margin: 0 2rem 4rem;
  padding: 4rem 3rem;
  text-align: center;
  border: none;
}

.cta-eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b8fff;
  margin-bottom: 0.75rem;
}

.cta-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: white;
  margin-bottom: 0.75rem;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  max-width: 44ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #0d0f2b;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 200ms ease, transform 150ms ease;
}

.cta-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.cta-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: white;
  border-top: 0.5px solid #e8eaf0;
  padding: 2.5rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 2rem;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  max-width: 22ch;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-email:hover { color: var(--primary); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover { color: var(--primary); }

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

.footer-right a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-right a:hover { color: var(--primary); }

.footer-copy {
  font-size: 12px;
  color: #aaa;
}

.footer a:hover { color: var(--primary); }

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Features section (cn-*) ────────────────────────────── */
.cn-wrap {
  font-family: 'DM Sans', sans-serif;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.cn-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cn-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  max-width: 700px;
}

.cn-hero-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.cn-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 0.5px solid var(--color-border-tertiary);
}

.cn-feature.reverse .cn-copy { order: 2; }
.cn-feature.reverse .cn-mock { order: 1; }

.cn-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.tag-blue   { background: #e8eaff; color: #3538c8; }
.tag-violet { background: #f0eaff; color: #6b35c8; }
.tag-teal   { background: #e0f5ef; color: #0d7a5a; }
.tag-coral  { background: #feeae5; color: #c0390f; }
.tag-amber  { background: #fef3e2; color: #a0620a; }

.cn-copy h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.cn-copy p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.cn-copy a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.cn-copy a:hover { text-decoration: underline; }

.cn-mock {
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background: #f7f8ff;
  border: 0.5px solid #d8daf5;
  padding: 1.5rem;
  box-sizing: border-box;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mockup subcomponents */
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  border: 0.5px solid #e8eaf8;
  margin-bottom: 8px;
  width: 100%;
}

.doc-icon {
  width: 28px; height: 28px;
  background: #eef0ff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg { width: 14px; height: 14px; }
.doc-name { font-size: 12px; font-weight: 500; color: #1a1d3a; flex: 1; }
.doc-sub  { font-size: 11px; color: var(--muted-light); }
.doc-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.status-ok   { background: #e0f5eb; color: #0d7a4a; }
.status-warn { background: #fff3e0; color: #a06000; }
.status-err  { background: #feeae5; color: #c0390f; }

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.dash-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  border: 0.5px solid var(--border);
}

.dash-num   { font-size: 20px; font-weight: 600; color: #1a1d3a; font-family: 'DM Sans', sans-serif; }
.dash-label { font-size: 10px; color: var(--muted-light); margin-top: 2px; }

.progress-bar {
  height: 4px;
  background: #eef0ff;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill { height: 100%; border-radius: 2px; }

.claim-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 8px;
  padding: 9px 12px;
  border: 0.5px solid var(--border);
}

.claim-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.claim-name { font-size: 12px; font-weight: 500; color: #1a1d3a; flex: 1; }
.claim-val  { font-size: 11px; color: var(--muted-light); }
.claim-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }

.chat-bubble {
  max-width: 85%;
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 13px;
  border-radius: 12px;
}

.chat-ai {
  background: #eef0ff;
  color: #1a1d3a;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.chat-user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  margin-left: auto;
}

.chat-tag { font-size: 10px; color: var(--muted-light); margin-bottom: 3px; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 0.5px solid #d0d2f0;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
}

.mic-icon { color: var(--primary); font-size: 14px; }

.email-item {
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
  border: 0.5px solid var(--border);
}

.email-header  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.email-avatar  { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.email-from    { font-size: 12px; font-weight: 500; color: #1a1d3a; }
.email-time    { font-size: 10px; color: #aaa; margin-left: auto; }
.email-subject { font-size: 11px; color: var(--muted); }
.email-linked  { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 10px; color: var(--primary); font-weight: 500; }

.draft-box {
  background: #f7f8ff;
  border: 0.5px solid #d0d2f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.draft-label { font-size: 10px; color: var(--muted-light); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.draft-text  { font-size: 11px; color: #444; line-height: 1.5; }

.code-result {
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  overflow: hidden;
}

.code-header {
  background: #f0f2ff;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-body { padding: 10px 12px; }
.code-row  { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 0.5px solid #f0f0f5; }
.code-row:last-child { border: none; }
.code-key  { font-size: 11px; color: var(--muted-light); }
.code-val  { font-size: 11px; font-weight: 600; color: #1a1d3a; font-family: monospace; }

.analytics-bar-section { background: white; border-radius: 8px; padding: 10px 12px; border: 0.5px solid var(--border); }
.bar-row   { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.bar-label { font-size: 11px; color: var(--muted); width: 90px; flex-shrink: 0; }
.bar-track { flex: 1; background: #eef0ff; border-radius: 3px; height: 8px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; }
.bar-val   { font-size: 11px; color: var(--muted-light); width: 28px; text-align: right; }

.nl-query {
  background: white;
  border: 0.5px solid #d0d2f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nl-cursor { width: 2px; height: 14px; background: var(--primary); border-radius: 1px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .laptop-mockup {
    max-width: 700px;
    margin: 0 auto;
  }

  /* Dark hero blobs — smaller on tablet */
  .hero-blob-left  { width: 400px; height: 400px; }
  .hero-blob-right { width: 350px; height: 350px; }
  .hero-blob-center { width: 500px; height: 300px; }
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  background: white;
  padding: 4rem 2rem;
  border-top: 0.5px solid #e8eaf0;
}

.faq-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #5b5fcf;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.faq-item {
  border-bottom: 0.5px solid #e8eaf0;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q span:first-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0d0f2b;
}

.faq-icon {
  font-size: 18px;
  color: #aaa;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  padding: 0.6rem 0 0.4rem;
  margin: 0;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-item.open .faq-icon {
  color: #5b5fcf;
}

@media (max-width: 768px) {
  /* Stats bar: wrap to 2 cols on tablet */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Logo strip: stack vertically */
  .logo-strip-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .logo-strip-divider { display: none; }

  /* Features: single column, mockup below copy */
  .cn-feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .cn-feature .cn-mock { order: 2; }
  .cn-feature .cn-copy { order: 1; }
  .cn-feature.reverse .cn-copy { order: 1; }
  .cn-feature.reverse .cn-mock { order: 2; }

  /* Timeline panels: stack vertically */
  .tl-panel { flex-direction: column; min-height: auto; }
  .sc { width: 100% !important; }

  /* CTA section */
  .cta-card { margin: 0 1rem 2rem; padding: 2.5rem 1.5rem; }

  /* Footer: single column */
  .footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-right { text-align: left; }
}

/* Book a demo CTA inside mobile drawer — hidden on desktop */
.nav-demo-cta { display: none; }

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: transform 250ms ease, opacity 250ms ease;
}

.topbar.scrolled .hamburger span { background: var(--text); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  /* Topbar on mobile */
  .topbar-inner {
    height: 56px;
    padding: 0 1rem;
    gap: 10px;
  }

  .brand-logo { height: 44px; }

  .button-demo {
    font-size: 0.78rem;
    padding: 0 12px;
    min-height: 34px;
  }

  /* Hide desktop nav, show hamburger */
  .nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 11, 26, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 25;
  }

  .nav.open { display: flex; }

  .nav a {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .nav a:last-child { border-bottom: none; }

  .topbar.scrolled .nav { background: rgba(255,255,255,0.97); }
  .topbar.scrolled .nav a { color: var(--text); border-bottom-color: rgba(0,0,0,0.07); }

  .hamburger { display: flex; }

  /* Hide topbar Book a demo on mobile */
  .button-demo { display: none; }

  /* Book a demo CTA inside the drawer */
  .nav-demo-cta {
    margin-top: 0.75rem;
    display: inline-block !important;
    width: 100% !important;
    text-align: center;
    padding: 0.75rem 0 !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    border-bottom: none !important;
  }

  .nav { gap: 16px; }
  .nav a { font-size: 0.8rem; }

  .section { padding: 4rem 2rem; }

  /* Dark hero mobile */
  .hero-dark h1 { font-size: 2.4rem; }
  .hero-inner { padding: 2rem 1rem; }
  .hero-subtext { font-size: 15px; }
  .hero-blob-left  { width: 280px; height: 280px; left: -20%; top: -5%; }
  .hero-blob-right { width: 240px; height: 240px; right: -20%; }
  .hero-blob-center { width: 320px; height: 200px; }
  .device-frame { border-radius: 10px 10px 0 0; }

  /* cn-* mobile */
  .cn-hero-title { font-size: 1.6rem; }
  .dash-row { grid-template-columns: 1fr 1fr; }

  /* tl-* mobile */
  .tl-grid { grid-template-columns: 38px 1fr; }
  .tl-num { width: 24px; height: 24px; font-size: 10px; }
  .tl-content { padding-left: 1rem; padding-bottom: 2rem; }
  .tl-num-cell { padding-bottom: 2rem; }
  .tl-dot-cell { padding-bottom: 2rem; }
  .tl-head h2 { font-size: 2rem; }
}
