/* ============================================================
   ApplyMagik — Design System
   Bold, techy, AI-forward. Dark by default; light mode toggle.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Brand accents — electric "magik" spell-glow */
  --violet: #b45cff;
  --violet-bright: #c77dff;
  --magenta: #ff4dd8;
  --cyan: #3de8ff;
  --cyan-deep: #18c6e6;

  /* Gradients */
  --grad-spell: linear-gradient(110deg, #b45cff 0%, #ff4dd8 48%, #3de8ff 100%);
  --grad-spell-soft: linear-gradient(110deg, #b45cff 0%, #7c5cff 50%, #3de8ff 100%);
  --grad-violet: linear-gradient(135deg, #c77dff 0%, #b45cff 60%, #8b3dff 100%);

  /* Dark theme (default) */
  --bg: #08080d;
  --bg-2: #0c0c14;
  --surface: #121120;
  --surface-2: #181830;
  --surface-3: #20203a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2fb;
  --text-dim: #a6a3c0;
  --text-faint: #6f6c8a;
  --glow-violet: rgba(180, 92, 255, 0.45);
  --glow-cyan: rgba(61, 232, 255, 0.4);
  --glow-magenta: rgba(255, 77, 216, 0.4);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --on-accent: #0b0712;
  --mesh-opacity: 1;

  /* Type scale (fluid) */
  --fs-display: clamp(2.9rem, 6.4vw, 5.6rem);
  --fs-h1: clamp(2.3rem, 4.6vw, 3.9rem);
  --fs-h2: clamp(1.85rem, 3.2vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.7rem);
  --fs-lead: clamp(1.08rem, 1.5vw, 1.34rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.92rem;
  --fs-xs: 0.78rem;

  /* Spacing / radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: 'Space Mono', ui-monospace, monospace;
  font-synthesis: none;
}

[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: #efedf8;
  --surface: #ffffff;
  --surface-2: #f4f1fc;
  --surface-3: #ece8fa;
  --border: rgba(20, 12, 40, 0.1);
  --border-strong: rgba(20, 12, 40, 0.18);
  --text: #16121f;
  --text-dim: #58536b;
  --text-faint: #8d8aa0;
  --violet: #8b2fe6;
  --magenta: #e21db4;
  --cyan: #0a9fc4;
  --glow-violet: rgba(139, 47, 230, 0.22);
  --glow-cyan: rgba(10, 159, 196, 0.2);
  --glow-magenta: rgba(226, 29, 180, 0.2);
  --shadow-card: 0 24px 50px -30px rgba(60, 30, 120, 0.32);
  --on-accent: #ffffff;
  --mesh-opacity: 0.55;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1340px; }
.container-narrow { max-width: 820px; }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }

.stack { display: flex; flex-direction: column; }
.center { text-align: center; align-items: center; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "~/"; width: auto; height: auto;
  background: none; color: var(--cyan); opacity: 0.7; font-weight: 700;
}
.eyebrow.center::before { display: inline; }
.eyebrow.spell { color: var(--violet-bright); }
.eyebrow.spell::before { color: var(--violet-bright); }

.display { font-size: var(--fs-display); font-weight: 700; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--text-dim); line-height: 1.55; font-weight: 400; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: var(--fs-sm); }

.gradient-text {
  background: var(--grad-spell);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 50px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  position: relative; color: var(--on-accent);
  background: var(--grad-spell);
  box-shadow: 0 0 0 0 var(--glow-violet), 0 14px 34px -12px var(--glow-violet);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px -2px var(--glow-violet), 0 20px 44px -14px var(--glow-magenta); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-bright); transform: translateY(-2px); background: color-mix(in srgb, var(--violet) 8%, transparent); }
.btn-soft {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn-soft:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; min-height: 58px; }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; min-height: 42px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  color: var(--cyan); font-size: var(--fs-sm);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   PILLS / TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag-glow {
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  border-color: color-mix(in srgb, var(--violet) 40%, transparent);
  color: var(--violet-bright);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.card-hover:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-spell);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card-glow:hover::before { opacity: 0.7; }

.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 15px; margin-bottom: 22px;
  background: color-mix(in srgb, var(--violet) 16%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--violet) 34%, transparent);
  color: var(--violet-bright);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-icon.cyan { background: color-mix(in srgb, var(--cyan) 14%, var(--surface-2)); border-color: color-mix(in srgb, var(--cyan) 32%, transparent); color: var(--cyan); }
.feature-icon.magenta { background: color-mix(in srgb, var(--magenta) 14%, var(--surface-2)); border-color: color-mix(in srgb, var(--magenta) 32%, transparent); color: var(--magenta); }

/* ============================================================
   DECOR — glow orbs, mesh, grid, sparkles
   ============================================================ */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--mesh-opacity); pointer-events: none; z-index: 0; }
.orb-violet { background: radial-gradient(circle, var(--glow-violet), transparent 70%); }
.orb-cyan { background: radial-gradient(circle, var(--glow-cyan), transparent 70%); }
.orb-magenta { background: radial-gradient(circle, var(--glow-magenta), transparent 70%); }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.section-line { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

#sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.has-mesh { position: relative; isolation: isolate; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px var(--glow-violet)); }
.brand b { font-weight: 700; }
.brand .k { color: var(--violet-bright); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 500;
  color: var(--text-dim); transition: color 0.2s, background 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad-spell);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-signin {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 500;
  color: var(--text-dim); transition: color 0.2s;
}
.nav-signin:hover { color: var(--text); }

.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--violet-bright); border-color: var(--border-strong); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; place-items: center; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: grid; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--bg-2);
  display: flex; flex-direction: column; padding: 22px var(--gutter) 40px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 18px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a { padding: 16px 8px; font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu nav a.active { color: var(--violet-bright); }
.mobile-menu .mm-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 120px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(56px, 7vw, 88px) 36px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--violet-bright); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: var(--fs-sm); }
.footer-byo { margin-top: 18px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.snap { transition: none !important; opacity: 1 !important; transform: none !important; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
/* Stat */
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.stat-label { color: var(--text-dim); font-size: var(--fs-sm); margin-top: 8px; }

/* Logo / trust strip */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 60px); }
.trust-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--text-faint); letter-spacing: 0.01em; opacity: 0.85; transition: color 0.25s, opacity 0.25s; }
.trust-logo:hover { color: var(--text-dim); opacity: 1; }

