/* adaptt.ai site styles. Palette follows the Ratify highlight video; type follows the collateral. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0a1a30;
  --bg-deep: #06111f;
  --panel: #0e223d;
  --panel-2: #12294a;
  --line: #1f3a5f;
  --text: #eef2f7;
  --muted: #a3b1c4;
  --faint: #6f819a;
  --teal: #3ec2a5;
  --teal-dim: rgba(62, 194, 165, 0.14);
  --amber: #e3a33b;
  --amber-dim: rgba(227, 163, 59, 0.14);
  --max: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #10284a 0%, var(--bg) 55%, var(--bg-deep) 100%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Barlow", system-ui, sans-serif; font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Kicker text, as in the video's spaced small caps */
.kicker {
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.kicker .accent, .teal { color: var(--teal); }
.amber { color: var(--amber); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 20, 38, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 58, 95, 0.6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.04em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .btn { color: var(--bg-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px;
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
  background: var(--teal); color: var(--bg-deep); border: 1px solid var(--teal);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
section { padding: 96px 0; }
section + section { border-top: 1px solid rgba(31, 58, 95, 0.55); }
.hero { padding: 120px 0 96px; }
.hero h1 { margin: 18px 0 26px; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: 720px; }
.hero .actions { margin-top: 38px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--muted); }

/* Video */
.video-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-note { margin-top: 14px; color: var(--faint); font-size: 15px; }

/* Problem statement */
.problem { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.problem .big { font-family: "Barlow", sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.problem .big .teal { display: block; }
.problem p.body { color: var(--muted); margin-top: 18px; }
.problem ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; color: var(--muted); }
.problem li b { color: var(--text); font-weight: 600; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); font-size: 17px; }
.card .more { margin-top: auto; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; }
.status {
  align-self: flex-start; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
}
.status.live { color: var(--teal); background: var(--teal-dim); border: 1px solid rgba(62, 194, 165, 0.35); }
.status.dev { color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(227, 163, 59, 0.35); }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof div { border-left: 2px solid var(--teal); padding: 4px 0 4px 18px; }
.proof strong { display: block; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; }
.proof span { color: var(--muted); font-size: 16px; }

/* Steps (Ratify page) */
.steps { display: grid; gap: 72px; }
.step { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-text .kicker { margin-bottom: 10px; }
.step-text h3 { font-size: 28px; margin-bottom: 14px; }
.step-text p { color: var(--muted); }
.step-text p + p { margin-top: 12px; }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figure { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.figure strong { display: block; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 38px; color: var(--teal); line-height: 1.1; margin-bottom: 10px; }
.figure span { color: var(--muted); font-size: 16px; }
.scope { margin-top: 18px; color: var(--faint); font-size: 14px; max-width: 900px; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 190px; font-family: "Barlow", sans-serif; font-weight: 600; color: var(--text); padding-right: 24px; }
.spec td { color: var(--muted); }

/* Company */
.company { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.company p { color: var(--muted); }
.company p + p { margin-top: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.facts li.badges { display: flex; gap: 16px; align-items: center; background: none; border: 0; padding: 0; margin-top: 16px; }
.facts li.badges img { display: block; height: 110px; width: auto; }
.facts b { display: block; font-family: "Barlow", sans-serif; font-weight: 600; }
.facts span { color: var(--muted); font-size: 16px; }

/* Closing CTA */
.cta { text-align: center; }
.cta h2 { margin: 14px auto 18px; max-width: 760px; }
.cta p { color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.cta .actions { justify-content: center; }

/* Operator line */
.operator { margin-top: 36px; padding: 18px 22px; border-left: 2px solid var(--teal); background: var(--teal-dim); border-radius: 0 8px 8px 0; color: var(--text); max-width: 820px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(31, 58, 95, 0.55); padding: 36px 0 44px; color: var(--faint); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Platform: lifecycle strip */
.lifecycle { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lc { padding: 18px 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-height: 196px; background: rgba(14, 34, 61, 0.55); }
.lc:first-child { border-left: 0; }
.lc .n { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.lc h3 { font-size: 19px; }
.lc p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.lc .status { margin-top: auto; font-size: 10.5px; letter-spacing: 0.14em; padding: 3px 7px; }
.lc.op { background: var(--teal-dim); box-shadow: inset 0 0 0 1px rgba(62, 194, 165, 0.45); }
.lc.op .n { color: var(--teal); }
.status.plan { color: var(--muted); border: 1px dashed var(--line); }
.lc-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--faint); font-size: 14px; }

/* Platform: shared layers */
.layers { display: grid; gap: 14px; margin-top: 20px; }
.layer { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.layer h3 { font-size: 20px; }
.layer p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.chip.dev { background: transparent; border: 1px dashed rgba(227, 163, 59, 0.55); color: var(--amber); }
.chip.live { border-color: rgba(62, 194, 165, 0.45); color: var(--teal); }
.chip.plan { background: transparent; border: 1px dashed var(--line); color: var(--muted); }

/* Platform: deployment architecture diagram */
.arch { border: 1px solid var(--line); border-radius: 10px; padding: 26px; background: rgba(6, 17, 31, 0.6); }
.arch .label { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); text-align: center; margin-bottom: 18px; }
.enclave { border: 1px solid rgba(62, 194, 165, 0.4); border-radius: 8px; padding: 18px; background: rgba(62, 194, 165, 0.04); }
.enclave .tag { display: flex; align-items: center; gap: 8px; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.enclave .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(62, 194, 165, 0.7); }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.box { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.box b { display: block; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; color: var(--teal); }
.box span { color: var(--faint); font-size: 13.5px; }
.box.dev b { color: var(--amber); }
.box.wide { grid-column: 1 / -1; }
.gap-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.gap-line::before, .gap-line::after { content: ""; flex: 1; height: 1px; background: rgba(255, 99, 99, 0.45); }
.gap-line span { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.22em; color: #ff7a7a; border: 1px solid rgba(255, 99, 99, 0.4); padding: 3px 10px; border-radius: 3px; }
.outside { text-align: center; color: var(--faint); font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; border: 1px dashed var(--line); border-radius: 6px; padding: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }

/* Three-step how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how .card .num { font-family: "Barlow", sans-serif; font-weight: 700; font-size: 34px; color: var(--line); line-height: 1; }

/* Assurance: standards map and before/after results */
.map { width: 100%; border-collapse: collapse; }
.map th, .map td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.map thead th { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.map tbody th { font-family: "Barlow", sans-serif; font-weight: 600; color: var(--text); width: 26%; }
.map td { color: var(--muted); }
.results { display: grid; gap: 20px; }
.result { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.result h3 { margin-bottom: 8px; }
.result > p { color: var(--muted); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 14px; }
.ba div { border-radius: 8px; padding: 16px 18px; }
.ba .before { background: var(--amber-dim); border: 1px solid rgba(227, 163, 59, 0.35); }
.ba .after { background: var(--teal-dim); border: 1px solid rgba(62, 194, 165, 0.35); }
.ba .lbl { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.ba .before .lbl { color: var(--amber); }
.ba .after .lbl { color: var(--teal); }
.ba strong { display: block; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--text); margin-bottom: 6px; }
.ba span { color: var(--muted); font-size: 15.5px; }
.result .bound { font-size: 15px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Responsive */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 84px 0 72px; }
  .problem, .company, .step { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-text { order: 0; }
  .pillars, .how, .principles { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .map tbody th { width: 34%; }
  .lifecycle { grid-template-columns: repeat(4, 1fr); }
  .lc:nth-child(5) { border-left: 0; }
  .lc:nth-child(n+5) { border-top: 1px solid var(--line); }
  .layer, .split { grid-template-columns: 1fr; gap: 14px; }
  .proof, .figures { grid-template-columns: repeat(2, 1fr); }
  .spec th { width: 130px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav a:not(.btn) { display: none; }
  .nav a.keep { display: inline; }
  .proof, .figures { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .lc { min-height: 0; }
  .lc:nth-child(odd) { border-left: 0; }
  .lc:nth-child(n+3) { border-top: 1px solid var(--line); }
  .boxes { grid-template-columns: 1fr 1fr; }
  .spec th, .spec td { display: block; width: auto; padding: 6px 0; border: 0; }
  .spec tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

.map td .status { display: inline-block; white-space: nowrap; margin: 0 6px 6px 0; }

.split.wide-media { grid-template-columns: 1fr 1.35fr; }
.shot { width: 100%; }
@media (max-width: 900px) { .split.wide-media { grid-template-columns: 1fr; } }

/* Demo: recorded Ratify run */
.runfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0 14px; }
.runfacts div { border-left: 2px solid var(--teal); padding: 2px 0 2px 16px; }
.runfacts strong { display: block; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; }
.runfacts span { color: var(--muted); font-size: 15px; }
.stepnav { position: sticky; top: 68px; z-index: 9; background: rgba(8, 20, 38, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 58, 95, 0.6); }
.stepnav .wrap { display: flex; gap: 26px; overflow-x: auto; height: 50px; align-items: center; }
.stepnav a { color: var(--muted); font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap; }
.stepnav a:hover { color: var(--text); text-decoration: none; }
section[id] { scroll-margin-top: 130px; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.muted { color: var(--muted); font-size: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin-bottom: 18px; }
.panel p { color: var(--text); }
.panel .kicker { margin-bottom: 8px; }
.cites { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.cite { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.cite-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; color: var(--text); background: rgba(255,255,255,0.05); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
blockquote { margin: 10px 0 8px; padding: 10px 14px; border-left: 2px solid var(--line); color: var(--text); font-size: 16px; background: rgba(6, 17, 31, 0.5); border-radius: 0 6px 6px 0; }
.cite-meta { color: var(--faint); font-size: 14px; }
.flag { color: var(--amber); font-size: 14.5px; margin: 6px 0; }
.objtab { margin-top: 12px; }
.objtab th { width: 30%; font-weight: 600; font-size: 15.5px; }
.objtab td { font-size: 15.5px; }
.objtab td:nth-child(2) { white-space: nowrap; }
details.more { margin-top: 18px; }
details.more summary { cursor: pointer; color: var(--teal); font-family: "Barlow", sans-serif; font-weight: 600; margin-bottom: 12px; }
.two-drafts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.draft { background: var(--panel); border: 1px solid rgba(62, 194, 165, 0.35); border-radius: 10px; padding: 18px 20px; margin-top: 8px; }
.draft .kicker { font-size: 11.5px; letter-spacing: 0.14em; margin-bottom: 10px; }
.proposed { color: var(--text); font-size: 16.5px; }
@media (max-width: 900px) {
  .runfacts { grid-template-columns: repeat(2, 1fr); }
  .two-drafts { grid-template-columns: 1fr; }
  .objtab th, .objtab td { display: block; width: auto; padding: 4px 0; border: 0; }
  .objtab thead { display: none; }
  .objtab tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .objtab td:nth-child(2) { white-space: normal; }
}
@media (max-width: 640px) { .runfacts { grid-template-columns: 1fr; } .stepnav { top: 68px; } }

/* Spacing utilities (replace inline styles; strict CSP) */
.mt-0 { margin-top: 0; } .mt-14 { margin-top: 14px; } .mt-28 { margin-top: 28px; } .mr-10 { margin-right: 10px; }
.mt-14-22 { margin: 14px 0 22px; } .mt-18-22 { margin: 18px 0 22px; }

/* Phone menu: native <details>, no JavaScript */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { border-color: var(--teal); color: var(--teal); }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.mobile-menu nav a { color: var(--muted); font-family: "Barlow", sans-serif; font-weight: 600; font-size: 16px; padding: 10px 12px; border-radius: 6px; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--text); background: var(--panel); text-decoration: none; }
.mobile-menu nav a.btn { color: var(--bg-deep); background: var(--teal); justify-content: center; margin-top: 6px; }
@media (max-width: 640px) {
  .site-header .nav { display: none; }
  .mobile-menu { display: block; }
}
