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

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #7eb8f7;
  --accent2: #4a9eff;
  --green: #4caf7d;
  --yellow: #f0c040;
  --red: #e05a4e;
  --orange: #e09a4e;
  --mono: 'Consolas', 'Courier New', monospace;
  --sans: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

/* NAV */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 0; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* STATUS STRIP */
.status-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.status-strip .badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }
.dot-orange { background: var(--orange); }

/* LAYOUT */
main { max-width: 960px; margin: 0 auto; padding: 4rem 2rem; }
.wide { max-width: 1100px; }

/* HERO */
.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); margin-bottom: 4rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.2rem;
  max-width: 700px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--mono);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary { background: var(--accent2); color: #000; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent2); }
.btn-secondary:hover { background: rgba(74,158,255,0.1); }

/* SECTIONS */
h2 {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
h3 { font-size: 1.1rem; color: var(--accent); margin: 1.8rem 0 0.6rem; font-family: var(--mono); }
p { margin-bottom: 1rem; color: var(--muted); }
p strong { color: var(--text); }
a { color: var(--accent); }

.notice {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
  color: var(--muted);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.notice strong { color: var(--text); }
.notice-blue { border-left-color: var(--accent2); }

.clean-list {
  margin: 1rem 0 1.5rem 1.2rem;
  color: var(--muted);
}
.clean-list li { margin-bottom: 0.45rem; }

/* CODE BLOCKS */
pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c9d1d9;
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg3);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* COMMENT in code */
.cm { color: #666; font-style: italic; }
.kw { color: #7eb8f7; }
.str { color: #98c379; }
.num { color: #f0c040; }
.op { color: #e06c75; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
td strong { color: var(--text); }
tr:hover td { background: var(--bg2); }

/* CLAIM BADGES */
.badge-sim { color: var(--yellow); font-family: var(--mono); font-size: 0.8rem; }
.badge-hyp { color: var(--orange); font-family: var(--mono); font-size: 0.8rem; }
.badge-road { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.badge-demo { color: var(--green); font-family: var(--mono); font-size: 0.8rem; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
}
.card h4 { color: var(--text); font-family: var(--mono); font-size: 0.95rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; margin: 0; }

/* PAGE TITLE */
.page-title {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-title h1 { font-family: var(--mono); font-size: 2rem; color: var(--text); margin-bottom: 0.5rem; }
.page-title p { font-size: 1rem; color: var(--muted); margin: 0; }

/* PIPELINE */
.pipeline { display: flex; flex-wrap: wrap; gap: 0; margin: 1.5rem 0; }
.pipeline-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pipeline-step .num { color: var(--accent); font-weight: bold; }
.pipeline-arrow { color: var(--border); display: flex; align-items: center; padding: 0 0.3rem; font-size: 1.2rem; }

/* PROBLEMS LIST */
.problems { list-style: none; margin: 1rem 0; }
.problems li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.problems li .label { color: var(--red); font-family: var(--mono); font-size: 0.8rem; min-width: 100px; padding-top: 2px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 4rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links a { padding: 0 0.5rem; font-size: 0.72rem; }
  main { padding: 2rem 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
}
