/* ============================================================
   Kelhe — runtime control for AI agents
   Clean, light, enterprise design system
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f6f8;
  --surface:   #ffffff;

  --line:      #e6e8ee;
  --line-2:    #d5dae2;

  --heading:   #0c0e12;       /* true ink for titles */
  --text:      #1a1e25;
  --text-2:    #525a66;       /* cooler secondary */
  --text-3:    #868d99;

  --accent:    #1d3c8c;       /* deep institutional navy — links, focus, small marks */
  --accent-2:  #2f55b8;
  --accent-ink:#122a5e;
  --accent-soft: rgba(29,60,140,0.09);
  --ink:       #121519;       /* primary button — near-black graphite */

  --ok:        #157f4a;
  --hold:      #9a6700;
  --block:     #b4382f;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --maxw:      1120px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  /* spacing scale — consistent vertical/horizontal rhythm */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 30px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 80px;

  /* elevation — softer, faintly navy-cool, low-opacity */
  --shadow-xs: 0 1px 2px rgba(18,26,48,0.05);
  --shadow-sm: 0 1px 2px rgba(18,26,48,0.04), 0 2px 6px -2px rgba(18,26,48,0.05);
  --shadow-md: 0 2px 4px -1px rgba(18,26,48,0.04), 0 10px 24px -8px rgba(18,26,48,0.08);
  --shadow-lg: 0 4px 8px -2px rgba(18,26,48,0.05), 0 24px 48px -18px rgba(18,26,48,0.12);
  --shadow-xl: 0 8px 16px -8px rgba(18,26,48,0.06), 0 44px 80px -34px rgba(18,26,48,0.20);
  --ring: 0 0 0 3px rgba(29,60,140,0.18);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-feature-settings: "cv11", "ss01", "calt", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; }

h1, h2, h3 { color: var(--heading); text-wrap: balance; }

