/* ============================================================
   ClearDigit — "Remixed Resonance" dark telemetry theme
   Palette: emerald #10B981 + sky #0EA5E9 on near-black #050507
   Type: Inter (display/body) + JetBrains Mono (labels/metadata)
   Modular bento panels, ambient glow, masked reveals.
   ============================================================ */

/* ── Skip link (accessibility) ─────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--emerald); color: #fff;
  padding: 8px 16px; border-radius: 4px;
  font-size: .85rem; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 8px; }

:root {
  /* Core surfaces */
  --bg: #050507;
  --bg-2: #0A0A0C;
  --surface: #18181B;
  --surface-2: #202024;
  --surface-3: #28282C;
  --border: #27272A;
  --border-2: #34343A;

  /* Text */
  --text-heading: #FFFFFF;
  --text-body: #A1A1AA;
  --text-muted: #71717A;

  /* Accents */
  --emerald: #10B981;
  --emerald-bright: #34D399;
  --sky: #0EA5E9;
  --sky-bright: #38BDF8;
  --amber: #F59E0B;
  --rose: #FB7185;
  --violet: #A78BFA;

  /* Legacy tokens repointed to the dark palette (keeps older rules valid) */
  --coral: var(--sky);
  --coral-hover: var(--sky-bright);
  --teal: var(--emerald);
  --teal-hover: var(--emerald-bright);
  --yellow: var(--amber);
  --blue: var(--sky);
  --white: var(--surface);

  /* Tinted accent washes */
  --wash-emerald: rgba(16, 185, 129, 0.10);
  --wash-sky: rgba(14, 165, 233, 0.10);
  --wash-amber: rgba(245, 158, 11, 0.10);
  --wash-rose: rgba(251, 113, 133, 0.10);

  /* Radii (Resonance scale) */
  --r-input: 8px;
  --r-control: 8px;
  --r-sm: 12px;
  --r-card: 16px;
  --r-panel: 20px;
  --r-pill: 9999px;

  /* Elevation — dark UI relies on borders + colored glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --glow-emerald: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 10px 34px rgba(16, 185, 129, 0.30);
  --glow-sky: 0 0 0 1px rgba(14, 165, 233, 0.4), 0 10px 34px rgba(14, 165, 233, 0.28);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Inter', system-ui, sans-serif; /* legacy alias → Inter */
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(16, 185, 129, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 2px; border-radius: 6px; }

