:root {
  --night: #070913;
  --night-2: #0d1120;
  --panel: #111628;
  --line: #1d2440;
  --text: #e7eaf5;
  --mute: #8a93b3;
  --moon: #e9e6da;
  --moon-shade: #b9b6aa;
  --accent: #a9b8ff;
  --ok: #7ee2a8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
code { font: 0.88em var(--mono); background: rgba(169, 184, 255, 0.08); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* starfield */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 32%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 41%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 63%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 74%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 86%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 91%, #fff4 50%, transparent 51%),
    radial-gradient(900px 600px at 80% -10%, #1a2350 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 40%, #121a3a 0%, transparent 60%),
    var(--night);
}

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(12px); background: rgba(7, 9, 19, 0.7); border-bottom: 1px solid rgba(29, 36, 64, 0.6); }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--mute); }
.nav nav a:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.mark { display: block; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 18px rgba(233, 230, 218, 0.45); }

main { overflow-x: clip; }
main section { padding: clamp(64px, 10vw, 120px) clamp(16px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
h1, h2 { letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; font-weight: 600; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { margin: 0 0 6px; font-size: 17px; }
.kicker { font: 500 12.5px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.sub { color: var(--mute); font-size: 18px; margin: 0 0 36px; max-width: 640px; }
p { color: #c3c8dc; }

/* hero */
.hero { position: relative; isolation: isolate; text-align: left; padding-top: clamp(90px, 14vw, 170px); min-height: 88vh; }
.hero h1 { font-size: clamp(44px, 7.6vw, 96px); max-width: 900px; text-shadow: 0 2px 30px rgba(7,9,19,.6); }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--moon); }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; color: #c3c8dc; }
.hosts { margin-top: 28px; color: var(--mute); font-size: 14px; }
.hosts b { color: var(--text); font-weight: 500; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta.center { justify-content: center; }
.cmd { font: 15px var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 13px 16px; border-radius: 12px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; }
.cmd:hover { border-color: #33406b; }
.cmd .prompt { color: var(--accent); }
.cmd .copy { font-size: 11.5px; color: var(--mute); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 4px; }
.btn { text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 12px; background: var(--moon); color: #11131c; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #33406b; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid4 > * { background: linear-gradient(180deg, var(--panel), var(--night-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; }
.grid4 > a:hover { border-color: #33406b; }
.grid4 p { margin: 0; font-size: 14.5px; color: var(--mute); }
.ic { font-size: 22px; color: var(--moon); display: block; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > div > p { font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: #c3c8dc; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--moon) 50%, var(--moon-shade)); }
.more { color: var(--accent); text-decoration: none; font-weight: 500; }
.more:hover { text-decoration: underline; }

.code, .term pre { margin: 0; font: 13.5px/1.65 var(--mono); color: #c9d0ea; background: #0a0d1a; border: 1px solid var(--line); border-radius: 16px; padding: 22px; overflow-x: auto; white-space: pre; }
.code b { color: var(--moon); font-weight: 500; }
.code .c, .term .d { color: #5d6688; }
.code .k { color: #b7a5ff; }
.code .s { color: #9fe0c0; }
.term { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0a0d1a; }
.term .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #262d4a; }
.term pre { border: 0; border-radius: 0; }
.term .ok { color: var(--ok); }
.term b { color: var(--text); }

.inspector { text-align: center; }
.inspector .sub { margin-left: auto; margin-right: auto; }
.shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.shots figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); background: var(--panel); transition: transform 0.4s ease; }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { font: 12.5px var(--mono); color: var(--mute); padding: 10px; border-top: 1px solid var(--line); }
.tilt-l { transform: perspective(1400px) rotateY(5deg); }
.tilt-r { transform: perspective(1400px) rotateY(-5deg); }
.shots figure:hover { transform: none; }
.cmdrow { margin-top: 34px; display: grid; grid-template-columns: auto auto; justify-content: center; gap: 10px 16px; align-items: center; text-align: left; }
.cmdrow span { color: var(--mute); font-size: 14px; }

.faq { max-width: 860px; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts th { color: var(--mute); font-weight: 500; width: 160px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

.final { text-align: center; }
.moon-small { width: 90px; height: 90px; margin: 0 auto 26px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fbf9f1, var(--moon) 45%, #8f8c80); box-shadow: 0 0 60px rgba(233, 230, 218, 0.25); }

footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; max-width: 1180px; margin: 0 auto; }
footer a { color: var(--mute); }
.logo.small { font-size: 15px; color: var(--text); }
.logo.small .mark { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .split, .shots { grid-template-columns: 1fr; }
  .split.rev > .term { order: 2; }
  .tilt-l, .tilt-r { transform: none; }
  .cmdrow { grid-template-columns: 1fr; text-align: center; }
  .cmdrow code { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .nav nav a:not(.gh):not([href="docs/"]) { display: none; }
  .hero { min-height: auto; }

  .hero { padding-top: 120px; }
  .code, .term pre { font-size: 12px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
