/* ═══════════════════════════════════════════════════════════
   Starsea · 星辰大海 — landing page
   Palette: deep space · starlight paper · a single warm gold
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #04070d;
  --paper: #e9ebef;
  --muted: rgba(233, 235, 239, 0.58);
  --faint: rgba(233, 235, 239, 0.36);
  --line: rgba(233, 235, 239, 0.1);
  --line-2: rgba(233, 235, 239, 0.17);
  --accent: #e2c894;
  --accent-dim: rgba(226, 200, 148, 0.55);
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--sans);
  color: var(--paper);
  background:
    radial-gradient(1100px 640px at 50% -12%, rgba(88, 118, 168, 0.16), transparent 62%),
    radial-gradient(900px 560px at 86% 6%, rgba(226, 200, 148, 0.05), transparent 60%),
    linear-gradient(180deg, #04070d 0%, #050a13 52%, #061019 100%);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(226, 200, 148, 0.25); color: var(--paper); }

a { color: inherit; }
button { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(226, 200, 148, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: #05080e;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ── Icons ─────────────────────────────────────────────── */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.ic-mark,
.ic-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill { fill: currentColor; stroke: none; }

/* ═══ Scene · 星辰大海 ═══════════════════════════════════ */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sky { position: absolute; inset: 0; }

.horizon {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 40%;
  height: 32%;
  background: radial-gradient(52% 58% at 50% 64%, rgba(226, 200, 148, 0.09), rgba(226, 200, 148, 0) 70%);
  filter: blur(9px);
}
.horizon::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 235, 239, 0.1), transparent);
}

.sea { left: 0; right: 0; }
.sea-far {
  height: calc(58% + 48px);
  bottom: -24px;
  opacity: 0.85;
  animation: swell-far 19s ease-in-out infinite alternate;
}
.sea-near {
  height: calc(34% + 48px);
  bottom: -24px;
  opacity: 0.95;
  animation: swell-near 13s ease-in-out infinite alternate;
}
@keyframes swell-far {
  from { transform: translateY(5px); }
  to { transform: translateY(-14px); }
}
@keyframes swell-near {
  from { transform: translateY(10px); }
  to { transform: translateY(-20px); }
}

.meteors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.water-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -4%;
  height: 44%;
  background: radial-gradient(55% 82% at 50% 102%, rgba(146, 176, 214, 0.14), rgba(146, 176, 214, 0) 70%);
}

.halo {
  position: fixed;
  left: 0;
  top: 0;
  width: 540px;
  height: 540px;
  margin: -270px 0 0 -270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 200, 148, 0.09), rgba(226, 200, 148, 0.03) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.halo.on { opacity: 1; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 10%, transparent 46%, rgba(3, 5, 10, 0.52) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.5), transparent 15%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

main,
.footer { position: relative; z-index: 2; }

