:root {
  --bg: #0b0e11;
  --panel: #12161b;
  --border: #232a32;
  --text: #e6e8eb;
  --muted: #8a93a0;
  --amber: #e8a33d;
  --teal: #4fd1ae;
  --red: #e5484d;
  --font-display: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 16px;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 8px 16px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--bg);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8px;
}

.ticker-tape {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll-tape 38s linear infinite;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

.tick b { color: var(--text); margin-right: 6px; }
.tick i { font-style: normal; margin-left: 6px; }
.tick i.pos { color: var(--teal); }
.tick i.neg { color: var(--red); }
.tick i.neu { color: var(--muted); }

@keyframes scroll-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--bg);
  background: var(--amber);
  padding: 14px 32px;
  border-radius: 4px;
  transition: filter 0.15s ease;
}

.hero-cta:hover { filter: brightness(1.1); }

.hero-cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ---------- How it thinks ---------- */

.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}

.how h2 {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  margin: 0 0 48px 0;
  color: var(--text);
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stages { grid-template-columns: 1fr; }
}

.stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
}

.stage-no {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.stage h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.stage p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Guardrails ---------- */

.limits {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  text-align: center;
}

.limits h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px 0;
}

.limits-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 36px;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .limits-grid { grid-template-columns: 1fr 1fr; }
}

.limit {
  background: var(--panel);
  padding: 24px 16px;
}

.limit-label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.limit-value {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--amber);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
