:root {
  --bg: #04070a;
  --bg2: #071016;
  --ink: #e8f4f0;
  --muted: #7d908c;
  --accent: #00ffc8;
  --accent-dim: rgba(0, 255, 200, 0.14);
  --line: rgba(232, 244, 240, 0.09);
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The window itself never scrolls — .content is the scroll container.
   Keeps the Spline runtime's cursor mapping viewport-locked. */
html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

::selection { background: var(--accent); color: #02110c; }

/* ---------- Boot screen ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(360px, 80vw); text-align: center; }
.boot-logo {
  font-size: 44px; font-weight: 200; letter-spacing: 0.55em;
  margin-bottom: 28px; padding-left: 0.55em;
  color: var(--ink);
}
.boot-bar {
  height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.boot-fill {
  height: 100%; width: 0%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.25s ease;
}
.boot-lines {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-align: left; min-height: 64px;
  line-height: 1.7; letter-spacing: 0.04em;
}
.boot-lines .ok { color: var(--accent); }

/* ---------- Scene canvas ---------- */
#sceneWrap {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#scene3d {
  width: 100%; height: 100%;
  display: block;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 22px;
  background: rgba(7, 16, 22, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo {
  font-weight: 600; letter-spacing: 0.35em; font-size: 13px;
  color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  letter-spacing: 0.06em; transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; color: #02110c; background: var(--accent);
  text-decoration: none; padding: 8px 18px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(0, 255, 200, 0.55); }

/* ---------- Layout ---------- */
.content {
  position: relative; z-index: 10;
  height: 100%; overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth;
  outline: none;
}
.content::-webkit-scrollbar { width: 9px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 200, 0.18); border-radius: 99px;
}
.content::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 200, 0.35); }

.section {
  min-height: 100vh;
  padding: 120px clamp(24px, 6vw, 90px) 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}

h1 {
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.98; font-weight: 650; letter-spacing: -0.02em;
}
h1 span {
  display: block; font-weight: 200; letter-spacing: 0.02em;
  font-size: clamp(26px, 3.4vw, 44px); color: var(--ink);
  margin-top: 8px;
}
h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.lead {
  color: var(--muted); font-size: 16px; line-height: 1.7;
  max-width: 420px; margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero { justify-content: center; }
.hero-left { max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; font-size: 14px;
  font-weight: 600; letter-spacing: 0.03em; font-family: var(--sans);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent); color: #02110c;
  box-shadow: 0 0 24px rgba(0, 255, 200, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 255, 200, 0.6); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-right {
  position: absolute; right: clamp(24px, 6vw, 90px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 34px; text-align: right;
}
.stat-value {
  font-size: 30px; font-weight: 250; letter-spacing: 0.02em;
  color: var(--ink);
}
.stat-value em { font-style: normal; font-size: 16px; color: var(--accent); }
.stat-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Abilities ---------- */
.section-head { margin-bottom: 48px; max-width: 520px; }
.cards { display: flex; gap: 20px; flex-wrap: wrap; max-width: 560px; }
.card {
  flex: 1 1 240px;
  background: rgba(7, 16, 22, 0.66);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(0, 255, 200, 0.4); transform: translateY(-4px); }
.card-num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent-dim); background: var(--accent-dim);
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Specs ---------- */
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  max-width: 720px;
}
.spec {
  background: rgba(4, 7, 10, 0.82); padding: 26px 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.spec-value { font-size: 32px; font-weight: 250; }
.spec-value em { font-style: normal; font-size: 14px; color: var(--accent); margin-left: 2px; }
.spec-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}

/* ---------- Interact ---------- */
.interact .section-head { max-width: 460px; }
.expr-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink); background: rgba(7, 16, 22, 0.72);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.chip:hover, .chip.active {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 255, 200, 0.25);
}
.hint {
  margin-top: 26px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}

/* ---------- Reserve ---------- */
.reserve { justify-content: center; align-items: center; text-align: center; }
.reserve-box {
  max-width: 560px;
  background: rgba(7, 16, 22, 0.7);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 56px 48px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}
.reserve-box .lead { margin: 18px auto 0; }
.reserve-actions { margin-top: 32px; }
.reserve-ok {
  display: none; margin-top: 24px; padding: 16px 20px;
  border: 1px solid rgba(0, 255, 200, 0.35); border-radius: 12px;
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
}
.reserve-ok.show { display: block; }

.footer {
  position: absolute; bottom: 24px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 90px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-right {
    position: static; transform: none; text-align: left;
    flex-direction: row; gap: 28px; margin-top: 44px;
  }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 100px 22px 70px; }
  .footer { flex-direction: column; gap: 6px; text-align: center; }
}
