:root {
  --bg: #f5f3ec;
  --bg-alt: #ebe8de;
  --surface: #fbfaf6;
  --text: #1f1e1b;
  --muted: #6b6963;
  --line: #dcd8cb;
  --accent: #2f43c4;
  --accent-hover: #24359e;
  --on-accent: #fff;
  --term-bg: #1f1e1b;
  --term-text: #e9e6dc;
  --error: #b3261e;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b18;
    --bg-alt: #24231f;
    --surface: #262520;
    --text: #ece9df;
    --muted: #a29f95;
    --line: #3a3832;
    --accent: #8e9bf3;
    --accent-hover: #a9b3f6;
    --on-accent: #14151f;
    --term-bg: #121210;
    --error: #f2867d;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
.mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
section { padding: 96px 0; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); max-width: 18ch; }
h3 { font-size: 24px; margin-bottom: 8px; }
p { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .85; }
.btn-ghost { border-color: var(--line); background: var(--bg); }
.btn-ghost:hover { border-color: var(--text); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; gap: 32px; font-family: var(--mono); font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding-top: 120px; overflow: hidden; }
.hero-inner { position: relative; }
.hero h1, .hero .big, .lede, .form-msg { text-shadow: 0 0 2px var(--bg), 0 0 6px var(--bg), 0 0 12px var(--bg); }
.hero .lede { color: var(--text); opacity: .8; }
.dither {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
.hero h1 { margin-bottom: 32px; }
.lede { font-size: 22px; max-width: 34em; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Waitlist */
.waitlist {
  display: flex;
  width: min(100%, 440px);
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s;
}
.waitlist:focus-within { border-color: var(--accent); }
.waitlist[data-state="error"] { border-color: var(--error); }
.waitlist input {
  flex: 1; min-width: 0;
  padding: 0 12px;
  font: 14px var(--mono);
  color: var(--text);
  background: transparent;
  border: 0; outline: none;
}
.waitlist .btn { padding: 10px 18px; white-space: nowrap; border: 0; cursor: pointer; }
.waitlist .btn:disabled { cursor: default; background: var(--accent); }
.form-msg { min-height: 1.6em; margin-top: 14px; font-size: 13px; }
.form-msg[data-state="ok"] { color: var(--accent); }
.form-msg[data-state="error"] { color: var(--error); }

.terminal {
  position: relative;
  margin-top: 72px;
  background: var(--term-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31, 30, 27, .45);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #ffffff14; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ffffff26; }
.term-bar p { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: #8b887f; }
.term-body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--term-text);
  padding: 24px 28px 28px;
  overflow-x: auto;
}
.term-body .dim { color: #8b887f; }
.term-body .ok { color: #8fbf7f; }
.term-body .accent { color: #8e9bf3; }
.copy {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--mono); font-size: 12px;
  background: #ffffff12; color: #c9c5b9;
  border: 1px solid #ffffff1f; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
}
.copy:hover { background: #ffffff20; }

/* Strip */
.strip { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 13px; color: var(--muted); }
.strip-inner span:first-child { color: var(--accent); }

/* Mission */
blockquote {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-bottom: 72px;
}
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cols-3 > div { border-top: 1px solid var(--line); padding-top: 24px; }

/* Section head */
.section-head { margin-bottom: 56px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.link { font-size: 14px; color: var(--accent); }

/* Models */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.model {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s, border-color .2s;
}
.model:hover { transform: translateY(-3px); border-color: var(--muted); }
.model.featured { border-color: var(--accent); }
.model header { display: flex; justify-content: space-between; align-items: baseline; }
.model h3 { font-size: 30px; margin: 0; }
.model p { font-size: 17px; flex: 1; }
.tag { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.model dl { font-size: 12px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.model dl div { display: flex; justify-content: space-between; }
.model dt { color: var(--muted); }
.badge {
  position: absolute; top: -11px; left: 24px;
  font-size: 11px; background: var(--accent); color: var(--on-accent);
  padding: 3px 10px; border-radius: 999px;
}

/* Safety */
.safety { background: var(--bg-alt); border-block: 1px solid var(--line); }
.safety h2 { max-width: 22ch; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.principles li { display: flex; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.num { font-size: 13px; color: var(--accent); padding-top: 6px; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.big { font-size: clamp(44px, 6vw, 72px); color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.small { font-size: 13px; }

/* Posts */
.posts { list-style: none; border-top: 1px solid var(--line); }
.posts a {
  display: grid; grid-template-columns: 140px 1fr 80px; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding .2s;
}
.posts a:hover { padding-left: 10px; }
.posts a:hover .title { color: var(--accent); }
.date, .kind { font-size: 13px; color: var(--muted); }
.kind { text-align: right; }
.title { font-size: 23px; line-height: 1.3; transition: color .15s; }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin: 0 auto 20px; max-width: 16ch; }
.cta p { max-width: 32em; margin: 0 auto 36px; }
.cta .hero-ctas { justify-content: center; }
.contact { margin-top: 24px; font-size: 13px; }
.contact a { color: var(--accent); }
.contact a:hover { text-decoration: underline; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 96px 24px 120px; }
.article-meta { font-size: 13px; margin-bottom: 24px; }
.article h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 24px; }
.article-dek { font-size: 24px; line-height: 1.4; margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 30px; max-width: none; margin: 56px 0 16px; }
.article p:not(.article-meta, .article-dek, .article-sign) { color: var(--text); font-size: 20px; line-height: 1.7; margin-bottom: 1.2em; }
.article blockquote { font-size: 30px; max-width: none; margin: 40px 0; padding-left: 24px; border-left: 3px solid var(--accent); }
.article-sign { font-size: 14px; margin-top: 48px; }

/* 404 */
.notfound { min-height: calc(100vh - 65px); display: flex; align-items: center; padding: 64px 0; }
.notfound .hero-inner { width: 100%; }
.notfound .big { color: var(--accent); font-size: clamp(56px, 10vw, 112px); margin-bottom: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-cols { display: flex; gap: 72px; font-size: 13px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols p { color: var(--text); margin-bottom: 4px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--accent); }
.fine { font-size: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .models { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .wrap { padding-inline: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .lede { font-size: 19px; }
  .cols-3, .models, .principles { grid-template-columns: 1fr; }
  .cols-3 { gap: 32px; }
  .term-body { font-size: 12px; padding: 20px; }
  .posts a { grid-template-columns: 1fr; gap: 6px; }
  .kind { display: none; }
  .title { font-size: 20px; }
  .article { padding: 56px 16px 80px; }
  .article p:not(.article-meta, .article-dek, .article-sign) { font-size: 18px; }
  .article blockquote { font-size: 24px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
}
