:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: #111827;
  --panel-2: #161f30;
  --line: #243044;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #14b8a6;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(70ch 45ch at 85% -10%, rgba(20, 184, 166, 0.09), transparent 60%),
    radial-gradient(60ch 40ch at 0% 15%, rgba(56, 189, 248, 0.08), transparent 60%);
  background-attachment: fixed;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

/* Header & Nav */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  color: #061e2a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 1.5rem 3.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero Card / App Mockup */
.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.app-card-dots {
  display: flex;
  gap: 6px;
}
.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.app-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.app-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.ui-label { font-weight: 500; font-size: 0.92rem; }
.ui-status { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2); }
.ui-btn {
  background: var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Sections */
section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

/* Features Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Terminal & Code Blocks */
.terminal {
  background: #06090e;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.2rem 0;
}

.terminal-header {
  background: #0d1218;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-body {
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow-x: auto;
  color: #cbd5e1;
  line-height: 1.6;
}

.terminal-body .cmd { color: var(--accent); }
.terminal-body .comment { color: var(--muted); }

/* Download & Verification */
.dl-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.dl-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.dl-meta span strong { color: var(--ink); }

/* Steps / Guidance */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.2rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: rgba(11, 15, 23, 0.95);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Policy pages (rendered from docs/*.md) */
.policy-body { max-width: 42rem; color: var(--muted); }
.policy-body p { margin-bottom: 1rem; }
.policy-body ul { margin: 0 0 1.2rem 1.4rem; }
.policy-body li { margin-bottom: 0.4rem; }
.policy-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.policy-heading:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .nav-links { display: none; }
}
