/* ============================================================
   Recruit Arsenal — Shared styles
   Couleurs riches et chaudes, accent vermillon
   ============================================================ */

:root {
  color-scheme: light;
  --paper:    #F1F1ED;     /* off-white froid */
  --paper-2:  #E5E5E0;     /* alterner */
  --paper-3:  #FBFBF8;     /* cards */
  --ink:      #0B0B14;     /* bleu-noir profond */
  --ink-2:    #181927;     /* panneau sombre */
  --ink-3:    #2C2D40;     /* hairline foncé */
  --muted:    #6E707B;     /* gris-neutre */
  --muted-2:  #8C8E97;
  --hair:     #D5D5D0;     /* hairline clair */
  --hair-2:   #BFBFBA;
  --vermilion:#4F46E5;     /* indigo électrique (accent primaire) */
  --vermilion-d:#4338CA;
  --gold:     #10B981;     /* teal vif (accent secondaire) */
  --gold-d:   #059669;
  --green:    #10B981;
  --danger:   #E04A6B;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--vermilion); color: #fff; }

/* ============== Typography ============== */
.h-display {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.h-hero    { font-size: clamp(46px, 7.6vw, 108px); }
.h-section { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.h-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.lede      { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; letter-spacing: -0.005em; color: #3A2D20; }
.em-italic { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.wordmark  { font-weight: 700; letter-spacing: -0.025em; }
.mono      { font-family: "Geist Mono", ui-monospace, Menlo, monospace; }

/* ============== Layout ============== */
.wrap        { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 880px;  margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) {
  .wrap, .wrap-narrow { padding-left: 40px; padding-right: 40px; }
}

/* ============== Color helpers ============== */
.bg-paper    { background: var(--paper); }
.bg-paper-2  { background: var(--paper-2); }
.bg-paper-3  { background: var(--paper-3); }
.bg-ink      { background: var(--ink); }
.bg-ink-2    { background: var(--ink-2); }
.bg-vermilion{ background: var(--vermilion); }
.bg-gold     { background: var(--gold); }

.text-ink     { color: var(--ink); }
.text-muted   { color: var(--muted); }
.text-paper   { color: var(--paper); }
.text-vermilion { color: var(--vermilion); }
.text-gold    { color: var(--gold); }

.border-hair   { border: 1px solid var(--hair); }
.border-hair-d { border: 1px solid var(--ink-3); }
.divider       { height: 1px; background: var(--hair); width: 100%; }
.divider-d     { height: 1px; background: var(--ink-3); width: 100%; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform .15s cubic-bezier(.2,.7,.2,1), background .2s ease, color .2s ease, opacity .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  transform: translateY(0);
}
.btn:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 1px 0 rgba(11,11,20,0.6),
    0 6px 14px -4px rgba(11,11,20,0.4),
    0 14px 28px -10px rgba(11,11,20,0.3);
}
.btn-primary:hover { background: var(--vermilion); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 0 rgba(181,148,106,0.7), 0 10px 22px -6px rgba(79,70,229,0.5), 0 20px 40px -12px rgba(79,70,229,0.4); }
.btn-primary:active { transform: translateY(1px); }

.btn-vermilion {
  background: linear-gradient(180deg, #A5B4FC 0%, #4F46E5 60%, #4338CA 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(16,185,129,0.4),
    0 2px 0 rgba(16,185,129,0.6),
    0 8px 18px -4px rgba(79,70,229,0.5),
    0 18px 36px -10px rgba(79,70,229,0.4);
}
.btn-vermilion:hover {
  background: linear-gradient(180deg, #818CF8 0%, #818CF8 60%, #4338CA 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 4px 0 rgba(16,185,129,0.7),
    0 14px 28px -6px rgba(79,70,229,0.6),
    0 28px 50px -12px rgba(79,70,229,0.5);
}
.btn-vermilion:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 1px 0 rgba(16,185,129,0.6); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(11,11,20,0.1),
    0 1px 0 rgba(11,11,20,0.15),
    0 6px 14px -4px rgba(11,11,20,0.2);
}
.btn-paper:hover { background: #fff; transform: translateY(-2px); }
.btn-paper:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.08); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.btn-outline-d { background: transparent; border-color: rgba(241,241,237,0.3); color: var(--paper); }
.btn-outline-d:hover { border-color: var(--paper); background: rgba(241,241,237,0.05); }

.btn-ghost {
  display:inline-flex; align-items:center; gap: 6px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }
.btn-ghost svg { transition: transform .25s ease; }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ============== Logo ============== */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.03em; font-size: 17px; color: var(--ink);
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--vermilion);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.logo-mark svg { width: 16px; height: 16px; }
.logo--light { color: var(--paper); }
.logo--lg .logo-mark { width: 36px; height: 36px; border-radius: 8px; }
.logo--lg .logo-mark svg { width: 22px; height: 22px; }
.logo--lg { font-size: 22px; }

/* ===== New designed Helix mark — replaces the cube ===== */
.logo-mark-helix {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(79,70,229,0.35));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.logo:hover .logo-mark-helix { transform: translateY(-2px) rotate(-4deg); }
.logo--lg .logo-mark-helix {
  width: 44px; height: 44px;
  filter: drop-shadow(0 6px 16px rgba(79,70,229,0.4));
}
.logo--xl .logo-mark-helix { width: 64px; height: 64px; }

/* ===== 3D Cube logo ===== */
.logo-cube-wrap {
  width: 30px; height: 30px;
  perspective: 240px;
  flex: 0 0 auto;
  display: inline-block;
}
.logo-cube {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: cube-spin 14s linear infinite;
}
.logo-cube .face {
  position: absolute; inset: 0;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  letter-spacing: -0.06em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  backface-visibility: hidden;
}
.logo-cube .f-front  { background: linear-gradient(135deg, #818CF8 0%, #4F46E5 50%, #4338CA 100%); transform: translateZ(15px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); }
.logo-cube .f-back   { background: linear-gradient(135deg, #4338CA, #10B981); transform: translateZ(-15px) rotateY(180deg); }
.logo-cube .f-right  { background: linear-gradient(135deg, #6366F1, #059669); transform: rotateY(90deg) translateZ(15px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.logo-cube .f-left   { background: linear-gradient(135deg, #4338CA, #4F46E5); transform: rotateY(-90deg) translateZ(15px); }
.logo-cube .f-top    { background: linear-gradient(135deg, #E0E7FF, #A5B4FC); transform: rotateX(90deg) translateZ(15px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.logo-cube .f-bottom { background: linear-gradient(135deg, #10B981, #059669); transform: rotateX(-90deg) translateZ(15px); }
@keyframes cube-spin {
  0%   { transform: rotateY(-20deg) rotateX(-18deg); }
  50%  { transform: rotateY(160deg) rotateX(-18deg); }
  100% { transform: rotateY(340deg) rotateX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-cube { animation: none; transform: rotateY(-22deg) rotateX(-15deg); }
}

.logo--lg .logo-cube-wrap { width: 44px; height: 44px; perspective: 320px; }
.logo--lg .logo-cube .face { font-size: 24px; border-radius: 10px; }
.logo--lg .logo-cube .f-front  { transform: translateZ(22px); }
.logo--lg .logo-cube .f-back   { transform: translateZ(-22px) rotateY(180deg); }
.logo--lg .logo-cube .f-right  { transform: rotateY(90deg) translateZ(22px); }
.logo--lg .logo-cube .f-left   { transform: rotateY(-90deg) translateZ(22px); }
.logo--lg .logo-cube .f-top    { transform: rotateX(90deg) translateZ(22px); }
.logo--lg .logo-cube .f-bottom { transform: rotateX(-90deg) translateZ(22px); }

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(241,241,237, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-links { display: none; align-items: center; gap: 36px; font-size: 14px; color: var(--ink); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a { opacity: 0.78; transition: opacity .15s ease, color .15s ease; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--vermilion); }

/* ============== Tags & badges ============== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--hair);
  border-radius: 999px; font-size: 12px; color: var(--muted);
  background: var(--paper-3);
  letter-spacing: 0.01em;
}
.tag-dark { border-color: var(--ink-3); color: rgba(241,241,237,0.7); background: transparent; }
.tag-vermilion { border-color: transparent; background: var(--vermilion); color: #fff; }
.tag-gold { border-color: transparent; background: var(--gold); color: var(--ink); }

/* ============== Cards ============== */
.card {
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--paper-3);
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(11,11,20,0.05),
    0 1px 2px rgba(11,11,20,0.04),
    0 8px 24px -10px rgba(11,11,20,0.12),
    0 30px 60px -28px rgba(11,11,20,0.2);
  transform-style: preserve-3d;
}
.card-dark {
  border: 1px solid var(--ink-3);
  border-radius: 22px;
  background: linear-gradient(180deg, #1F2031 0%, #14152A 100%);
  color: var(--paper);
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.2),
    0 24px 60px -20px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
}
.card-vermilion {
  border-radius: 22px;
  background: linear-gradient(135deg, #A5B4FC 0%, #4F46E5 50%, #4338CA 100%);
  color: #fff;
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(16,185,129,0.5),
    0 4px 0 rgba(16,185,129,0.5),
    0 20px 40px -10px rgba(79,70,229,0.5),
    0 40px 80px -20px rgba(79,70,229,0.4);
  transform-style: preserve-3d;
}

/* ============== Mock browser / file chrome ============== */
.mock {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--paper-3);
  overflow: hidden;
}
.mock-bar {
  height: 36px; padding: 0 14px;
  display: flex; align-items: center; gap: 7px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.mock-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--hair); }

/* ============== Prompt block ============== */
pre.prompt {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap; margin: 0;
}
pre.prompt .br { color: var(--vermilion); font-weight: 600; }

/* ============== FAQ accordion ============== */
details.faq { border-top: 1px solid var(--hair); }
details.faq:last-of-type { border-bottom: 1px solid var(--hair); }
details.faq > summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; font-weight: 500; font-size: 19px; letter-spacing: -0.015em;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq .plus { width: 18px; height: 18px; position: relative; flex: 0 0 auto; }
details.faq .plus::before, details.faq .plus::after { content: ''; position: absolute; background: var(--ink); }
details.faq .plus::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
details.faq .plus::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); transition: transform .25s ease, opacity .25s ease; }
details.faq[open] .plus::after { opacity: 0; }
details.faq .answer { padding: 0 0 26px 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ============== Reveal animation ============== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============== Forms ============== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.field-hint  { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  background: var(--paper-3);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
  background: #fff;
}
.input--dark, .input.dark {
  background: transparent; border-color: var(--ink-3); color: var(--paper);
}
.input--dark::placeholder { color: rgba(241,241,237,0.4); }
.input--dark:focus { border-color: var(--paper); background: rgba(255,255,255,0.04); box-shadow: 0 0 0 3px rgba(241,241,237,0.06); }

.checkbox {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.checkbox input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border: 1.5px solid var(--hair-2);
  border-radius: 4px; background: var(--paper-3); display: inline-block;
  position: relative; cursor: pointer; flex: 0 0 auto;
}
.checkbox input:checked { background: var(--vermilion); border-color: var(--vermilion); }
.checkbox input:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ============== Auth shell (login/signup) ============== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-pane {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 24px;
}
@media (min-width: 768px) { .auth-pane { padding: 64px 56px; } }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-aside {
  background: var(--ink); color: var(--paper);
  display: none; padding: 64px 56px;
  position: relative; overflow: hidden;
}
@media (min-width: 980px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }

/* ============== Account/dashboard layout ============== */
.app-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--paper); }
@media (min-width: 900px) { .app-shell { grid-template-columns: 260px 1fr; } }
.app-side {
  background: var(--ink); color: var(--paper);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
}
.app-side .logo { color: var(--paper); }
.app-side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.app-side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: rgba(241,241,237,0.7);
  transition: background .15s ease, color .15s ease;
}
.app-side-nav a:hover { color: var(--paper); background: rgba(241,241,237,0.05); }
.app-side-nav a.active { color: var(--paper); background: rgba(79,70,229,0.18); }
.app-side-nav a.active::before {
  content: ''; width: 3px; height: 16px; background: var(--vermilion); border-radius: 2px; margin-left: -15px; margin-right: 4px;
}
.app-side-group { margin-top: 18px; }
.app-side-group-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(241,241,237,0.4); padding: 0 12px 8px; }

.app-main { padding: 32px 24px 60px; }
@media (min-width: 768px) { .app-main { padding: 40px 48px 80px; } }
.app-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ============== Utility ============== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hairline { border-top: 1px solid var(--hair); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--vermilion); outline-offset: 3px; border-radius: 6px;
}

/* ============== Section padding helpers ============== */
.section   { padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 768px) { .section { padding-top: 130px; padding-bottom: 130px; } }
.section-sm{ padding-top: 64px; padding-bottom: 64px; }

/* Underline link */
.ulink { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .15s ease, border-color .15s ease; }
.ulink:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }

/* ============================================================
   LIQUID GLASS — translucent panels with backdrop blur
   ============================================================ */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -2px 0 rgba(11,11,20,0.08),
    inset 2px 0 0 rgba(255,255,255,0.4),
    inset -2px 0 0 rgba(11,11,20,0.04),
    0 1px 0 rgba(255,255,255,0.6),
    0 14px 28px -8px rgba(11,11,20,0.18),
    0 36px 80px -30px rgba(11,11,20,0.42),
    0 4px 8px -2px rgba(11,11,20,0.1);
  position: relative;
  transform-style: preserve-3d;
}
.glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.55) 0%, transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.glass-dark {
  background: linear-gradient(135deg, rgba(241,241,237,0.10), rgba(241,241,237,0.03));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(241,241,237,0.16);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(241,241,237,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 30px 80px -30px rgba(0,0,0,0.6);
  color: var(--paper);
  position: relative;
}
.glass-dark::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 50% at 50% -10%, rgba(241,241,237,0.14) 0%, transparent 60%);
  opacity: 0.7;
}
.glass-vermilion {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 30px 80px -30px rgba(166,55,29,0.7);
  color: #fff;
  position: relative;
}

/* Glass nav variant — overrides .nav background */
.nav.nav-glass {
  background: linear-gradient(180deg, rgba(241,241,237,0.78), rgba(241,241,237,0.55));
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 24px -16px rgba(40,29,20,0.2);
}

/* ============================================================
   AURORA — animated colored blobs background
   ============================================================ */
.aurora {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  background: var(--paper);
}
.aurora .blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora .b1 { background: var(--vermilion); width: 520px; height: 520px; top: -140px; left: -160px; animation: float-1 22s ease-in-out infinite; }
.aurora .b2 { background: var(--gold);      width: 460px; height: 460px; top: 30%;     right: -180px; opacity: 0.42; animation: float-2 26s ease-in-out infinite; }
.aurora .b3 { background: #E0824A;          width: 420px; height: 420px; bottom: -120px; left: 20%; opacity: 0.4; animation: float-3 24s ease-in-out infinite; }
.aurora .b4 { background: var(--vermilion); width: 320px; height: 320px; top: 55%; left: -80px; opacity: 0.32; animation: float-1 30s ease-in-out infinite reverse; }
.aurora .grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.4 0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.35; mix-blend-mode: multiply; pointer-events: none;
}
.aurora-dark { background: var(--ink); }
.aurora-dark .grain { opacity: 0.25; mix-blend-mode: overlay; }

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, 60px) scale(1.12); }
  66%      { transform: translate(-40px, 120px) scale(0.95); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, 80px) scale(1.15); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(60px, -80px) scale(1.1); }
  75%      { transform: translate(-50px, 30px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora .blob { animation: none; }
}

/* ============================================================
   3D tilt cards
   ============================================================ */
.tilt-stage { perspective: 1400px; transform-style: preserve-3d; }
.tilt {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover { transform: rotateY(var(--ry,-3deg)) rotateX(var(--rx,2deg)) translateY(-4px); }

/* ============================================================
   Floating 3D stack — hero visual
   ============================================================ */
.stack-3d {
  position: relative;
  perspective: 2000px;
  transform-style: preserve-3d;
  height: 620px;
}
.stack-3d .layer {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Front (main) card — centered-left */
.stack-3d .layer.l1 {
  top: 90px; left: 2%; width: 58%; z-index: 3;
  animation: float-a 8s ease-in-out infinite;
}
/* Top-right back card */
.stack-3d .layer.l2 {
  top: 0; right: 2%; width: 44%; z-index: 2;
  animation: float-b 10s ease-in-out infinite;
}
/* Bottom-right peek card */
.stack-3d .layer.l3 {
  bottom: 0; right: 14%; width: 50%; z-index: 1;
  animation: float-c 12s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: rotateX(3deg) rotateY(-9deg) translate3d(0, 0, 0); }
  50%      { transform: rotateX(3deg) rotateY(-9deg) translate3d(0, -10px, 0); }
}
@keyframes float-b {
  0%, 100% { transform: rotateX(-3deg) rotateY(12deg) translate3d(0, 0, -40px); }
  50%      { transform: rotateX(-3deg) rotateY(12deg) translate3d(0, 10px, -40px); }
}
@keyframes float-c {
  0%, 100% { transform: rotateX(5deg) rotateY(-4deg) translate3d(0, 0, -20px); }
  50%      { transform: rotateX(5deg) rotateY(-4deg) translate3d(0, -8px, -20px); }
}

@media (max-width: 720px) {
  .stack-3d {
    height: auto; perspective: none;
  }
  .stack-3d .layer {
    position: relative !important;
    width: 100% !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    animation: none !important;
    transform: none !important;
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-3d .layer { animation: none; }
}

/* ============================================================
   Shine animation — for buttons or accents
   ============================================================ */
.shine {
  position: relative; overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute; top: 0; left: -120%; height: 100%; width: 50%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine {
  0%, 70%, 100% { left: -120%; }
  85% { left: 130%; }
}

/* ============================================================
   Marquee — endless scroll
   ============================================================ */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 48px; animation: marquee 40s linear infinite; width: max-content; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   3D Bar Chart (CSS-only, isometric)
   ============================================================ */
.chart-3d-wrap {
  position: relative;
  padding: 32px 24px 24px;
}
.chart-3d {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 220px; gap: 14px;
  position: relative;
  padding-bottom: 24px;
}
.chart-3d::before, .chart-3d::after {
  content: '';
  position: absolute;
  left: -6px; right: -6px;
  height: 1px; background: rgba(11,11,20,0.08);
}
.chart-3d::before { bottom: 24px; }
.chart-3d::after  { top: 50%; }

.bar-3d {
  position: relative; flex: 1;
  height: var(--h, 60%);
  transform-style: preserve-3d;
  transition: transform .25s ease;
}
.bar-3d:hover { transform: translateY(-6px); }
.bar-3d:hover .bar-front { box-shadow: 0 12px 28px -10px rgba(79,70,229,0.55); }

.bar-3d .bar-front {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #A5B4FC 0%, #4F46E5 60%, #4338CA 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 1px 0 0 rgba(255,255,255,0.2),
    0 4px 14px -6px rgba(79,70,229,0.4);
}
.bar-3d .bar-top {
  position: absolute; top: -8px; left: 0; right: 0;
  height: 14px;
  background: linear-gradient(135deg, #E0E7FF 0%, #818CF8 100%);
  border-radius: 50%;
  transform: scaleY(0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.bar-3d .bar-side {
  position: absolute; top: -3px; right: -7px; bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #4338CA, #10B981);
  transform: skewY(-30deg);
  transform-origin: top left;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 6px -2px rgba(11,11,20,0.2);
}
.bar-3d .bar-label {
  position: absolute; bottom: -22px; left: 0; right: 0;
  text-align: center; font-size: 10.5px; color: var(--muted);
  font-family: "Geist Mono", monospace; letter-spacing: 0.04em;
}

/* Highlighted bar */
.bar-3d.peak .bar-front {
  background: linear-gradient(180deg, #6366F1 0%, #10B981 60%, #059669 100%);
}
.bar-3d.peak .bar-top { background: linear-gradient(135deg, #A5B4FC, #6366F1); }
.bar-3d.peak .bar-side { background: linear-gradient(180deg, #059669, #4A3418); }

.chart-3d-axis {
  position: absolute; left: 0; top: 8px; bottom: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--muted);
  padding-right: 8px;
}

/* ============================================================
   3D Funnel — recruitment pipeline visualization
   ============================================================ */
.funnel-3d {
  perspective: 1200px;
  padding: 8px 0;
}
.funnel-stage {
  position: relative;
  height: 50px;
  margin-bottom: 14px;
  transform-style: preserve-3d;
  transition: transform .25s ease;
}
.funnel-stage:hover { transform: translateZ(10px); }
.funnel-stage .f-bar {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 24px -10px rgba(79,70,229,0.45);
  transform: rotateX(8deg);
  transform-origin: bottom;
}
.funnel-stage .f-shadow {
  position: absolute; left: 4%; right: 4%; bottom: -8px;
  height: 12px; border-radius: 50%;
  background: rgba(11,11,20,0.15);
  filter: blur(6px);
  z-index: -1;
}
.funnel-stage:nth-child(1) { width: 100%; }
.funnel-stage:nth-child(2) { width: 86%; }
.funnel-stage:nth-child(3) { width: 70%; }
.funnel-stage:nth-child(4) { width: 52%; }
.funnel-stage:nth-child(5) { width: 32%; }

.funnel-stage:nth-child(2) .f-bar { background: linear-gradient(135deg, #6E7BFF, #4F60F0); }
.funnel-stage:nth-child(3) .f-bar { background: linear-gradient(135deg, #6366F1, #00B89E); }
.funnel-stage:nth-child(4) .f-bar { background: linear-gradient(135deg, #10B981, #009688); }
.funnel-stage:nth-child(5) .f-bar { background: linear-gradient(135deg, #10B981, #007D6B); }

.funnel-stage .f-label { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.funnel-stage .f-count { font-family: "Geist Mono", monospace; font-size: 13px; opacity: 0.85; }

/* ============================================================
   3D Visuals — orbs, sphere, donut, rings, laptop, isometric grid
   ============================================================ */

/* ---- 1. Floating 3D orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  isolation: isolate;
}
.orb-indigo {
  background:
    radial-gradient(circle at 30% 25%, #E0E7FF 0%, #A5B4FC 22%, #4F46E5 50%, #4338CA 75%, #10B981 100%);
  box-shadow:
    inset -8px -16px 28px rgba(11,11,20,0.45),
    inset 8px 12px 22px rgba(255,255,255,0.22),
    0 40px 80px -16px rgba(79,70,229,0.55);
}
.orb-teal {
  background:
    radial-gradient(circle at 30% 25%, #E0E7FF 0%, #A5B4FC 22%, #10B981 50%, #10B981 75%, #4A3418 100%);
  box-shadow:
    inset -8px -16px 28px rgba(11,11,20,0.45),
    inset 8px 12px 22px rgba(255,255,255,0.22),
    0 40px 80px -16px rgba(16,185,129,0.55);
}
.orb-mix {
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, #E0E7FF 18%, #4F46E5 50%, #10B981 100%);
  box-shadow:
    inset -8px -16px 28px rgba(11,11,20,0.4),
    inset 8px 12px 22px rgba(255,255,255,0.3),
    0 40px 80px -16px rgba(79,70,229,0.5);
}
@keyframes orb-float-a {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  50%     { transform: translate3d(10px, -22px, 0) scale(1.04); }
}
@keyframes orb-float-b {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  50%     { transform: translate3d(-12px, 18px, 0) scale(0.97); }
}

/* ---- 2. 3D wireframe sphere ---- */
.sphere-wire {
  width: var(--sw, 180px); height: var(--sw, 180px);
  position: relative;
  transform-style: preserve-3d;
  animation: sphere-spin 22s linear infinite;
}
.sphere-wire .sr {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(129,140,248,0.35);
  border-top-color: rgba(16,185,129,0.85);
  border-bottom-color: rgba(79,70,229,0.85);
}
.sphere-wire .sr1 { transform: rotateY(0deg);   }
.sphere-wire .sr2 { transform: rotateY(36deg);  }
.sphere-wire .sr3 { transform: rotateY(72deg);  }
.sphere-wire .sr4 { transform: rotateY(108deg); }
.sphere-wire .sr5 { transform: rotateY(144deg); }
.sphere-wire .sr-eq { transform: rotateX(90deg); border-color: rgba(79,70,229,0.25); border-right-color: rgba(16,185,129,0.85); border-left-color: rgba(79,70,229,0.7); }
.sphere-wire .sr-nodes::before, .sphere-wire .sr-nodes::after {
  content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 12px var(--vermilion);
}
.sphere-wire .sr-nodes::before { top: -4px; left: 50%; transform: translateX(-50%); }
.sphere-wire .sr-nodes::after  { bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes sphere-spin {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to   { transform: rotateX(-12deg) rotateY(360deg); }
}

/* ---- 3. 3D Donut chart ---- */
.donut-3d-wrap {
  width: 200px; height: 200px;
  perspective: 1000px;
  position: relative;
}
.donut-3d {
  width: 100%; height: 100%;
  position: relative;
  transform: rotateX(50deg);
  transform-style: preserve-3d;
}
.donut-3d .layer {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--vermilion) 0% 38%,
    var(--gold)      38% 62%,
    #4338CA          62% 84%,
    var(--hair)      84% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 52%, black 53%);
          mask: radial-gradient(circle, transparent 52%, black 53%);
}
.donut-3d .layer.l-shadow {
  transform: translateZ(-22px);
  filter: brightness(0.35) blur(2px);
}
.donut-3d .layer.l-mid {
  transform: translateZ(-11px);
  filter: brightness(0.6);
}
.donut-3d .center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(-50deg);
  text-align: center;
  z-index: 2;
}
.donut-3d-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.donut-3d-legend .swatch { display:inline-block; width:10px; height:10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3); }

/* ---- 4. 3D Progress ring ---- */
.ring-3d {
  width: var(--rs, 80px); height: var(--rs, 80px);
  position: relative;
  transform: rotateX(15deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 8px 16px rgba(79,70,229,0.35));
}
.ring-3d svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-3d .track { stroke: rgba(11,11,20,0.08); }
.ring-3d .fill  { stroke: url(#ring-grad); transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.ring-3d .label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  transform: rotateX(-15deg);
}

/* ---- 5. 3D Tilted laptop mockup ---- */
.laptop-3d-stage { perspective: 1400px; perspective-origin: 50% 50%; }
.laptop-3d {
  width: 100%;
  transform: rotateX(14deg) rotateY(-14deg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.laptop-3d:hover { transform: rotateX(8deg) rotateY(-6deg); }
.laptop-3d .screen {
  background: linear-gradient(180deg, #14152A 0%, #0B0B14 100%);
  border-radius: 14px 14px 4px 4px;
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 30px 60px -16px rgba(11,11,20,0.5),
    0 60px 100px -30px rgba(11,11,20,0.4);
  position: relative;
}
.laptop-3d .screen::before {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.1);
}
.laptop-3d .screen-inner {
  background: var(--paper-3);
  border-radius: 6px;
  padding: 14px;
  margin-top: 8px;
  min-height: 240px;
}
.laptop-3d .base {
  height: 14px;
  margin: 0 -28px;
  background: linear-gradient(180deg, #2C2D40 0%, #1A1B26 100%);
  border-radius: 0 0 22px 22px;
  position: relative;
  box-shadow: 0 6px 14px rgba(11,11,20,0.3);
}
.laptop-3d .base::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 6px; background: #0B0B14; border-radius: 0 0 10px 10px;
}
.laptop-3d .reflection {
  height: 60px;
  margin: -2px -10px 0;
  background: linear-gradient(180deg, rgba(79,70,229,0.15), transparent);
  filter: blur(8px);
  border-radius: 0 0 50% 50%;
  transform: scaleY(0.6);
  opacity: 0.6;
}

/* ---- 6. Isometric grid backdrop ---- */
.iso-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(60deg, rgba(79,70,229,0.06) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(79,70,229,0.06) 1px, transparent 1px);
  background-size: 60px 104px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

/* ---- 7. 3D extruded badge / chip ---- */
.chip-3d {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(11,11,20,0.06),
    0 2px 0 rgba(11,11,20,0.08),
    0 6px 14px -4px rgba(11,11,20,0.15);
}
.chip-3d .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E0E7FF 0%, #4F46E5 70%);
  box-shadow: 0 0 8px rgba(79,70,229,0.5);
}

/* ---- 8. Extruded number ---- */
.num-3d {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, #E0E7FF 35%, #4F46E5 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.4),
    0 2px 0 rgba(129,140,248,0.5),
    0 4px 0 rgba(79,70,229,0.4),
    0 6px 12px rgba(79,70,229,0.3);
  filter: drop-shadow(0 14px 24px rgba(79,70,229,0.3));
}

@media (prefers-reduced-motion: reduce) {
  .orb, .sphere-wire, .donut-3d { animation: none !important; }
}

/* ---- 9. Huge floating 3D section number ---- */
.section-num {
  position: absolute;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(180px, 22vw, 380px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  background: linear-gradient(180deg, rgba(79,70,229,0.18) 0%, rgba(16,185,129,0.06) 60%, transparent 100%);
  -webkit-background-clip: text;
          background-clip: text;
  text-shadow:
    0 2px 0 rgba(79,70,229,0.15),
    0 4px 0 rgba(79,70,229,0.10),
    0 8px 0 rgba(79,70,229,0.06),
    0 12px 24px rgba(11,11,20,0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
}
.section-num-dark {
  background: linear-gradient(180deg, rgba(129,140,248,0.16) 0%, rgba(16,185,129,0.04) 60%, transparent 100%);
  -webkit-background-clip: text;
          background-clip: text;
  text-shadow:
    0 2px 0 rgba(129,140,248,0.18),
    0 4px 0 rgba(129,140,248,0.12),
    0 8px 0 rgba(129,140,248,0.08);
}

/* ---- 10. Laptop wrapper tilt ---- */
.laptop-tilt-stage {
  perspective: 1600px;
  perspective-origin: 50% 30%;
  position: relative;
}
.laptop-tilt-stage::before {
  content: ''; position: absolute; bottom: -40px; left: 8%; right: 8%; height: 30px;
  background: radial-gradient(ellipse, rgba(11,11,20,0.35) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}
.laptop-tilt {
  transform: rotateX(12deg) rotateY(-10deg);
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  box-shadow:
    0 30px 60px -16px rgba(11,11,20,0.35),
    0 60px 100px -30px rgba(79,70,229,0.25);
  border-radius: 22px;
}
.laptop-tilt-stage:hover .laptop-tilt {
  transform: rotateX(6deg) rotateY(-4deg);
}

/* ---- 11. 3D Phone mockup ---- */
.phone-3d-stage { perspective: 1200px; perspective-origin: 50% 50%; }
.phone-3d {
  width: 220px;
  border-radius: 32px;
  background: linear-gradient(180deg, #2C2D40 0%, #181927 100%);
  padding: 8px;
  transform: rotateY(-22deg) rotateX(8deg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    0 30px 60px -16px rgba(11,11,20,0.45),
    -10px 40px 80px -20px rgba(79,70,229,0.4);
}
.phone-3d:hover { transform: rotateY(-12deg) rotateX(4deg); }
.phone-3d .screen {
  background: var(--paper-3);
  border-radius: 26px;
  overflow: hidden;
  padding: 18px 14px;
  position: relative;
  min-height: 380px;
}
.phone-3d .notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 18px; border-radius: 999px; background: var(--ink);
}

/* ---- 12. Floating 3D shapes (cube, torus) decorative ---- */
.shape-3d-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape-cube {
  position: absolute;
  width: 40px; height: 40px;
  transform-style: preserve-3d;
  animation: shape-spin 14s linear infinite;
}
.shape-cube .sc-face {
  position: absolute; inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(79,70,229,0.85), rgba(181,148,106,0.85));
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  backface-visibility: hidden;
}
.shape-cube .sc-f1 { transform: translateZ(20px); }
.shape-cube .sc-f2 { transform: rotateY(90deg) translateZ(20px); background: linear-gradient(135deg, rgba(16,185,129,0.85), rgba(5,150,105,0.85)); }
.shape-cube .sc-f3 { transform: rotateY(180deg) translateZ(20px); }
.shape-cube .sc-f4 { transform: rotateY(-90deg) translateZ(20px); background: linear-gradient(135deg, rgba(129,140,248,0.85), rgba(79,70,229,0.85)); }
.shape-cube .sc-f5 { transform: rotateX(90deg) translateZ(20px); background: linear-gradient(135deg, rgba(241,231,212,0.85), rgba(129,140,248,0.85)); }
.shape-cube .sc-f6 { transform: rotateX(-90deg) translateZ(20px); background: linear-gradient(135deg, rgba(42,55,166,0.9), rgba(30,39,130,0.9)); }
@keyframes shape-spin {
  0%   { transform: rotateY(-20deg) rotateX(-15deg); }
  100% { transform: rotateY(340deg) rotateX(-15deg); }
}

.shape-torus {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 6px solid;
  border-color: var(--vermilion) transparent var(--gold) transparent;
  transform-style: preserve-3d;
  animation: shape-torus 12s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(79,70,229,0.4));
}
@keyframes shape-torus {
  0%   { transform: rotateX(60deg) rotateZ(0); }
  100% { transform: rotateX(60deg) rotateZ(360deg); }
}

/* ---- 13. Scroll progress ring (fixed) ---- */
.scroll-ring {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--paper-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(11,11,20,0.1),
    0 2px 0 rgba(11,11,20,0.1),
    0 14px 28px -8px rgba(79,70,229,0.4),
    0 8px 16px -4px rgba(11,11,20,0.18);
  transform: rotateX(15deg);
  cursor: pointer;
  transition: transform .2s ease;
}
.scroll-ring:hover { transform: rotateX(8deg) translateY(-2px); }
.scroll-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); position: absolute; inset: 0; }
.scroll-ring .scroll-track { stroke: rgba(11,11,20,0.08); }
.scroll-ring .scroll-fill { stroke: url(#ring-grad); transition: stroke-dashoffset .15s linear; }
.scroll-ring .scroll-arrow {
  position: relative; z-index: 1; color: var(--vermilion);
  filter: drop-shadow(0 2px 4px rgba(79,70,229,0.4));
}

/* ============================================================
   3D Batch 3 — 10 more components
   ============================================================ */

/* ---- 14. 3D Pulse rings around CTA ---- */
.pulse-3d {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}
.pulse-3d::before, .pulse-3d::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(79,70,229,0.45);
  animation: pulse-ring 2.4s cubic-bezier(.2,.7,.2,1) infinite;
  pointer-events: none;
  z-index: -1;
}
.pulse-3d::after { animation-delay: 1.2s; border-color: rgba(16,185,129,0.4); }
@keyframes pulse-ring {
  0%   { transform: scale(1)   rotateX(20deg); opacity: 1; }
  100% { transform: scale(1.7) rotateX(20deg); opacity: 0; }
}

/* ---- 15. 3D Price ribbon (rotated, extruded) ---- */
.ribbon-3d {
  position: absolute;
  top: 14px; right: -10px;
  background: linear-gradient(135deg, #FF6B9D 0%, #E04A6B 100%);
  color: #fff;
  font-weight: 700; font-size: 12px;
  padding: 8px 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  transform: rotate(8deg) translateZ(20px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 4px 0 rgba(180,40,80,0.55),
    0 10px 22px -6px rgba(224,74,107,0.5);
  border-radius: 6px;
  z-index: 4;
}
.ribbon-3d::after {
  content: '';
  position: absolute; bottom: -8px; right: 6px;
  border: 4px solid transparent;
  border-top-color: rgba(180,40,80,0.7);
  border-right-color: rgba(180,40,80,0.7);
  transform: rotate(45deg);
}

/* ---- 16. SVG Wave divider (3D feel via gradient + shadow) ---- */
.wave-divider {
  position: relative;
  width: 100%; height: 80px;
  margin-top: -1px; margin-bottom: -1px;
  filter: drop-shadow(0 -4px 12px rgba(79,70,229,0.15));
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ---- 17. 3D Extruded step number block ---- */
.step-num-3d {
  position: relative;
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #818CF8 0%, #4F46E5 60%, #4338CA 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(16,185,129,0.5),
    0 4px 0 rgba(16,185,129,0.6),
    0 14px 28px -8px rgba(79,70,229,0.5);
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}
.step-num-3d.teal {
  background: linear-gradient(180deg, #A5B4FC 0%, #10B981 60%, #059669 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(5,150,105,0.5),
    0 4px 0 rgba(5,150,105,0.6),
    0 14px 28px -8px rgba(16,185,129,0.5);
}

/* ---- 18. 3D spinning coin (refund badge) ---- */
.coin-3d {
  width: 56px; height: 56px;
  position: relative;
  transform-style: preserve-3d;
  animation: coin-flip 6s ease-in-out infinite;
  display: inline-block;
}
.coin-3d .coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E0E7FF 0%, #4F46E5 60%, #4338CA 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(16,185,129,0.5),
    0 8px 18px -4px rgba(79,70,229,0.55);
  backface-visibility: hidden;
}
.coin-3d .coin-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 30% 25%, #E0E7FF 0%, #10B981 60%, #059669 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(5,150,105,0.5),
    0 8px 18px -4px rgba(16,185,129,0.55);
}
.coin-3d .coin-edge {
  position: absolute; left: 50%; top: 0; height: 100%; width: 4px;
  background: linear-gradient(90deg, #10B981, #4338CA 50%, #10B981);
  transform: translateX(-50%) rotateY(90deg);
}
@keyframes coin-flip {
  0%, 25%       { transform: rotateY(0); }
  50%, 75%      { transform: rotateY(180deg); }
  100%          { transform: rotateY(360deg); }
}

/* ---- 19. 3D Radar / sonar concentric rings ---- */
.radar-3d {
  position: absolute;
  width: 240px; height: 240px;
  pointer-events: none;
}
.radar-3d span {
  position: absolute; inset: 0;
  border: 1px solid rgba(79,70,229,0.35);
  border-radius: 50%;
  animation: radar-pulse 3s ease-out infinite;
  opacity: 0;
}
.radar-3d span:nth-child(1) { animation-delay: 0s; }
.radar-3d span:nth-child(2) { animation-delay: 1s; border-color: rgba(16,185,129,0.4); }
.radar-3d span:nth-child(3) { animation-delay: 2s; }
@keyframes radar-pulse {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---- 20. 3D Tag with extruded depth ---- */
.tag-3d {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(11,11,20,0.08),
    0 2px 0 rgba(11,11,20,0.1),
    0 6px 14px -4px rgba(11,11,20,0.18);
  transform: rotateX(-2deg);
}
.tag-3d-indigo {
  background: linear-gradient(180deg, #818CF8 0%, #4F46E5 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 2px 0 rgba(16,185,129,0.6),
    0 6px 14px -4px rgba(79,70,229,0.4);
}

/* ---- 21. 3D Live indicator (pulsing dot with rings) ---- */
.live-3d {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
}
.live-3d .live-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FF8FAB 0%, #E04A6B 60%, #B82F4F 100%);
  box-shadow: 0 0 8px rgba(224,74,107,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}
.live-3d .live-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border: 1.5px solid rgba(224,74,107,0.5);
  border-radius: 50%;
  animation: live-pulse 2s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---- 22. 3D Burst / star (decorative) ---- */
.burst-3d {
  position: absolute;
  width: 120px; height: 120px;
  pointer-events: none;
  animation: burst-spin 24s linear infinite;
}
.burst-3d span {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: 60px;
  margin-left: -1px; margin-top: -30px;
  background: linear-gradient(180deg, rgba(79,70,229,0.5), transparent);
  transform-origin: bottom center;
  border-radius: 2px;
}
.burst-3d span:nth-child(1) { transform: rotate(0deg) translateY(-30px); }
.burst-3d span:nth-child(2) { transform: rotate(45deg) translateY(-30px); }
.burst-3d span:nth-child(3) { transform: rotate(90deg) translateY(-30px); background: linear-gradient(180deg, rgba(16,185,129,0.5), transparent); }
.burst-3d span:nth-child(4) { transform: rotate(135deg) translateY(-30px); }
.burst-3d span:nth-child(5) { transform: rotate(180deg) translateY(-30px); background: linear-gradient(180deg, rgba(16,185,129,0.5), transparent); }
.burst-3d span:nth-child(6) { transform: rotate(225deg) translateY(-30px); }
.burst-3d span:nth-child(7) { transform: rotate(270deg) translateY(-30px); background: linear-gradient(180deg, rgba(16,185,129,0.5), transparent); }
.burst-3d span:nth-child(8) { transform: rotate(315deg) translateY(-30px); }
@keyframes burst-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- 23. 3D Magnetic underline (link hover) ---- */
.mag-link {
  position: relative;
  display: inline-block;
}
.mag-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--vermilion), var(--gold));
  border-radius: 1px;
  transform: scaleX(0) rotateX(60deg);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 4px 8px rgba(79,70,229,0.3);
}
.mag-link:hover::after { transform: scaleX(1) rotateX(0deg); }

/* ============================================================
   3D Batch 4 — Profile & Analysis widgets (10 more)
   ============================================================ */

/* ---- 24. Avatar with rotating gradient ring ---- */
.avatar-3d {
  width: 64px; height: 64px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.avatar-3d::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--vermilion), var(--gold), #FF6B9D, var(--vermilion));
  animation: ring-rotate 4s linear infinite;
  z-index: 0;
  filter: blur(2px);
}
.avatar-3d .av-inner {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vermilion), #4338CA);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 22px; letter-spacing: -0.02em;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(16,185,129,0.4),
    0 8px 18px -4px rgba(79,70,229,0.4);
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* ---- 25. 3D Trophy (gold gradient) ---- */
.trophy-3d {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(194,151,70,0.5));
  transform-style: preserve-3d;
  animation: trophy-float 4s ease-in-out infinite;
}
@keyframes trophy-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* ---- 26. 3D Streak flame ---- */
.streak-3d {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFB870 0%, #E04A6B 50%, #4F46E5 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 4px 0 rgba(180,40,80,0.4),
    0 14px 28px -8px rgba(224,74,107,0.4);
}
.streak-3d .flame {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(255,200,100,0.6));
  animation: flame-flicker 1.4s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08) rotate(3deg); }
}

/* ---- 27. 3D Gauge / speedometer ---- */
.gauge-3d {
  width: 180px; height: 110px;
  position: relative;
  transform: rotateX(20deg);
  transform-style: preserve-3d;
}
.gauge-3d svg { width: 100%; height: 100%; display: block; }
.gauge-3d .needle {
  position: absolute; left: 50%; bottom: 14px;
  width: 4px; height: 70px;
  background: linear-gradient(180deg, var(--vermilion) 0%, var(--ink) 100%);
  transform-origin: bottom center;
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%) rotate(var(--angle, 28deg));
  box-shadow: 0 2px 6px rgba(11,11,20,0.4);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.gauge-3d .needle::after {
  content: '';
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4F46E5, #059669);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(11,11,20,0.4);
}

/* ---- 28. 3D Stars ---- */
.star-rating-3d { display: inline-flex; gap: 4px; }
.star-rating-3d svg {
  width: 22px; height: 22px;
  fill: var(--gold);
  filter: drop-shadow(0 1.5px 0 var(--gold-d)) drop-shadow(0 4px 6px rgba(16,185,129,0.4));
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.star-rating-3d svg.empty { fill: rgba(11,11,20,0.12); filter: none; }
.star-rating-3d svg:hover { transform: translateY(-3px) scale(1.15); }

/* ---- 29. 3D Level badge ---- */
.level-3d {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD58F 0%, #C29746 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 3px 0 rgba(156,121,53,0.5),
    0 14px 24px -8px rgba(194,151,70,0.5);
  color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
}
.level-3d .l-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #2C2D40);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(11,11,20,0.2);
}

/* ---- 30. 3D Heatmap ---- */
.heatmap-3d {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  perspective: 600px;
}
.heatmap-3d .cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(79,70,229, var(--int, 0.1)), rgba(181,148,106, var(--int, 0.1)));
  transform: rotateX(18deg);
  box-shadow: 0 1.5px 0 rgba(16,185,129, calc(var(--int, 0.1) + 0.15));
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.heatmap-3d .cell:hover { transform: rotateX(0deg) translateY(-3px) scale(1.4); z-index: 1; }

/* ---- 31. 3D Notification bell ---- */
.bell-3d {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(11,11,20,0.08),
    0 2px 0 rgba(11,11,20,0.1),
    0 8px 16px -4px rgba(11,11,20,0.18);
  cursor: pointer;
}
.bell-3d > svg { color: var(--ink); animation: bell-shake 5s ease-in-out infinite; transform-origin: top center; }
.bell-3d .bell-dot {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FF8FAB, #E04A6B);
  box-shadow: 0 0 8px rgba(224,74,107,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  font-size: 9px; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: "Geist Mono", monospace;
}
@keyframes bell-shake {
  0%, 85%, 100% { transform: rotate(0); }
  87% { transform: rotate(-14deg); }
  89% { transform: rotate(12deg); }
  91% { transform: rotate(-10deg); }
  93% { transform: rotate(7deg); }
  95% { transform: rotate(-3deg); }
}

/* ---- 32. 3D Progress bar (extruded with shimmer) ---- */
.progress-3d {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,11,20,0.1), rgba(11,11,20,0.04));
  box-shadow:
    inset 0 2px 4px rgba(11,11,20,0.15),
    inset 0 -1px 0 rgba(255,255,255,0.7);
  overflow: hidden;
  position: relative;
}
.progress-3d-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #818CF8 0%, #4F46E5 50%, #4338CA 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 12px rgba(79,70,229,0.55);
  position: relative;
  overflow: hidden;
}
.progress-3d-fill::after {
  content: '';
  position: absolute; top: 0; left: -50%; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: progress-shimmer 2.4s linear infinite;
}
@keyframes progress-shimmer {
  from { left: -50%; }
  to   { left: 150%; }
}

/* ---- 33. 3D Compare arrow chip ---- */
.compare-3d {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(16,185,129,0.08));
  color: var(--gold-d);
  font-weight: 600; font-size: 12px;
  font-family: "Geist Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 0 rgba(5,150,105,0.25);
  letter-spacing: 0.01em;
}
.compare-3d.down {
  background: linear-gradient(135deg, rgba(224,74,107,0.22), rgba(224,74,107,0.06));
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 0 rgba(180,40,80,0.25);
}
.compare-3d svg { filter: drop-shadow(0 1px 1px currentColor); }
.stat-3d {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(11,11,20,0.05),
    0 24px 60px -28px rgba(11,11,20,0.35),
    0 2px 6px -2px rgba(11,11,20,0.08);
  transform-style: preserve-3d;
}
.stat-3d .stat-glow {
  position: absolute; top: -40%; right: -20%;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--vermilion) 0%, transparent 70%);
  opacity: 0.18; pointer-events: none;
  filter: blur(20px);
}
.stat-3d .stat-glow.glow-teal {
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.22;
}


/* ════════════════════════════════════════════════════════════════
   KEYNOTR PALETTE OVERRIDE (remappe Helix indigo/teal → navy/or)
   Appliqué en fin de fichier → wins on specificity.
   ════════════════════════════════════════════════════════════════ */
:root {
  --paper:      #F8FAFC;
  --paper-2:    #F1F5F9;
  --paper-3:    #FFFFFF;
  --ink:        #0F172A;
  --ink-2:      #1E293B;
  --ink-3:      #334155;
  --muted:      #64748B;
  --muted-2:    #94A3B8;
  --hair:       rgba(15,23,42,0.10);
  --hair-2:     rgba(15,23,42,0.18);
  --vermilion:  #4F46E5;
  --vermilion-d:#4338CA;
  --gold:       #10B981;
  --gold-d:     #059669;
  --green:      #10B981;
}
/* btn-vermilion : remap dégradé indigo → or */
.btn-vermilion {
  background: linear-gradient(180deg, #A5B4FC 0%, #4F46E5 60%, #4338CA 100%) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(16,185,129,0.35),
    0 2px 0 rgba(5,150,105,0.45),
    0 8px 18px -4px rgba(79,70,229,0.45),
    0 18px 36px -10px rgba(79,70,229,0.35) !important;
}
.btn-vermilion:hover {
  background: linear-gradient(180deg, #818CF8 0%, #A5B4FC 60%, #6366F1 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 4px 0 rgba(5,150,105,0.55),
    0 14px 28px -6px rgba(79,70,229,0.55),
    0 28px 50px -12px rgba(79,70,229,0.45) !important;
}
/* card-vermilion : remap dégradé indigo → or */
.card-vermilion {
  background: linear-gradient(135deg, #818CF8 0%, #4F46E5 50%, #10B981 100%) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(5,150,105,0.5),
    0 4px 0 rgba(5,150,105,0.5),
    0 20px 40px -10px rgba(79,70,229,0.5),
    0 40px 80px -20px rgba(79,70,229,0.4) !important;
}
/* Selection text */
::selection { background: var(--vermilion); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   WORKFLOW DIAGRAM — style n8n/Make, nodes connectés par paths SVG
   ════════════════════════════════════════════════════════════════ */
.wf-diagram {
  position: relative;
  min-height: 480px;
  padding: 30px 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.wf-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 24px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 60%, transparent 100%);
}
.wf-paths {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.wf-paths path {
  fill: none;
  stroke: #4F46E5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  animation: wf-dash 1.6s linear infinite;
  opacity: 0.75;
  filter: drop-shadow(0 2px 6px rgba(79,70,229,0.35));
}
@keyframes wf-dash {
  to { stroke-dashoffset: -26; }
}
.wf-node {
  position: absolute;
  background: rgba(253, 251, 247, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  width: 215px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 6px 14px rgba(15,23,42,0.08),
    0 24px 48px -16px rgba(15,23,42,0.20),
    0 48px 80px -28px rgba(15,23,42,0.22);
  z-index: 3;
  transform-style: preserve-3d;
  transition: transform 450ms cubic-bezier(.16,1,.3,1), box-shadow 450ms;
}
.wf-tilt-a { transform: rotateY(16deg) rotateX(-8deg) translateZ(20px); }
.wf-tilt-b { transform: rotateY(-14deg) rotateX(-5deg) translateZ(30px); }
.wf-tilt-c { transform: rotateY(-11deg) rotateX(9deg) translateZ(10px); }
.wf-tilt-d { transform: rotateY(13deg) rotateX(-10deg) translateZ(25px); }
.wf-node:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-6px) scale(1.04) !important;
  z-index: 10;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 10px 22px rgba(15,23,42,0.12),
    0 36px 64px -20px rgba(15,23,42,0.28),
    0 0 0 1px rgba(79,70,229,0.4);
}
.wf-node-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 6px;
}
.wf-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(79,70,229,0.22), rgba(79,70,229,0.10));
  border: 1px solid rgba(79,70,229,0.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex: 0 0 auto;
  color: #10B981;
}
.wf-titles { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.wf-kicker {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.wf-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.wf-dot {
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2DC97A;
  box-shadow: 0 0 0 3px rgba(45,201,122,0.20), 0 0 10px rgba(45,201,122,0.55);
  animation: wf-pulse 2.2s ease-in-out infinite;
}
@keyframes wf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(45,201,122,0.20), 0 0 10px rgba(45,201,122,0.55); }
  50%      { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(45,201,122,0.10), 0 0 14px rgba(45,201,122,0.7); }
}
.wf-meta {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.wf-dark {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 8px 18px rgba(15,23,42,0.20),
    0 30px 60px -16px rgba(15,23,42,0.35);
}
.wf-dark .wf-kicker { color: rgba(255,255,255,0.55); }
.wf-dark .wf-title  { color: #F8FAFC; }
.wf-dark .wf-meta   { color: rgba(255,255,255,0.65); }
.wf-dark .wf-icon {
  background: linear-gradient(180deg, rgba(79,70,229,0.25), rgba(79,70,229,0.10));
  border-color: rgba(79,70,229,0.40);
  color: #818CF8;
}
.wf-portals {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.80);
}
.wf-portal { display: flex; align-items: center; gap: 9px; }
.wf-pdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2DC97A;
  box-shadow: 0 0 5px rgba(45,201,122,0.7);
  flex: 0 0 auto;
}
@media (max-width: 880px) {
  .wf-diagram { min-height: auto; perspective: none; padding: 0; }
  .wf-paths { display: none; }
  .wf-grid-bg { display: none; }
  .wf-node {
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    max-width: 380px;
    margin: 12px auto !important;
    top: auto !important; left: auto !important;
  }
}


/* ============================================================
   DARK MODE — global theme overrides
   Activated by [data-theme="dark"] on <html> (set via theme.js)
   ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces (flipped) */
  --paper:    #0B0B14;
  --paper-2:  #14152A;
  --paper-3:  #181927;

  /* Ink → light text */
  --ink:      #F1F1ED;
  --ink-2:    #E5E5E0;
  --ink-3:    #BFBFBA;

  /* Muted, hairlines */
  --muted:    #A0A2AE;
  --muted-2:  #767886;
  --hair:     #2A2B3D;
  --hair-2:   #3A3B52;

  /* Accents stay, but lift gold-deep so it stays legible */
  --vermilion:   #6366F1;
  --vermilion-d: #4F46E5;
  --gold:        #10B981;
  --gold-d:      #34D399;
}

:root[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink);
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(60vw 60vw at 8% -10%, rgba(79,70,229,0.22), transparent 60%),
    radial-gradient(50vw 50vw at 110% 20%, rgba(16,185,129,0.08), transparent 60%),
    radial-gradient(40vw 40vw at -10% 90%, rgba(79,70,229,0.15), transparent 60%);
}

/* Aurora blobs — lift opacity slightly so they're visible on dark */
:root[data-theme="dark"] .aurora .blob{ opacity: 0.7; mix-blend-mode: screen; }
:root[data-theme="dark"] .aurora .grain{ opacity: 0.5; }

/* Nav becomes glass-dark */
:root[data-theme="dark"] .nav,
:root[data-theme="dark"] .nav-glass{
  background: rgba(11,11,20,0.65);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
}
:root[data-theme="dark"] .nav.scrolled{ border-bottom-color: var(--hair); }

/* Logo mark — slight rim so it pops on dark */
:root[data-theme="dark"] .logo-mark{ box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }

/* Buttons */
:root[data-theme="dark"] .btn-primary{
  background: var(--vermilion-d);
  color: #F1F1ED;
}
:root[data-theme="dark"] .btn-primary:hover{ background: var(--vermilion); }
:root[data-theme="dark"] .btn-paper{
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid var(--hair);
}
:root[data-theme="dark"] .btn-paper:hover{ background: var(--paper-2); }
:root[data-theme="dark"] .btn-outline{ border-color: var(--ink-3); color: var(--ink); }
:root[data-theme="dark"] .btn-outline:hover{ background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .btn-vermilion{ background: var(--vermilion-d); color: #FFFFFF; }
:root[data-theme="dark"] .btn-vermilion:hover{ background: var(--vermilion); }

/* Cards */
:root[data-theme="dark"] .card{
  background: var(--paper-3);
  border-color: var(--hair);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 0 rgba(255,255,255,0.02),
    0 24px 60px -22px rgba(0,0,0,0.7);
}
:root[data-theme="dark"] .card.glass{
  background: rgba(20,21,42,0.6);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
}

/* Tags */
:root[data-theme="dark"] .tag{
  background: var(--paper-3);
  border-color: var(--hair);
  color: var(--muted);
}
:root[data-theme="dark"] .tag-vermilion{ background: var(--vermilion); }
:root[data-theme="dark"] .tag-gold{ background: var(--gold); color: var(--ink); }

/* Prompt block */
:root[data-theme="dark"] pre.prompt{
  background: var(--paper-2);
  border-color: var(--hair);
  color: var(--ink-2);
}

/* FAQ */
:root[data-theme="dark"] details.faq{ border-top-color: var(--hair); }
:root[data-theme="dark"] details.faq:last-of-type{ border-bottom-color: var(--hair); }
:root[data-theme="dark"] details.faq .plus::before,
:root[data-theme="dark"] details.faq .plus::after{ background: var(--ink); }
:root[data-theme="dark"] details.faq .answer{ color: var(--muted); }

/* Workflow diagram (hero) on dark */
:root[data-theme="dark"] .wf-diagram .wf-grid-bg{ opacity: 0.12; }
:root[data-theme="dark"] .wf-node,
:root[data-theme="dark"] .wf-portal{
  background: rgba(20,21,42,0.72);
  border-color: var(--hair);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
}
:root[data-theme="dark"] .wf-node-head .wf-kicker{ color: var(--muted); }
:root[data-theme="dark"] .wf-node-head .wf-title{ color: var(--ink); }
:root[data-theme="dark"] .wf-meta{ color: var(--muted); }
:root[data-theme="dark"] .wf-node.wf-dark{ background: #050616; color: var(--ink); }
:root[data-theme="dark"] .wf-paths path{ stroke: rgba(199,210,254,0.30); }

/* Wave divider — flip the soft white edge */
:root[data-theme="dark"] .wave-divider svg path:last-of-type{ opacity: 0.25; }

/* Footer + dividers */
:root[data-theme="dark"] footer{ border-top-color: var(--hair); }
:root[data-theme="dark"] .divider{ background: var(--hair); }

/* Section soft backgrounds */
:root[data-theme="dark"] .bg-paper-2,
:root[data-theme="dark"] .bg-paper-3{
  background: var(--paper-2);
}

/* Inputs */
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea{
  background: var(--paper-3);
  border-color: var(--hair);
  color: var(--ink);
}
:root[data-theme="dark"] .input::placeholder{ color: var(--muted-2); }
:root[data-theme="dark"] .input:focus{ background: var(--paper-2); }

/* Chips & 3D bits */
:root[data-theme="dark"] .chip-3d{
  background: var(--paper-3);
  border-color: var(--hair);
  color: var(--ink);
}
:root[data-theme="dark"] .step-num-3d{
  color: var(--ink);
  background: linear-gradient(180deg, #1F2031 0%, #14152A 100%);
}

/* Scroll ring */
:root[data-theme="dark"] .scroll-ring{
  background: rgba(20,21,42,0.7);
  border-color: var(--hair);
  color: var(--ink);
}
:root[data-theme="dark"] .scroll-track{ stroke: var(--hair); }

/* ============================================================
   THEME TOGGLE BUTTON (used in nav of every page)
   ============================================================ */
.theme-toggle{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--paper-3);
  color: var(--ink);
  display: inline-grid; place-items: center;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover{
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(11,11,20,0.4);
}
.theme-toggle svg{ width: 16px; height: 16px; stroke-width: 1.8; transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms; }
.theme-toggle .tt-sun,
.theme-toggle .tt-moon{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.theme-toggle .tt-moon{ opacity: 0; transform: translate(-50%, -50%) rotate(-40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .tt-sun{ opacity: 0; transform: translate(-50%, -50%) rotate(40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .tt-moon{ opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
.theme-toggle .tt-sun{ transform: translate(-50%, -50%) rotate(0) scale(1); }

/* Nav placement helper */
.nav-inner .theme-toggle{ margin-right: 6px; }


/* ============================================================
   WORKFLOW DIAGRAM — Entry animation (video-like launch)
   Activated when the .wf-diagram receives class .wf-active
   (set by IntersectionObserver in site.js when it enters viewport)
   ============================================================ */
.wf-diagram .wf-node{
  opacity: 0;
  transition: transform 700ms cubic-bezier(.16, 1, .3, 1), box-shadow 700ms;
}
.wf-diagram.wf-active .wf-node{
  opacity: 1;
  animation: wfNodeIn 720ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes wfNodeIn {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92) rotateY(28deg) rotateX(-12deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; /* lands at the per-tilt rule below via the var below */ }
}
/* Hold the per-tilt final transform after the entry */
.wf-diagram.wf-active .wf-tilt-a{ animation-name: wfNodeInA; }
.wf-diagram.wf-active .wf-tilt-b{ animation-name: wfNodeInB; }
.wf-diagram.wf-active .wf-tilt-c{ animation-name: wfNodeInC; }
.wf-diagram.wf-active .wf-tilt-d{ animation-name: wfNodeInD; }
@keyframes wfNodeInA {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92) rotateY(0) rotateX(0); }
  100% { opacity: 1; transform: rotateY(16deg) rotateX(-8deg) translateZ(20px); }
}
@keyframes wfNodeInB {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92) rotateY(0) rotateX(0); }
  100% { opacity: 1; transform: rotateY(-14deg) rotateX(-5deg) translateZ(30px); }
}
@keyframes wfNodeInC {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92) rotateY(0) rotateX(0); }
  100% { opacity: 1; transform: rotateY(-11deg) rotateX(9deg) translateZ(10px); }
}
@keyframes wfNodeInD {
  0%   { opacity: 0; transform: translateY(24px) scale(0.92) rotateY(0) rotateX(0); }
  100% { opacity: 1; transform: rotateY(13deg) rotateX(-10deg) translateZ(25px); }
}
/* Stagger node entries — by source order */
.wf-diagram.wf-active .wf-node:nth-of-type(1){  animation-delay: 0.15s; }
.wf-diagram.wf-active .wf-node:nth-of-type(2){  animation-delay: 0.30s; }
.wf-diagram.wf-active .wf-node:nth-of-type(3){  animation-delay: 0.45s; }
.wf-diagram.wf-active .wf-node:nth-of-type(4){  animation-delay: 0.60s; }
.wf-diagram.wf-active .wf-node:nth-of-type(5){  animation-delay: 0.75s; }
.wf-diagram.wf-active .wf-node:nth-of-type(6){  animation-delay: 0.90s; }
.wf-diagram.wf-active .wf-node:nth-of-type(7){  animation-delay: 1.05s; }
.wf-diagram.wf-active .wf-node:nth-of-type(8){  animation-delay: 1.20s; }
.wf-diagram.wf-active .wf-node:nth-of-type(9){  animation-delay: 1.35s; }
.wf-diagram.wf-active .wf-node:nth-of-type(10){ animation-delay: 1.50s; }

/* Connection paths — draw-in then keep dashFlow */
.wf-diagram .wf-paths path{
  stroke-dasharray: 6 8;
  stroke-dashoffset: 800;
  opacity: 0;
  transition: opacity 600ms ease;
}
.wf-diagram.wf-active .wf-paths path{
  opacity: 1;
  animation: wfPathDraw 1300ms cubic-bezier(.16, 1, .3, 1) both, dashFlow 1.6s linear infinite 1500ms;
}
@keyframes wfPathDraw{
  0%   { stroke-dasharray: 800 0;  stroke-dashoffset: 800; }
  99%  { stroke-dasharray: 800 0;  stroke-dashoffset: 0; }
  100% { stroke-dasharray: 6 8;    stroke-dashoffset: 0; }
}
.wf-diagram.wf-active .wf-paths path:nth-of-type(1){ animation-delay: 0.4s, 1.7s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(2){ animation-delay: 0.55s, 1.85s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(3){ animation-delay: 0.70s, 2.0s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(4){ animation-delay: 0.85s, 2.15s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(5){ animation-delay: 1.0s, 2.3s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(6){ animation-delay: 1.15s, 2.45s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(7){ animation-delay: 1.3s, 2.6s; }
.wf-diagram.wf-active .wf-paths path:nth-of-type(8){ animation-delay: 1.45s, 2.75s; }

/* Travelling particles along the paths — give energy to the diagram */
.wf-diagram .wf-paths .wf-particle{
  opacity: 0;
  fill: #4F46E5;
  filter: drop-shadow(0 0 6px rgba(79,70,229,0.7));
}
.wf-diagram.wf-active .wf-paths .wf-particle{
  animation: wfParticleIn 400ms 2.2s forwards;
}
@keyframes wfParticleIn{ to{ opacity: 1; } }

/* Grid + glow background fade-in */
.wf-diagram .wf-grid-bg{ opacity: 0; transition: opacity 800ms ease; }
.wf-diagram.wf-active .wf-grid-bg{ opacity: 1; }

/* Soft halo behind diagram center, breathes once during entry */
.wf-diagram::before{
  content:""; position: absolute;
  width: 60%; aspect-ratio: 1;
  left: 20%; top: 20%;
  background: radial-gradient(circle, rgba(79,70,229,0.22), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.wf-diagram.wf-active::before{ opacity: 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .wf-diagram .wf-node{ opacity: 1 !important; animation: none !important; }
  .wf-diagram .wf-paths path{ opacity: 1 !important; stroke-dasharray: 6 8; stroke-dashoffset: 0; animation: dashFlow 1.6s linear infinite !important; }
  .wf-diagram .wf-grid-bg{ opacity: 1 !important; }
  .wf-diagram::before{ opacity: 1 !important; }
}


/* ============================================================
   DARK MODE — extra polish (contrast, visibility)
   ============================================================ */
:root[data-theme="dark"] .nav-links{ color: #E5E5E0; }
:root[data-theme="dark"] .nav-links a{ opacity: 0.85; color: #E5E5E0; }
:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a.active{ opacity: 1; color: #A5B4FC; }

/* Heading + text on dark */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4{ color: #F1F1ED; }
:root[data-theme="dark"] .h-display,
:root[data-theme="dark"] .h-section,
:root[data-theme="dark"] .h-hero{ color: #F1F1ED; }
:root[data-theme="dark"] .em-italic.text-vermilion,
:root[data-theme="dark"] .text-vermilion{ color: #A5B4FC; }
:root[data-theme="dark"] .lede{ color: #BFBFBA; }
:root[data-theme="dark"] .h-eyebrow{ color: #A0A2AE; }
:root[data-theme="dark"] .h-eyebrow.text-vermilion{ color: #A5B4FC; }

/* CTA button looks great on both themes — keep, but add subtle glow on dark */
:root[data-theme="dark"] .btn-vermilion{
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 14px 36px -10px rgba(99,102,241,0.55);
}

/* Vermilion section ON DARK : slightly more sober */
:root[data-theme="dark"] .bg-vermilion{ background: linear-gradient(180deg, #312E81 0%, #1E1B4B 100%); }

/* Reveal classes — make sure no opacity:0 sticks if IO didn't fire */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(.16,1,.3,1), transform 600ms cubic-bezier(.16,1,.3,1); }
.reveal.in{ opacity: 1; transform: none; }
