/* bustabusta — Landing. Die Insel trägt die Seite: oben die echte 3D-Szene in
   voller Breite, darunter Schiefer, Amber und IBM Plex wie im Spiel. Bewusst
   eine dunkle Fassung — der Himmel des Heros ist das Licht der Seite. */

:root {
  --c-ground:  15  21  28; --c-panel: 22 30 40; --c-sunken: 11 16 22; --c-line: 40 52 66;
  --c-ink:    221 228 236; --c-muted: 125 139 156; --c-accent: 245 166 35; --c-accent2: 86 200 216;
  --c-bust:   226  87  76; --c-win: 122 203 118; --c-sea: 20 80 120; --c-sand: 231 215 168;
  --f-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: rgb(var(--c-ground)); color: rgb(var(--c-ink)); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
code { font-family: var(--f-mono); font-size: .92em; color: rgb(var(--c-accent)); }
sup { font-size: .7em; }
h1, h2 { font-family: var(--f-cond); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--c-accent)); }
:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 9px 14px; border-radius: 3px; background: rgb(var(--c-accent)); color: rgb(var(--c-ground)); border: 1px solid rgb(var(--c-accent)); transition: filter .12s, border-color .12s, color .12s, background .12s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: rgb(var(--c-ground) / .35); color: #fff; border-color: rgb(255 255 255 / .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgb(var(--c-accent)); color: rgb(var(--c-accent)); filter: none; }
.btn-big { font-size: 13px; padding: 13px 20px; }

