/* ── HolyAxiom Landing Page ──────────────────────────────────────────────── */

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

:root {
  --bg:         #080c10;
  --bg2:        #0d1117;
  --bg3:        #141b24;
  --border:     #1e2d3d;
  --text:       #c9d1d9;
  --text-muted: #6b7689;
  --accent:     #00d4aa;
  --accent2:    #4f8ef7;
  --accent3:    #b97cf9;
  --gold:       #f0b429;
  --red:        #f85149;
  --green:      #3fb950;
  --radius:     12px;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-logo {
  font-weight: 700; font-size: 18px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.logo-mark { color: var(--accent); font-size: 22px; }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 28px;
}
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #000 !important;
  padding: 7px 16px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 28px;
  position: relative; z-index: 1;
  max-width: 620px;
}

.hero-eyebrow { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.04em;
}
.badge--green  { background: rgba(63,185,80,0.15); color: var(--green); border: 1px solid rgba(63,185,80,0.3); }
.badge--blue   { background: rgba(79,142,247,0.15); color: var(--accent2); border: 1px solid rgba(79,142,247,0.3); }
.badge--purple { background: rgba(185,124,249,0.15); color: var(--accent3); border: 1px solid rgba(185,124,249,0.3); }

.hero-title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1;
  color: #fff; letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 520px; line-height: 1.7; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; padding: 12px 24px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: all 0.15s;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: #00bfa0; text-decoration: none; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--large { padding: 16px 32px; font-size: 17px; }

