/* ==========================================================================
   Securitron AI — the AI brain behind your security
   Flat, sharp, three meaningful colours:
     blue  = Securitron / AI      red = threat      green = fixed / safe
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #07080a;
  --surface: #0d0f13;
  --surface-2: #12151b;
  --line: #1d2129;
  --line-2: #2b313c;
  --grid: rgba(243, 239, 233, 0.035);
  --text: #f3efe9;
  --muted: #a1a6b0;
  --dim: #646a76;
  --blue: #1089f9;
  --blue-ink: #04121f;
  --red: #ff3b3b;
  --green: #22c55e;
  --amber: #f5a524;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.accent { color: var(--blue); }
.c-red { color: var(--red); }
.c-green { color: var(--green); }

/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--blue); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.section-head { max-width: 780px; margin: 0 0 56px; }
.section-head h2 {
  font: 600 clamp(32px, 4.8vw, 54px)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
}
.section-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); margin: 0; }
.idx { font: 500 12px/1 var(--font-mono); color: var(--dim); letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font: 600 14px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #fff; color: var(--blue-ink); border-color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 19px/1 var(--font-display); letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; margin-top: 5px; }
.brand-ai { font: 700 11px/1 var(--font-mono); padding: 4px 6px; background: var(--blue); color: #fff; letter-spacing: 0.06em; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; height: 64px; }
.nav-links a {
  display: flex; align-items: center; height: 100%;
  padding: 0 16px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--blue); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.brain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.brain.is-live { opacity: 1; }
.hero-inner { padding-block: 130px 120px; }
.hero-copy { max-width: 600px; position: relative; }
.hero h1 {
  font: 600 clamp(42px, 6.6vw, 86px)/1 var(--font-display);
  letter-spacing: -0.04em;
  margin: 26px 0 26px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s var(--ease) forwards;
}
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp 0.8s 0.55s var(--ease) forwards; }
.hero .eyebrow { opacity: 0; animation: fadeUp 0.8s 0.05s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: 52px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  width: max-content;
  max-width: 100%;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}
.hero-meta div { padding: 14px 20px; font: 500 12px/1.4 var(--font-mono); color: var(--dim); }
.hero-meta div + div { border-left: 1px solid var(--line-2); }
.hero-meta b { display: block; font: 600 24px/1.15 var(--font-display); color: var(--text); letter-spacing: -0.02em; }

/* Legend + live counter: explains what the visual means */
.hero-legend {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  background: rgba(7, 8, 10, 0.92);
  font: 500 12px/1.3 var(--font-mono);
  color: var(--muted);
  min-width: 260px;
}
.hero-legend .row { display: flex; align-items: center; gap: 10px; }
.hero-legend i { width: 9px; height: 9px; flex: none; }
.hero-legend .k-blue { background: var(--blue); }
.hero-legend .k-red { background: var(--red); }
.hero-legend .k-ink { background: var(--text); width: 5px; height: 5px; margin: 0 2px; }
.hero-legend .count { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); color: var(--text); }
.hero-legend .count b { color: var(--green); font-weight: 600; }

