/* =========================================================
   ExoTeach — Lumen design system
   ========================================================= */
:root {
  /* Dark theme (hero) — warm royal blue, not near-black */
  --bg-dark: #1a2a6e;          /* warm royal cobalt */
  --bg-dark-2: #233888;         /* slightly brighter cobalt */
  --bg-dark-deep: #14215a;      /* deeper edge accent */
  --surface-dark: rgba(255, 255, 255, 0.06);
  --surface-dark-hi: rgba(255, 255, 255, 0.10);
  --border-dark: rgba(255, 255, 255, 0.13);
  --border-dark-hi: rgba(255, 255, 255, 0.22);
  --text-dark: #f4f6ff;
  --text-dark-muted: rgba(244, 246, 255, 0.74);
  --text-dark-soft: rgba(244, 246, 255, 0.52);

  /* Light theme (body sections) */
  --bg-light: #f6f7fb;
  --bg-light-2: #ffffff;
  --surface-light: #ffffff;
  --border-light: #e5e7ef;
  --border-light-hi: #d4d7e0;
  --text-light: #0a0c1c;
  --text-light-muted: #4a4e63;
  --text-light-soft: #7a7e93;

  /* Brand — cyan → blue → violet (logo gradient) */
  --indigo: oklch(0.55 0.22 270);
  --indigo-deep: oklch(0.45 0.22 270);
  --cyan: oklch(0.78 0.16 220);
  --cyan-bright: oklch(0.85 0.14 215);
  --violet: oklch(0.62 0.22 295);
  --teal: oklch(0.78 0.13 175);     /* logo accent */
  --icon-cyan: oklch(0.82 0.14 215);
  --icon-indigo: oklch(0.72 0.18 268);
  --icon-violet: oklch(0.72 0.18 295);
  --icon-teal: oklch(0.74 0.13 175);
  --icon-warm: oklch(0.78 0.13 60);
  --icon-green: oklch(0.7 0.15 145);
  --icon-rose: oklch(0.7 0.16 20);

  --grad-primary: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%);
  --grad-primary-soft: linear-gradient(135deg, oklch(0.55 0.22 270 / 0.15), oklch(0.78 0.16 220 / 0.15));
  --grad-text: linear-gradient(105deg, #fff 30%, oklch(0.85 0.14 215) 60%, #fff 90%);

  /* Warm accent — used sparingly */
  --warm: oklch(0.78 0.13 60);

  /* Fonts */
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; border: 0; background: none; color: inherit; }

/* =========================================================
   Lucide-style icons — colored, no emoji
   ========================================================= */
.lc { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.75; }
.lc-sm { width: 14px; height: 14px; flex-shrink: 0; }
.lc-md { width: 18px; height: 18px; flex-shrink: 0; }
.lc-lg { width: 28px; height: 28px; flex-shrink: 0; }

.icon-cyan   { color: var(--icon-cyan);   }
.icon-indigo { color: var(--icon-indigo); }
.icon-violet { color: var(--icon-violet); }
.icon-teal   { color: var(--icon-teal);   }
.icon-warm   { color: var(--icon-warm);   }
.icon-green  { color: var(--icon-green);  }
.icon-rose   { color: var(--icon-rose);   }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in oklab, currentColor 18%, transparent),
    color-mix(in oklab, currentColor 6%, transparent));
  border: 1px solid color-mix(in oklab, currentColor 35%, transparent);
}
.icon-tile.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-tile.sm .lc { width: 16px; height: 16px; }
.icon-tile.lg { width: 56px; height: 56px; border-radius: 14px; }
.icon-tile.lg .lc { width: 26px; height: 26px; }

/* Inline flag (replacement for emoji) */
.fr-flag {
  display: inline-flex;
  width: 16px; height: 11px;
  border-radius: 2px;
  overflow: hidden;
  vertical-align: -2px;
  border: 1px solid rgba(255,255,255,0.15);
}
.fr-flag i {
  flex: 1;
  display: block;
}
.fr-flag i:nth-child(1) { background: #0055a4; }
.fr-flag i:nth-child(2) { background: #ffffff; }
.fr-flag i:nth-child(3) { background: #ef4135; }

.no-cursor, .no-cursor * { cursor: none; }
@media (hover: none) {
  body, .no-cursor, .no-cursor * { cursor: auto; }
  #cursor, #cursor-dot { display: none !important; }
}

/* =========================================================
   Custom cursor
   ========================================================= */
#cursor, #cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.25s, height 0.25s, opacity 0.2s;
}
#cursor {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor.hover {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   Grain overlay
   ========================================================= */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: var(--surface-dark);
  color: var(--text-dark-muted);
}
.eyebrow.light {
  border-color: var(--border-light-hi);
  background: var(--bg-light-2);
  color: var(--text-light-muted);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-dark-muted);
  max-width: 56ch;
  margin-top: 24px;
}
.light .section-sub, section.light .section-sub { color: var(--text-light-muted); }

/* Light-background sections: force readable text */
section[data-bg="light"] { color: var(--text-light); }
section[data-bg="light"] .section-title { color: var(--text-light); }
section[data-bg="light"] .section-title em { color: transparent; }
section[data-bg="light"] .section-sub { color: var(--text-light-muted); }
section[data-bg="light"] .section-sub strong { color: var(--text-light); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 10px 40px -10px oklch(0.78 0.16 220 / 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 20px 60px -10px oklch(0.78 0.16 220 / 0.8);
}
.btn-ghost {
  border: 1px solid var(--border-dark-hi);
  color: var(--text-dark);
  background: var(--surface-dark);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--surface-dark-hi); }
.btn-light {
  background: var(--bg-dark);
  color: #fff;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(26, 42, 110, 0.4); }
.btn-outline-light {
  border: 1px solid var(--border-light-hi);
  color: var(--text-light);
  background: var(--surface-light);
}
.btn-outline-light:hover { background: var(--bg-light); }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(26, 42, 110, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}
.nav.light-mode {
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-light);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-logo .mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: contain;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dark-muted);
  white-space: nowrap;
}
.nav-menu a { white-space: nowrap; }
.nav.light-mode .nav-menu { color: var(--text-light-muted); }
.nav-menu a:hover { color: var(--text-dark); }
.nav.light-mode .nav-menu a:hover { color: var(--text-light); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px var(--cyan); }
.nav.light-mode .nav-cta { background: var(--bg-dark); color: #fff; }

/* ---- Dropdown groups (Cas d'usage, Produits) ---- */
.nav-group { position: relative; }
.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  color: inherit;
  white-space: nowrap;
  padding: 4px 0;
}
.nav-group-label .chev {
  width: 13px; height: 13px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.nav-group:hover .nav-group-label,
.nav-group:focus-within .nav-group-label,
.nav-group.open .nav-group-label { color: var(--text-dark); }
.nav.light-mode .nav-group:hover .nav-group-label,
.nav.light-mode .nav-group:focus-within .nav-group-label,
.nav.light-mode .nav-group.open .nav-group-label { color: var(--text-light); }
.nav-group:hover .chev,
.nav-group:focus-within .chev,
.nav-group.open .chev { transform: rotate(180deg); opacity: 1; }
.nav-group-label.current { color: var(--text-dark); }
.nav.light-mode .nav-group-label.current { color: var(--text-light); }

/* Hover bridge so the panel doesn't close in the gap */
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 140%; height: 22px;
  transform: translateX(-50%);
}

