/* CiAiX — site styles. Tokens match the CiAiX Design System. */
:root {
  --bg: #0c0e10;
  --surface: #16191c;
  --line: #2a2e33;
  --line-strong: #6b665a;
  --text: #eee4c7;
  --muted: #a89f88;
  --gold: #f0c838;
  --gold-bright: #f8e058;
  --gold-wash: #2a2410;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 8vw, 160px);
  --band: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul, blockquote { margin: 0; }

a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.h2-sm { font-size: clamp(26px, 3vw, 32px); line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.36; font-weight: 500; }
.h3-lg { font-size: clamp(26px, 3vw, 32px); line-height: 1.25; }
.label { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead, .body-lg { font-size: 19px; line-height: 30px; }
.lead { color: var(--muted); max-width: 760px; }
.text { font-size: 17px; line-height: 28px; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.emph { color: var(--text); font-size: 22px; line-height: 30px; font-weight: 500; }
.big { font-size: clamp(40px, 4.5vw, 56px); line-height: 1; font-weight: 500; color: var(--gold); letter-spacing: -0.02em; }
.measure { max-width: 860px; }
strong { color: var(--text); font-weight: 500; }

/* Layout */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); border-top: 1px solid var(--line); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.btn-lg { font-size: 17px; padding: 14px 24px; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-bright); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

/* Hero with background video */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--surface) url("/media/hero-poster.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; background: rgb(12 14 16 / 0.72); z-index: -1; }
.hero-inner { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(80px, 10vw, 128px) clamp(64px, 8vw, 96px); }
.hero-inner > * { max-width: 960px; }
.video-toggle { position: absolute; top: 24px; right: var(--gutter); width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgb(12 14 16 / 0.6); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.video-toggle[hidden] { display: none; }
.video-toggle:hover { border-color: var(--gold); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card.stack-lg { padding: 32px; gap: 24px; }
.card-feature { grid-column: 1 / -1; border-color: var(--gold); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }

/* COƵMO */
.quote { background: var(--gold-wash); border-radius: 8px; padding: 32px; color: var(--gold); font-size: clamp(26px, 3vw, 32px); line-height: 1.25; font-weight: 500; }
.quote footer { margin-top: 12px; }
.steps { list-style: none; padding: 0; }
.steps li { display: flex; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold); padding-top: 6px; }
.nots { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.nots li { border-top: 1px solid var(--line-strong); padding-top: 16px; font-size: 22px; line-height: 30px; font-weight: 500; }
.plain { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.answers { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 19px; line-height: 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 48px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-row img { height: 56px; width: auto; }

/* Tablet */
@media (max-width: 1024px) {
  .grid-4, .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 48px; }
}

/* Phone */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .split, .grid-3, .grid-4, .nots, .card-feature { grid-template-columns: minmax(0, 1fr); }
  .card-feature { gap: 16px; padding: 24px; }
  .brand img { height: 32px; }
  .header-row { padding-block: 16px; }
  .video-toggle { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Footer disclosures */
.disclosures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.disclosures h3.label { font-size: 12px; }
.legal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-links { display: flex; gap: 24px; }
@media (max-width: 760px) { .disclosures { grid-template-columns: minmax(0, 1fr); } }

/* Legal page */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; line-height: 1.36; margin-top: 16px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
