:root {
  --bg: #0b0b14;
  --card: #151524;
  --line: #26263a;
  --text: #f1f1f7;
  --muted: #9a9ab5;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --accent: #7c5cff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
body { min-height: 100vh; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }

.hero {
  padding: 56px 20px 40px;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    linear-gradient(180deg, #12122a, var(--bg));
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(30px, 7vw, 60px); line-height: 1.05; margin: 0 auto 16px; max-width: 900px; letter-spacing: -.02em; }
.byline { font-size: 18px; margin: 0 0 10px; }
.byline strong { color: color-mix(in srgb, var(--accent) 60%, white); }
.tagline { color: var(--muted); margin: 0 auto; max-width: 620px; }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 80px; display: grid; gap: 16px; }

.live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; }
.num { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; transition: color .3s; }
.lbl { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
@media (max-width: 520px) { .live { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.version { display: flex; gap: 12px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warn); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.v-title { font-weight: 600; }
.v-title code { background: #0e0e1a; padding: 2px 6px; border-radius: 6px; color: #c4b5fd; }
.v-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.product { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.emoji { font-size: 44px; }
.product h2 { margin: 0; font-size: 20px; }
.price { margin: 4px 0 0; font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.buy { width: 100%; border: 0; border-radius: 12px; padding: 16px; font-size: 18px; font-weight: 700; color: white; background: var(--accent); cursor: pointer; transition: transform .05s; }
.buy:active { transform: scale(.98); }
.buy:disabled { opacity: .6; }
.result { color: var(--muted); font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.result.ok { color: var(--ok); } .result.slow { color: var(--warn); } .result.bad { color: var(--bad); }

.flash { border-color: var(--bad); background: linear-gradient(180deg, #2a0f14, var(--card)); text-align: center; animation: glow 1.2s infinite alternate; }
.flash h2 { margin: 0 0 6px; }
.flash p { color: #fca5a5; margin: 0 0 14px; }
.flash-btn { background: var(--bad); font-size: 22px; padding: 22px; }
.flash-stats { margin-top: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes glow { to { box-shadow: 0 0 30px rgba(239, 68, 68, .35); } }

.journey h3 { margin: 0 0 12px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.steps b { color: var(--text); display: inline-block; min-width: 44px; }
.link { display: inline-block; margin-top: 14px; color: #c4b5fd; font-weight: 600; text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1f1f35; border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: calc(100vw - 32px); z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.success { border-color: var(--ok); } .toast.failure { border-color: var(--bad); }
.overload { position: fixed; top: 0; left: 0; right: 0; background: var(--bad); color: white; text-align: center; padding: 10px 16px; font-weight: 700; z-index: 15; animation: blink 1s infinite alternate; }
@keyframes blink { to { background: #b91c1c; } }

.deploy-overlay { position: fixed; inset: 0; background: rgba(8, 8, 20, .95); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; z-index: 50; }
.deploy-overlay h2 { font-size: clamp(30px, 8vw, 56px); margin: 10px 0; }
.deploy-overlay p { color: #c4b5fd; font-size: 18px; max-width: 600px; }
.deploy-overlay .small { color: var(--muted); font-size: 14px; }
.rocket { font-size: 90px; animation: launch 1.4s ease-in infinite; }
@keyframes launch { 0% { transform: translateY(20px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(20px); } }

.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
