:root {
  color-scheme: dark;
  --bg: #080d18;
  --panel: rgba(16, 24, 39, .74);
  --panel-strong: rgba(19, 31, 54, .92);
  --text: #eef5ff;
  --muted: #9db0cf;
  --line: rgba(148, 163, 184, .22);
  --primary: #68e1fd;
  --secondary: #8b5cf6;
  --accent: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 28px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8ff;
  --panel: rgba(255, 255, 255, .78);
  --panel-strong: rgba(255, 255, 255, .96);
  --text: #142033;
  --muted: #52657f;
  --line: rgba(59, 86, 120, .16);
  --primary: #0ea5e9;
  --secondary: #7c3aed;
  --accent: #059669;
  --warning: #d97706;
  --shadow: 0 24px 80px rgba(55, 81, 120, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(104, 225, 253, .16), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(139, 92, 246, .18), transparent 30%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
#starfield { position: fixed; inset: 0; z-index: -3; opacity: .75; }
.glow { position: fixed; width: 420px; height: 420px; border-radius: 999px; filter: blur(70px); opacity: .28; z-index: -2; pointer-events: none; }
.glow-a { left: -120px; top: 22%; background: var(--primary); }
.glow-b { right: -120px; bottom: 8%; background: var(--secondary); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px min(5vw, 64px);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900; color: white; box-shadow: 0 10px 30px rgba(104, 225, 253, .25);
}
.brand strong { display: block; letter-spacing: .08em; }
.brand small { color: var(--muted); }
.nav { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.nav a { padding: 9px 14px; color: var(--muted); border-radius: 999px; transition: .2s ease; }
.nav a:hover { color: var(--text); background: rgba(148, 163, 184, .12); }
.theme-toggle { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }

.section-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto 34px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 28px; align-items: center; padding: 76px 0 26px; min-height: 72vh; }
.eyebrow, .section-kicker { color: var(--primary); font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: .92; margin-bottom: 26px; letter-spacing: -0.07em; }
h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 16px; }
h3 { margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.75; }
.hero-text { max-width: 680px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: 0; }
.btn.ghost { background: var(--panel); color: var(--text); }

.command-card, .mini-card, .status-card, .tool-card, .checklist {
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.command-card { border-radius: var(--radius); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.04); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #fb7185; }
.window-bar i:nth-child(2) { background: #fbbf24; }
.window-bar i:nth-child(3) { background: #34d399; }
.window-bar span { margin-left: auto; color: var(--muted); font-size: 13px; }
pre { margin: 0; min-height: 360px; padding: 24px; white-space: pre-wrap; color: #b7f7d4; line-height: 1.7; font-size: 14px; }

.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; padding: 26px 0; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { border-radius: 24px; padding: 22px; }
.mini-card b { color: var(--primary); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.section-heading p:last-child { max-width: 420px; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.status-card { border-radius: 24px; padding: 22px; min-height: 148px; }
.status-card.accent { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, var(--panel)), var(--panel)); }
.status-label { display: block; color: var(--muted); margin-bottom: 18px; }
.status-card strong { display: block; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.04em; }
.status-card small { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { border-radius: 24px; padding: 24px; transition: transform .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.tool-card span { font-size: 30px; }
.checklist-section { display: grid; grid-template-columns: .7fr 1fr; gap: 28px; padding-bottom: 48px; }
.checklist { border-radius: 24px; padding: 18px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; }
.check-item + .check-item { border-top: 1px solid var(--line); }
.check-item input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 4px; }
.check-item label { cursor: pointer; }
.check-item strong { display: block; }
.check-item span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px min(5vw, 64px); color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .split-section, .checklist-section { grid-template-columns: 1fr; }
  .mission-grid, .status-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .site-header { padding-inline: 18px; }
  .mission-grid, .status-grid, .tool-grid { grid-template-columns: 1fr; }
  .section-shell { width: min(100% - 24px, 1120px); }
  .site-footer { flex-direction: column; padding-inline: 18px; }
  pre { min-height: 280px; font-size: 12px; }
}