/* ============================================================
   AMBIENT BACKGROUND (effects sit behind all content)
   ============================================================ */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fx-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
}
.fx-glow {
  background:
    radial-gradient(46% 40% at 16% 0%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(40% 38% at 92% 18%, rgba(14, 165, 233, 0.14), transparent 70%),
    radial-gradient(50% 50% at 80% 100%, rgba(16, 185, 129, 0.10), transparent 70%);
}
.fx-vignette {
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
body > main, body > .header, body > .footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.dim { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: var(--sp-md, 16px);
}
.eyebrow::before { content: "//"; color: var(--emerald); opacity: 0.7; }

.serif { font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.02em; }
.section-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}
.section-sub { margin-top: 18px; font-size: 17px; color: var(--text-body); line-height: 1.6; }
.text-coral { color: var(--sky-bright); }
.text-teal {
  background: linear-gradient(100deg, var(--emerald-bright) 0%, var(--sky-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border-radius: var(--r-control);
  min-height: 48px; padding: 13px 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  background: var(--emerald);
  color: #04150E;
  box-shadow: var(--glow-emerald), var(--inset-hi);
}
.btn-primary:hover { background: var(--emerald-bright); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(16,185,129,.5), 0 16px 40px rgba(16,185,129,.4); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-heading);
  border: 1px solid var(--border-2);
  box-shadow: var(--inset-hi);
}
.btn-secondary:hover { border-color: var(--emerald); color: #fff; background: rgba(16, 185, 129, 0.08); transform: translateY(-2px); }
.btn-secondary .ico { color: var(--emerald-bright); }
.btn-white { background: var(--emerald); color: #04150E; box-shadow: var(--glow-emerald); }
.btn-white:hover { background: var(--emerald-bright); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--emerald-bright);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--sky-bright); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Icon chips ---------- */
.icon-chip {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  flex-shrink: 0; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.icon-chip .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.icon-chip.sm { width: 38px; height: 38px; border-radius: 10px; }
.icon-chip.sm .ico { width: 20px; height: 20px; }
.icon-chip.round { border-radius: var(--r-pill); }
.chip-teal   { background: var(--wash-emerald); color: var(--emerald-bright); box-shadow: inset 0 0 0 1px rgba(16,185,129,.28); }
.chip-coral  { background: var(--wash-rose);    color: var(--rose);           box-shadow: inset 0 0 0 1px rgba(251,113,133,.28); }
.chip-blue   { background: var(--wash-sky);     color: var(--sky-bright);     box-shadow: inset 0 0 0 1px rgba(14,165,233,.28); }
.chip-yellow { background: var(--wash-amber);   color: var(--amber);          box-shadow: inset 0 0 0 1px rgba(245,158,11,.28); }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm), var(--inset-hi);
  padding: clamp(20px, 2.4vw, 26px);
  position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(16, 185, 129, 0.25);
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-coral { background: var(--wash-sky); color: var(--sky-bright); border: 1px solid rgba(14,165,233,.3); }
.pill-teal  { background: var(--wash-emerald); color: var(--emerald-bright); border: 1px solid rgba(16,185,129,.3); }

/* live status pill with pulse */
.status, .live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald-bright);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--wash-emerald); border: 1px solid rgba(16,185,129,.28);
}
.live { font-size: 11px; padding: 5px 11px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.header.scrolled { border-color: var(--border); background: rgba(5, 5, 7, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark-svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.5));
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.brand:hover .brand-mark-svg {
  filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.80));
  transform: scale(1.08) rotate(3deg);
}
.brand-name { font-size: 19px; color: #fff; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-body); position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--emerald); transition: width .25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-body); background: none; border: none; padding: 0; cursor: pointer; }
.nav-login:hover { color: #fff; }
.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; color: #fff;
  border: 1px solid var(--border-2); background: var(--surface);
}
.hamburger .ico { width: 22px; height: 22px; }
.mobile-menu {
  position: fixed; inset: 72px 0 auto 0;
  background: rgba(10,10,12,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 20px; display: none; flex-direction: column; gap: 4px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 12px; border-radius: 10px; font-weight: 500; color: #fff; }
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu .btn { margin-top: 10px; }

/* ============================================================
   HERO + BENTO DASHBOARD
   ============================================================ */
.hero { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 600; margin: 22px 0 22px; color: #fff;
}
.hero-lead { font-size: clamp(16px, 1.3vw, 18px); max-width: 500px; color: var(--text-body); }
.hero-tagline { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-bright); margin-top: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-body);
}
.trust-item .icon-chip { width: 30px; height: 30px; border-radius: 8px; }
.trust-item .icon-chip .ico { width: 16px; height: 16px; }

/* blobs kept as subtle local glow */
.blob { display: none; }

/* ---------- Dashboard (bento) ---------- */
.dash-wrap { position: relative; }
.dash-wrap::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(50% 50% at 60% 35%, rgba(16,185,129,.18), transparent 70%),
              radial-gradient(46% 46% at 20% 80%, rgba(14,165,233,.16), transparent 70%);
  z-index: 0; filter: blur(6px);
}
.dash {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #161619, #0E0E11);
  border: 1px solid var(--border-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,.10), var(--inset-hi);
  padding: 20px;
  overflow: hidden;
}
.dash::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.7), rgba(14,165,233,.5), transparent);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-title { display: flex; flex-direction: column; gap: 3px; }
.dash-title .mono { font-size: 11px; }
.dash-title h3 { font-size: 18px; letter-spacing: -0.02em; }

/* metric tiles */
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.metric {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 13px;
}
.m-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--text-muted); display: block; }
.m-val { font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -0.03em; display: block; margin-top: 4px; line-height: 1; }
.m-val .m-sub { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.m-delta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; margin-top: 7px; display: inline-block; }
.m-delta.up { color: var(--emerald-bright); }
.m-delta.sky { color: var(--sky-bright); }