.nav-dd {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 290px;
  padding: 9px;
  background: rgba(18, 28, 74, 0.86);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border-dark-hi);
  border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 120;
}
.nav-dd-wide { min-width: 320px; }
.nav-group:hover .nav-dd,
.nav-group:focus-within .nav-dd,
.nav-group.open .nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--text-dark-muted);
  transition: background 0.15s, color 0.15s;
}
.nav-dd a:hover { background: var(--surface-dark-hi); color: var(--text-dark); }
.nav-dd .dd-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in oklab, currentColor 20%, transparent),
    color-mix(in oklab, currentColor 6%, transparent));
  border: 1px solid color-mix(in oklab, currentColor 32%, transparent);
}
.nav-dd .dd-ic svg { width: 17px; height: 17px; }
.nav-dd .dd-txt { display: flex; flex-direction: column; gap: 2px; }
.nav-dd .dd-t {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.nav-dd .dd-d {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-dark-soft);
}
.nav-dd .dd-new {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: 7px;
  border-radius: 999px;
  color: oklch(0.85 0.14 215);
  background: oklch(0.78 0.16 220 / 0.16);
  border: 1px solid oklch(0.78 0.16 220 / 0.4);
  vertical-align: middle;
}

/* Light-mode dropdown panel */
.nav.light-mode .nav-dd {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--border-light);
  box-shadow: 0 30px 80px -24px rgba(20,30,80,0.22), 0 0 0 1px rgba(20,30,80,0.04);
}
.nav.light-mode .nav-dd a { color: var(--text-light-muted); }
.nav.light-mode .nav-dd a:hover { background: var(--bg-light); color: var(--text-light); }
.nav.light-mode .nav-dd .dd-t { color: var(--text-light); }
.nav.light-mode .nav-dd .dd-d { color: var(--text-light-soft); }

/* ---- Mobile burger + drawer (desktop = no-op) ---- */
.nav-burger {
  display: none;            /* shown only on mobile */
  flex-direction: column;
  justify-content: center;
  width: 42px; height: 42px;
  margin: -8px 0;           /* keep the nav bar height tidy */
  border-radius: 11px;
  border: 1px solid var(--border-dark);
  background: var(--surface-dark);
  transition: background 0.2s, border-color 0.2s;
}
.nav-burger span {
  display: block;
  width: 19px; height: 1.6px;
  margin: 2.5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav.light-mode .nav-burger { border-color: var(--border-light); background: var(--surface-light); }
/* On desktop the drawer is transparent to layout (logo · menu · cta unchanged) */
.nav-drawer { display: contents; }
body.menu-open { overflow: hidden; }

@media (max-width: 800px) {
  .nav-burger { display: flex; }
  /* Burger morphs into an ✕ */
  .nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  /* Give the top bar a solid backing while the drawer is open */
  .nav.nav-open {
    background: rgba(26, 42, 110, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav.nav-open.light-mode {
    background: rgba(246, 247, 251, 0.94);
    border-bottom-color: var(--border-light);
  }

  /* Drawer = slide-down panel */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 10px var(--gutter) 22px;
    background: rgba(20, 31, 84, 0.97);
    backdrop-filter: blur(22px) saturate(1.4);
    border-bottom: 1px solid var(--border-dark-hi);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  .nav.light-mode .nav-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-light);
    box-shadow: 0 30px 60px -28px rgba(20, 30, 80, 0.22);
  }
  .nav.nav-open .nav-drawer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Links stack full-width */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    font-size: 16px;
  }
  .nav-menu > a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--text-dark-muted);
    transition: background 0.15s, color 0.15s;
  }
  .nav-menu > a:hover { background: var(--surface-dark-hi); color: var(--text-dark); }
  .nav.light-mode .nav-menu > a { color: var(--text-light-muted); }
  .nav.light-mode .nav-menu > a:hover { background: var(--bg-light); color: var(--text-light); }

  /* Dropdown groups become inline accordions */
  .nav-group { width: 100%; }
  .nav-group::after { display: none; }   /* drop the desktop hover bridge */
  .nav-group-label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 13px 14px;
    border-radius: 12px;
  }
  .nav-group-label:hover { background: var(--surface-dark-hi); }
  .nav.light-mode .nav-group-label:hover { background: var(--bg-light); }
  .nav-group-label .chev { width: 16px; height: 16px; }

  .nav-dd,
  .nav-group:hover .nav-dd,
  .nav-group:focus-within .nav-dd {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    padding: 2px 0 4px 6px;
    background: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav.light-mode .nav-dd { background: none; box-shadow: none; }
  .nav-group.open .nav-dd {
    visibility: visible;
    pointer-events: auto;
    max-height: 460px;
    transform: none;
  }
  .nav-dd a { padding: 11px 12px; }

  /* CTA pinned at the bottom of the drawer */
  .nav-cta {
    margin-top: 8px;
    padding: 14px 18px;
    font-size: 15px;
    text-align: center;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, oklch(0.62 0.22 270 / 0.55), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 80%, oklch(0.78 0.16 220 / 0.35), transparent 70%),
    radial-gradient(ellipse 60% 50% at 5% 100%, oklch(0.62 0.22 295 / 0.30), transparent 70%),
    linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark) 60%, var(--bg-dark-deep) 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, oklch(0.55 0.22 270 / 0.15), oklch(0.78 0.16 220 / 0.15));
  border: 1px solid var(--border-dark-hi);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}
.hero-badge .glow {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 24px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 14ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise {
  to { transform: translateY(0); }
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-dark-muted);
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dark-soft);
  font-family: var(--font-mono);
}
.hero-meta strong {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  display: block;
  letter-spacing: -0.02em;
}
.hero-meta .meta-item { text-align: left; }
@media (max-width: 600px) {
  .hero-meta { gap: 22px; }
  .hero-meta strong { font-size: 22px; }
}

