:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --border: #e5e5e5;
  --border-strong: #cccccc;
  --accent: #1a1a1a;
  --accent-soft: #f4f4f4;
  --error: #c41e1e;
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(72px, 12vh, 140px);
  --content-max: 1200px;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 20px);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__cta {
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
}

.nav__cta:hover {
  border-color: var(--accent);
}

.nav__links--desktop {
  display: none;
}

.nav__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nav__links--desktop {
    display: flex;
  }

  .nav__menu-btn {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: fadeIn 0.2s ease forwards;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__close {
  position: absolute;
  top: 12px;
  right: var(--pad-x);
  padding: 12px;
  font-size: 28px;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-drawer__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.02em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  padding-top: calc(var(--pad-y) + 48px);
}

.hero__inner {
  max-width: var(--content-max);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__tagline {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.8vw, 14px);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--text);
  border-color: var(--text);
}

.btn--ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.rule {
  border: none;
  height: 1px;
  margin: 0;
  background: var(--border);
}

/* Sections */
.section {
  padding: var(--pad-y) var(--pad-x);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section--waitlist {
  padding-bottom: calc(var(--pad-y) + 24px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.eyebrow--block {
  margin-bottom: 36px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about .eyebrow {
  grid-column: 1 / -1;
}

.about__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about__headline .accent {
  font-style: normal;
  color: var(--muted);
}

.about__body p {
  margin: 0;
  color: var(--muted);
}

.about__body p + p {
  margin-top: 1.2em;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-top: 40px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 48px);
  letter-spacing: -0.02em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.stat__sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--4,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.card__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.card__text {
  margin: 12px 0 0;
  font-size: 0.95em;
  color: var(--muted);
}

/* Models */
.model-card {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.25s, transform 0.25s;
}

.model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.model-card__media {
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-card__body {
  padding: 22px 24px 28px;
}

.model-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.model-card__spec {
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.model-card__body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95em;
}

/* Research */
.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.research-card {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--accent-soft);
}

.research-card__media {
  aspect-ratio: 16 / 10;
  background: #eaeaea;
  overflow: hidden;
}

.research-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-card__body {
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-card__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.research-card__body h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.research-card__body > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95em;
}

.link-faux {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  cursor: default;
}

.bench {
  width: 100%;
  max-width: 280px;
  margin-top: 18px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}

.bench th {
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.bench td {
  text-align: right;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .research-card {
    grid-template-columns: 1fr;
  }
}

/* Waitlist */
.waitlist-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) clamp(22px, 5vw, 48px);
  text-align: center;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.waitlist-panel__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.waitlist-panel__lede {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.waitlist-form {
  margin-top: 32px;
}

.waitlist-form__row {
  display: flex;
  flex-wrap: nowrap;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  border: none;
  background: var(--bg);
  outline: none;
}

.waitlist-form input:focus {
  box-shadow: inset 0 0 0 2px var(--text);
}

.waitlist-form button {
  flex-shrink: 0;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  transition: background-color 0.2s;
}

.waitlist-form button:hover:not(:disabled) {
  background: var(--text);
}

.waitlist-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 560px) {
  .waitlist-form__row {
    flex-direction: column;
  }
}

.form-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--error);
}

.form-success {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
}

.waitlist-panel__legal {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 13px;
  color: rgba(90, 90, 90, 0.75);
}

.waitlist-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 36px;
  margin-top: 40px;
}

.waitlist-stats__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 30px);
}

.waitlist-stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.waitlist-stats__sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

@media (max-width: 560px) {
  .waitlist-stats__sep {
    display: none;
  }
}

/* Footer */
.footer {
  padding: 48px var(--pad-x) 36px;
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
}

.footer__row {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 18px);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer__links span:hover {
  color: var(--text);
  cursor: default;
}

.footer__divider {
  max-width: var(--content-max);
  height: 1px;
  margin: 32px auto;
  background: var(--border);
}

.footer__row--meta {
  font-size: 14px;
  color: var(--muted);
}

.footer__year {
  font-family: var(--font-mono);
  font-size: 12px;
}