/* ── Kopf, über dem Himmel ────────────────────────────────────────── */
.top { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.top-in { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--f-cond); font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a:not(.btn) { font-size: 14px; color: rgb(255 255 255 / .85); text-decoration: none; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.nav a:not(.btn):hover { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ── Hero: die Insel in voller Breite ─────────────────────────────── */
.hero { position: relative; min-height: 560px; height: clamp(560px, 82vh, 860px); overflow: hidden; background: #6fb8e8; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgb(8 14 22 / .74) 0%, rgb(8 14 22 / .48) 34%, rgb(8 14 22 / 0) 60%),
  linear-gradient(180deg, rgb(8 14 22 / .28) 0%, rgb(8 14 22 / 0) 24%, rgb(8 14 22 / 0) 78%, rgb(8 14 22 / .2) 100%); }
.hero-in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; height: 100%; padding: 92px 20px 110px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
@media (max-width: 880px) {
  .hero { height: auto; min-height: 100svh; }
  .hero-in { grid-template-columns: minmax(0, 1fr); align-content: end; padding: 150px 20px 96px; }
  .hero-scrim { background: linear-gradient(180deg, rgb(8 14 22 / .3) 0%, rgb(8 14 22 / 0) 20%, rgb(8 14 22 / .5) 42%, rgb(8 14 22 / .9) 66%, rgb(8 14 22 / .96) 100%); }
  .lede { font-size: 16px; }
  .top .btn-ghost { display: none; }
}
.hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
h1 { font-size: clamp(40px, 5.6vw, 68px); color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
.lede { font-size: 18px; color: rgb(255 255 255 / .85); max-width: 48ch; text-shadow: 0 1px 8px rgb(0 0 0 / .45); }
.lede strong { color: #fff; font-weight: 500; }
.cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-note { font-family: var(--f-mono); font-size: 11.5px; color: rgb(255 255 255 / .7); max-width: 56ch; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }

.hero-readout { justify-self: end; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; text-align: right; }
@media (max-width: 880px) { .hero-readout { display: none; } }
.hero-mult { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(44px, 6vw, 72px); line-height: .95; letter-spacing: -.035em; color: rgb(var(--c-accent)); text-shadow: 0 2px 24px rgb(var(--c-accent) / .3), 0 1px 3px rgb(0 0 0 / .5); }
.hero-readout[data-phase="wait"] .hero-mult { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.hero-readout[data-phase="bust"] .hero-mult { color: rgb(var(--c-bust)); text-shadow: 0 2px 24px rgb(var(--c-bust) / .35), 0 1px 3px rgb(0 0 0 / .5); }
.hero-sub { font-family: var(--f-mono); font-size: 12px; color: #eef2f6; opacity: .9; text-shadow: 0 1px 6px rgb(0 0 0 / .6); font-variant-numeric: tabular-nums; }
.hero-pills { display: flex; gap: 5px; margin-top: 6px; }
.hero-pills span { font-family: var(--f-mono); font-size: 11px; font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 2px; background: rgb(8 14 22 / .6); color: #eef2f6; border: 1px solid rgb(255 255 255 / .14); }
.hero-pills span.hot { background: rgb(var(--c-accent)); color: rgb(var(--c-ground)); border-color: rgb(var(--c-accent)); }
.hero-pills span.low { color: #ff9a8f; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 2; }
.wave path { fill: rgb(var(--c-ground)); }

/* ── Inhalt ───────────────────────────────────────────────────────── */
.page { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 56px 40px; display: flex; flex-direction: column; gap: 92px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 880px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid rgb(var(--c-accent)); }
.pillar h2 { font-size: 22px; }
.pillar p { color: rgb(var(--c-muted)); font-size: 15px; }
.pillar em { font-style: normal; color: rgb(var(--c-ink)); }

/* ── Vitrine ──────────────────────────────────────────────────────── */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
@media (max-width: 880px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.showcase-text { display: flex; flex-direction: column; gap: 14px; }
.showcase-text p { color: rgb(var(--c-muted)); }
.tiers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiers button { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; transition: border-color .12s; }
.tiers button:hover { border-color: rgb(var(--c-accent) / .6); }
.tiers button[aria-pressed="true"] { border-color: rgb(var(--c-accent)); box-shadow: 0 0 0 1px rgb(var(--c-accent) / .5) inset; }
.tiers b { font-family: var(--f-cond); font-weight: 700; font-size: 15px; }
.tiers span { font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.showcase-stage { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 520px; background:
  radial-gradient(ellipse at 50% 100%, rgb(var(--c-sea) / .9), rgb(var(--c-sea) / 0) 60%),
  linear-gradient(180deg, #2f7fd0 0%, #7fc6e6 55%, #bfe3f2 100%); }
.showcase-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.showcase-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 11.5px; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .6); pointer-events: none; }

/* ── So geht's ────────────────────────────────────────────────────── */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
@media (max-width: 880px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how-head { display: flex; flex-direction: column; gap: 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 16px 0; border-top: 1px solid rgb(var(--c-line)); color: rgb(var(--c-muted)); font-size: 15px; }
.steps li::before { content: counter(s); grid-row: 1 / 3; font-family: var(--f-mono); font-weight: 600; font-size: 22px; color: rgb(var(--c-accent)); line-height: 1.1; }
.steps b { grid-column: 2; color: rgb(var(--c-ink)); font-weight: 700; font-family: var(--f-cond); font-size: 17px; }
.steps p { grid-column: 2; }

/* ── Fairness ─────────────────────────────────────────────────────── */
.fair { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; align-items: start; }
@media (max-width: 880px) { .fair { grid-template-columns: minmax(0, 1fr); } }
.fair-text { display: flex; flex-direction: column; gap: 14px; }
.fair-text p { color: rgb(var(--c-muted)); }
.fair-text em { font-style: italic; color: rgb(var(--c-ink)); }
.fair-text .small { font-size: 14px; }
.formula { background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.formula-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-muted)); }
.formula-body { font-family: var(--f-mono); font-size: 13px; color: rgb(var(--c-muted)); display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.formula-main { color: rgb(var(--c-accent)); font-weight: 600; font-size: 15px; padding-top: 4px; }
.formula-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-family: var(--f-mono); font-size: 12.5px; border-top: 1px solid rgb(var(--c-line)); padding-top: 12px; }
.formula-facts dt { color: rgb(var(--c-muted)); }
.formula-facts dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }

/* ── Schluss ──────────────────────────────────────────────────────── */
.closing-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 32px 0 0; border-top: 1px solid rgb(var(--c-line)); }
.closing-cta p { color: rgb(var(--c-muted)); max-width: 62ch; }
.closing-cta .btn-ghost { background: transparent; color: rgb(var(--c-ink)); border-color: rgb(var(--c-line)); backdrop-filter: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-muted)); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.langs { display: flex; gap: 4px; }
.flag { background: none; border: 1px solid transparent; border-radius: 3px; padding: 3px 4px; line-height: 0; cursor: pointer; opacity: .6; transition: opacity .12s, border-color .12s; }
.flag:hover { opacity: 1; }
.flag[aria-pressed="true"] { opacity: 1; border-color: rgb(var(--c-accent)); }
.flag svg { display: block; border-radius: 2px; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