/* Floating preview windows */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.float-card {
  position: absolute;
  background: rgba(20, 33, 90, 0.62);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark-muted);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.float-card .fc-head {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.float-card .fc-head .d {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.float-card .fc-head .d.g { background: oklch(0.78 0.16 220); box-shadow: 0 0 8px oklch(0.78 0.16 220); }
.float-card.f1 { top: 18%; left: 5%; }
.float-card.f2 { top: 30%; right: 6%; }
.float-card.f3 { bottom: 18%; left: 8%; }
@media (max-width: 1100px) { .hero-floats { display: none; } }

/* Marquee */
.marquee {
  margin-top: 60px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
  text-align: center;
  margin-bottom: 22px;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll-x 40s linear infinite;
  width: max-content;
}
.marquee-track .logo-slot {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee-track .logo-slot .ls-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
.hero-scroll svg { opacity: 0.5; }

/* =========================================================
   Section transitions (dark → light)
   ========================================================= */
.transition-dark-light {
  height: 200px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  position: relative;
}

/* =========================================================
   AGENTIC LEARNING — split section
   ========================================================= */
.agentic {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, oklch(0.62 0.22 270 / 0.30), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, oklch(0.78 0.16 220 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-dark-deep), var(--bg-dark));
  color: var(--text-dark);
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}
.agentic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.agentic-head {
  position: relative;
  text-align: center;
  margin-bottom: 60px;
}
.agentic-head .section-title { margin: 24px auto 0; }
.agentic-head .section-sub { margin: 24px auto 0; }

.agentic-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .agentic-stage { grid-template-columns: 1fr; }
}

/* Agent chat panel */
.agent-chat {
  background: linear-gradient(180deg, var(--bg-dark-2), var(--bg-dark));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  box-shadow: 0 40px 80px -30px rgba(10, 21, 60, 0.5);
  position: relative;
  overflow: hidden;
}
.agent-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}
.agent-avatar {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: conic-gradient(from 180deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220), oklch(0.62 0.22 295), oklch(0.55 0.22 270));
  position: relative;
}
.agent-avatar::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--bg-dark);
}
.agent-avatar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 8px #fff;
  animation: pulse 2s ease-in-out infinite;
}
.agent-name {
  font-weight: 500;
  font-size: 14.5px;
}
.agent-name .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: oklch(0.78 0.16 220 / 0.15);
  border: 1px solid oklch(0.78 0.16 220 / 0.3);
  color: var(--cyan-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-status .glow {
  width: 6px; height: 6px;
  background: oklch(0.7 0.15 145);
  border-radius: 50%;
  box-shadow: 0 0 8px oklch(0.7 0.15 145);
}
.agent-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}
.msg.show { opacity: 1; transform: translateY(0); }
.msg-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.msg.user .msg-avatar { background: rgba(255,255,255,0.1); color: #fff; }
.msg.ai .msg-avatar {
  background: conic-gradient(from 0deg, var(--indigo), var(--cyan), var(--violet), var(--indigo));
  color: #fff;
  position: relative;
}
.msg-body {
  flex: 1;
  color: var(--text-dark);
}
.msg.user .msg-body { color: var(--text-dark-muted); }
.msg-author {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
  margin-bottom: 4px;
}
.msg-content {
  font-size: 14px;
  line-height: 1.55;
}
.msg-content .typed { white-space: pre-wrap; }
.msg-content .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.msg-tool {
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border-dark);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dark-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-tool .spin {
  width: 12px; height: 12px;
  border: 1.5px solid var(--border-dark-hi);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.msg-tool.done .spin {
  border-color: oklch(0.7 0.15 145);
  border-top-color: oklch(0.7 0.15 145);
  animation: none;
  position: relative;
}
.msg-tool.done .spin::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: oklch(0.7 0.15 145);
}
@keyframes spin { to { transform: rotate(360deg); } }
.msg-tool code {
  color: var(--cyan-bright);
  font-family: inherit;
}
.agent-input {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dark-soft);
}
.agent-input .send {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Platform mirror panel */
.platform-mirror {
  background: linear-gradient(180deg, #f6f7fb, #ffffff);
  color: var(--text-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4);
  position: relative;
}
.platform-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.platform-bar .dots {
  display: flex; gap: 6px;
}
.platform-bar .dots .d {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-light-hi);
}
.platform-bar .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light-soft);
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 6px;
  margin: 0 60px;
}
.platform-stage {
  flex: 1;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.platform-screen {
  position: absolute;
  inset: 22px;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
  transform: translateY(20px);
}
.platform-screen.active { opacity: 1; transform: translateY(0); }

/* Platform screen styles */
.ps-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ps-title h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ps-title .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-light-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* QCM screen */
.qcm-q {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
}
.qcm-q .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light-soft);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qcm-options { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.qcm-opt {
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
}
.qcm-opt .check {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light-hi);
  flex-shrink: 0;
}
.qcm-opt.correct {
  background: oklch(0.94 0.06 145);
  border-color: oklch(0.7 0.15 145);
}
.qcm-opt.correct .check {
  background: oklch(0.7 0.15 145);
  border-color: oklch(0.7 0.15 145);
  position: relative;
}
.qcm-opt.correct .check::after {
  content: "✓"; color: #fff; font-size: 9px; font-weight: 700;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Dashboard screen */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-stat {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}
.dash-stat .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.dash-stat .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.dash-stat .delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: oklch(0.55 0.18 145);
}
.dash-chart {
  height: 120px;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  padding: 14px;
}
.dash-table {
  margin-top: 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr 60px 80px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.dash-row:last-child { border-bottom: 0; }
.dash-row.head {
  background: var(--bg-light);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light-soft);
  letter-spacing: 0.06em;
}
.dash-row .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.dash-row .bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--grad-primary);
  width: 0;
  transition: width 1s ease;
}

/* Course screen */
.course-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #fff;
  margin-bottom: 10px;
}
.course-card .ctop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.course-card .cthumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--grad-primary);
}
.course-card .ctitle {
  font-weight: 500;
  font-size: 13.5px;
}
.course-card .cmeta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-light-soft);
}
.course-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.course-progress > span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--grad-primary);
  width: 0;
  transition: width 1s ease;
}

/* Highlight pulse */
@keyframes hl-pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.78 0.16 220 / 0.5); }
  100% { box-shadow: 0 0 0 14px oklch(0.78 0.16 220 / 0); }
}
.hl { animation: hl-pulse 1.5s ease-out 1; }

/* MCP visualization */
.mcp-viz {
  margin-top: 80px;
  padding: 60px 40px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  overflow: hidden;
}
.mcp-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .mcp-flow { grid-template-columns: 1fr; }
  .mcp-arrow { transform: rotate(90deg); justify-self: center; }
}
.mcp-node {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.mcp-node .icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in oklab, currentColor 22%, transparent),
    color-mix(in oklab, currentColor 8%, transparent));
  border: 1px solid color-mix(in oklab, currentColor 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-cyan);
}
.mcp-node .icon .lc { width: 26px; height: 26px; }
.mcp-node .icon.mcp-logo {
  background: transparent;
  border: 0;
  padding: 0;
}
.mcp-node .icon.mcp-logo img {
  width: 40px; height: 40px;
  filter: drop-shadow(0 6px 18px rgba(78, 142, 255, 0.45));
}
.mcp-node h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.mcp-node p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-dark-soft);
  font-family: var(--font-mono);
}
.mcp-arrow {
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}
.mcp-arrow .lc { width: 28px; height: 28px; }

