/* ===== TOKENS ===== */
:root {
  --bg: #0b0d0c;
  --panel: #14201a;
  --panel-2: #10120f;
  --line: rgba(255,255,255,0.08);
  --text: #ececea;
  --text-dim: #9aa39c;
  --green: #3ddc84;
  --green-dim: #1a7a45;
  --amber: #d9a441;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle blueprint grid, fixed behind everything */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 220, 132, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 132, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

a { color: inherit; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,12,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-weight: 800; letter-spacing: 0.04em; font-size: 15px;
  text-decoration: none; color: var(--text);
}
.wordmark .dot { color: var(--green); }
.wordmark.small { font-size: 13px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 13px;
  font-weight: 600; letter-spacing: 0.02em; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 24px 20px 24px; gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 100px 24px 90px 24px;
}
.hero-inner { max-width: 720px; }

.corner { position: absolute; width: 28px; height: 28px; border: var(--green) solid; opacity: 0.7; }
.corner.tl { top: 24px; left: 24px; border-width: 2px 0 0 2px; }
.corner.tr { top: 24px; right: 24px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 24px; left: 24px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 24px; right: 24px; border-width: 0 2px 2px 0; }

.eyebrow {
  font-family: var(--mono); color: var(--green); font-size: 11px;
  letter-spacing: 0.22em; font-weight: 700; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 74px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.01em; margin: 0 0 22px 0;
}
.hero-sub { font-size: 17px; color: var(--text-dim); max-width: 580px; margin: 0 0 32px 0; }
.hero-sub em { color: var(--text); font-style: normal; font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 4px;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em;
  text-decoration: none; transition: transform 0.15s, background 0.15s;
}
.btn-primary { background: var(--green); color: #06140c; }
.btn-primary:hover { background: #4fe897; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.readout {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 20px;
  background: rgba(255,255,255,0.02);
}
.readout-row {
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; animation: reveal 0.5s ease forwards;
}
.readout-row:last-child { border-bottom: none; }
.readout-row:nth-child(1) { animation-delay: 0.05s; }
.readout-row:nth-child(2) { animation-delay: 0.15s; }
.readout-row:nth-child(3) { animation-delay: 0.25s; }
.readout-row:nth-child(4) { animation-delay: 0.35s; }
@keyframes reveal { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
.rk { color: var(--text-dim); letter-spacing: 0.08em; }
.rv { color: var(--green); font-weight: 700; letter-spacing: 0.02em; }
.dark-readout { background: rgba(0,0,0,0.25); }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 80px 24px; }
.section.alt { background: rgba(255,255,255,0.015); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 18px 0; letter-spacing: -0.01em; max-width: 680px; }
.lede { font-size: 16px; color: var(--text-dim); max-width: 640px; margin-bottom: 40px; }
.body-copy { font-size: 14.5px; color: var(--text-dim); max-width: 640px; margin: 28px 0; }

/* format cards */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.format-card { border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; }
.fmark { color: var(--green); font-family: var(--mono); font-size: 20px; margin-bottom: 12px; }
.format-card h3 { font-size: 16px; margin: 0 0 10px 0; }
.format-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

.stamp {
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.12em;
  color: var(--amber); font-size: 13px; text-align: center;
  padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* video */
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  margin-bottom: 20px;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.text-link { color: var(--green); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* proof cards */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.proof-card.flagship { border-color: var(--green-dim); background: rgba(61,220,132,0.05); }
.proof-card h3 { font-size: 14.5px; margin: 0 0 10px 0; }
.proof-card p { font-size: 13px; color: var(--text-dim); margin: 0; }
.proof-card strong { color: var(--text); }

/* partners section */
.partners { background: var(--panel-2); }
.partners .readout { max-width: 460px; margin-bottom: 10px; }

/* footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 50px 24px 40px 24px; }
.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 22px 0; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--green); }
.footer-email a { color: var(--green); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.footer-copy { margin-top: 18px; font-size: 11.5px; color: var(--text-dim); font-family: var(--mono); }

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
  .format-grid, .proof-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 20px 60px 20px; }
  .section { padding: 56px 20px; }
  .readout-row { font-size: 11px; }
  .corner { width: 18px; height: 18px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