/* chart panel */
.chart-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 14px 16px; margin-bottom: 14px;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-head .mono { font-size: 10px; }
.chart-pct { font-size: 18px; font-weight: 600; color: var(--emerald-bright); letter-spacing: -0.02em; }
.spark { width: 100%; height: 64px; display: block; }
.spark .spark-line {
  fill: none; stroke: url(#sparkStroke); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
.spark.in .spark-line { animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark .spark-dot { fill: var(--emerald-bright); filter: drop-shadow(0 0 4px rgba(52,211,153,.9)); }

.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progressbar { flex: 1; height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); overflow: hidden; }
.progressbar > span { display: block; height: 100%; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--emerald), var(--sky)); transition: width 1.1s var(--ease); }
.progress-pct { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--emerald-bright); white-space: nowrap; }

/* task stream */
.stream { display: flex; flex-direction: column; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 4px; }
.task + .task { border-top: 1px solid var(--border); }
.task-body { flex: 1; min-width: 0; }
.task-name { font-weight: 500; font-size: 14px; color: #fff; transition: color .2s var(--ease); }
.task-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); display: flex; gap: 7px; align-items: center; margin-top: 3px; }
.task-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.task-time { display: inline-flex; align-items: center; gap: 4px; }
.task-time .ico { width: 12px; height: 12px; }
.task .chevron { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }

/* checkbox — emerald fill, dark check */
.check {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border: 1.5px solid var(--border-2); border-radius: 6px;
  background: var(--surface-2); flex-shrink: 0; display: grid; place-items: center;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check::after {
  content: ""; width: 11px; height: 6px;
  border-left: 2.5px solid #04150E; border-bottom: 2.5px solid #04150E;
  transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .22s var(--ease);
}
.check:checked { background: var(--emerald); border-color: var(--emerald); }
.check:checked::after { transform: rotate(-45deg) scale(1); }
.check:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,.35); }
.task.done .task-name { color: var(--text-muted); text-decoration: line-through; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--inset-hi);
}
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.problem-copy { max-width: 440px; }
.cluster { position: relative; height: 320px; }
.cluster .float {
  position: absolute; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 12px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: #fff;
  animation: bob 6s var(--ease) infinite;
}
.cluster .float .icon-chip { width: 36px; height: 36px; border-radius: 9px; }
.cluster .float .icon-chip .ico { width: 19px; height: 19px; }
.f1 { top: 8%; left: 4%; animation-delay: 0s; }
.f2 { top: 0; right: 6%; animation-delay: .8s; }
.f3 { top: 38%; left: 24%; animation-delay: 1.6s; z-index: 2; }
.f4 { bottom: 14%; left: 0; animation-delay: 1.1s; }
.f5 { bottom: 2%; right: 12%; animation-delay: .4s; }
.f6 { top: 30%; right: 0; animation-delay: 2s; }
.cluster .ring {
  position: absolute; inset: 14% 16%; border-radius: 50%;
  border: 1px dashed var(--border-2);
  background: radial-gradient(circle, rgba(16,185,129,.10), transparent 70%);
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.pain-list { display: flex; flex-direction: column; gap: 12px; }
.pain {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 16px 18px; box-shadow: var(--inset-hi);
  transition: border-color .2s var(--ease);
}
.pain:hover { border-color: var(--border-2); }
.pain p { font-weight: 500; color: #fff; font-size: 15px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps::before {
  content: ""; position: absolute; top: 50px; left: 16%; right: 16%;
  border-top: 1px dashed var(--border-2); z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
  position: absolute; top: -12px; right: 18px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--wash-emerald); color: var(--emerald-bright);
  border: 1px solid rgba(16,185,129,.35);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
}
.step h3 { font-size: 19px; margin: 18px 0 9px; }
.step p { font-size: 14px; color: var(--text-body); }

/* ============================================================
   ORGANIZATION AREAS (bento)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat h3 { font-size: 17px; margin: 16px 0 7px; }
.cat p { font-size: 13px; color: var(--text-body); }
.cat:hover .icon-chip { transform: scale(1.06); }

/* ============================================================
   PERSONALIZED PLAN PREVIEW
   ============================================================ */