/* =========================================================
   PERSONAS section (light)
   ========================================================= */
.personas {
  background: var(--bg-light);
  color: var(--text-light);
}
.personas .section-title { color: var(--text-light); }
.personas .section-title em { color: transparent; }

.personas-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 800px) {
  .personas-head { grid-template-columns: 1fr; gap: 30px; }
}
.personas-head .section-sub { color: var(--text-light-muted); }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(10, 12, 28, 0.18);
  border-color: var(--border-light-hi);
}
.persona-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
.persona-card .pc-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.persona-card .pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-soft);
}
.persona-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.persona-card h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.persona-card .pc-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-light-muted);
}
.persona-card ul {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona-card li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-light);
}
.persona-card li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 4px;
  background: var(--grad-primary-soft);
  border: 1px solid oklch(0.78 0.16 220 / 0.4);
  background-image: linear-gradient(135deg, oklch(0.78 0.16 220 / 0.2), oklch(0.55 0.22 270 / 0.2));
}
.persona-card .pc-link {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-light);
}
.persona-card .pc-link .arrow { transition: transform 0.2s; }
.persona-card:hover .pc-link .arrow { transform: translateX(4px); }

/* Persona visual: student */
.pv-student {
  background: linear-gradient(180deg, #fff, var(--bg-light));
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-student .pv-row {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.pv-student .pv-row .icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--grad-primary-soft);
  border: 1px solid oklch(0.78 0.16 220 / 0.3);
  flex-shrink: 0;
}
.pv-student .pv-row .label { flex: 1; font-weight: 500; color: var(--text-light); }
.pv-student .pv-row .progress {
  width: 60px; height: 4px;
  border-radius: 2px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.pv-student .pv-row .progress > span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--grad-primary);
  width: var(--p, 60%);
}

/* Persona visual: prof */
.pv-prof {
  background: linear-gradient(180deg, var(--bg-light), #fff);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.pv-prof .editor {
  background: linear-gradient(160deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  border-radius: 10px;
  padding: 14px;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.pv-prof .editor .line {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--text-dark-muted);
}
.pv-prof .editor .ln { color: var(--text-dark-soft); width: 16px; }
.pv-prof .editor .kw { color: var(--cyan-bright); }
.pv-prof .editor .str { color: oklch(0.85 0.13 60); }

/* Persona visual: admin */
.pv-admin {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: linear-gradient(180deg, #fff, var(--bg-light));
}
.pv-admin .a-stat {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}
.pv-admin .a-stat .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.pv-admin .a-stat .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.pv-admin .a-chart {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  height: 60px;
}

/* =========================================================
   TRUST / Stats
   ========================================================= */
.trust {
  background: var(--bg-light);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.trust-inner {
  padding: 60px;
  background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.trust-inner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, oklch(0.55 0.22 270 / 0.25), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, oklch(0.78 0.16 220 / 0.2), transparent 70%);
  pointer-events: none;
}
/* Dark card: keep text light, overriding the data-bg="light" rule */
section[data-bg="light"] .trust-inner .eyebrow { color: var(--text-dark-muted); }
section[data-bg="light"] .trust-inner .section-title { color: var(--text-dark); }
section[data-bg="light"] .trust-inner .section-title em {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.t-stat .big {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-stat .lbl {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark-muted);
}
.trust-logos {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-logos-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light-soft);
  text-align: center;
  margin-bottom: 24px;
}
.trust-logos-track {
  display: flex;
  gap: 60px;
  animation: scroll-x 50s linear infinite;
  width: max-content;
  align-items: center;
}
.trust-logos-track .logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-light-soft);
  white-space: nowrap;
}

/* =========================================================
   COMPARISON
   ========================================================= */
.compare {
  background: var(--bg-light);
  color: var(--text-light);
}
.compare-head { text-align: center; margin-bottom: 60px; }
.compare-head .section-title { margin: 24px auto 0; }
.compare-head .section-sub { margin: 24px auto 0; }
.compare-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-light);
  box-shadow: 0 30px 60px -30px rgba(10, 12, 28, 0.15);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row.head {
  background: var(--bg-light);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.compare-row.head .col {
  padding: 18px 24px;
}
.compare-row.head .col.exo {
  background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  position: relative;
}
.compare-row.head .col.exo .exo-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}
.compare-row.head .col.exo .exo-logo .mark {
  width: 18px; height: 18px;
}
.compare-row .col {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  border-right: 1px solid var(--border-light);
}
.compare-row .col:last-child { border-right: 0; }
.compare-row .col.label { font-weight: 500; color: var(--text-light); }
.compare-row .col.exo { background: oklch(0.97 0.02 220); color: var(--text-light); }
.compare-row .col .check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
}
.compare-row .col .icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.compare-row .col .icon .lc { width: 11px; height: 11px; }
.compare-row .col .icon.yes {
  background: oklch(0.94 0.06 145);
  color: oklch(0.5 0.18 145);
}
.compare-row .col .icon.no {
  background: var(--bg-light);
  color: var(--text-light-soft);
}
.compare-row .col .icon.maybe {
  background: oklch(0.95 0.08 70);
  color: oklch(0.55 0.13 60);
}
@media (max-width: 700px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row .col { border-right: 0; border-bottom: 1px solid var(--border-light); }
}

/* =========================================================
   USE CASES
   ========================================================= */
.cases {
  background: var(--bg-light);
}
.cases-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .cases-head { grid-template-columns: 1fr; } }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card {
  position: relative;
  padding: 36px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(10,12,28,0.18); }
