:root {
  --space: #05060a;
  --text: #e8ecf5;
  --muted: #7d8597;
  --cyan: #7cf4ff;
  --warm: #ffa35c;
  --glass: rgba(255, 255, 255, 0.045);
  --edge: rgba(255, 255, 255, 0.12);
  --display: "Syne", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--space);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; color: var(--cyan); }
::selection { background: var(--cyan); color: var(--space); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.tag { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.08em; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.6vw, 92px); line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in { display: inline-block; }
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- universe ---------- */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,0.55)); }
main, .footer { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--space); }
.loader__label, .loader__status { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.loader__count { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 16vw, 220px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.loader__count span { color: var(--cyan); }
.loader__bar { width: min(320px, 70vw); height: 2px; background: rgba(255,255,255,0.1); }
.loader__bar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform-origin: left; transform: scaleX(0); }
.flash { position: fixed; inset: 0; z-index: 99; background: #fff; pointer-events: none; }

/* ---------- cursor, toast, credit ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; width: 0; height: 0; }
.cursor__h, .cursor__v { position: absolute; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: transform .35s var(--ease); }
.cursor__h { left: -12px; top: -0.5px; width: 24px; height: 1px; }
.cursor__v { top: -12px; left: -0.5px; width: 1px; height: 24px; }
.cursor.is-hover .cursor__h, .cursor.is-hover .cursor__v { transform: scale(1.8) rotate(45deg); }
.cursor__xy { position: absolute; left: 14px; top: 10px; font-size: 10px; color: var(--cyan); white-space: nowrap; opacity: .85; }
@media (hover: none) { .cursor { display: none; } }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 95; transform: translate(-50%, 160%); padding: 12px 20px; border-radius: 999px; background: rgba(5,6,10,0.9); border: 1px solid var(--cyan); color: var(--cyan); font-size: 13px; white-space: nowrap; transition: transform .6s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.credit { position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 8px 14px; border-radius: 999px; font-size: 11px; background: rgba(5,6,10,0.7); border: 1px solid var(--edge); backdrop-filter: blur(10px); transition: border-color .3s, color .3s; }
.credit:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 30px; padding: 20px 28px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.08em; }
.nav__logo svg { color: var(--text); }
.nav__links { display: flex; gap: 24px; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: var(--cyan); }
.nav__status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.nav__status .countdown { color: var(--text); font-variant-numeric: tabular-nums; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #4dff9a; box-shadow: 0 0 10px #4dff9a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background .3s, color .3s, box-shadow .3s; }
.btn--glow { background: var(--cyan); color: var(--space); box-shadow: 0 0 24px rgba(124,244,255,0.45); }
.btn--glow:hover { box-shadow: 0 0 40px rgba(124,244,255,0.8); }
.btn--line { border: 1px solid var(--edge); }
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--wide { width: 100%; padding: 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; }
.hero__hud { position: absolute; top: 110px; right: 28px; display: grid; gap: 10px; font-size: 12px; text-align: right; }
.hero__hud div { display: flex; flex-direction: column; }
.hero__hud .k { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero__hud .v { font-variant-numeric: tabular-nums; }
.hero__title { position: absolute; left: 28px; top: 22vh; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(52px, 8.4vw, 150px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; text-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.hero__foot { position: absolute; left: 28px; bottom: 70px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__sub { margin: 0; max-width: 360px; color: #c6ccda; }
.hero__seats { position: absolute; right: 28px; bottom: 70px; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.hero__seats b { font-family: var(--display); font-size: 44px; color: var(--text); letter-spacing: -0.02em; }

/* ---------- manifesto ---------- */
.manifesto { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 20vh 8vw; }
.manifesto__text { margin: 0; max-width: 1150px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.8vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }

/* ---------- trip ---------- */
.trip { position: relative; height: 100vh; }
.trip__panel { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); width: min(430px, 88vw); padding: 28px; }
.trip__steps { display: flex; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 11px; text-transform: uppercase; }
.trip__steps li { flex: 1; padding-top: 10px; border-top: 2px solid rgba(255,255,255,0.12); color: var(--muted); transition: color .4s, border-color .4s; }
.trip__steps li span { display: block; color: inherit; opacity: .7; }
.trip__steps li.is-on { color: var(--cyan); border-color: var(--cyan); }
.trip__title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; min-height: 1em; }
.trip__desc { margin: 0; color: #c6ccda; min-height: 3.1em; }
.trip__gauges { position: absolute; right: 28px; bottom: 60px; display: flex; gap: 14px; align-items: flex-end; }
.gauge { display: flex; flex-direction: column; min-width: 128px; padding: 14px 16px; border-radius: 16px; background: rgba(5,6,10,0.55); border: 1px solid var(--edge); backdrop-filter: blur(10px); }
.gauge .k { font-size: 10px; color: var(--cyan); letter-spacing: 0.16em; }
.gauge .v { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.gauge .u { font-size: 10px; color: var(--muted); }
.trip__progress { position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: rgba(255,255,255,0.1); }
.trip__progress i { display: block; height: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--cyan); }

/* ---------- capsule bento ---------- */
.capsule { padding: 22vh 5vw 14vh; }
.capsule__head { margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.cell { padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.cell--radar { grid-column: span 2; grid-row: span 2; flex-direction: row; align-items: center; gap: 28px; }
.cell--orbit { grid-column: span 2; }
.cell--bars { grid-column: span 2; flex-direction: row; align-items: flex-end; gap: 24px; }
.cell .big { display: block; font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.cell h3 { margin: 10px 0 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cyan); }
.cell p { margin: 0; font-size: 14px; color: var(--muted); }
.radar { width: 52%; flex: none; }
.radar circle, .radar path { fill: none; stroke: rgba(124,244,255,0.3); stroke-width: 1; }
.radar__sweep { transform-origin: 100px 100px; animation: sweep 4s linear infinite; }
.radar__sweep path { fill: rgba(124,244,255,0.18); stroke: none; }
.radar .blip { fill: var(--cyan); stroke: none; animation: blink 2s ease-in-out infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.orbitsvg { width: 100%; max-height: 120px; margin-bottom: 10px; }
.orbitsvg ellipse { fill: none; stroke: rgba(124,244,255,0.35); stroke-dasharray: 4 5; }
.orbitsvg .earth { fill: #1d5ea8; }
.orbitsvg .sat { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 130px; flex: none; width: 45%; }
.bars i { flex: 1; height: var(--h); border-radius: 4px; background: linear-gradient(180deg, var(--cyan), rgba(124,244,255,0.1)); transform-origin: bottom; }

/* ---------- itinerary ---------- */
.itinerary__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.itinerary__head { padding: 0 5vw; margin-bottom: 6vh; }
.itinerary__track { position: relative; display: flex; gap: 28px; padding: 40px 5vw 40px; width: max-content; will-change: transform; }
.itinerary__path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.itinerary__path path { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 5 7; opacity: .6; }
.day { position: relative; width: clamp(260px, 26vw, 380px); flex: none; padding: 26px; }
.day:nth-child(odd) { margin-top: 70px; }
.day__when { margin: 0 0 18px; font-size: 12px; color: var(--cyan); }
.day h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.day p { margin: 0; font-size: 14px; color: var(--muted); }
.day__tag { position: absolute; top: 22px; right: 22px; font-size: 11px; color: var(--muted); }

/* ---------- book ---------- */
.book { padding: 18vh 5vw 16vh; }
.book__head { margin-bottom: 44px; }
.book__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.seatmap, .summary { padding: 28px; }
.k { margin: 0 0 14px; font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.seats { display: block; width: min(100%, 380px); margin: 0 auto; }
.seats .hull { fill: rgba(124,244,255,0.04); stroke: rgba(124,244,255,0.4); stroke-width: 1.5; }
.seats .dome { fill: none; stroke: rgba(124,244,255,0.2); stroke-dasharray: 3 5; }
.seats .seat { cursor: pointer; }
.seats .seat circle { fill: rgba(255,255,255,0.06); stroke: rgba(232,236,245,0.5); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.seats .seat text { fill: var(--text); font-family: var(--mono); font-size: 13px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.seats .seat:hover circle { stroke: var(--cyan); }
.seats .seat.is-taken { cursor: not-allowed; }
.seats .seat.is-taken circle { fill: rgba(255,255,255,0.02); stroke: rgba(232,236,245,0.15); }
.seats .seat.is-taken text { fill: var(--muted); }
.seats .seat.is-pick circle { fill: var(--cyan); stroke: var(--cyan); filter: drop-shadow(0 0 10px var(--cyan)); }
.seats .seat.is-pick text { fill: var(--space); }
.legend { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 1px solid var(--text); }
.legend .l-taken { opacity: .3; } .legend .l-pick { background: var(--cyan); border-color: var(--cyan); }
.dates { display: flex; gap: 8px; margin-bottom: 24px; }
.date { flex: 1; padding: 12px 0; border-radius: 12px; border: 1px solid var(--edge); font-size: 13px; transition: all .3s; }
.date.is-on { border-color: var(--cyan); color: var(--cyan); background: rgba(124,244,255,0.08); }
.summary__rows div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--edge); font-size: 13px; }
.summary__rows span { color: var(--muted); }
.summary__rows b { font-weight: 500; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 22px; border-top: 1px solid var(--edge); }
.summary__total span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.summary__total b { font-family: var(--display); font-size: 44px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fine { margin: 12px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.footer { padding: 16vh 5vw 30px; }
.footer__big { margin: 0 0 12vh; font-family: var(--display); font-weight: 800; font-size: 11.5vw; white-space: nowrap; line-height: 0.85; letter-spacing: -0.05em; text-transform: uppercase; }
.footer__row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; font-size: 13px; }
.footer__row h5 { margin: 0 0 10px; font-size: 11px; font-weight: 500; color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; }
.footer__row p { margin: 0; }
.footer__row a:hover { color: var(--cyan); }
.clock { font-size: 22px; font-variant-numeric: tabular-nums; }
.footer__base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 11px; color: var(--muted); }
.footer__base strong { color: var(--cyan); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { gap: 12px; padding: 16px; }
  .nav__links, .nav__status { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__hud { top: 84px; right: 16px; font-size: 11px; }
  .hero__title { left: 16px; right: 16px; top: 30vh; font-size: 38px; }
  .hero__foot { left: 16px; right: 16px; bottom: 64px; }
  .hero__seats { display: none; }
  .trip__panel { left: 16px; right: 16px; top: 90px; width: auto; transform: none; padding: 20px; }
  .trip__title { font-size: 34px; }
  .trip__desc { font-size: 14px; }
  .trip__gauges { left: 16px; right: 16px; bottom: 56px; gap: 8px; }
  .gauge { min-width: 0; flex: 1; padding: 10px; }
  .gauge .v { font-size: 17px; }
  .bento { grid-template-columns: 1fr; }
  .cell--radar, .cell--orbit, .cell--bars { grid-column: auto; grid-row: auto; }
  .cell--radar { flex-direction: column; align-items: flex-start; }
  .radar { width: 60%; }
  .day:nth-child(odd) { margin-top: 0; }
  .book__grid { grid-template-columns: 1fr; }
  .credit { font-size: 10px; left: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar__sweep, .radar .blip, .live { animation: none; }
}