.plan-panel {
  background: linear-gradient(150deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--inset-hi);
}
.plan-grid { display: grid; grid-template-columns: 1fr 1.1fr 0.9fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.plan-intro h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
.plan-intro p { margin: 14px 0 18px; font-size: 16px; color: var(--text-body); }
.plan-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-card); box-shadow: var(--shadow-md); padding: 22px; }
.plan-card .week-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--sky-bright); }
.plan-card h4 { font-size: 18px; margin: 6px 0 14px; }
.plan-task { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.plan-task + .plan-task { border-top: 1px solid var(--border); }
.plan-task .ico-sm { width: 18px; height: 18px; color: var(--emerald-bright); flex-shrink: 0; }
.plan-task .t-name { flex: 1; font-size: 14px; font-weight: 500; color: #fff; }
.plan-task .t-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.ring-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-card); box-shadow: var(--shadow-md); padding: 26px 22px; text-align: center; }
.circ { position: relative; width: 160px; height: 160px; margin: 0 auto 14px; }
.circ svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.circ .track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 12; }
.circ .meter { fill: none; stroke: url(#ringStroke); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 6px rgba(16,185,129,.5)); }
.circ .center { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.circ .pct { font-size: 34px; font-weight: 600; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.circ .frac { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; }
.ring-card .cheer { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald-bright); }
.ring-card .cheer .ico { width: 16px; height: 16px; }

/* ============================================================
   RESOURCES
   ============================================================ */
.res-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 48px); flex-wrap: wrap; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-card { display: flex; flex-direction: column; }
.res-type {
  align-self: flex-start; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin: 16px 0 12px;
}
.res-type.tpl { background: var(--wash-rose); color: var(--rose); border: 1px solid rgba(251,113,133,.3); }
.res-type.guide { background: var(--wash-sky); color: var(--sky-bright); border: 1px solid rgba(14,165,233,.3); }
.res-card h3 { font-size: 19px; margin-bottom: 8px; }
.res-card p { font-size: 14px; color: var(--text-body); flex: 1; margin-bottom: 16px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(16,185,129,.30), transparent 60%),
    radial-gradient(60% 120% at 90% 100%, rgba(14,165,233,.28), transparent 60%),
    linear-gradient(180deg, #101014, #0A0A0C);
  border: 1px solid var(--border-2);
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(16,185,129,.06);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-banner h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; position: relative; z-index: 2; }
.cta-banner p { color: var(--text-body); font-size: 17px; margin: 16px auto 28px; max-width: 520px; position: relative; z-index: 2; }
.cta-banner .btn { position: relative; z-index: 2; }
.cta-reassure { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 18px; position: relative; z-index: 2; }
.cta-reassure .ico { color: var(--emerald-bright); }
.cta-shape { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr; gap: 36px; }
.footer-brand p { font-size: 14px; color: var(--text-body); margin-top: 14px; max-width: 240px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-body); }
.footer-col a:hover { color: var(--emerald-bright); }
.footer-news p { font-size: 14px; color: var(--text-body); margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 14px;
  padding: 12px 14px; border-radius: var(--r-control);
  border: 1px solid var(--border-2); background: var(--surface); color: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.news-form input::placeholder { color: var(--text-muted); }
.news-form input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); text-align: center; }