.case-card.dark {
  background: linear-gradient(160deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  border-color: var(--border-dark);
}
.case-card.dark .case-meta { color: var(--text-dark-soft); }
.case-card .case-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-light);
  color: var(--text-light-soft);
  border: 1px solid var(--border-light);
}
.case-card.dark .case-tag {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  color: var(--text-dark-muted);
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 18px;
}
.case-card h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-card .case-desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-light-muted);
}
.case-card.dark .case-desc { color: var(--text-dark-muted); }
.case-card .case-meta {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.case-card .case-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-transform: none;
  margin-top: 4px;
}
.case-card.dark .case-meta strong { color: var(--text-dark); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--bg-light);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  padding: 28px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.testimonial .quote::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 0;
  position: relative;
  top: 24px;
  margin-right: 4px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.testimonial .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-primary-soft);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.testimonial .who-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-light);
}
.testimonial .who-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light-soft);
  letter-spacing: 0.04em;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  background: var(--bg-light);
}
.pricing-head { text-align: center; margin-bottom: 60px; }
.pricing-head .section-title { margin: 24px auto 0; }
.pricing-head .section-sub { margin: 24px auto 0; }
.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(20, 33, 90, 0.5);
}
.pricing-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, oklch(0.55 0.22 270 / 0.35), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, oklch(0.78 0.16 220 / 0.25), transparent 70%);
  pointer-events: none;
}
.pricing-content {
  position: relative; z-index: 2;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 700px) {
  .pricing-content { grid-template-columns: 1fr; padding: 32px; gap: 30px; }
}
.pricing-left .pl-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
}
.pricing-left h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.pricing-left .pl-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark-muted);
}
.pricing-left .pl-price {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.pricing-left .pl-price .from {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
  margin-right: 4px;
}
.pricing-left .pl-price .amount {
  font-size: 64px;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.pricing-left .pl-price .unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dark-muted);
}
.pricing-left .pl-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark-soft);
}
.pricing-left .pl-value {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface-dark-soft, rgba(255,255,255,0.04));
  border: 1px solid var(--border-dark, rgba(255,255,255,0.08));
}
.pricing-left .pl-value-head {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 500;
}
.pricing-left .pl-value-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark-muted);
}
.pricing-left .pl-value-desc em {
  font-style: normal;
  color: var(--cyan-bright);
  font-weight: 500;
}
.pricing-left .pl-value-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-dark, rgba(255,255,255,0.1));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dark-soft);
}
.pricing-right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-right li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
}
.pricing-right li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-primary-soft);
  border: 1px solid oklch(0.78 0.16 220 / 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-bright);
  flex-shrink: 0;
}
.pricing-right li .check .lc { width: 12px; height: 12px; }
.pricing-right .btn {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-deep));
  color: var(--text-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, oklch(0.55 0.22 270 / 0.4), transparent 70%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 14ch;
}
.final-cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta p {
  font-size: 19px;
  color: var(--text-dark-muted);
  max-width: 50ch;
  line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--bg-dark-deep), #0e1a48);
  color: var(--text-dark);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .nav-logo { color: #fff; }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-muted);
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-dark-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-dark); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dark-soft);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--text-dark-soft); }
.footer-bottom a:hover { color: var(--text-dark); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Parallax data attr is handled in JS */
[data-parallax] { will-change: transform; }

/* =========================================================
   Demo modal — request a demo
   ========================================================= */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 48, 0.72);
  backdrop-filter: blur(10px);
  animation: dm-fade 0.3s ease;
}
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-rise {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.demo-modal-content {
  position: relative;
  width: 100%;
  max-width: 1120px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark-hi);
  color: var(--text-dark);
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, oklch(0.62 0.22 295 / 0.38), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 0%, oklch(0.78 0.16 220 / 0.32), transparent 70%),
    linear-gradient(135deg, var(--bg-dark-2) 0%, var(--bg-dark) 60%, var(--bg-dark-deep) 100%);
  box-shadow: 0 60px 120px -40px rgba(8, 16, 48, 0.7);
  animation: dm-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-dark-hi);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
}
.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}
.demo-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  padding: 56px 56px 48px;
}
@media (max-width: 900px) {
  .demo-modal-grid { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .demo-modal-content { max-height: calc(100vh - 24px); }
}
.demo-modal-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.demo-modal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--icon-cyan) 24%, transparent),
    color-mix(in oklab, var(--icon-cyan) 8%, transparent));
  border: 1px solid color-mix(in oklab, var(--icon-cyan) 45%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--icon-cyan);
}
.demo-modal h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--text-dark);
}
.demo-modal h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.demo-modal-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-dark-muted);
  max-width: 42ch;
}
.demo-modal-trust {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.demo-modal-trust .label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark-soft);
  margin-bottom: 4px;
}
.demo-modal-trust .l-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.62);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .demo-form-row { grid-template-columns: 1fr; }
}
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}
.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark-hi);
  border-radius: 10px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: none;
}
.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--cyan-bright);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px oklch(0.78 0.16 220 / 0.18);
}
.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--text-dark-soft);
}
.demo-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
  line-height: 1.5;
}
.demo-form .demo-submit-btn {
  margin-top: 6px;
  padding: 15px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5c46c, #ec9a40);
  color: #2a1a05;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  cursor: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
}
.demo-form .demo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px oklch(0.78 0.16 60 / 0.55);
  filter: brightness(1.05);
}
.demo-form .demo-submit-btn .arrow { transition: transform 0.2s; }
.demo-form .demo-submit-btn:hover .arrow { transform: translateX(3px); }
.demo-modal-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-dark-soft);
  margin-top: 2px;
}
/* Custom cursor must stay above modal */
#cursor, #cursor-dot { z-index: 10000; }


/* =========================================================
   PERSONAS v2 — Polished mini-mockups (overrides above)
   ========================================================= */
.persona-visual { height: 240px; }

/* ---- pv-student v2 ---- */
.pv-student {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, oklch(0.94 0.06 220 / 0.5), transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, oklch(0.94 0.05 295 / 0.4), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-light));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-student .pvs-greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pv-student .pvs-hi {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.pv-student .pvs-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
  margin-top: 2px;
}
.pv-student .pvs-flame {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, oklch(0.78 0.13 60 / 0.18), oklch(0.7 0.16 20 / 0.18));
  border: 1px solid oklch(0.78 0.13 60 / 0.35);
  color: oklch(0.55 0.16 30);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.pv-student .pvs-flame svg { width: 12px; height: 12px; }

.pv-student .pvs-streak {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.pv-student .pvs-d {
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light-soft);
}
.pv-student .pvs-d.done {
  background: linear-gradient(135deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px -4px oklch(0.55 0.22 270 / 0.4);
}
.pv-student .pvs-d.today {
  background: #fff;
  color: oklch(0.55 0.22 270);
  border: 1.5px solid oklch(0.55 0.22 270);
  box-shadow: 0 0 0 3px oklch(0.55 0.22 270 / 0.12);
}

.pv-student .pvs-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px -10px rgba(10, 12, 28, 0.1);
  margin-top: auto;
}
.pv-student .pvs-play {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px oklch(0.55 0.22 270 / 0.5);
}
.pv-student .pvs-play svg { width: 14px; height: 14px; }
.pv-student .pvs-card-body { flex: 1; min-width: 0; }
.pv-student .pvs-card-t {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}
.pv-student .pvs-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.pv-student .pvs-bar {
  margin-top: 6px;
  height: 4px;
  background: var(--bg-light);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.pv-student .pvs-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  border-radius: 2px;
}

/* ---- pv-prof v2: AI-generated quiz preview ---- */
.pv-prof {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, oklch(0.94 0.05 270 / 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg-light), #fff);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
}
.pv-prof .pvp-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
.pv-prof .pvp-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
  background: var(--bg-light);
  padding: 3px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}
