/* ═══════════════════════════════════════════════════════════════════
   AXIOM — axiom.farm landing page stylesheet
   Design: deep black, monospace kickers, teal accent, scanline overlay
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg-0:  #07080a;
  --bg-1:  #0d0f12;
  --fg-0:  #e6e8eb;
  --fg-1:  #a3a8b0;
  --fg-2:  #6b7280;
  --fg-3:  #3d4451;
  --accent: #7ee0c9;
  --accent-dim: #3b7d6a;
  --accent-2: #f0c674;
  --line:  #191c22;
  --line-2: #2a2e37;
  --warn:  #e06c75;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
  --serif: 'Georgia', 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at top, rgba(126, 224, 201, 0.05), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}

main, .topbar, .foot { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* ─── top bar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,10,0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.brand .mark { color: var(--accent); text-shadow: 0 0 10px rgba(126,224,201,0.4); font-size: 14px; }
.nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-2); }
.nav a:hover { color: var(--accent); }
.nav a { transition: color 150ms; }

/* ─── sections ────────────────────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── hero ────────────────────────────────────────────────────────── */
.hero { padding-top: 100px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 900px;
}
.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--fg-1);
  max-width: 720px;
  margin: 0 0 36px;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: rgba(126,224,201,0.08);
  border-color: var(--accent-dim);
  color: var(--accent);
}
.btn.primary:hover {
  background: rgba(126,224,201,0.15);
  border-color: var(--accent);
}

/* ─── live stats ──────────────────────────────────────────────────── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.dot.pulse {
  box-shadow: 0 0 0 0 rgba(126,224,201,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126,224,201,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(126,224,201,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,224,201,0); }
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.cell {
  background: var(--bg-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cell .v {
  color: var(--accent);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.live-link { color: var(--fg-2); font-family: var(--mono); font-size: 12px; }
.live-link a { color: var(--accent); }

/* ─── manifesto ───────────────────────────────────────────────────── */
.manifesto { padding-top: 100px; }

.manifesto-body {
  max-width: 760px;
}

.m-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.m-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.m-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.m-section p {
  color: var(--fg-1);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.m-section p:last-child { margin-bottom: 0; }

.m-section em {
  color: var(--fg-0);
  font-style: italic;
}

.accent-line {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 18px !important;
  padding: 12px 0;
  border-left: 3px solid var(--accent-dim);
  padding-left: 20px;
  margin: 28px 0 !important;
}

/* axiom pillars */
.axiom-blocks {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 32px 0;
}
.axiom-block {
  background: var(--bg-1);
  padding: 28px 28px;
}
.axiom-block h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.axiom-block p {
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* final section */
.m-final .manifesto-close {
  font-size: 28px !important;
  color: var(--fg-0) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 36px !important;
  text-shadow: 0 0 40px rgba(126,224,201,0.15);
}
.m-final .manifesto-close.sub {
  font-size: 16px !important;
  color: var(--accent) !important;
  font-weight: 400;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(126,224,201,0.3);
  margin-top: 8px !important;
}

/* ─── stack table ─────────────────────────────────────────────────── */
.intro { color: var(--fg-1); max-width: 720px; margin: 0 0 30px; }
.layers {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
.layers th, .layers td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.layers th {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 14px;
}
.layers td:first-child { color: var(--fg-3); width: 110px; }
.layers td:nth-child(2) { color: var(--fg-0); }
.layers td:nth-child(3) { color: var(--fg-2); }
.layers tr:hover td { background: var(--bg-1); }
.layers a { color: var(--accent); }
.layers a:hover { text-decoration: underline; }

.status {
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid;
}
.status.live { color: var(--accent); border-color: var(--accent-dim); background: rgba(126,224,201,0.06); }
.status.draft { color: var(--accent-2); border-color: #5d4d24; background: rgba(240,198,116,0.06); }
.status.future { color: var(--fg-3); border-color: var(--line-2); }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }

/* ─── ratchet section ─────────────────────────────────────────────── */
.ratchet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.ratchet-grid p.big {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-0);
  margin: 0 0 20px;
}
.ratchet-grid p { color: var(--fg-1); margin: 0 0 16px; }
.ratchet-foot {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 0 12px rgba(126,224,201,0.3);
}
@media (max-width: 720px) {
  .ratchet-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── get involved ────────────────────────────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.col ul { list-style: none; padding: 0; margin: 0; }
.col li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.col li:last-child { border-bottom: none; }
.col a { color: var(--fg-1); transition: color 150ms; }
.col a:hover { color: var(--accent); }
.col code { color: var(--accent); font-size: 12px; }
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── footer ──────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.foot-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  gap: 20px;
  flex-wrap: wrap;
}
.foot .dim { color: var(--fg-3); }
.foot .mark { color: var(--accent); }

/* ─── responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  main { padding: 0 16px; }
  section { padding: 50px 0; }
  .hero { padding-top: 60px; }
  .manifesto { padding-top: 60px; }
  .m-section { margin-bottom: 40px; padding-bottom: 40px; }
  .axiom-block { padding: 20px; }
  .foot-grid { padding: 18px 16px; }
}