/* ═══ Nav ════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(4, 7, 13, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark { width: 20px; height: 20px; color: var(--accent); flex: none; }
.brand-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.brand:hover .brand-mark { color: #f0dbae; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--paper); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-gh { color: var(--muted); font-size: 13px; text-decoration: none; transition: color 0.25s; }
.nav-gh:hover { color: var(--paper); }
.gh-arrow { font-size: 11px; color: var(--faint); }

.nav-auth-link {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s;
}
.nav-auth-link:hover { color: var(--paper); }
.nav-auth-link[data-auth="register"] { color: var(--paper); }

/* ═══ Buttons ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--paper); color: #05080e; }
.btn-primary:hover {
  background: #f6f7f8;
  box-shadow: 0 0 0 1px rgba(226, 200, 148, 0.55), 0 10px 44px rgba(226, 200, 148, 0.16);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn .ic { font-size: 13px; }

.btn-nav { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 34px; font-size: 15px; }

/* ═══ Auth dialog ════════════════════════════════════════ */
.auth {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  width: min(420px, 92vw);
  margin: auto;
  overflow: auto;
  scrollbar-width: none;
}
.auth::-webkit-scrollbar { display: none; }
.auth::backdrop {
  background: rgba(3, 5, 10, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.auth-card {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.97), rgba(6, 10, 17, 0.97));
  padding: 24px 28px 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.auth[open] .auth-card {
  animation: auth-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}
.auth-head { display: flex; align-items: center; gap: 10px; }
.auth-head .brand-mark { width: 18px; height: 18px; color: var(--accent); }
.auth-head .brand-name { font-size: 11.5px; letter-spacing: 0.24em; font-weight: 600; }
.auth-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.auth-close:hover { color: var(--paper); border-color: var(--line-2); }

.auth-tabs {
  display: flex;
  gap: 26px;
  margin: 20px 0 20px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  position: relative;
  padding: 0 2px 12px;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}
.auth-tab:hover { color: var(--paper); }
.auth-tab.is-on { color: var(--paper); }
.auth-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(226, 200, 148, 0.2));
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder { color: rgba(233, 235, 239, 0.25); }
.field input:focus {
  border-color: rgba(226, 200, 148, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 200, 148, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.auth-hint {
  margin: -2px 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.auth-msg {
  min-height: 18px;
  margin: 2px 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--accent);
}
.auth-msg.err { color: #e9a897; }
.auth-submit { width: 100%; justify-content: center; }
body.modal-open { overflow: hidden; }

/* ═══ Hero ═══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 148px 20px 110px;
}
.hero-inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.wordmark {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.74em;
  text-indent: 0.74em;
  color: var(--faint);
}

.title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(74px, 13.5vw, 196px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.1em;
  padding-left: 0.1em;
  background: linear-gradient(180deg, #f3f4f6 6%, #dfe3e9 44%, #97a2b2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 12px 64px rgba(226, 200, 148, 0.09));
}

.lede {
  margin-top: 30px;
  max-width: 36em;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.meta {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.meta b {
  font-weight: 400;
  margin: 0 8px;
  color: rgba(233, 235, 239, 0.22);
}

/* ── Terminal demo ── */
.term {
  margin-top: 58px;
  width: min(640px, 100%);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 10, 17, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.95;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.term-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(233, 235, 239, 0.18);
}
.term-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.term-body { padding: 18px 22px 20px; }

.tl { color: #c7d0dc; }
.tl .p { color: var(--accent); margin-right: 8px; }
.tl .s { color: #a9b7c6; }
.tl.dim { color: var(--faint); }
.tl.ok { color: var(--accent); margin-top: 12px; }
.tl.ok span { margin-right: 6px; }

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--accent);
  opacity: 0.8;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-plan {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}
.term-plan.open { max-height: 130px; opacity: 1; }

.term-actions { display: flex; gap: 10px; margin-top: 14px; }
.term-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.term-btn:hover { color: var(--paper); border-color: rgba(233, 235, 239, 0.32); }
.term-btn.hot {
  color: var(--accent);
  border-color: rgba(226, 200, 148, 0.45);
  background: rgba(226, 200, 148, 0.06);
}
.term-btn.hot:hover { background: rgba(226, 200, 148, 0.12); }

.hidden { display: none !important; }

/* ── Fixed readouts ── */
.readout {
  position: fixed;
  bottom: 20px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.readout.on { opacity: 1; }

.gauge {
  left: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gauge b {
  font-weight: 400;
  color: var(--accent-dim);
  font-variant-numeric: tabular-nums;
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 11px; }
.bars i {
  width: 2px;
  height: 100%;
  background: var(--accent-dim);
  transform-origin: bottom;
  animation: tidebar 3.6s ease-in-out infinite;
}
.bars i:nth-child(1) { animation-delay: 0s; }
.bars i:nth-child(2) { animation-delay: 0.35s; }
.bars i:nth-child(3) { animation-delay: 0.75s; }
.bars i:nth-child(4) { animation-delay: 0.2s; }
.bars i:nth-child(5) { animation-delay: 0.9s; }
.bars i:nth-child(6) { animation-delay: 0.5s; }
.bars i:nth-child(7) { animation-delay: 1.15s; }
@keyframes tidebar {
  0%, 100% { transform: scaleY(0.22); }
  50% { transform: scaleY(1); }
}

.coord {
  right: clamp(20px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
}

/* ═══ Sections ═══════════════════════════════════════════ */
.section { padding: clamp(100px, 15vh, 172px) 0; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-dim);
}
.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.sec-head {
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin-bottom: clamp(46px, 7vh, 74px);
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.015em;
  color: var(--paper);
}
.sec-desc {
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ── Feature cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  padding: 28px 26px 30px;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.card:hover {
  border-color: rgba(226, 200, 148, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.018));
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}
.idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.card .ic {
  font-size: 14px;
  color: var(--accent);
  opacity: 0.4;
  transition: opacity 0.35s, transform 0.35s;
}
.card:hover .ic { opacity: 0.95; transform: scale(1.2); }
.card h3 {
  margin-bottom: 10px;
  font-size: 17.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
}
.card p { font-size: 13.8px; line-height: 1.9; color: var(--muted); }

/* ── Split / governance ── */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.35fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sticky {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.link-arrow .ic {
  font-size: 13px;
  transition: transform 0.3s;
}
.link-arrow:hover .ic { transform: translate(2px, -2px); }

.gov-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.gov-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 27px 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.gov-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gov-row:hover::before { width: 100%; }
.gov-row .n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
  padding-top: 3px;
}
.gov-row h3 {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
}
.gov-row p {
  max-width: 54em;
  font-size: 13.8px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── SDK ── */
.sdk-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.sdk-copy { display: grid; gap: 26px; }

.install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
}
.install code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9d3df;
  word-break: break-all;
  min-width: 0;
}
.copy {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.25s;
}
.copy:hover,
.copy.done {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.points { display: grid; gap: 22px; }
.pt {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}
.pt .ic {
  font-size: 12px;
  margin-top: 4px;
  color: var(--accent);
  opacity: 0.7;
}
.pt h4 {
  margin-bottom: 5px;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: 0.04em;
}
.pt p { font-size: 13.4px; line-height: 1.85; color: var(--muted); }

.code {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 10, 17, 0.72);
  padding: 26px 28px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: #aeb9c9;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.code .k { color: #d9c28e; }
.code .s { color: #8fa6bc; }
.code .f { color: #e6e9ee; }

/* ── Download ── */
.download {
  text-align: center;
  padding-bottom: clamp(150px, 21vh, 230px);
}
.download::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18%;
  height: 72%;
  background: radial-gradient(52% 72% at 50% 74%, rgba(226, 200, 148, 0.06), transparent 70%);
  pointer-events: none;
}
.label.center { justify-content: center; }
.label.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(270deg, var(--accent-dim), transparent);
}
.big {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #f3f4f6 10%, #cfd5dd 55%, #8d97a7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dl-desc {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.download .cta-row { margin-top: 40px; }
.note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ═══ Footer ═════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 100px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.45));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
}
.foot-brand p {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.foot-col { display: grid; gap: 14px; align-content: start; }
.foot-col h4 {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-col a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

/* ═══ Reveal ═════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ═══ Responsive ═════════════════════════════════════════ */
@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .sticky { position: static; }
  .sdk-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { gap: 20px; height: 60px; }
  .nav-gh { display: none; }
  .nav-actions { gap: 14px; }
  .nav-auth-link { font-size: 13px; }

  .hero { padding-top: 118px; }
  .wordmark { letter-spacing: 0.5em; text-indent: 0.5em; }
  .title { letter-spacing: 0.08em; padding-left: 0.08em; }
  .pc-only { display: none; }
  .meta { font-size: 9.5px; letter-spacing: 0.08em; }
  .meta b { margin: 0 6px; }
  .meta .opt { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .card-top { margin-bottom: 26px; }

  .term { margin-top: 44px; font-size: 12px; }
  .term-body { padding: 16px 16px 18px; }
  .install { flex-wrap: wrap; }
  .install code { white-space: normal; word-break: break-all; }

  .gov-row { grid-template-columns: 42px 1fr; gap: 14px; }
  .readout { display: none; }

  .foot-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

/* ═══ Reduced motion ═════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sea-far,
  .sea-near,
  .bars i,
  .cursor { animation: none; }
  .auth[open] .auth-card { animation: none; }
  .btn:hover,
  .card:hover { transform: none; }
}