.pv-prof .pvp-msg {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

.pv-prof .pvp-out {
  background: linear-gradient(160deg, var(--bg-dark-2), var(--bg-dark));
  color: var(--text-dark);
  border-radius: 12px;
  padding: 12px;
  flex: 1;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(10, 12, 28, 0.3);
}
.pv-prof .pvp-out::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, oklch(0.78 0.16 220 / 0.3), oklch(0.62 0.22 295 / 0.2));
  z-index: -1;
}
.pv-prof .pvp-out-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark-muted);
  margin-bottom: 8px;
}
.pv-prof .pvp-ai {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.pv-prof .pvp-ai svg { width: 10px; height: 10px; }
.pv-prof .pvp-gen { flex: 1; }
.pv-prof .pvp-pub {
  background: oklch(0.7 0.15 145 / 0.18);
  color: oklch(0.85 0.18 145);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
}
.pv-prof .pvp-q {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.pv-prof .pvp-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-prof .pvp-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-size: 11px;
  color: var(--text-dark-muted);
}
.pv-prof .pvp-opt .pvp-rd {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-prof .pvp-opt.ok {
  background: oklch(0.7 0.15 145 / 0.15);
  border-color: oklch(0.7 0.15 145 / 0.45);
  color: #fff;
}
.pv-prof .pvp-opt.ok .pvp-rd {
  border-color: oklch(0.7 0.15 145);
  background: oklch(0.7 0.15 145);
  color: #fff;
}
.pv-prof .pvp-opt.ok .pvp-rd svg { width: 8px; height: 8px; }

/* ---- pv-admin v2: hero stat + sparkline + mini cards ---- */
.pv-admin {
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, oklch(0.94 0.05 220 / 0.6), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-light));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-template-columns: none;
}
.pv-admin .pva-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px -10px rgba(10, 12, 28, 0.08);
}
.pv-admin .pva-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-soft);
}
.pv-admin .pva-big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-top: 4px;
}
.pv-admin .pva-delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: oklch(0.55 0.16 145);
  margin-top: 4px;
}
.pv-admin .pva-spark {
  width: 100%;
  height: 50px;
}

.pv-admin .pva-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pv-admin .pva-m {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 10px;
}
.pv-admin .pva-m-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.pv-admin .pva-m-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-top: 2px;
}

/* =========================================================
   FEATURES — Bento layout
   ========================================================= */
.features { background: var(--bg-light); }
.features-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .features-head { grid-template-columns: 1fr; gap: 30px; }
}
.features-head .section-sub { color: var(--text-light-muted); }

.features-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
}

.feat {
  position: relative;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(10, 12, 28, 0.18);
  border-color: var(--border-light-hi);
}
.feat .feat-body {
  padding: 28px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat .feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.feat .feat-tag .ft-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
}
.feat h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-light);
}
.feat h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-light-muted);
}
.feat p strong { color: var(--text-light); font-weight: 600; }
.feat .feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.feat .feat-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-light-muted);
}
.feat .feat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, oklch(0.78 0.16 220 / 0.4), oklch(0.55 0.22 270 / 0.4));
  border: 1px solid oklch(0.78 0.16 220 / 0.45);
}
.feat .feat-viz {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* Dark variant */
.feat.dark {
  background: linear-gradient(135deg, var(--bg-dark-2) 0%, var(--bg-dark) 70%, var(--bg-dark-deep) 100%);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-dark);
}
.feat.dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, oklch(0.78 0.16 220 / 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, oklch(0.62 0.22 295 / 0.18), transparent 70%);
  pointer-events: none;
}
.feat.dark .feat-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-dark-muted);
}
.feat.dark h3 { color: var(--text-dark); }
.feat.dark h3 em {
  background: linear-gradient(135deg, oklch(0.85 0.14 215), oklch(0.78 0.18 295));
  -webkit-background-clip: text;
  background-clip: text;
}
.feat.dark p { color: var(--text-dark-muted); }
.feat.dark p strong { color: #fff; }
.feat.dark .feat-list li { color: var(--text-dark-muted); }
.feat.dark .feat-list li strong { color: #fff; font-weight: 600; }
.feat.dark .feat-list li::before {
  background: linear-gradient(135deg, oklch(0.78 0.16 220 / 0.6), oklch(0.62 0.22 295 / 0.6));
  border-color: oklch(0.78 0.16 220 / 0.7);
}

/* Bento spans */
.feat-tracking { grid-column: span 8; grid-row: span 1; }
.feat-mobile { grid-column: span 4; grid-row: span 2; }
.feat-sign { grid-column: span 4; }
.feat-nocode { grid-column: span 4; }
.feat-wl { grid-column: span 3; }
.feat-mail { grid-column: span 3; }
.feat-pay { grid-column: span 3; }
.feat-crm { grid-column: span 3; }

@media (max-width: 1100px) {
  .features-bento { grid-template-columns: repeat(6, 1fr); }
  .feat-tracking { grid-column: span 6; grid-row: span 1; }
  .feat-mobile { grid-column: span 6; grid-row: span 1; }
  .feat-sign, .feat-nocode { grid-column: span 3; }
  .feat-wl, .feat-mail, .feat-pay, .feat-crm { grid-column: span 3; }
}
@media (max-width: 700px) {
  .features-bento { grid-template-columns: 1fr; }
  .features-bento > .feat { grid-column: span 1; grid-row: auto; }
}

/* ---------- 1. Tracking viz (big dark hero) ---------- */
.feat-tracking { min-height: 460px; }
.feat-tracking .feat-body { max-width: 56%; }
.tracking-viz {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.trk-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.trk-student {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 30px 60px -20px rgba(10, 12, 28, 0.5);
  z-index: 2;
}
.trk-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, oklch(0.78 0.16 220), oklch(0.62 0.22 295));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
.trk-meta { min-width: 0; }
.trk-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.trk-class {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark-muted);
  margin-top: 2px;
}
.trk-pcircle {
  position: relative;
  width: 56px; height: 56px;
}
.trk-pcircle svg { width: 100%; height: 100%; }
.trk-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.trk-viewer {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}
.trk-viewer .tv-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trk-viewer .tv-ic svg { width: 16px; height: 16px; }
.trk-viewer .tv-l {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trk-viewer .tv-r {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark-muted);
}
.trk-viewer .tv-n {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.trk-v-prof {
  top: 40px;
  right: 320px;
}
.trk-v-parent {
  top: 40px;
  right: 32px;
}
.trk-v-corp {
  bottom: 36px;
  right: 80px;
}

@media (max-width: 1100px) {
  .feat-tracking { min-height: 580px; }
  .feat-tracking .feat-body { max-width: 100%; }
  .trk-student { right: 50%; transform: translate(50%, 0); top: auto; bottom: 130px; width: 92%; max-width: 360px; }
  .trk-v-prof { right: 50%; transform: translateX(50%); top: auto; bottom: 70px; }
  .trk-v-parent { left: 18px; right: auto; top: auto; bottom: 16px; }
  .trk-v-corp { right: 18px; left: auto; bottom: 16px; }
  .trk-lines { display: none; }
}

/* ---------- 2. Mobile viz (tall phone) ---------- */
.feat-mobile {
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 60%);
}
.mobile-viz {
  padding: 6px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 320px;
}
.phone {
  width: 200px;
  height: 360px;
  background: linear-gradient(160deg, #1a1a22, #0a0a12);
  border-radius: 28px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 50px 80px -30px rgba(10, 12, 28, 0.35),
    0 20px 30px -10px rgba(10, 12, 28, 0.2);
  margin-bottom: -40px;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 14px;
  background: #000;
  border-radius: 8px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, oklch(0.97 0.02 270), #fff 30%);
  border-radius: 22px;
  padding: 28px 14px 0;
  overflow: hidden;
  position: relative;
}
.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 14px;
}
.ph-status-r { display: inline-flex; align-items: center; gap: 4px; }
.ph-status-r svg { width: 11px; height: 11px; color: var(--text-light); }
.ph-bars { display: inline-flex; align-items: end; gap: 1px; height: 9px; }
.ph-bars i { display: inline-block; width: 2px; background: var(--text-light); border-radius: 1px; }
.ph-bars i:nth-child(1) { height: 3px; }
.ph-bars i:nth-child(2) { height: 5px; }
.ph-bars i:nth-child(3) { height: 7px; }
.ph-bars i:nth-child(4) { height: 9px; }
.ph-bat {
  width: 16px; height: 8px;
  border: 1px solid var(--text-light);
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.ph-bat::after {
  content: "";
  position: absolute;
  right: -2px; top: 2px;
  width: 1px; height: 4px;
  background: var(--text-light);
}
.ph-bat i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--text-light);
  border-radius: 1px;
}