@media (max-width: 960px) {
  .hero { align-items: flex-end; }
  .hero-inner { padding-top: min(96vw, 540px); padding-bottom: 72px; }
  .hero-legend { left: var(--gutter); right: auto; top: 80px; bottom: auto; min-width: 0; grid-template-columns: auto auto; column-gap: 16px; padding: 10px 12px; font-size: 11px; }
  .hero-legend .row:nth-child(3) { display: none; }
  .hero-legend .count { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-meta { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-meta div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::before { content: ''; width: 6px; height: 6px; background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { position: relative; }
.section { padding-block: clamp(84px, 11vw, 140px); }

/* Capability cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); background: var(--surface); }
.card { position: relative; padding: 34px 30px 30px; transition: background 0.2s; }
.card + .card { border-left: 1px solid var(--line-2); }
.card:hover { background: var(--surface-2); }
.card::after { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--blue); transition: width 0.4s var(--ease); }
.card:hover::after { width: 100%; }
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card + .card { border-left: 0; border-top: 1px solid var(--line-2); }
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg); }
.card-icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.card .persona { font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.card h3 { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; }
.card p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.card .tag { display: inline-block; font: 500 12px/1 var(--font-mono); color: var(--text); padding: 7px 10px; border: 1px solid var(--line-2); background: var(--bg); }
.card .tag b { color: var(--blue); font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-top: 0; background: var(--bg); }
.stat { padding: 34px 28px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat b { display: block; font: 600 clamp(38px, 4.6vw, 56px)/1 var(--font-display); letter-spacing: -0.04em; margin-bottom: 12px; color: var(--text); }
.stat span { color: var(--muted); font-size: 14.5px; }
.stat .bar { position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: var(--line-2); }
.stat .bar::after { content: ''; display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.4s var(--ease); }
.stat.in .bar::after { width: var(--w, 100%); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* --------------------------------------------------------------------------
   Neural map (models)
   -------------------------------------------------------------------------- */
.agents { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .agents { grid-template-columns: 1fr; } }
.neural-map { border: 1px solid var(--line-2); background: var(--surface); aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.neural-map svg { width: 100%; height: 100%; }
.neural-map .grid-dot { fill: rgba(243, 239, 233, 0.14); }
.neural-map .link { stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.2s; }
.neural-map .link.active { stroke: var(--blue); stroke-width: 2; }
.neural-map .mesh { stroke: var(--line); stroke-width: 1; }
.neural-map .ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.neural-map .pulse { fill: var(--blue); }
.neural-map .node { cursor: pointer; }
.neural-map .node rect { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.neural-map .node text { fill: var(--muted); font: 600 13px var(--font-mono); letter-spacing: 0.04em; transition: fill 0.2s; }
.neural-map .node:hover rect { stroke: var(--text); }
.neural-map .node.active rect { fill: var(--blue); stroke: var(--blue); }
.neural-map .node.active text { fill: #fff; }
.neural-map .core rect { fill: var(--text); stroke: none; }
.neural-map .core text { fill: var(--bg); font: 700 16px var(--font-display); }
.neural-map .core .sub { font: 600 10px var(--font-mono); letter-spacing: 0.2em; }
.neural-map .threat { fill: var(--red); }

.agent-list { display: grid; border: 1px solid var(--line-2); }
.agent {
  position: relative;
  padding: 20px 22px;
  background: var(--surface);
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}
.agent + .agent { border-top: 1px solid var(--line-2); }
.agent:hover { background: var(--surface-2); }
.agent.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--blue); }
.agent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.agent h4 { margin: 0; font: 600 18px/1.2 var(--font-display); }
.agent h4 .idx { margin-right: 10px; }
.agent .spec { font: 500 12px/1 var(--font-mono); color: var(--dim); white-space: nowrap; }
.agent.active .spec { color: var(--blue); }
.agent p { margin: 10px 0 0; color: var(--muted); font-size: 15px; display: none; }
.agent.active p { display: block; animation: fadeUp 0.4s var(--ease); }

/* --------------------------------------------------------------------------
   Terminal demo
   -------------------------------------------------------------------------- */
.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }
.demo-copy h2 { font: 600 clamp(32px, 4.4vw, 50px)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 20px 0; }
.demo-copy p { color: var(--muted); font-size: 17px; }
.demo-copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.demo-copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.demo-copy li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--green); margin-top: 8px; }

.terminal { border: 1px solid var(--line-2); background: #050608; }
.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  font: 500 12px/1 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}
.term-bar b { color: var(--text); font-weight: 600; }
.term-bar span { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.term-bar span::before { content: ''; width: 7px; height: 7px; background: var(--green); animation: blink 1.2s steps(1) infinite; }
.term-body { padding: 20px 20px 24px; font: 400 13.5px/1.75 var(--font-mono); min-height: 430px; overflow-x: auto; }
.term-line { white-space: pre-wrap; word-break: break-word; opacity: 0; transition: opacity 0.25s; }
.term-line.show { opacity: 1; }
.term-line .u { color: var(--text); font-weight: 600; }
.term-line .s, .term-line .k { color: var(--blue); }
.term-line .ok { color: var(--green); }
.term-line .warn { color: var(--amber); }
.term-line .crit { color: var(--red); }
.term-line .d { color: var(--dim); }
.term-bar-progress { display: inline-block; width: 160px; height: 8px; background: var(--line-2); vertical-align: middle; margin: 0 8px; }
.term-bar-progress::after { content: ''; display: block; height: 100%; width: var(--p, 0%); background: var(--blue); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--blue); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.term-note { font: 500 11px/1 var(--font-mono); color: var(--dim); text-align: right; margin-top: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Flow
   -------------------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); background: var(--surface); }
.step { position: relative; padding: 28px 22px 30px; }
.step + .step { border-left: 1px solid var(--line-2); }
.step-num { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-mono); color: var(--blue); margin-bottom: 22px; }
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.step h4 { margin: 0 0 8px; font: 600 18px/1.2 var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .scan { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; animation: scan 6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes scan { 0% { transform: scaleX(0); opacity: 1; } 20% { transform: scaleX(1); opacity: 1; } 30%, 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* --------------------------------------------------------------------------
   AquilaX
   -------------------------------------------------------------------------- */
.aquilax { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); background: var(--surface); }
.aquilax > div { padding: clamp(28px, 4.5vw, 56px); }
.aquilax > div + div { border-left: 1px solid var(--line-2); }
@media (max-width: 900px) {
  .aquilax { grid-template-columns: 1fr; }
  .aquilax > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}
.aquilax h2 { font: 600 clamp(30px, 3.8vw, 44px)/1.08 var(--font-display); letter-spacing: -0.03em; margin: 20px 0; }
.aquilax p { color: var(--muted); font-size: 16.5px; }
.aquilax p strong { color: var(--text); }
.aquilax-links { display: grid; align-content: center; }
.aq-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); transition: padding 0.25s var(--ease); }
.aq-link:first-child { border-top: 1px solid var(--line-2); }
.aq-link:hover { padding-left: 10px; }
.aq-link:hover b { color: var(--blue); }
.aq-link b { display: block; font: 600 16px/1.3 var(--font-display); transition: color 0.15s; }
.aq-link small { color: var(--dim); font-size: 13.5px; }
.aq-link svg { flex: none; width: 18px; height: 18px; stroke: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font: 500 12px/1 var(--font-mono); padding: 8px 10px; border: 1px solid var(--line-2); color: var(--text); background: var(--bg); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta { position: relative; text-align: center; padding: clamp(56px, 9vw, 110px) var(--gutter); border: 1px solid var(--line-2); border-top: 2px solid var(--blue); background: var(--surface); }
.cta h2 { font: 600 clamp(36px, 5.6vw, 68px)/1 var(--font-display); letter-spacing: -0.04em; margin: 22px 0 18px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 17px; }
.cta .lock { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; font: 500 12px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.04em; }
.cta .lock svg { width: 14px; height: 14px; stroke: currentColor; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); position: relative; z-index: 2; background: var(--bg); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; color: var(--dim); font-size: 13px; font-family: var(--font-mono); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; font: 500 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.footer nav a:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Reveal (only when JS is running)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.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; }

/* ==========================================================================
   Auth pages (login / verify / console / 404)
   ========================================================================== */
.auth-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; padding: 100px var(--gutter) 60px; }
.auth-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.auth-bg.is-live { opacity: 1; }
.auth-top {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  height: 64px;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 5;
  background: rgba(7, 8, 10, 0.9);
  border-bottom: 1px solid var(--line);
}
.auth-top a.back { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.auth-top a.back:hover { color: var(--text); }
.auth-top a.back svg { width: 14px; height: 14px; stroke: currentColor; }

.panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  background: rgba(13, 15, 19, 0.95);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--blue);
  z-index: 2;
  animation: fadeUp 0.7s 0.15s var(--ease) both;
}
@media (max-width: 480px) { .panel { padding: 32px 22px 26px; } }
.panel .logo-big { width: 52px; height: 52px; margin: 0 0 22px; }
.panel h1 { font: 600 28px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 10px; }
.panel .sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.panel .kicker { font: 600 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.2 var(--font-mono);
  transition: border-color 0.15s;
}
.input::placeholder { color: #474d58; }
.input:focus { outline: none; border-color: var(--blue); }
.panel .btn { width: 100%; margin-top: 4px; }
.notice { margin-top: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--text); border: 1px solid var(--line-2); border-left: 3px solid; background: var(--bg); animation: fadeUp 0.4s var(--ease); }
.notice.ok { border-left-color: var(--green); }
.notice.err { border-left-color: var(--red); }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--dim); line-height: 1.6; }
.auth-foot code { font-family: var(--font-mono); color: var(--text); font-size: 12.5px; }

