:root {
  --bg: #07090C;
  --panel: #10141A;
  --line: #1F2630;
  --text: #F3EFE7;
  --muted: #9C978D;
  --green: #35E07A;
  --green-deep: #1C8F4C;
  --ink: #07090C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, .anton { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--green);
  letter-spacing: .14em; text-transform: uppercase; }

/* header */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top.solid { position: static; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: Anton, Impact, sans-serif; font-size: 21px; letter-spacing: .03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 40px; min-height: 100svh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 70% 45%, rgba(53,224,122,.22), transparent 70%),
    radial-gradient(40% 35% at 15% 10%, rgba(53,224,122,.08), transparent 70%); }
.hero-bg::before { content: ""; position: absolute; inset: -20% -10% 0; transform: perspective(900px) rotateX(62deg);
  transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, rgba(53,224,122,.05) 0 70px, rgba(53,224,122,.015) 70px 140px),
    linear-gradient(transparent 49.7%, rgba(243,239,231,.08) 49.7% 50.3%, transparent 50.3%);
  mask-image: linear-gradient(to top, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(56px, 8.6vw, 116px); line-height: .92; margin: 14px 0 22px; }
.hero h1 span { color: var(--green); }
.hero p.lead { max-width: 470px; margin: 0 0 30px; color: #C9C4BA; font-size: 19px; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--ink);
  padding: 13px 22px 13px 18px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.1; }
.cta small { display: block; font-size: 11px; font-weight: 500; opacity: .65; }
.cta svg { width: 28px; height: 28px; }
.stats { display: flex; gap: 28px; margin-top: 34px; }
.stats b { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 34px; line-height: 1; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- phone deck ---------- */
.deck-wrap { display: flex; flex-direction: column; align-items: center; }
.deck { position: relative; width: min(300px, 64vw, max(200px, calc((100svh - 240px) * .46))); aspect-ratio: 1206 / 2622; margin: 20px auto 0;
  perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.deck:active { cursor: grabbing; }
.phone { position: absolute; inset: 0; border-radius: 15% / 7%; padding: 3.2%;
  background: linear-gradient(145deg, #2A3038, #0D1014 45%, #1A1F25);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 30px 60px -12px rgba(0,0,0,.75), 0 12px 24px -8px rgba(0,0,0,.6);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s, opacity .6s; will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.4% / 5.8%; pointer-events: none; -webkit-user-drag: none; }
.phone::after { content: ""; position: absolute; inset: 3.2%; border-radius: 12.4% / 5.8%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10), transparent 32%); }
.phone.dragging { transition: none; }
.deck-glow { position: absolute; inset: 15% -30% -5%; background: radial-gradient(closest-side, rgba(53,224,122,.35), transparent);
  filter: blur(30px); z-index: -1; }
.deck-ui { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.deck-ui .label { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  min-width: 96px; text-align: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: #39414C; transition: width .3s, background .3s; }
.dots i.on { width: 22px; background: var(--green); }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.arrow:hover { border-color: var(--green); }
.swipe-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- live drill ---------- */
.drill-sec { padding: 80px 0 90px; position: relative; }
.drill-head { text-align: center; margin-bottom: 26px; }
.drill-head h2 { font-size: clamp(42px, 7vw, 76px); line-height: .95; margin: 10px 0 12px; }
.drill-head h2 span { color: var(--green); }
.drill-head p { color: var(--muted); margin: 0 auto; max-width: 520px; }
.stage-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 50% 35%, #12241A, #0A120D 70%);
  aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(53,224,122,.06) inset; }
#drill-stage { position: absolute; inset: 0; }
.stage-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4,8,6,.55)), linear-gradient(to bottom, rgba(4,8,6,.45), transparent 22%); }
.stage-top { z-index: 2; }
.stage-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted);
  font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: opacity .4s; }
.stage-load.gone { opacity: 0; pointer-events: none; }
.stage-load i { display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid #26302A; border-top-color: var(--green); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-top { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.stage-top .name { font-family: Anton, Impact, sans-serif; font-size: 30px; text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.pill { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(7,9,12,.6); border: 1px solid rgba(255,255,255,.1); padding: 6px 10px; border-radius: 99px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill b { color: var(--green); font-weight: 500; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.chip { font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #3A4450; }
.chip.on { background: var(--green); color: var(--ink); border-color: var(--green); }

/* ---------- closing band ---------- */
.band { text-align: center; padding: 30px 0 100px; }
.band h2 { font-size: clamp(40px, 6.5vw, 72px); line-height: .95; margin: 0 0 26px; }
.band h2 span { color: var(--green); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--text); }

/* legal pages */
.doc { max-width: 760px; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(40px, 8vw, 64px); margin: 8px 0 6px; line-height: 1; }
.doc h2 { font-size: 26px; margin: 40px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc p, .doc li { color: #D9D4CA; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 16px 0; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .hero { padding: 84px 0 30px; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .hero p.lead { margin: 0 auto 26px; font-size: 17px; }
  .stats { justify-content: center; gap: 22px; margin-top: 28px; }
  .deck { width: min(250px, 62vw); margin-top: 36px; }
  .drill-sec { padding: 56px 0 64px; }
  .stage-card { aspect-ratio: 4 / 5; border-radius: 24px; }
  .stage-top .name { font-size: 24px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 16px -16px 0; padding: 0 16px 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 480px) {
  .top nav a { margin-left: 14px; font-size: 14px; }
  .hero { padding-top: 76px; }
  .hero h1 { font-size: 58px; margin: 10px 0 16px; }
  .hero p.lead { font-size: 16px; margin-bottom: 22px; }
  .stats { margin-top: 22px; }
  .deck { margin-top: 30px; }
  .stats b { font-size: 28px; }
  .band { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .phone { transition: none; } }
