:root {
  --paper: #f4f3ef;
  --ink: #101010;
  --muted: #6c6b67;
  --line: #c9c7c0;
  --white: #ffffff;
  --signal: #2f66ff;
  --green: #b8ff3d;
  --red: #ff4438;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
button, input { font: inherit; letter-spacing: 0; }

.site-header {
  height: 74px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 239, .94);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 14px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--ink); font-family: "Space Mono", monospace; }
nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 600; }
nav a { text-decoration: none; }
.social-link { display: flex; align-items: center; gap: 5px; }
.social-link svg, .button svg, .tweet-label svg { width: 15px; height: 15px; }

.hero {
  min-height: calc(100vh - 110px);
  padding: clamp(50px, 8vw, 110px) clamp(20px, 6vw, 96px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: center;
}
.eyebrow { font: 700 11px/1.4 "Space Mono", monospace; margin: 0 0 24px; }
h1, h2, p { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(64px, 9vw, 144px); line-height: .84; font-weight: 600; }
.hero-lede { max-width: 690px; margin: 38px 0 0; font-size: clamp(18px, 2vw, 28px); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.button { min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 2px; text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.button-dark { background: var(--ink); color: white; }
.button-light { background: transparent; color: var(--ink); }
.button:hover { background: var(--signal); color: white; border-color: var(--signal); }

.edition-visual { width: min(100%, 520px); aspect-ratio: .82; background: var(--ink); color: white; padding: 20px; justify-self: end; display: flex; flex-direction: column; box-shadow: 16px 16px 0 var(--signal); }
.edition-top, .edition-bottom { display: flex; justify-content: space-between; align-items: center; font: 700 10px "Space Mono", monospace; }
.edition-bottom strong { font-size: 70px; line-height: 1; }
.checks-grid { flex: 1; margin: 24px 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(10, 1fr); gap: 5px; }
.check { background: #292929; display: grid; place-items: center; min-width: 0; }
.check::after { content: "✓"; font: 700 clamp(8px, 1.1vw, 15px) "Space Mono", monospace; color: #777; }
.check:nth-child(8n), .check:nth-child(13n), .check:nth-child(21n) { background: var(--signal); }
.check:nth-child(17n)::after, .check:nth-child(29n)::after { color: var(--green); }

.ticker-band { min-height: 46px; padding: 0 clamp(20px, 4vw, 64px); background: var(--green); border-block: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; font: 700 11px "Space Mono", monospace; white-space: nowrap; }

.tracker-section, .strategy-section, .settings-section { padding: clamp(72px, 9vw, 140px) clamp(20px, 6vw, 96px); border-bottom: 1px solid var(--ink); }
.tracker-section { background: #f7f6f2; }
.section-heading { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(360px, 1.5fr) minmax(240px, .85fr); gap: clamp(28px, 5vw, 78px); align-items: end; margin-bottom: 56px; }
.section-index { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; }
.section-index .eyebrow { margin-bottom: 0; }
.section-index > span { font: 400 10px "Space Mono", monospace; color: var(--muted); }
.section-title h2 { font-size: clamp(45px, 5vw, 74px); }
.conversion-path { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 700 9px "Space Mono", monospace; }
.conversion-path svg { width: 14px; height: 14px; color: var(--signal); }
h2 { font-size: clamp(36px, 5vw, 74px); line-height: .98; margin: 0; font-weight: 600; }
.section-heading > p:last-child, .strategy-copy > p { font-size: 16px; line-height: 1.65; color: #343431; margin: 0; }

.stats-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr .92fr; border: 1px solid var(--ink); }
.stat { min-width: 0; min-height: 244px; padding: 24px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; background: var(--white); overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat-primary { background: var(--ink); color: white; }
.stat-accent { background: var(--signal); color: white; }
.stat-label { font: 700 11px "Space Mono", monospace; text-transform: uppercase; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 9px "Space Mono", monospace; }
.stat-head > span:last-child { opacity: .48; }
.stat-value { min-width: 0; display: flex; align-items: baseline; gap: 9px; font-size: clamp(32px, 3.3vw, 54px); line-height: 1; font-weight: 600; white-space: nowrap; }
.stat-value small { font: 700 clamp(10px, 1vw, 13px) "Space Mono", monospace; opacity: .64; }
.stat-detail { min-height: 16px; font-size: 11px; opacity: .68; overflow-wrap: anywhere; }
.tracker-meta { min-height: 54px; border: 1px solid var(--ink); border-top: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 40px; align-items: center; gap: 20px; font: 500 10px "Space Mono", monospace; }
.status-line { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 4px rgba(184,255,61,.25); }
.status-dot.error { background: var(--red); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 15px; }
.icon-button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.strategy-section { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(60px, 10vw, 160px); background: var(--white); }
.strategy-copy { max-width: 760px; }
.strategy-copy h2 { margin-bottom: 40px; }
.strategy-copy > p { margin-top: 20px; max-width: 680px; }
.formula { margin-top: 54px; border-block: 1px solid var(--ink); padding: 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font: 700 12px "Space Mono", monospace; }
.formula b { color: var(--signal); }
.tweet-panel { align-self: start; border-top: 1px solid var(--ink); }
.tweet-label { min-height: 48px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); font: 700 10px "Space Mono", monospace; }
.tweet-label a { display: flex; align-items: center; gap: 5px; }
.tweet-card { display: block; padding: 24px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.tweet-card:hover { border-color: var(--signal); }
.tweet-author { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; }
.tweet-author > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.tweet-author small { color: var(--muted); }
.tweet-author > b { font-size: 20px; }
.tweet-avatar { width: 42px; height: 42px; background: var(--ink); color: white; display: grid; place-items: center; font: 700 11px "Space Mono", monospace; }
.tweet-card blockquote { margin: 44px 0; font-size: clamp(28px, 3.5vw, 52px); line-height: 1.04; font-weight: 600; }
.tweet-art { aspect-ratio: 1.55; background: var(--signal); color: white; padding: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.tweet-art span:first-child { font-size: clamp(72px, 10vw, 130px); line-height: .75; font-weight: 700; }
.tweet-art span:last-child { text-align: right; font: 700 12px/1.2 "Space Mono", monospace; }
.tweet-card time { display: block; margin-top: 18px; color: var(--muted); font: 400 10px "Space Mono", monospace; }

.settings-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(50px, 10vw, 160px); background: #deddd7; }
.settings-section form { max-width: 760px; }
label { display: block; margin: 0 0 9px; font: 700 10px "Space Mono", monospace; text-transform: uppercase; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 28px; }
.input-row.compact { grid-template-columns: minmax(120px, 220px) auto; justify-content: start; }
input { width: 100%; min-height: 46px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); padding: 0 13px; font: 12px "Space Mono", monospace; outline: none; }
input:focus { box-shadow: inset 0 -3px var(--signal); }
.form-note { font-size: 11px; line-height: 1.55; color: var(--muted); max-width: 620px; }

footer { min-height: 100px; padding: 26px clamp(20px, 4vw, 64px); background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 30px; font: 500 10px "Space Mono", monospace; }

@media (max-width: 900px) {
  nav > a:not(.social-link) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .edition-visual { justify-self: start; width: min(100%, 500px); }
  .section-heading { grid-template-columns: 1fr; }
  .section-index { min-height: 0; flex-direction: row; }
  .section-title h2 { font-size: clamp(42px, 8vw, 68px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .strategy-section, .settings-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; }
  .brand { font-size: 12px; }
  .social-link { font-size: 0; }
  .social-link::before { content: "X"; font-size: 12px; }
  h1 { font-size: 58px; }
  .hero { padding-top: 54px; gap: 50px; }
  .edition-visual { box-shadow: 9px 9px 0 var(--signal); }
  .ticker-band span:nth-child(even) { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .stat-value { font-size: 44px; }
  .stat:last-child { border-bottom: 0; }
  .tracker-meta { grid-template-columns: 1fr 36px; padding-block: 10px; }
  .tracker-meta > div:nth-child(2) { display: none; }
  .input-row, .input-row.compact { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
