:root {
  color-scheme: light dark;
  --bg: #07140c;
  --bg-alt: #0f2318;
  --panel: #101915;
  --text: #f5f7f6;
  --muted: #b2c3b8;
  --accent: #39d98a;
  --accent-dark: #1a9f5a;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(5, 20, 12, 0.5);
}

.theme-light {
  --bg: #f7f9f7;
  --bg-alt: #e9efe9;
  --panel: #ffffff;
  --text: #101915;
  --muted: #4a5b51;
  --accent: #1a9f5a;
  --accent-dark: #0f6e3b;
  --border: rgba(16, 25, 21, 0.1);
  --shadow: 0 24px 60px rgba(16, 25, 21, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header {
  padding: 32px 5vw 80px;
  background: linear-gradient(135deg, rgba(57, 217, 138, 0.12), transparent 60%);
}

.site-header.compact {
  padding-bottom: 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #07140c;
  font-weight: 700;
  transition: background 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle .toggle-handle {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: #07140c;
  box-shadow: 0 12px 24px rgba(57, 217, 138, 0.25);
}

.secondary-button {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px) scale(1.01);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtext {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-value {
  font-weight: 700;
  font-size: 1.4rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.pill {
  background: rgba(57, 217, 138, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: var(--accent);
  color: #07140c;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.card-button:hover {
  transform: translateY(-2px);
}

.section {
  padding: 80px 5vw;
}

.section.alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid,
.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-grid article,
.command-card,
.status-card,
.step {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-grid h3,
.command-card h3 {
  margin-bottom: 12px;
}

.feature-grid p,
.command-card ul,
.policy p,
.policy ul {
  color: var(--muted);
}

.command-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.command-card code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.cta {
  background: var(--panel);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.footer {
  text-align: center;
  padding: 32px 5vw 48px;
  color: var(--muted);
}

.footer-links {
  margin-left: 12px;
  display: inline-flex;
  gap: 12px;
}

.status-hero {
  margin-top: 40px;
  text-align: center;
}

.status-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.status-hero p {
  color: var(--muted);
  margin-top: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.status-pill {
  background: rgba(57, 217, 138, 0.2);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.status-component {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.status-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(57, 217, 138, 0.4) 100%);
  margin-bottom: 16px;
}

.status-card.center {
  display: grid;
  place-items: center;
  text-align: center;
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(57, 217, 138, 0.2);
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 16px;
}

.status-meta {
  color: var(--muted);
  margin-top: 12px;
}

.status-history {
  color: var(--muted);
  margin-top: 8px;
}

.policy {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.policy h2 {
  font-size: 1.3rem;
  margin-top: 8px;
}

.policy ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.policy-hero {
  margin-top: 40px;
  text-align: center;
}

.policy-hero p {
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-card {
    order: -1;
  }
}