.ph-greet { margin-bottom: 12px; }
.ph-hi {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light);
}
.ph-sub {
  font-size: 10px;
  color: var(--text-light-soft);
  margin-top: 2px;
}

.ph-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px -4px rgba(10, 12, 28, 0.06);
}
.ph-thumb {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, oklch(0.78 0.16 220), oklch(0.62 0.22 295));
  flex-shrink: 0;
}
.ph-card-alt .ph-thumb {
  background: linear-gradient(135deg, oklch(0.78 0.13 60), oklch(0.7 0.16 20));
}
.ph-card-meta { flex: 1; min-width: 0; }
.ph-card-t {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.ph-card-s {
  font-size: 9.5px;
  color: var(--text-light-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}
.ph-card-bar {
  margin-top: 4px;
  height: 3px;
  background: var(--bg-light);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ph-card-bar > span {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  border-radius: 2px;
}
.ph-coach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, oklch(0.55 0.22 270), oklch(0.62 0.22 295));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10.5px;
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 4px;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 16px -6px oklch(0.55 0.22 270 / 0.45);
}
.ph-coach-ic {
  width: 12px; height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ph-coach-ic svg { width: 12px; height: 12px; }
.ph-tabs {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.ph-tab {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-light);
}
.ph-tab.active {
  background: linear-gradient(135deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  width: 18px; height: 6px; border-radius: 3px;
}

/* ---------- 3. Sign viz ---------- */
.sign-viz {
  position: relative;
  padding: 0 28px 28px;
  min-height: 200px;
}
.sign-doc {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  box-shadow:
    0 1px 0 #fff inset,
    0 14px 30px -14px rgba(10, 12, 28, 0.18),
    0 4px 12px -4px rgba(10, 12, 28, 0.08);
  transform: rotate(-2deg);
}
.sign-doc::before {
  content: "";
  position: absolute;
  inset: -6px -6px auto auto;
  width: 50%; height: 90%;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  z-index: -1;
  transform: rotate(4deg);
  box-shadow: 0 14px 30px -14px rgba(10, 12, 28, 0.12);
}
.sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.sd-ttl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}
.sd-eid {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  background: oklch(0.55 0.22 270 / 0.1);
  color: oklch(0.45 0.22 270);
  padding: 3px 6px;
  border-radius: 5px;
}
.sd-line {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-light);
  margin-bottom: 5px;
}
.sd-line.w50 { width: 50%; }
.sd-line.w70 { width: 70%; }
.sd-line.w80 { width: 80%; }
.sd-line.w90 { width: 90%; }
.sd-sig {
  margin-top: 12px;
  padding: 8px 10px 6px;
  background: linear-gradient(135deg, oklch(0.94 0.06 220 / 0.5), oklch(0.94 0.05 270 / 0.5));
  border: 1px dashed oklch(0.55 0.22 270 / 0.5);
  border-radius: 8px;
  position: relative;
}
.sd-sig-path {
  width: 100%;
  height: 28px;
  color: oklch(0.55 0.22 270);
}
.sd-sig-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.sd-sig-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.55 0.16 145);
}
.sd-sig-by {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-style: italic;
  color: var(--text-light);
}

.sign-pill {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: oklch(0.94 0.06 145);
  color: oklch(0.4 0.16 145);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid oklch(0.7 0.15 145 / 0.4);
}
.sign-pill svg { width: 11px; height: 11px; }

