@font-face { font-family: "Bricolage Grotesque"; src: url(/landing/fonts/BricolageGrotesque_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/landing/fonts/BricolageGrotesque_500Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/landing/fonts/BricolageGrotesque_600SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/landing/fonts/BricolageGrotesque_700Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/landing/fonts/MartianMono_600SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0F0B22; --surface: #17122F; --line: #2D2657;
  --text: #F2EEFF; --muted: #A79FC9; --faint: #6B6494;
  --gold: #F5D77A; --on-gold: #1A1400; --focus: #9BB7FF;
  --planeta: #7B68EE; --kontinent: #5A8DEE; --zeme: #3FB0E0; --mesto: #2CC4B4;
  --ulice: #6ED08F; --roh: #E5B84B; --dvere: #F7D97F; --nachlup: #FFF6D6;
  --col: 640px; --gutter: 24px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
}

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.45 var(--font); color: var(--text); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

#galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#route { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 1; pointer-events: none; overflow: visible; }
#route-path { fill: none; stroke: url(#route-gradient); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#route-tip { fill: var(--dvere); color: var(--dvere); filter: drop-shadow(0 0 6px currentColor); opacity: 0; }

.top, main, .foot { position: relative; z-index: 2; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: var(--col); margin: 0 auto; padding: 20px var(--gutter); box-sizing: border-box; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark .logo { width: 36px; height: 36px; flex: none; }
.top-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.top-link:hover { color: var(--text); }

.hero { max-width: var(--col); margin: 0 auto; padding: 18vh var(--gutter) 22vh; min-height: 82vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
h1 { font-weight: 700; font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -0.025em; margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); margin: 0 0 32px; max-width: 26ch; line-height: 1.3; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 17px; text-decoration: none; }
.cta:hover { background: #FFE49A; }
.quiet { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.quiet:hover { color: var(--text); }
.anchor { display: block; width: 0; height: 0; margin-top: 28px; }

.replay { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.replay h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 8vh; text-align: center; letter-spacing: 0.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(180px, 34vh, 360px); }
.step { position: relative; max-width: 400px; opacity: 0.45; transition: opacity .5s ease; }
.step:nth-child(even) { margin-left: auto; text-align: right; }
.step.is-reached { opacity: 1; }
.dot { position: absolute; top: 14px; left: -40px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--band); background: var(--bg); box-sizing: border-box; transition: background .3s ease, box-shadow .3s ease; }
.step:nth-child(even) .dot { left: auto; right: -40px; }
.step.is-reached .dot { background: var(--band); box-shadow: 0 0 12px var(--band); }
.word { display: block; font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.number { display: block; font: 600 44px/1 var(--mono); color: var(--band); letter-spacing: -0.04em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; transform: scale(0.94); transform-origin: left center; filter: saturate(0.5); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease; }
.step:nth-child(even) .number { transform-origin: right center; }
.step.is-reached .number { transform: none; filter: none; }
.band { display: block; font-weight: 500; font-size: 13px; color: var(--band); }
.note { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

.facts { background: var(--surface); max-width: var(--col); margin: 22vh auto 0; padding: 8px var(--gutter); box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.facts p { margin: 0; padding: 22px 18px; font-weight: 500; font-size: 17px; border-left: 1px solid var(--line); }
.facts p:first-child { border-left: 0; padding-left: 0; }

.closing { max-width: var(--col); margin: 0 auto; padding: 22vh var(--gutter) 14vh; box-sizing: border-box; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing .anchor { margin: 0; }
.closing h2 { font-weight: 700; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
.fine { color: var(--muted); font-size: 15px; margin: 0; max-width: 40ch; }

.foot { max-width: var(--col); margin: 0 auto; padding: 24px var(--gutter) 40px; box-sizing: border-box; display: flex; justify-content: space-between; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 24px; }

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hero { min-height: 88vh; padding-top: 12vh; }
  .step { max-width: 78%; }
  .dot { left: -18px; }
  .step:nth-child(even) .dot { left: auto; right: -18px; }
  .facts { grid-template-columns: 1fr; padding: 0 var(--gutter); border-left: 0; border-right: 0; border-radius: 0; }
  .facts p { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .facts p:first-child { border-top: 0; }
  #route-path { stroke-width: 2.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .dot, .number { transition: none; }
}
