:root {
  --bg: #0a1612;
  --bg-elev: #12241c;
  --bg-soft: rgba(18, 36, 28, 0.72);
  --ink: #e8f5ef;
  --muted: #8fbfa6;
  --accent: #c9a66b;
  --line: #2f5c4c;
  --line-soft: rgba(47, 92, 76, 0.45);
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --space: clamp(1.25rem, 3vw, 2rem);
  --measure: 42rem;
  --max: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 92, 76, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 92, 76, 0.16) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 92, 76, 0.35), transparent 55%);
  background-size: 48px 48px, 48px 48px, auto;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
  z-index: 0;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--space);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  background: rgba(10, 22, 18, 0.82);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  font-weight: 600;
  flex-shrink: 0;
}
.brand img {
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 0.35rem 1.05rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem var(--space) 2rem;
  text-align: center;
}
.hero-logo {
  width: min(520px, 92vw);
  height: auto;
  margin-bottom: 1.1rem;
  border-radius: 14px;
}
.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tagline {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  margin: 0 0 1rem;
}
.lede {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
}

.status-note {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 34rem;
}
.status-note strong {
  color: var(--ink);
  font-weight: 600;
}

.cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.68rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-elev);
  font-size: 0.94rem;
  font-weight: 550;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn.primary {
  background: #1a3f32;
  border-color: var(--muted);
}
.btn.ghost { background: transparent; }
.btn:hover { border-color: var(--accent); color: #fff; }

.shot, .features, .sponsor, .doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
}
.shot h2, .sponsor h2, .doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.shot > p, .sponsor > p {
  color: var(--muted);
}

.terminal {
  background: #07110e;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  overflow-x: auto;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}
.terminal code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #c8e6d8;
  white-space: pre;
  line-height: 1.45;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  padding-top: 0.5rem;
}
.features article {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 1.3rem 1.25rem;
}
.features h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 1.15rem;
}
.features p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.sponsor {
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.doc h1 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 2.1rem;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 1.25rem;
}
.doc p, .doc li { color: #c5ddd1; }
.doc a { color: var(--muted); }
.doc a:hover { color: var(--ink); }
.doc code {
  font-family: var(--font-mono);
  background: rgba(18, 36, 28, 0.9);
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.doc pre {
  background: #07110e;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
.doc pre code { background: none; padding: 0; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }
.doc .callout {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}
.doc .callout p { margin: 0; color: var(--muted); }
.doc .callout strong { color: var(--ink); }

.site-footer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer img {
  border-radius: 6px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1.1rem;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem 0.9rem;
  }
  .hero { padding-top: 2.25rem; }
  .terminal code { font-size: 0.66rem; }
  .site-footer { flex-direction: column; }
}