/* ---------- 4. No-code viz ---------- */
.nocode-viz {
  position: relative;
  padding: 0 28px 28px;
  min-height: 200px;
  display: grid;
  grid-template-columns: auto 80px auto;
  grid-template-rows: auto 30px auto;
  align-items: center;
}
.nc-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 16px -8px rgba(10, 12, 28, 0.1);
  z-index: 2;
}
.nc-node.nc-trig {
  border-color: oklch(0.78 0.16 220 / 0.5);
  background: linear-gradient(135deg, oklch(0.94 0.06 220 / 0.5), #fff);
  grid-column: 1; grid-row: 1;
  justify-self: start;
}
.nc-node.nc-act {
  grid-column: 3; grid-row: 1;
  justify-self: end;
  border-color: oklch(0.62 0.22 295 / 0.4);
  background: linear-gradient(135deg, oklch(0.94 0.05 295 / 0.4), #fff);
}
.nc-node.nc-act-2 {
  grid-column: 3; grid-row: 3;
  justify-self: end;
  border-color: oklch(0.7 0.15 145 / 0.4);
  background: linear-gradient(135deg, oklch(0.94 0.06 145 / 0.5), #fff);
}
.nc-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nc-ic svg { width: 16px; height: 16px; }
.nc-l { display: flex; flex-direction: column; gap: 1px; }
.nc-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-soft);
}
.nc-t {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.nc-pipe { display: block; }
.nc-pipe-1 {
  grid-column: 2; grid-row: 1;
  width: 100%; height: 24px;
  align-self: center;
}
.nc-pipe-2 {
  grid-column: 3; grid-row: 2;
  height: 100%; width: 30px;
  justify-self: center;
}

/* ---------- 5. White-label viz ---------- */
.wl-viz {
  padding: 0 24px 24px;
  position: relative;
  min-height: 200px;
}
.wl-preview {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(10, 12, 28, 0.12);
  transition: background 0.4s;
}
.wl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--wl-accent, oklch(0.55 0.18 0));
  color: #fff;
  transition: background 0.4s;
}
.wl-logo {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.wl-nav { display: inline-flex; gap: 4px; }
.wl-nav span {
  width: 12px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.wl-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-h1 {
  height: 7px;
  width: 70%;
  border-radius: 3px;
  background: var(--text-light);
}
.wl-h2 {
  height: 4px;
  width: 90%;
  border-radius: 2px;
  background: var(--bg-light);
}
.wl-btn {
  margin-top: 6px;
  width: fit-content;
  background: var(--wl-accent, oklch(0.55 0.18 0));
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.4s;
}
.wl-swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.wl-sw {
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: none;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px -2px rgba(10, 12, 28, 0.2), 0 0 0 1px var(--border-light);
  transition: transform 0.2s;
}
.wl-sw.s1 { background: oklch(0.55 0.22 270); }
.wl-sw.s2 { background: oklch(0.78 0.16 220); }
.wl-sw.s3 { background: oklch(0.62 0.18 20); }
.wl-sw.s4 { background: oklch(0.65 0.15 145); }
.wl-sw.s5 { background: oklch(0.78 0.13 60); }
.wl-sw.active {
  transform: scale(1.18);
  box-shadow: 0 4px 10px -2px rgba(10, 12, 28, 0.25), 0 0 0 2px var(--text-light);
}
.feat-wl { --wl-accent: oklch(0.62 0.18 20); }

/* ---------- 6. Mail viz ---------- */
.mail-viz {
  padding: 0 24px 24px;
  min-height: 200px;
}
.ml-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 24px -12px rgba(10, 12, 28, 0.12);
}
.ml-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.ml-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(0.7 0.15 145);
  box-shadow: 0 0 8px oklch(0.7 0.15 145);
  flex-shrink: 0;
}
.ml-subj {
  flex: 1;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}
.ml-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.4 0.16 145);
  background: oklch(0.94 0.06 145);
  padding: 3px 6px;
  border-radius: 4px;
}
.ml-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ml-row {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.ml-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
}
.ml-track {
  height: 6px;
  background: var(--bg-light);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.ml-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  border-radius: 3px;
}
.ml-fill.alt {
  background: linear-gradient(90deg, oklch(0.62 0.22 295), oklch(0.78 0.13 60));
}
.ml-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--text-light);
}
.ml-foot {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light-soft);
  letter-spacing: 0.04em;
}

/* ---------- 7. Pay viz ---------- */
.pay-viz {
  padding: 0 24px 24px;
  min-height: 200px;
}
.inv {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 24px -12px rgba(10, 12, 28, 0.12);
  position: relative;
}
.inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.inv-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-soft);
}
.inv-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.inv-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: oklch(0.94 0.06 145);
  color: oklch(0.4 0.16 145);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid oklch(0.7 0.15 145 / 0.4);
}
.inv-status svg { width: 10px; height: 10px; }
.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 11.5px;
  color: var(--text-light-muted);
  font-family: var(--font-mono);
}
.inv-row > span:last-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-light);
}
.inv-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.inv-row.total > span:first-child {
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
.inv-row.total > span:last-child {
  font-size: 16px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.inv-meth {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.inv-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-light);
  color: var(--text-light-muted);
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
}

/* ---------- 8. CRM viz ---------- */
.crm-viz {
  padding: 0 24px 24px;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.crm-col {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 4px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-soft);
  margin-bottom: 2px;
}
.crm-c {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.crm-tile {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 4px -2px rgba(10, 12, 28, 0.06);
}
.ct-l {
  height: 5px;
  width: 70%;
  background: var(--text-light);
  border-radius: 2px;
  opacity: 0.85;
}
.ct-s {
  height: 3px;
  width: 50%;
  background: var(--text-light-soft);
  border-radius: 2px;
  opacity: 0.5;
}
.crm-tile.active {
  border-color: oklch(0.78 0.16 220 / 0.6);
  background: linear-gradient(135deg, oklch(0.94 0.06 220 / 0.6), #fff);
  box-shadow: 0 6px 14px -6px oklch(0.55 0.22 270 / 0.25);
}
.crm-tile.active .ct-l {
  background: linear-gradient(90deg, oklch(0.55 0.22 270), oklch(0.78 0.16 220));
  opacity: 1;
}
.crm-tile.success {
  border-color: oklch(0.7 0.15 145 / 0.5);
  background: linear-gradient(135deg, oklch(0.94 0.06 145 / 0.5), #fff);
}
.crm-tile.success .ct-l {
  background: oklch(0.55 0.16 145);
  opacity: 1;
}

/* =========================================================
   CUSTOM / SUR MESURE — dark band, three.js modules
   ========================================================= */
.custom {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, oklch(0.62 0.22 295 / 0.30), transparent 70%),
    radial-gradient(ellipse 70% 60% at 10% 90%, oklch(0.78 0.16 220 / 0.28), transparent 70%),
    linear-gradient(180deg, var(--bg-dark-deep) 0%, var(--bg-dark) 55%, var(--bg-dark-2) 100%);
  color: var(--text-dark);
}
.custom-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.custom-inner {
  position: relative;
  z-index: 2;
}
.custom-head {
  max-width: 720px;
}
.custom-head .section-sub {
  margin-top: 22px;
  color: var(--text-dark-muted);
}

.custom-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.custom-card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--border-dark-hi);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.custom-card:hover {
  transform: translateY(-5px);
  border-color: oklch(0.78 0.16 220 / 0.4);
  box-shadow: 0 30px 60px -28px oklch(0.55 0.22 270 / 0.6);
}
.custom-card .cc-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark-hi);
  margin-bottom: 20px;
}
.custom-card .cc-ic svg { width: 23px; height: 23px; }
.custom-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.custom-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark-muted);
}

.custom-cta {
  margin-top: 28px;
  padding: 30px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, oklch(0.55 0.22 270 / 0.18), oklch(0.78 0.16 220 / 0.12));
  border: 1px solid oklch(0.78 0.16 220 / 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.custom-cta-txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
}
.custom-cta-txt .cc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}
.custom-cta-txt p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
}

@media (max-width: 1000px) {
  .custom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .custom-cta { flex-direction: column; align-items: flex-start; }
}
