/* ============================================================================
   Cognitive Industries — Cybersecurity
   A reasoning-systems aesthetic: precise, light, alive. Constellation motifs,
   targeting-reticle brackets, an aurora that drifts, fine grain over everything.
   System fonts only. No external requests.
   ========================================================================== */

:root {
  /* Surfaces & ink */
  --bg: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #eef1fa;
  --surface-3: #e3e8f6;
  --ink: #0a1230;
  --ink-soft: #3a4568;
  --muted: #6a7796;
  --line: #e4e8f3;
  --line-strong: #d2d9ec;

  /* Brand — electric blue to violet to cyan */
  --brand-050: #edf2ff;
  --brand-100: #dce6ff;
  --brand-300: #9bb6ff;
  --brand: #2059ff;
  --brand-600: #1543d6;
  --brand-700: #0f33ad;
  --violet: #7b5cff;
  --cyan: #11c2d6;
  --coral: #ff7a59;

  /* Status */
  --ok: #12a150;
  --warn: #e29412;
  --danger: #e04437;

  /* Shape & depth */
  --radius-sm: 11px;
  --radius: 15px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(10,18,48,.06);
  --shadow-sm: 0 4px 14px -6px rgba(10,18,48,.14);
  --shadow: 0 18px 44px -18px rgba(10,18,48,.28);
  --shadow-lg: 0 40px 80px -30px rgba(15,51,173,.40);
  --glow: 0 0 0 1px rgba(32,89,255,.12), 0 18px 50px -18px rgba(32,89,255,.45);
  --ring: 0 0 0 4px rgba(32,89,255,.18);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 44px);

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;

  --grad: linear-gradient(100deg, var(--brand) 0%, var(--violet) 55%, var(--cyan) 100%);
}

