:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --panel: rgba(17, 24, 39, 0.72);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(148, 163, 184, 0.24);
  --brand: #60a5fa;
  --brand-2: #22d3ee;
  --accent: #a78bfa;
  --ok: #34d399;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6fb;
    --bg-elev: #ffffff;
    --panel: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --muted: #475569;
    --line: rgba(71, 85, 105, 0.2);
    --brand: #2563eb;
    --brand-2: #0891b2;
    --accent: #7c3aed;
    --shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(96, 165, 250, 0.28), transparent 60%),
    radial-gradient(700px 440px at 90% -20%, rgba(34, 211, 238, 0.24), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 90%, black 10%) 100%);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
  padding: 1.1rem 0 3.5rem;
}

.site-header {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.nav-wrap {
  padding: 0.95rem 1.1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  box-shadow: 0 0 20px color-mix(in oklab, var(--brand) 70%, transparent);
}

.nav-links {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  border: 1px solid transparent;
  color: var(--text);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-links a.active {
  border-color: var(--line);
  background: color-mix(in oklab, var(--brand) 20%, transparent);
}

.hero {
  margin-top: 1rem;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.25fr 1fr;
}

.hero h1 { line-height: 1.12; margin: 0.2rem 0 0.6rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero p { margin: 0; color: var(--muted); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
}

.badge {
  font-size: 0.82rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
}

.hero-graphic {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: color-mix(in oklab, var(--bg-elev) 86%, black 14%);
}

.grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0.1rem 0 0.45rem;
  line-height: 1.22;
  font-size: 1.2rem;
}

.card p,
.card li { color: var(--muted); }

.callout {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px dashed color-mix(in oklab, var(--brand) 44%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--brand) 11%, transparent);
}

.doc {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.35rem);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.doc h1,
.doc h2 { line-height: 1.2; }
.doc h1 { margin-top: 0.2rem; }
.doc p,
.doc li { color: var(--muted); }

.notice {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.3rem 0.68rem;
  font-size: 0.82rem;
  color: var(--muted);
}

footer {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer p { margin: 0.25rem 0; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; }
}