/* ============================================================
   ONBOARDING QUIZ MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  width: 100%; max-width: 540px;
  background: linear-gradient(180deg, #161619, #0E0E11);
  border: 1px solid var(--border-2); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,.1);
  padding: clamp(24px, 4vw, 38px); position: relative;
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal-close:hover { color: #fff; border-color: var(--border-2); }
.modal-close .ico { width: 20px; height: 20px; }

.quiz-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.quiz-progress .seg { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.quiz-progress .seg.active { background: linear-gradient(90deg, var(--emerald), var(--sky)); }

.quiz-step { display: none; animation: fade .4s var(--ease); }
.quiz-step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-step h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 10px; color: #fff; }
.quiz-step .q-sub { font-size: 15px; color: var(--text-body); margin-bottom: 24px; }
.quiz-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-bright); margin-bottom: 14px; display: block; }

.opt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.opt {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--border-2); border-radius: var(--r-control); background: var(--surface);
  text-align: left; width: 100%; font-size: 15px; font-weight: 500; color: #fff;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.opt:hover { border-color: var(--emerald); background: rgba(16,185,129,.06); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); flex-shrink: 0; display: grid; place-items: center; transition: border-color .2s var(--ease); }
.opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); transform: scale(0); transition: transform .2s var(--ease); }
.opt.selected { border-color: var(--emerald); background: rgba(16,185,129,.08); }
.opt.selected .radio { border-color: var(--emerald); }
.opt.selected .radio::after { transform: scale(1); }
.opt .icon-chip { width: 38px; height: 38px; border-radius: 9px; }
.opt .opt-label { flex: 1; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-back { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); padding: 10px 8px; }
.quiz-back:hover { color: #fff; }
.quiz-back[hidden] { visibility: hidden; }

.quiz-final { text-align: center; padding: 12px 0; }
.quiz-final .burst {
  width: 88px; height: 88px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px;
  background: var(--wash-emerald); color: var(--emerald-bright); border: 1px solid rgba(16,185,129,.4);
  box-shadow: 0 0 40px rgba(16,185,129,.35); animation: pop .5s var(--ease);
}
.quiz-final .burst .ico { width: 44px; height: 44px; stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.quiz-final h2 { margin-bottom: 12px; }
.quiz-final p { margin-bottom: 24px; }

/* ---------- reveal (masked entrance) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* staggered reveals within grids */
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }
.cat-grid .reveal:nth-child(2) { transition-delay: .06s; }
.cat-grid .reveal:nth-child(3) { transition-delay: .12s; }
.cat-grid .reveal:nth-child(4) { transition-delay: .18s; }
.cat-grid .reveal:nth-child(5) { transition-delay: .24s; }
.res-grid .reveal:nth-child(2) { transition-delay: .09s; }
.res-grid .reveal:nth-child(3) { transition-delay: .18s; }

/* ============================================================
   PREMIUM ENHANCEMENTS
   ============================================================ */

/* scroll progress beam */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 150;
  background: linear-gradient(90deg, var(--emerald), var(--sky));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  transition: width .08s linear;
}

/* faint scanline texture */
.fx-scan {
  background: repeating-linear-gradient(to bottom,
    rgba(255, 255, 255, 0.016) 0, rgba(255, 255, 255, 0.016) 1px,
    transparent 1px, transparent 3px);
  opacity: 0.5;
}

/* animated headline shimmer */
.text-teal { background-size: 220% auto; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }

/* cursor-tracking spotlight on cards */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(16, 185, 129, 0.16), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* dashboard 3D tilt + rotating aura */
.dash-wrap { perspective: 1300px; }
.dash { transition: transform .18s var(--ease); will-change: transform; }
.dash-wrap::after {
  content: ""; position: absolute; inset: -2px; z-index: 1;
  border-radius: calc(var(--r-panel) + 2px);
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(16, 185, 129, 0.65) 50deg, transparent 130deg,
    transparent 200deg, rgba(14, 165, 233, 0.6) 250deg, transparent 330deg);
  opacity: 0.7; will-change: transform;
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* telemetry ticker */
.ticker {
  overflow: hidden; position: relative; z-index: 1;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.55); padding: 13px 0;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker .item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 26px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); white-space: nowrap;
}
.tk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.tk-dot.sky { background: var(--sky-bright); box-shadow: 0 0 8px rgba(56, 189, 248, .8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* impact stats band */
.stats-section { padding-block: clamp(20px, 2.5vw, 32px); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-md);
}
.stat { background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(24px, 3vw, 36px) 20px; text-align: center; }
.stat-num { display: block; font-size: clamp(28px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-num span {
  background: linear-gradient(100deg, var(--emerald-bright), var(--sky-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-news { grid-column: 1 / -1; max-width: 460px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-intro { max-width: 560px; }
}
@media (max-width: 920px) {
  .nav-links, .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .dash-wrap { order: 2; }
  .hero-content { order: 1; }
  .problem-grid { grid-template-columns: 1fr; }
  .cluster { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spark .spark-line { stroke-dashoffset: 0; }
}
