:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3dd6c6;
  --accent-dim: #238f84;
  --tier-prohibited: #f85149;
  --tier-high: #d29922;
  --tier-limited: #58a6ff;
  --tier-minimal: #3fb950;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 214, 198, 0.12), transparent),
    linear-gradient(rgba(48, 54, 61, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.15) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #04120f;
}

.btn-primary:hover {
  background: #5ce3d5;
  text-decoration: none;
}

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

.btn-secondary:hover {
  border-color: var(--accent-dim);
  text-decoration: none;
}

.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: #010409;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1rem 1.1rem 1.25rem;
  min-height: 340px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .prompt {
  color: var(--accent);
}

.terminal-body .dim {
  color: var(--text-muted);
}

.terminal-body .tier-prohibited { color: var(--tier-prohibited); font-weight: 600; }
.terminal-body .tier-high { color: var(--tier-high); font-weight: 600; }
.terminal-body .tier-limited { color: var(--tier-limited); font-weight: 600; }
.terminal-body .tier-minimal { color: var(--tier-minimal); font-weight: 600; }

.scenario-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #010409;
  flex-wrap: wrap;
}

.scenario-tab {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.scenario-tab:hover,
.scenario-tab.active {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(61, 214, 198, 0.08);
}

section {
  padding: 4rem 0;
}

section h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.why-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.why-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.why-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.limits {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.limits ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.limits li + li {
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

/* One-pager print styles */
@media print {
  body.one-pager {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .no-print {
    display: none !important;
  }

  .one-pager-header {
    border-bottom: 2px solid #111;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }

  a {
    color: #111;
  }
}