::selection { background: rgba(29,60,140,0.14); color: var(--heading); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* sticky-nav-aware anchor jumps */
[id] { scroll-margin-top: 88px; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding-block: clamp(72px, 9vw, 116px); }
.section--alt {
  background:
    linear-gradient(180deg, rgba(18,26,48,0.012), transparent 120px),
    var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.section__head--center .eyebrow::before { display: none; }

.section__title {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--heading);
}

.section__lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.section__lead code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent-ink);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.16s var(--ease), box-shadow 0.18s var(--ease),
              filter 0.18s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(180deg, #20242c, var(--ink));
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn--primary:active { transform: translateY(0); filter: brightness(0.98); box-shadow: var(--shadow-xs); }

.btn--ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--text-3); background: var(--bg-alt); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost:active { transform: translateY(0); box-shadow: none; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { border-radius: 7px; }
.brand__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.16s;
}
.nav__links > a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.nav__cta .nav__link {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__cta .nav__link:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  cursor: pointer;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3vw, 44px); }
.hero__bg {
  position: absolute;
  inset: -64px 0 auto 0;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 360px at 78% 8%, rgba(29,60,140,0.06), transparent 70%),
    radial-gradient(540px 320px at 18% 0%, rgba(29,60,140,0.045), transparent 70%),
    radial-gradient(circle at center, rgba(18,26,48,0.045) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  -webkit-mask-image: radial-gradient(820px 420px at 60% 12%, #000 30%, transparent 78%);
  mask-image: radial-gradient(820px 420px at 60% 12%, #000 30%, transparent 78%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.05rem, 1.2rem + 4.2vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--heading);
}
.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(1.1rem, 1.04rem + 0.4vw, 1.22rem);
  line-height: 1.58;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__actions { margin-top: 32px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; color: var(--text-3); font-size: 0.9rem; }

/* Hero decision card (the single product visual) */
.hero__visual { position: relative; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(29,60,140,0.14), transparent 75%);
  filter: blur(34px);
}
.decision {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.decision::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(29,60,140,0.30), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.decision__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.decision__route { font-family: var(--mono); font-size: 0.82rem; color: var(--text-2); }
.decision__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.decision__body { padding: 22px 20px; }
.decision__call {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  white-space: pre;
  overflow-x: auto;
}
.decision__call .k { color: var(--accent-ink); }
.decision__rows { margin-top: 18px; display: grid; gap: 12px; }
.decision__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.decision__k { color: var(--text-3); font-size: 0.86rem; font-family: var(--mono); }
.decision__v { font-weight: 600; font-size: 0.95rem; }
.decision__v--hold { color: var(--hold); }
.decision__reason { color: var(--text-2); font-size: 0.9rem; text-align: right; }

/* ── Logo / framework strip (auto-scrolling marquee) ─────── */
.strip {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,26,48,0.018), transparent 70%);
}
.strip__label {
  flex: 0 0 auto;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.strip__marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.strip__track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  position: relative;
  flex: 0 0 auto;
  /* each item owns its trailing space so the duplicated half tiles
     perfectly and translateX(-50%) loops seamlessly */
  margin-right: 44px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.strip__item::after {
  content: "";
  position: absolute;
  right: -24px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-2);
  transform: translateY(-50%);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Pillars (value) ─────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.pillar {
  padding: 34px 30px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pillar__num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}
.pillar__title { margin-top: 16px; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; color: var(--heading); }
.pillar__desc { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; line-height: 1.62; }

/* ── How it works — flow diagram ─────────────────────────── */
.flow { margin: 0; }
.flow__pipe {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.flow__node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 18px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.flow__node--code { border-color: var(--line-2); }
.flow__node--code .flow__k { font-family: var(--mono); font-size: 0.92rem; color: var(--accent-ink); letter-spacing: -0.01em; }
.flow__node--accent {
  border-color: rgba(29,60,140,0.32);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(29,60,140,0.05);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(29,60,140,0.045), transparent 70%),
    var(--surface);
}
.flow__k { font-weight: 650; font-size: 0.98rem; letter-spacing: -0.015em; color: var(--heading); line-height: 1.25; }
.flow__sub { color: var(--text-3); font-size: 0.8rem; line-height: 1.3; }

.flow__edge {
  flex: 0 0 auto;
  align-self: center;
  position: relative;
  width: 46px;
  height: 2px;
  margin: 0 -1px;
  background: var(--line-2);
}
.flow__edge::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  transform: translate(1px, -50%) rotate(45deg);
}
.flow__edge--ok { background: var(--ok); }
.flow__edge--ok::after { border-color: var(--ok); }
.flow__elabel {
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.flow__decisions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.flow__pill {
  padding: 9px 12px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.flow__pill--ok    { color: var(--ok);    border-color: rgba(21,127,74,0.35);  background: rgba(21,127,74,0.06); }
.flow__pill--hold  { color: var(--hold);  border-color: rgba(154,103,0,0.32);  background: rgba(154,103,0,0.06); }
.flow__pill--block { color: var(--block); border-color: rgba(180,56,47,0.30);  background: rgba(180,56,47,0.06); }

.flow__caption {
  margin: 26px auto 0;
  max-width: 680px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.flow__caption strong { color: var(--heading); font-weight: 650; }

/* ── Security & trust ────────────────────────────────────── */
.sec { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sec__item {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.sec__item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.sec__item h3 { font-size: 1.04rem; font-weight: 650; letter-spacing: -0.01em; color: var(--heading); }
.sec__item p { margin-top: 7px; color: var(--text-2); font-size: 0.94rem; line-height: 1.6; }

.compliance {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.compliance__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compliance__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; }
.badge__dot--ok   { background: var(--ok); }
.badge__dot--prog { background: var(--hold); }
.badge__dot--req  { background: var(--text-3); }
.sec__cta { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { max-width: 540px; margin-inline: auto; }
.pricing__card {
  position: relative;
  padding: 38px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pricing__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pricing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.pricing__row:first-child { padding-top: 2px; }
.pricing__tier { display: block; font-weight: 650; font-size: 1.06rem; letter-spacing: -0.01em; }
.pricing__sub  { display: block; margin-top: 3px; color: var(--text-3); font-size: 0.85rem; }
.pricing__price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing__tier { color: var(--heading); }
.pricing__amount { font-weight: 700; font-size: 1.8rem; letter-spacing: -0.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.pricing__unit { display: block; margin-top: 2px; color: var(--text-3); font-size: 0.82rem; }
.pricing__explain { margin-top: 22px; color: var(--text-2); font-size: 0.92rem; line-height: 1.6; }
.pricing__note { margin-top: 8px; color: var(--text-3); font-size: 0.86rem; }
.pricing .btn { margin-top: 26px; width: 100%; }
.pricing__enterprise { margin-top: 16px; text-align: center; color: var(--text-3); font-size: 0.88rem; }
.pricing__enterprise a { color: var(--accent); font-weight: 500; }
.pricing__enterprise a:hover { text-decoration: underline; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.faq__item:hover { box-shadow: var(--shadow-sm); }
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq__item summary { color: var(--heading); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 22px 22px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 72ch;
}
.faq__item a { color: var(--accent); }
.faq__item a:hover { text-decoration: underline; }
.faq__item code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--accent-ink); }

/* ── Final CTA ───────────────────────────────────────────── */
.cta { padding-block: 96px; text-align: center; }
.cta__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cta__sub { margin-top: 16px; color: var(--text-2); font-size: 1.08rem; }
.cta__actions { margin-top: 30px; display: inline-flex; gap: 13px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer__brand img { border-radius: 6px; }
.footer__tagline { margin-top: 12px; max-width: 320px; color: var(--text-3); font-size: 0.9rem; line-height: 1.55; }
.footer__contact { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.footer__contact:hover { text-decoration: underline; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a {
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.16s;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.16s var(--ease), background-size 0.25s var(--ease);
}
.footer__links a:hover { color: var(--accent); background-size: 100% 1px; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { color: var(--text-3); font-size: 0.85rem; }

/* ── Request access (conversion) ─────────────────────────── */
.request {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.next { margin-top: 32px; list-style: none; display: grid; gap: 18px; }
.next__step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.next__num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #20242c, var(--ink));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--mono);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.08);
}
.next__title { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; color: var(--heading); }
.next__desc { margin-top: 3px; color: var(--text-2); font-size: 0.94rem; }

.request__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: grid; gap: 7px; }
.form__label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.form__input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.form__input::placeholder { color: var(--text-3); }
.form__input:hover { border-color: var(--text-3); }
.form__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea.form__input { resize: vertical; min-height: 84px; }
.form__submit { margin-top: 4px; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 0.9rem; color: var(--text-2); min-height: 1px; }
.form__status--ok  { color: var(--ok); font-weight: 500; }
.form__status--err { color: var(--block); font-weight: 500; }
.form__status--err a { color: var(--block); text-decoration: underline; }
.form__fallback { font-size: 0.88rem; color: var(--text-3); }
.form__fallback a { color: var(--accent); font-weight: 500; }
.form__fallback a:hover { text-decoration: underline; }

/* ── Legal / doc pages ───────────────────────────────────── */
.doc { padding-block: 64px 96px; }
.doc__notice {
  margin-bottom: 36px;
  padding: 14px 18px;
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius-sm);
  color: #7a5a08;
  font-size: 0.9rem;
}
.doc__title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
.doc__meta { margin-top: 10px; color: var(--text-3); font-size: 0.9rem; }
.doc__body { margin-top: 40px; max-width: 760px; }
.doc__body h2 {
  margin-top: 40px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: 24px; font-size: 1.05rem; font-weight: 650; }
.doc__body p { margin-top: 12px; color: var(--text-2); line-height: 1.7; }
.doc__body ul { margin-top: 12px; padding-left: 22px; color: var(--text-2); line-height: 1.7; }
.doc__body li { margin-top: 6px; }
.doc__body a { color: var(--accent); }
.doc__body a:hover { text-decoration: underline; }
.doc__back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
}
.doc__back:hover { color: var(--text); }

/* ── 404 ─────────────────────────────────────────────────── */
.notfound { padding-block: clamp(80px, 14vw, 160px); max-width: 640px; }
.notfound__title {
  margin-top: 14px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--heading);
}
.notfound__sub { margin-top: 18px; color: var(--text-2); font-size: 1.1rem; line-height: 1.6; text-wrap: pretty; }
.notfound__actions { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }

/* ── Emphasis inside leads ───────────────────────────────── */
.hero__sub em, .section__lead em, .pillar__desc em, .mode__desc em {
  font-style: normal;
  font-weight: 600;
  color: var(--heading);
}

/* ── Stat band (why now) ─────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.stat {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.stat--accent {
  border-color: rgba(29,60,140,0.32);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(29,60,140,0.05);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(29,60,140,0.05), transparent 70%),
    var(--surface);
}
.stat__num {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.stat--accent .stat__num { color: var(--accent); }
.stat__unit { font-size: 0.5em; font-weight: 700; margin-left: 1px; }
.stat__label { margin-top: 15px; color: var(--text-2); font-size: 0.98rem; line-height: 1.55; }
.stats__source { margin-top: 20px; text-align: center; color: var(--text-3); font-size: 0.82rem; line-height: 1.5; }
.stats__source a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.stats__source a:hover { color: var(--accent); }

/* ── Get started (code + modes) ──────────────────────────── */
.start {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: start;
}
.code {
  background: #0f1320;
  border: 1px solid #1c2438;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0b0e18;
  border-bottom: 1px solid #1c2438;
}
.code__dots { display: inline-flex; gap: 6px; }
.code__dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.code__file { font-family: var(--mono); font-size: 0.78rem; color: #7e8aa8; }
.code__body {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #c6cee0;
  -webkit-font-smoothing: auto;
}
.code__body code { font-family: inherit; font-size: inherit; }
.code .c-c  { color: #5d6a8c; }                                   /* comment */
.code .c-k  { color: #7aa2ff; }                                   /* keyword */
.code .c-f  { color: #5bd1c4; }                                   /* function / class */
.code .c-s  { color: #9bdc8b; }                                   /* string */
.code .c-hl { color: #ffd479; background: rgba(255,212,121,0.12); border-radius: 4px; padding: 1px 4px; }

.start__frameworks { margin-top: 16px; color: var(--text-3); font-size: 0.9rem; line-height: 1.65; }
.start__frameworks strong { color: var(--text); font-weight: 600; }
.start__frameworks code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--accent-ink); }

.modes { display: grid; gap: var(--space-3); align-content: start; }
.mode {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.mode:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.mode__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.mode__tag--observe { color: var(--accent); background: var(--accent-soft); }
.mode__tag--enforce { color: var(--ok); background: rgba(21,127,74,0.09); }
.mode__title { margin-top: 14px; font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; color: var(--heading); }
.mode__desc { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.mode__desc code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--accent-ink); font-size: 0.86em; }

/* ── Who it's for (slim team row) ────────────────────────── */
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.team { padding-top: 22px; border-top: 2px solid var(--line-2); }
.team__title { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; color: var(--heading); }
.team__desc { margin-top: 9px; color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

/* ── Reveal on scroll ────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .section__head, .pillar, .flow, .sec__item, .pricing, .faq__item, .decision,
  .compliance, .next__step, .request__form, .stat, .code, .mode, .team {
    animation: rise 0.6s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  .strip__track { animation: marquee 36s linear infinite; }
}

/* reduced motion: no auto-scroll — names wrap and sit still */
@media (prefers-reduced-motion: reduce) {
  .strip__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .strip__track { flex-wrap: wrap; row-gap: 10px; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .section { padding-block: 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__sub { max-width: none; }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .sec { grid-template-columns: 1fr; }
  .request { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .teams { grid-template-columns: 1fr; gap: 28px; }
  .start { grid-template-columns: 1fr; gap: 28px; }

  /* flow diagram → vertical */
  .flow__pipe { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .flow__node, .flow__decisions { flex: 0 0 auto; }
  .flow__decisions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .flow__pill { flex: 1 1 auto; min-width: 96px; }
  .flow__edge { width: 2px; height: 30px; margin: 0 auto; }
  .flow__edge::after { right: 50%; top: auto; bottom: -2px; transform: translate(50%, 0) rotate(135deg); }
  .flow__elabel { left: calc(50% + 12px); top: 50%; bottom: auto; transform: translateY(-50%); }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 28px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -28px rgba(20,23,28,0.35);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 13px 2px; font-size: 1rem; }
  .nav__cta {
    margin-left: 0;
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav__cta .nav__link { padding: 10px 2px; }
  .nav__cta .btn { width: 100%; }
}

@media (max-width: 600px) {
  .container, .footer__bottom { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 52px 52px; }
  .hero__bg { height: 440px; opacity: 0.72; }

  /* stack action buttons full-width — fixes nowrap overflow on phones */
  .hero__actions, .cta__actions, .sec__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__actions .btn, .cta__actions .btn, .sec__cta .btn { width: 100%; }

  /* hero decision card: wrap the code line, let rows wrap */
  .decision__call { white-space: pre-wrap; overflow-wrap: anywhere; }
  .decision__row { flex-wrap: wrap; gap: 2px 12px; }
  .decision__reason { text-align: left; }

  /* strip stacks: label above the scrolling marquee */
  .strip { flex-direction: column; align-items: stretch; gap: 12px; }
  .strip__marquee { width: 100%; }

  .compliance { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .request__form { padding: 24px; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__links a { padding-block: 4px; }
}

@media (max-width: 460px) {
  .container, .footer__bottom { padding-inline: 16px; }
  .request__form { padding: 20px; }
  .pricing__card { padding: 28px 22px; }
  .decision__body { padding: 18px 16px; }
  .flow__elabel { display: none; }
  .flow__pill { min-width: 0; }
  .pricing__row { flex-wrap: wrap; gap: 6px 16px; }
  .pricing__price { white-space: normal; text-align: left; }
}
