:root {
  --bg: #090B10;
  --bg-2: #0F1219;
  --fg: #F0EFE9;
  --fg-muted: #7A7870;
  --emerald: #00FF88;
  --amber: #FFB800;
  --red: #FF4757;
  --border: rgba(240, 239, 233, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(9, 11, 16, 0.85);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--emerald);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 10rem 3rem 6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* MERIDIAN DIAGRAM */
.meridian-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.meridian-label-top {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 0.25rem;
}
.meridian-spine {
  display: flex;
  justify-content: center;
}
.meridian-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  position: relative;
}
.meridian-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,255,136,0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
.meridian-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.fork-path { display: flex; flex-direction: column; gap: 0.4rem; }
.fork-line {
  height: 3px;
  border-radius: 2px;
}
.success-line {
  background: linear-gradient(90deg, var(--emerald) 0%, rgba(0,255,136,0.2) 100%);
}
.cascade-line {
  background: linear-gradient(90deg, var(--amber) 0%, rgba(255,184,0,0.2) 100%);
}
.fork-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  width: fit-content;
}
.success-tag { background: rgba(0,255,136,0.15); color: var(--emerald); }
.cascade-tag { background: rgba(255,184,0,0.15); color: var(--amber); }

.meridian-cascade-visual {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255,184,0,0.05);
  border: 1px solid rgba(255,184,0,0.15);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cascade-node {
  font-size: 0.7rem;
  color: var(--amber);
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255,184,0,0.3);
}
.node-2 { opacity: 0.7; }
.node-3 { opacity: 0.4; }
.cascade-connector {
  width: 1px;
  height: 12px;
  background: rgba(255,184,0,0.2);
  margin-left: 0.5rem;
}

.hero-stat {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

/* SECTIONS */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-body {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.8;
}

/* STREAM */
.stream { background: var(--bg-2); }
.stream-monitor {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.75rem;
}
.monitor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0,255,136,0.04);
  border-bottom: 1px solid var(--border);
}
.monitor-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.monitor-label {
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.txn-rows { display: flex; flex-direction: column; }
.txn-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: background 0.2s;
}
.txn-row:last-child { border-bottom: none; }
.txn-row:hover { background: rgba(255,255,255,0.02); }
.txn-id { color: var(--fg-muted); }
.txn-amount { color: var(--fg); font-weight: 700; }
.txn-processor { color: var(--fg-muted); }
.txn-status { color: var(--emerald); font-size: 0.65rem; letter-spacing: 0.05em; }
.txn-latency { color: var(--fg-muted); text-align: right; }
.txn-cascade { background: rgba(255,71,87,0.08); }
.txn-intercepted { background: rgba(0,255,136,0.06); }
.txn-status-cascade { color: var(--red); }
.txn-status-intercepted { color: var(--emerald); }
.monitor-footer {
  display: flex;
  gap: 3rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.2);
  font-size: 0.7rem;
}
.metric strong { color: var(--fg); }
.metric { color: var(--fg-muted); }

/* INTERCEPT */
.intercept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.intercept-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.istat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald);
}
.istat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}
.diagram-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dt-event {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.dt-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 0.3rem;
  box-shadow: 0 0 8px rgba(255,184,0,0.4);
}
.dt-marker-success { background: var(--emerald); box-shadow: 0 0 8px rgba(0,255,136,0.4); }
.dt-content strong { display: block; font-size: 0.75rem; color: var(--fg); margin-bottom: 0.25rem; }
.dt-content p { font-size: 0.7rem; color: var(--fg-muted); line-height: 1.5; }

/* RECONCILE */
.reconcile { background: var(--bg-2); }
.reconcile-dashboard {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
}
.dash-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  background: rgba(0,255,136,0.15);
  color: var(--emerald);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.dash-metric {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.dash-metric:last-child { border-right: none; }
.dm-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}
.dm-success { color: var(--emerald); }
.dm-warn { color: var(--amber); }
.dm-cascade { color: var(--red); }
.dm-label {
  display: block;
  font-size: 0.65rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.dash-bar {
  height: 4px;
  background: var(--bg);
}
.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--amber));
}
.dash-note {
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.pricing-card-featured {
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.03);
}
.pc-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--emerald);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 4px 4px;
}
.pc-tier {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.pc-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--fg);
}
.pc-period { font-size: 0.8rem; color: var(--fg-muted); }
.pc-desc { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pc-features li {
  font-size: 0.75rem;
  color: var(--fg-muted);
  padding-left: 1.2rem;
  position: relative;
}
.pc-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-size: 0.65rem;
}

/* MANIFESTO */
.manifesto {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--emerald));
}
.manifesto-inner { max-width: 700px; margin: 0 auto; }
.manifesto-line { width: 40px; height: 2px; background: var(--emerald); margin: 0 auto 2.5rem; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.manifesto-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--emerald);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .intercept-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .dash-metric:nth-child(2) { border-right: none; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .section-inner { padding: 4rem 1.5rem; }
  .txn-row { grid-template-columns: 1fr 1fr 1fr; }
  .txn-latency, .txn-processor { display: none; }
  .nav { padding: 1rem 1.5rem; }
  .footer { padding: 1.5rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; }
}