:root {
  --bg: #0C0C10;
  --surface: #141419;
  --surface-2: #1C1C24;
  --border: #2A2A36;
  --fg: #F0EDE6;
  --fg-muted: #8A8799;
  --accent: #E8A445;
  --accent-dim: rgba(232, 164, 69, 0.12);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP NAV ── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* ── SECTION SHARED ── */
section {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 40px;
}

.label-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── MANIFESTO ── */
.manifesto {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(232, 164, 69, 0.04) 0%, transparent 70%);
}

.manifesto-inner {
  max-width: 780px;
}

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
}

.headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.subline {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.manifesto-statement {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  max-width: 560px;
}

.manifesto-statement p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
}

.manifesto-badge {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(232, 164, 69, 0.3);
  padding: 6px 12px;
  border-radius: 2px;
}

/* ── ARCHITECTURE ── */
.architecture { background: var(--surface); }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.arch-card {
  background: var(--surface-2);
  padding: 36px 32px;
}

.arch-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.arch-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.arch-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── FLOW ── */
.flow { background: var(--bg); }

.flow-steps {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 20px;
  position: relative;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.step-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--border);
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  z-index: 1;
}

.step-dot--final {
  background: var(--accent);
}

.step-content {
  padding-bottom: 40px;
}

.step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.step-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

/* ── CONNECTORS ── */
.connectors { background: var(--surface); }

.connector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.connector-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color 0.2s;
}

.connector-item:hover { border-color: var(--fg-muted); }

.connector-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.connector-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── SCHEMA ── */
.schema-section { background: var(--bg); }

.schema-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.schema-copy h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.schema-copy p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.schema-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.schema-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.schema-row:last-child { border-bottom: none; }

.schema-row--header {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.schema-row:not(.schema-row--header) { color: var(--fg); }

.schema-row:not(.schema-row--header):nth-child(even) { background: rgba(255,255,255,0.015); }

/* ── OUTCOMES ── */
.outcomes { background: var(--surface); }

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.outcome {
  background: var(--surface-2);
  padding: 40px 36px;
}

.outcome--wide { grid-column: span 2; }

.outcome h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.outcome p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.outcome-stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.stat-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* ── CLOSING ── */
.closing {
  background: var(--bg);
  text-align: center;
  background-image: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(232, 164, 69, 0.05) 0%, transparent 70%);
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ── FOOTER ── */
.sitefooter {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topnav { padding: 16px 20px; }
  .tagline { display: none; }
  section { padding: 60px 20px; }
  .manifesto { min-height: auto; padding-top: 60px; padding-bottom: 60px; }
  .arch-grid { grid-template-columns: 1fr; }
  .schema-inner { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome--wide { grid-column: span 1; }
  .connector-grid { gap: 8px; }
}

@media (max-width: 480px) {
  .headline { font-size: 32px; }
  .closing h2 { font-size: 26px; }
}