:root {
  --bg: #070b10;
  --surface: #0d1420;
  --surface-2: #111a2a;
  --border: rgba(0, 200, 180, 0.12);
  --accent: #00c8b4;
  --accent-dim: rgba(0, 200, 180, 0.15);
  --accent-glow: rgba(0, 200, 180, 0.08);
  --text: #dde8f0;
  --text-muted: #6a8090;
  --text-dim: rgba(221, 232, 240, 0.5);
  --teal-light: rgba(0, 200, 180, 0.25);
  --red-alert: #ff5c6a;
  --yellow-warn: #f5c542;
  --green-ok: #00c8b4;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 36px;
}
.hero-state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* PROBE DISPLAY */
.probe-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.probe-display::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.probe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.probe-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.probe-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.probe-metrics { display: flex; flex-direction: column; gap: 14px; }
.pm-row {
  display: grid;
  grid-template-columns: 100px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.pm-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.pm-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.pm-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.pm-fill.high { background: var(--accent); }
.pm-fill.low { background: var(--red-alert); }
.pm-val {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
}
.probe-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.probe-arch {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hero-noise-label {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* METRICS */
.metrics-section {
  padding: 0 24px 80px;
}
.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.metric-card {
  background: var(--surface);
  padding: 32px 28px;
  text-align: center;
}
.metric-val {
  font-family: 'DM Mono', monospace;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* SECTION LABELS */
.section-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* HOW IT WORKS */
.hiw-section {
  padding: 80px 24px;
  background: var(--surface);
}
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.hiw-header { margin-bottom: 60px; }
.hiw-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.hiw-col {
  background: var(--bg);
  padding: 40px 36px;
}
.hiw-num {
  font-family: 'DM Mono', monospace;
  font-size: 42px;
  font-weight: 300;
  color: var(--border);
  margin-bottom: 20px;
  line-height: 1;
}
.hiw-step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.hiw-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ARCHITECTURE */
.arch-section { padding: 80px 24px; }
.arch-inner { max-width: 1200px; margin: 0 auto; }
.arch-header { margin-bottom: 56px; }
.arch-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.arch-diagram { margin-bottom: 28px; }
.arch-layer { margin-bottom: 0; }
.arch-layer-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.arch-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.arch-block {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--surface);
}
.arch-connector {
  padding: 20px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.conn-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0.4;
}
.conn-line:last-child {
  background: linear-gradient(to top, transparent, var(--accent));
}
.conn-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-align: center;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 6px;
}
.arch-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-family: 'DM Mono', monospace;
}

/* CLOSING */
.closing-section { padding: 80px 24px 100px; }
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing-content { max-width: 680px; }
.closing-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.closing-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.closing-stripe {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* NAV CTA */
.nav-by {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  margin-left: 4px;
}
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dim); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #070b10;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-secondary:hover { background: var(--accent-dim); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid var(--border);
  transition: background 0.2s;
  letter-spacing: 0.02em;
  margin-top: auto;
}
.btn-outline:hover { background: var(--accent-dim); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* COMPARISON */
.hiw-vs {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.hiw-vs-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}
.hiw-vs-col { padding: 32px 36px; }
.hiw-vs-divider { background: var(--border); }
.hiw-vs-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hiw-vs-label.bad { color: var(--red-alert); }
.hiw-vs-label.good { color: var(--accent); }
.hiw-vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-vs-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.hiw-vs-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  opacity: 0.4;
}

/* CTAs SECTION */
.ctas-section { padding: 80px 24px; background: var(--surface); }
.ctas-inner { max-width: 1200px; margin: 0 auto; }
.ctas-header { margin-bottom: 52px; }
.ctas-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.ctas-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}
.ctas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cta-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-card.primary-cta { background: var(--surface-2); }
.cta-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.cta-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

/* CLOSING BTN */
.closing-content .btn-primary { margin-bottom: 40px; }

/* FOOTER LINKS */
.footer-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}
.footer-logo:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
}
.footer-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-link:hover { color: var(--accent); }

/* HALLUCINATION EXCHANGE PANEL */
.hiw-hallucination {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.hiw-hall-inner { padding: 32px 36px; }
.hiw-hall-label {
  display: block;
  margin-bottom: 20px;
}
.hiw-hall-exchange {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.hiw-hall-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hiw-hall-role {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.hiw-hall-role.user { color: var(--text-muted); background: rgba(255,255,255,0.06); }
.hiw-hall-role.bad { color: var(--red-alert); background: rgba(255, 92, 106, 0.1); }
.hiw-hall-role.good { color: var(--accent); background: var(--accent-dim); }
.hiw-hall-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}
.hiw-hall-text.bad-text { color: rgba(255, 92, 106, 0.75); text-decoration: line-through; }
.hiw-hall-text.good-text { color: var(--accent); }

/* ARCHITECTURE TIERS */
.arch-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}
.arch-tier {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arch-tier.featured-tier {
  background: var(--surface-2);
  border-left: 1px solid var(--accent);
  border-left-color: var(--accent);
}
.arch-tier-name {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.arch-tier-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}
.arch-tier-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* italic em in hero title and closing */
.hero-title em, .closing-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right { order: -1; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .hiw-grid { grid-template-columns: 1fr; }
  .arch-blocks { gap: 8px; }
  .pm-row { grid-template-columns: 80px 1fr 36px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .ctas-grid { grid-template-columns: 1fr; }
  .hiw-vs-inner { grid-template-columns: 1fr; }
  .hiw-vs-divider { height: 1px; width: auto; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .arch-tiers { grid-template-columns: 1fr; }
  .arch-tier.featured-tier { border-left: none; border-top: 1px solid var(--accent); }
  .hiw-hall-inner { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .hero { padding: 80px 16px 60px; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .hiw-col { padding: 28px 24px; }
}

/* PLATFORM FEATURE GRID */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 48px 0 40px;
}
.platform-feature {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}
.pf-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.pf-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}
.closing-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.closing-price {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* BENCHMARK TABLES */
.bench-section {
  margin-top: 40px;
}
.bench-label { margin-bottom: 16px; }
.bench-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}
.bench-table thead tr {
  background: var(--surface);
}
.bench-table th {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bench-table td {
  padding: 11px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,200,180,0.06);
}
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table tbody tr { background: var(--bg); }
.bench-row-highlight td { background: rgba(0,200,180,0.04); }
.bench-row-control td { opacity: 0.6; }
.bench-val { color: var(--accent) !important; font-weight: 500; }
.bench-val-dim { color: var(--text-muted) !important; }
.bench-gain { color: var(--accent) !important; font-weight: 500; }
.bench-note {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-table th, .bench-table td { padding: 10px 12px; font-size: 11px; }
}
@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
  .closing-cta { flex-direction: column; align-items: flex-start; }
}