:root {
  --blue: #0a5bd3;
  --blue-deep: #06307a;
  --ink: #0b1220;
  --r: #e40303; --o: #ff8c00; --y: #ffed00; --g: #008026; --b: #004dff; --v: #750787;
  --ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ui); background: var(--blue); color: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: var(--mono); }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 48, 122, .55); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 6px; }
nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 14px; }
nav a { text-decoration: none; opacity: .85; }
nav a:hover { opacity: 1; }
nav .x { padding: 4px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }

/* hero crash screen */
.crash { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--blue); }
.paint { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); }
/* bands sweep in from the right, staircase like the banner; capped so the text column stays on blue */
.paint { --max: 44vw; }
.paint i { display: block; margin-left: auto; width: 0; transition: width .35s linear; }
.paint i:nth-child(1) { --k: 1; } .paint i:nth-child(2) { --k: .93; } .paint i:nth-child(3) { --k: .86; }
.paint i:nth-child(4) { --k: .79; } .paint i:nth-child(5) { --k: .72; } .paint i:nth-child(6) { --k: .65; }
@media (max-width: 760px) { .paint { --max: 13vw; } .crash .crash-inner { padding-right: 17vw; } }
.paint i:nth-child(1) { background: var(--r); }
.paint i:nth-child(2) { background: var(--o); transition-delay: .03s; }
.paint i:nth-child(3) { background: var(--y); transition-delay: .06s; }
.paint i:nth-child(4) { background: var(--g); transition-delay: .09s; }
.paint i:nth-child(5) { background: var(--b); transition-delay: .12s; }
.paint i:nth-child(6) { background: var(--v); transition-delay: .15s; }
.crash-inner {
  position: relative; width: min(1080px, 100%); margin: 0 auto;
  padding: 120px clamp(20px, 6vw, 80px) 72px;
  text-shadow: 0 2px 0 rgba(0,0,0,.28), 0 0 24px rgba(0,0,0,.18);
}
.face { font-size: clamp(110px, 18vw, 200px); font-weight: 300; line-height: 1; margin-bottom: 28px; }
h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 300; line-height: 1.2; max-width: 19ch; }
.sub { font-size: clamp(17px, 2vw, 22px); font-weight: 300; margin-top: 18px; max-width: 46ch; opacity: .95; }
.pct { font-size: clamp(20px, 2.4vw, 26px); font-weight: 300; margin-top: 30px; font-variant-numeric: tabular-nums; }
.stop { display: flex; gap: 22px; align-items: flex-start; margin-top: 44px; }
.stop canvas { flex: none; background: #fff; padding: 6px; border-radius: 2px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.stop-text { font-size: 14px; line-height: 1.55; font-weight: 400; max-width: 52ch; }
.stop-text p + p { margin-top: 8px; }
.code { font-family: var(--mono); font-size: 13px; }
.ca {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 10px 10px 10px 16px; border-radius: 10px;
  background: rgba(6, 22, 60, .72); border: 1px solid rgba(255,255,255,.22);
  text-shadow: none; max-width: 100%;
}
.ca-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.ca code { font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 7px; border: 0; background: #fff; color: var(--blue-deep);
}
.ca button:disabled { opacity: .45; cursor: default; }

/* sections */
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 clamp(20px, 6vw, 80px); }
section:not(.crash) { padding: clamp(72px, 10vw, 120px) 0; }
.kicker { font-family: var(--mono); font-size: 13px; opacity: .7; margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 300; line-height: 1.15; max-width: 22ch; }

.lore { background: var(--blue-deep); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; font-size: 17px; line-height: 1.65; font-weight: 300; }
.cols b { font-weight: 600; }

.log { background: var(--ink); }
.terminal { margin-top: 36px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #070b14; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #111827; font-family: var(--mono); font-size: 12px; color: #9aa4b2; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3342; }
.term-bar span { margin-left: 8px; }
#log-lines { list-style: none; padding: 16px 18px; height: 300px; overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.75; display: flex; flex-direction: column; justify-content: flex-end; }
#log-lines li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9d1dc; animation: in .25s ease-out; }
#log-lines .t { color: #5d6b80; margin-right: 10px; }
#log-lines .lvl { display: inline-block; width: 58px; font-weight: 700; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

.codes { background: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 12px; background: rgba(6, 22, 60, .45); border-top: 6px solid; }
.card .hex { font-family: var(--mono); font-size: 12px; opacity: .6; }
.card b { font-size: 30px; font-weight: 400; }
.card small { font-size: 14px; opacity: .8; }
.card.r { border-color: var(--r); } .card.o { border-color: var(--o); } .card.y { border-color: var(--y); }
.card.g { border-color: var(--g); } .card.b { border-color: var(--b); } .card.v { border-color: var(--v); }

.buy { background: var(--blue-deep); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 70px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 16px; line-height: 1.55; font-weight: 300; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 18px; font-size: 32px; font-weight: 300; opacity: .6; }
.steps b { font-weight: 600; display: block; margin-bottom: 2px; }
.cta {
  display: inline-block; margin-top: 36px; padding: 16px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--blue-deep);
  border: 4px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(90deg, var(--r), var(--o), var(--y), var(--g), var(--b), var(--v)) border-box;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cta:hover { filter: brightness(1.08); }

footer { background: var(--ink); text-align: center; padding-bottom: 32px; }
footer .stripes { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; margin-bottom: 28px; }
footer .stripes i:nth-child(1) { background: var(--r); } footer .stripes i:nth-child(2) { background: var(--o); }
footer .stripes i:nth-child(3) { background: var(--y); } footer .stripes i:nth-child(4) { background: var(--g); }
footer .stripes i:nth-child(5) { background: var(--b); } footer .stripes i:nth-child(6) { background: var(--v); }
footer p { font-size: 13px; opacity: .6; max-width: 70ch; margin: 0 auto; padding: 0 20px; line-height: 1.6; }

@media (max-width: 760px) {
  nav a:not(.x) { display: none; }
  .cols, .grid, .steps { grid-template-columns: 1fr; }
  .stop { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .paint i { transition: none; }
  #log-lines li { animation: none; }
}