.hero-stats {
  display: flex; gap: 40px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val { font-size: 28px; font-weight: 700; color: #fff; font-family: var(--mono); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Receipt card */
.hero-receipt {
  position: absolute; right: max(24px, calc(50% - 560px));
  top: 50%; transform: translateY(-50%);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  width: 380px; font-family: var(--mono); font-size: 13px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.receipt-header {
  background: var(--bg3); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.receipt-dot { width: 10px; height: 10px; border-radius: 50%; }
.receipt-dot--green  { background: var(--green); }
.receipt-dot--yellow { background: var(--gold); }
.receipt-dot--red    { background: var(--red); }
.receipt-title { color: var(--text-muted); font-size: 12px; margin-left: 6px; flex: 1; }
.receipt-body {
  padding: 18px; color: var(--text); line-height: 1.8;
  white-space: pre; overflow-x: auto;
}
.receipt-footer {
  background: rgba(0,212,170,0.08); padding: 10px 16px;
  border-top: 1px solid rgba(0,212,170,0.2);
}
.receipt-check { color: var(--accent); font-size: 12px; font-family: var(--mono); }

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */

.section { padding: 100px 24px; }
.section--dark { background: var(--bg2); }
.section--cta  { text-align: center; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 60px; max-width: 600px; }

/* ── PIPELINE ─────────────────────────────────────────────────────────────── */

.pipeline {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pipeline-step {
  flex: 1; min-width: 180px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-icon { font-size: 28px; margin-bottom: 14px; }
.pipeline-step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.pipeline-step p  { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.pipeline-arrow { font-size: 24px; color: var(--accent); padding: 0 4px; flex-shrink: 0; }

/* ── LEVELS ───────────────────────────────────────────────────────────────── */

.levels-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  margin-bottom: 40px;
}
.level-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: border-color 0.2s;
}
.level-card:hover { border-color: var(--accent); }
.level-card--l0 { border-top: 3px solid var(--text-muted); }
.level-card--l1 { border-top: 3px solid var(--green); }
.level-card--l2 { border-top: 3px solid var(--accent2); }
.level-card--l3 { border-top: 3px solid var(--accent3); }

.level-badge {
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  color: var(--bg); background: var(--text);
  padding: 3px 10px; border-radius: 20px; width: fit-content;
}
.level-card--l1 .level-badge { background: var(--green); }
.level-card--l2 .level-badge { background: var(--accent2); }
.level-card--l3 .level-badge { background: var(--accent3); }

.level-card h3 { color: #fff; font-size: 20px; }
.level-card p  { color: var(--text-muted); font-size: 14px; flex: 1; }
.level-card ul { padding-left: 18px; color: var(--text-muted); font-size: 13px; }
.level-card li { margin-bottom: 4px; }

.level-status {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; width: fit-content; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.level-status--live   { background: rgba(63,185,80,0.15); color: var(--green); }
.level-status--build  { background: rgba(240,180,41,0.15); color: var(--gold); }
.level-status--plan   { background: rgba(79,142,247,0.15); color: var(--accent2); }
.level-status--future { background: rgba(185,124,249,0.15); color: var(--accent3); }

.levels-cta { text-align: center; }

/* ── STELE TEASER ─────────────────────────────────────────────────────────── */

.stele-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.stele-copy { display: flex; flex-direction: column; gap: 20px; }
.stele-copy p { color: var(--text-muted); font-size: 16px; }
.stele-copy code {
  font-family: var(--mono); font-size: 14px;
  background: var(--bg3); color: var(--accent);
  padding: 2px 8px; border-radius: 5px;
}

.code-window {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.code-window-bar {
  background: var(--bg3); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }
.code-window-title { color: var(--text-muted); font-size: 12px; font-family: var(--mono); margin-left: 8px; }

.code-body {
  padding: 24px; font-family: var(--mono); font-size: 13px;
  line-height: 1.8; white-space: pre; overflow-x: auto;
  color: var(--text);
}
/* Syntax highlighting */
.kw   { color: #ff7b72; }  /* keywords: proof, at, from, captures, signed, attested, by, requires */
.ty   { color: #79c0ff; }  /* types: Session, Time, Place, Video, Device, Score, Chip, Clock, GPS */
.str  { color: #a5d6ff; }  /* strings */
.num  { color: #f0b429; }  /* numbers */
.op   { color: var(--accent); }  /* operators: ± */
.unit { color: #d2a8ff; }  /* units: ms, m */
.dir  { color: var(--accent); }  /* directions: °N, °W */
.lvl  { color: var(--green); font-weight: 700; }  /* L0, L1, L2, L3 */
.prop { color: var(--text-muted); }  /* property names: hash: */

.code-window-footer {
  background: rgba(0,212,170,0.06); padding: 10px 16px;
  border-top: 1px solid rgba(0,212,170,0.15);
}
.compile-badge { font-size: 12px; font-family: var(--mono); color: var(--accent); }

/* ── CTA ──────────────────────────────────────────────────────────────────── */

.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-inner h2 { font-size: 40px; font-weight: 800; color: #fff; }
.cta-inner p  { color: var(--text-muted); font-size: 18px; }
.cta-actions  { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-weight: 700; color: var(--accent); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-receipt { display: none; }
  .hero-inner   { max-width: 100%; }
  .stele-split  { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .nav-links { gap: 14px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ── COMPARISON TABLE ──────────────────────────────────────────────────────── */

.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; font-family: var(--mono);
  background: var(--bg2); border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th {
  background: var(--bg3); color: var(--text);
  padding: 14px 16px; text-align: left; font-weight: 600;
  border-bottom: 2px solid var(--border); font-size: 13px;
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-muted); font-size: 13px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

.ha-col { background: rgba(0,212,170,0.04); border-left: 2px solid var(--accent); }
.ha-col th { color: var(--accent) !important; }

.cmp-yes     { color: var(--green); font-weight: 600; }
.cmp-no      { color: var(--red); }
.cmp-partial { color: var(--gold); }

/* ── NEWSLETTER ───────────────────────────────────────────────────────────── */

.newsletter-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 20px;
}
.newsletter-input {
  flex: 1; min-width: 220px; max-width: 320px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-size: 15px; outline: none;
  font-family: var(--mono);
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }

/* ── ADDITIONAL PIPELINE STYLES ───────────────────────────────────────────── */

.pipeline {
  display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.pipeline-step {
  flex: 1; min-width: 180px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pipeline-step h3 { color: #fff; font-size: 17px; margin: 0; }
.pipeline-step p  { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 0; flex: 1; }
.pipeline-arrow {
  font-size: 22px; color: var(--accent);
  display: flex; align-items: center; flex-shrink: 0;
  padding: 0 2px;
}

/* ── LEVEL CARD STATUS VARIANTS ───────────────────────────────────────────── */

.level-status--live   { background: rgba(63,185,80,0.12); color: var(--green); border: 1px solid rgba(63,185,80,0.25); }
.level-status--build  { background: rgba(240,180,41,0.12); color: var(--gold); border: 1px solid rgba(240,180,41,0.25); }
.level-status--plan   { background: rgba(79,142,247,0.12); color: var(--accent2); border: 1px solid rgba(79,142,247,0.25); }
.level-status--future { background: rgba(185,124,249,0.12); color: var(--accent3); border: 1px solid rgba(185,124,249,0.25); }

/* ── SECTION LABEL ────────────────────────────────────────────────────────── */

.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}

/* ── RESPONSIVE ADDITIONS ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .compare-table th:nth-child(4),
  .compare-table td:nth-child(4),
  .compare-table th:nth-child(5),
  .compare-table td:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); align-self: center; }
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-input { max-width: 100%; }
}
