/* Self-hosted fonts copied from marin-site so CSP stays default-src 'self'. */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #191715;
  --ink-deep: #100f0e;
  --ink-black: #0a0a09;
  --panel: #211f1c;
  --track: #262420;
  --line: #36332e;
  --line-soft: #262420;
  --white: #ffffff;
  --body: #c9c5bb;
  --dim: #a5a197;
  --grey-mark: #8a867c;
  --yellow: #FBE708;

  --display: "Inter Tight", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --section-gap: clamp(72px, 9vw, 112px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dt, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.container {
  max-width: 1248px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.section { padding-top: var(--section-gap); }

/* ---- typography ---- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.body { color: var(--body); }
.narrow { max-width: 520px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--yellow); }

/* ---- layout helpers ---- */
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 40px 64px;
}
.split > * { min-width: 0; }
.split-center { align-items: center; }
.split-end { align-items: end; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }

/* ---- hero stage ---- */
.hero-stage {
  background: radial-gradient(120% 70% at 50% 48%, #181715 0%, var(--ink-deep) 56%, var(--ink-black) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 31px;
  fill: var(--yellow);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.brand-parent {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--dim);
  margin-left: 2px;
  transform: translateY(2px);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--body);
}
.site-nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--white); }

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-title {
  max-width: 1080px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 590px;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.48;
  color: var(--body);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-link:hover { color: var(--yellow); }

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-black);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8.5;
  object-fit: cover;
  object-position: center 56%;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px 48px;
  padding-top: 8px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pillar dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.pillar dd {
  font-size: 15px;
  line-height: 1.5;
  color: var(--dim);
}

/* ---- RL progression panel ---- */
.rl-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  border-radius: 8px;
}
.rl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rl-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.rl-sub {
  font-size: 14px;
  color: var(--dim);
  margin-top: 4px;
}
.rl-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.rl-tab {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.rl-tab:hover { color: var(--white); }
.rl-tab.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.rl-stages {
  display: flex;
  flex-direction: column;
}
.rl-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.rl-row:first-child {
  padding-top: 4px;
  border-top: 0;
}
.rl-row-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}
.rl-row-val {
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}
.rl-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.rl-note { color: var(--dim); max-width: 340px; }
.rl-sovereignty {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  white-space: nowrap;
}

/* ---- yellow band: dual-engine, purple-teaming, insider ---- */
.yellow-band {
  margin-top: var(--section-gap);
  background: var(--yellow);
  color: var(--ink);
}
.band-inner {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
.yellow-sub {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(25, 23, 21, 0.82);
  max-width: 520px;
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 48px;
}
.capability {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.capability p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(25, 23, 21, 0.84);
}
.cap-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cap-list li {
  padding: 11px 0;
  border-top: 1px solid rgba(25, 23, 21, 0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

/* ---- dark hardware band ---- */
.dark-band {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-soft);
}
.hardware-media {
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-black);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hardware-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 54%;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px 64px;
}
.hw-model {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--yellow);
}
.hw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.hw-tag {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

/* ---- comparison table ---- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.compare th, .compare td {
  padding: 20px 22px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--body);
  border-top: 1px solid var(--line);
}
.compare thead th, .compare thead td {
  border-top: 0;
  font-size: 14px;
  color: var(--dim);
}
.compare thead .is-fireball {
  color: var(--yellow);
  font-weight: 600;
}
.compare tbody th {
  width: 20%;
  padding-left: 0;
  color: var(--white);
  font-weight: 500;
}
.compare tbody td {
  width: 25%;
}
.compare tbody .is-fireball {
  width: 30%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  border-top-color: rgba(25, 23, 21, 0.2);
}
.compare tbody tr:first-child .is-fireball {
  border-top-color: var(--yellow);
}

/* ---- closing & form ---- */
.closing {
  padding-top: calc(var(--section-gap) + 12px);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--section-gap);
}
.closing.split { align-items: start; }
.closing-title {
  max-width: 720px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.form-wrap { min-width: 0; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--dim); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink-deep);
  border: 1px solid #59554d;
  border-radius: 6px;
  color: var(--white);
  font: inherit;
}
.field select {
  padding-right: 36px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field textarea::placeholder { color: var(--grey-mark); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--yellow);
}
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { flex: 1 1 220px; font-size: 15px; color: var(--body); }
.form-status.is-error { color: #ffb4a8; }
.form-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 2px solid var(--yellow);
  border-radius: 8px;
}

/* ---- footer ---- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 72px;
  padding-bottom: max(44px, env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  color: var(--dim);
}
.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 820px) {
  .site-nav { display: none; }
}

@media (max-width: 700px) {
  .compare thead { position: absolute; left: -9999px; }
  .compare tr { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { padding-top: 0; border-top: 0; }
  .compare th, .compare td { display: block; width: auto; padding: 0; border: 0; }
  .compare tbody th { width: auto; font-weight: 600; }
  .compare tbody td { margin-top: 10px; }
  .compare tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--dim);
  }
  .compare tbody .is-fireball { width: auto; padding: 12px 14px; border-radius: 4px; }
  .compare tbody .is-fireball::before { color: rgba(25, 23, 21, 0.72); }
}

@media (max-width: 520px) {
  .site-header .btn-small { padding: 10px 16px; font-size: 14px; }
  .rl-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .rl-fill { transition: none; }
  .btn:hover { transform: none; }
}