/* Dark theme scope (used on the Kill Chain page for a colder, heavier feel) */
body.theme-dark {
  --bg: #05070f;
  --surface: #0c1124;
  --surface-2: #121a33;
  --surface-3: #1b2546;
  --ink: #eaf0ff;
  --ink-soft: #b9c4e6;
  --muted: #8190b8;
  --line: #1d2748;
  --line-strong: #2a3760;
  --brand-050: #131e44;
  --brand-100: #1a2a5e;
  --shadow-sm: 0 6px 20px -8px rgba(0,0,0,.6);
  --shadow: 0 24px 60px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 50px 90px -30px rgba(0,0,0,.8);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Drifting aurora wash + fine grain, fixed behind everything. */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(32,89,255,.16), transparent 60%),
    radial-gradient(34vmax 34vmax at 88% 12%, rgba(123,92,255,.16), transparent 60%),
    radial-gradient(40vmax 40vmax at 70% 95%, rgba(17,194,214,.12), transparent 62%);
  filter: blur(10px);
  animation: aurora 26s ease-in-out infinite alternate;
}
body.theme-dark::before {
  background:
    radial-gradient(40vmax 40vmax at 15% 5%, rgba(32,89,255,.30), transparent 60%),
    radial-gradient(36vmax 36vmax at 90% 10%, rgba(123,92,255,.26), transparent 60%),
    radial-gradient(44vmax 44vmax at 75% 100%, rgba(17,194,214,.16), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body.theme-dark::after { opacity: .9; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
::selection { background: rgba(32,89,255,.22); }

/* ── Scroll progress (injected by app.js) ──────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px rgba(32,89,255,.6);
  transition: width .1s linear;
}

/* ── Layout helpers ────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(60px, 9vw, 130px); }
.section-tight { position: relative; padding-block: clamp(40px, 6vw, 76px); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.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: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.maxw-prose { max-width: 64ch; }
.mx-auto { margin-inline: auto; }

/* ── Type scale ────────────────────────────────────────────────────────── */
.display { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h1, .h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 770; }
h3, .h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 700; }
.lede { font-size: clamp(1.06rem, 1.8vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}

/* Eyebrow: a monospace system label with a drawn tick before it. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.center .eyebrow { justify-content: center; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .74em 1.3em; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .97rem; cursor: pointer;
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink);
  transition: transform .16s ease, box-shadow .24s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; will-change: transform;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); background-size: 150% auto; color: #fff; box-shadow: 0 10px 24px -10px rgba(32,89,255,.75); }
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(32,89,255,.85); background-position: right center; }
.btn-outline { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--brand-300); background: var(--brand-050); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: .92em 1.7em; font-size: 1.06rem; }
.btn-sm { padding: .5em .95em; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Badges & pills ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .34em .72em; border-radius: var(--radius-pill);
  font-size: .73rem; font-weight: 600; letter-spacing: .02em;
  background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.badge-dev { background: color-mix(in srgb, #ff8a3d 16%, var(--surface)); color: #b4610a; border-color: color-mix(in srgb, #ff8a3d 32%, transparent); }
.badge-live { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge-soon { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-dev .dot, .badge-live .dot { box-shadow: 0 0 0 0 currentColor; animation: ping 2s ease-out infinite; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--brand-300); }
.card-feature .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--brand-050); color: var(--brand-600); margin-bottom: 16px; border: 1px solid var(--brand-100);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); }
.panel { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }

/* Reticle brackets — a targeting motif on featured blocks. */
.reticle::before, .reticle::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; opacity: .55;
  border-color: var(--brand); border-style: solid; border-width: 0;
}
.reticle::before { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.reticle::after { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

.tint { background: var(--surface-2); }
.tint-grad { position: relative; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: clamp(40px, 6vw, 76px); }

/* ── Header / nav ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand .logo { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(32,89,255,.4)); }
.brand small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 3px; }
.brand .brand-name { line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brand-700); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter); box-shadow: var(--shadow);
  }
  .nav-links.open a::after { display: none; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { position: relative; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; padding-block: 56px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(54px, 8vw, 104px) clamp(44px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }
.hero h1 { margin-block: 16px 20px; }
.hero .lede { max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px 26px; margin-top: 30px; color: var(--muted); font-size: .88rem; font-family: var(--mono); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
#hero-canvas { width: 100%; height: clamp(330px, 44vw, 500px); }

/* ── Marquee ───────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); padding-block: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 48px; white-space: nowrap; animation: marquee 34s linear infinite; font-family: var(--mono); font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track b { color: var(--brand-600); font-weight: 600; }

/* ── Stats ─────────────────────────────────────────────────────────────── */
.stat { text-align: center; }
.stat .n { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .n .gradient-text { display: inline-block; }
.stat .l { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ── 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; position: relative; }
.price-card.featured { border-color: var(--brand-300); box-shadow: var(--shadow-lg); }
.price-card.featured::before {
  content: "Most chosen"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: .35em .9em; border-radius: var(--radius-pill); box-shadow: 0 8px 18px -8px rgba(32,89,255,.8);
}
.price-name { font-family: var(--mono); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }
.price-amt { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.price-amt span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-desc { color: var(--ink-soft); margin-top: 6px; min-height: 3em; }
.feature-list { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.feature-list li svg { flex: 0 0 auto; margin-top: 3px; color: var(--ok); }
.feature-list li.off { color: var(--muted); opacity: .7; }
.feature-list li.off svg { color: var(--muted); }
.price-card .btn { margin-top: 22px; }
.price-card .spacer { flex: 1; }

/* ── Terminal frame ────────────────────────────────────────────────────── */
.terminal-frame { background: #080c1a; border: 1px solid #1b2447; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0c1430; border-bottom: 1px solid #1b2447; }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .d1 { background: #ff5f57; } .terminal-bar .d2 { background: #febc2e; } .terminal-bar .d3 { background: #28c840; }
.terminal-bar .ttl { margin-left: 8px; color: #8ea0c8; font-size: .8rem; font-family: var(--mono); }
.terminal-body { padding: 8px; }
.xterm-host { height: 56vh; min-height: 360px; }

/* code / diagram */
.codeblock { font-family: var(--mono); font-size: .86rem; background: #080c1a; color: #cfe0ff; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; line-height: 1.7; }
.codeblock .c { color: #6a7aa8; } .codeblock .g { color: #5fe3a1; } .codeblock .y { color: #ffd479; }
.kbd { font-family: var(--mono); font-size: .82em; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: .12em .5em; }

/* ── Kill-chain steps ──────────────────────────────────────────────────── */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 820px) { .chain { grid-template-columns: repeat(2, 1fr); } }
.chain-step { position: relative; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow: hidden; transition: transform .2s, border-color .2s; }
.chain-step:hover { transform: translateY(-4px); border-color: var(--brand-300); }
.chain-step::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.chain-step:hover::after { transform: scaleX(1); }
.chain-step .k { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--brand-600); letter-spacing: .06em; }
.chain-step .t { font-weight: 650; margin-top: 4px; font-size: .98rem; }
.chain-step .d { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.input, textarea.input, select.input {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .72em .9em; font-size: .96rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand-300); box-shadow: var(--ring); }
.form-note { font-size: .85rem; min-height: 1.2em; }
.form-note.ok { color: var(--ok); } .form-note.err { color: var(--danger); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 220px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 86%, transparent); padding: 4px 18px; margin-bottom: 12px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-300); }
.faq summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

/* ── Mascot ────────────────────────────────────────────────────────────── */
.mascot { width: 120px; height: 120px; }
.mascot-float { animation: float 6s ease-in-out infinite; }

/* ── Modal (auth) ──────────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,12,26,.55); backdrop-filter: blur(5px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: grid; animation: fade .2s ease; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 410px; padding: 28px; animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.modal h3 { margin-bottom: 4px; }
.modal .tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-block: 16px; }
.modal .tabs button { flex: 1; background: transparent; border: 0; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.modal .tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ── Scroll reveal + interactions ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.tilt { transform-style: preserve-3d; transition: transform .2s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.12); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70%,100% { box-shadow: 0 0 0 6px transparent; opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .wrap { flex-wrap: wrap; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.hidden { display: none; }