/* Step (how it works) */
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--violet) 14%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--violet) 36%, transparent);
  color: var(--violet-bright);
}

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--violet) 50%, transparent); box-shadow: 0 0 50px -20px var(--glow-violet); }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3rem; letter-spacing: -0.03em; line-height: 1; }
.price-per { color: var(--text-faint); font-size: var(--fs-sm); font-weight: 500; }
.price-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; margin: 26px 0; flex: 1; }
.price-features li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-dim); }
.price-features li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--cyan); }
.price-features li.off { color: var(--text-faint); opacity: 0.6; }
.price-features li.off svg { color: var(--text-faint); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 24px 4px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; }
.faq-q .chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; color: var(--text-dim); }
.faq-q .chev svg { width: 15px; height: 15px; }
.faq-item.open .chev { transform: rotate(45deg); background: var(--grad-spell); color: var(--on-accent); border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--text-dim); max-width: 70ch; }

/* Comparison check/x */
.ck { color: var(--cyan); } .xk { color: var(--text-faint); }

/* Big closing CTA panel */
.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--violet) 22%, var(--surface)) 0%, var(--surface) 55%);
  padding: clamp(40px, 6vw, 80px);
}

/* Window mock (used for visual feature treatments) */
.window {
  border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.window-bar .wb-title { margin-left: 10px; font-size: var(--fs-xs); color: var(--text-faint); font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.04em; }
.window-body { padding: clamp(18px, 2.4vw, 28px); }

/* Inline code-ish chip */
.kbd { font-family: var(--mono); font-size: 0.82rem; padding: 3px 9px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--border); color: var(--cyan); }

/* ============================================================
   TERMINAL / CONSOLE (spellcraft-terminal motif)
   ============================================================ */
.terminal {
  border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--border-strong));
  background: color-mix(in srgb, var(--cyan) 4%, var(--surface));
  overflow: hidden; box-shadow: var(--shadow-card), 0 0 60px -30px var(--glow-cyan);
  font-family: var(--mono);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--cyan) 18%, var(--border)); background: color-mix(in srgb, var(--cyan) 6%, var(--surface-2)); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--cyan) 36%, var(--border-strong)); display: block; }
.terminal-bar .tb-title { margin-left: 10px; font-size: var(--fs-xs); color: var(--text-faint); letter-spacing: 0.02em; }
.terminal-body { padding: clamp(16px, 2.2vw, 24px); font-size: 0.9rem; line-height: 1.85; }
.term-prompt { color: var(--cyan); font-weight: 700; }
.term-cmt { color: var(--text-faint); }
.term-ok { color: var(--cyan); }
.term-line { display: flex; gap: 9px; align-items: baseline; }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); vertical-align: -2px; margin-left: 3px; animation: blink 1.1s steps(1) infinite; box-shadow: 0 0 8px var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.sys-tag { font-family: var(--mono); font-size: var(--fs-xs); color: var(--cyan); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 7px; }
.sys-tag::before { content: "\203A"; color: var(--cyan); font-weight: 700; }
.term-pause { margin-top: 14px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--violet) 12%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 34%, transparent); font-family: 'Manrope', sans-serif; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 10px var(--violet-bright); display: inline-block; flex: none; }
.term-score { height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin: 2px 0 6px; }
.term-score i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 5px; box-shadow: 0 0 14px var(--glow-cyan); }

/* Divider label */
.page-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }

/* progress rail for how-it-works */
.flow-rail { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); }
.flow-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; position: relative; }
.flow-step .rail-dot { position: relative; display: grid; place-items: center; }
.flow-step .rail-dot::after { content: ""; position: absolute; top: 52px; bottom: -60px; width: 2px; background: linear-gradient(var(--border-strong), transparent); }
.flow-step:last-child .rail-dot::after { display: none; }
@media (max-width: 640px) { .flow-step { grid-template-columns: 44px 1fr; gap: 16px; } }

/* utility */
.relative { position: relative; }
.z2 { position: relative; z-index: 2; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-s { gap: 10px; } .gap-m { gap: 18px; } .wrap { flex-wrap: wrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-row.center { justify-content: center; }
.hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none; } }
.full { grid-column: 1 / -1; }