.loader { width: 100%; height: 3px; background: var(--line-2); margin: 6px 0 26px; overflow: hidden; }
.loader::after { content: ''; display: block; height: 100%; width: 30%; background: var(--blue); animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* Console */
.console { width: 100%; max-width: 1000px; display: grid; gap: 20px; z-index: 2; position: relative; animation: fadeUp 0.7s 0.1s var(--ease) both; }
.console .panel { max-width: none; animation: none; }
.console-head h1 { margin: 14px 0 0; font-size: clamp(26px, 4vw, 36px); }
.console-head p { margin: 6px 0 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; background: var(--blue); color: #fff; }
.badge.guest { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); }
.console-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
@media (max-width: 860px) { .console-grid { grid-template-columns: 1fr; } }
.console h2 { font: 600 19px/1.2 var(--font-display); margin: 0 0 6px; }
.console .hint { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.invite-form { display: flex; flex-wrap: wrap; }
.invite-form .input { flex: 1 1 220px; }
.invite-form .btn { width: auto; margin: 0; }
.invite-table-wrap { overflow-x: auto; margin-top: 22px; }
.invite-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invite-table th { text-align: left; font: 600 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 0 10px 12px; border-bottom: 1px solid var(--line-2); }
.invite-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; font: 400 13px/1.4 var(--font-mono); }
.invite-table td.muted { color: var(--dim); }
.invite-table button { background: none; border: 1px solid var(--line-2); padding: 6px 10px; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); cursor: pointer; }
.invite-table button:hover { color: var(--red); border-color: var(--red); }
.invite-table button.confirm { color: #fff; border-color: var(--red); background: var(--red); }
.empty { color: var(--dim); font-size: 14px; padding: 16px 0 4px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line-2); }
.soon-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); font-size: 14.5px; background: var(--bg); }
.soon-list li + li { border-top: 1px solid var(--line-2); }
.soon-list li i { width: 8px; height: 8px; background: var(--blue); flex: none; }
.soon-list li span { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

.lost h1 { font: 600 80px/1 var(--font-mono); color: var(--red); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
