:root {
  --ink: #080d18;
  --ink-2: #0d1423;
  --panel: rgba(18, 27, 45, .72);
  --panel-solid: #111a2b;
  --line: rgba(255, 255, 255, .105);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f5f7f6;
  --muted: #a8b1bf;
  --mint: #35e6a4;
  --mint-soft: #85f2ca;
  --amber: #ffb21a;
  --amber-soft: #ffd071;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 32px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 178, 26, .075), transparent 24rem),
    radial-gradient(circle at 88% 13%, rgba(53, 230, 164, .085), transparent 28rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: var(--ink);
  background: var(--mint);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}

header.scrolled {
  background: rgba(8, 13, 24, .78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand img { display: block; width: auto; height: 42px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #c3cad4;
  font-size: .925rem;
}

.nav-links > a:not(.button) { transition: color .2s ease; }
.nav-links > a:not(.button):hover { color: var(--text); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .76rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: .94rem;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .nav-toggle:focus-visible, .agent-card:focus-visible {
  outline: 3px solid rgba(53, 230, 164, .45);
  outline-offset: 4px;
}

.button-primary {
  color: #06130e;
  background: var(--mint);
  box-shadow: 0 12px 32px rgba(53, 230, 164, .18);
}

.button-primary:hover { box-shadow: 0 16px 40px rgba(53, 230, 164, .28); }

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
}

.button-secondary:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.3rem;
  color: #d7dde5;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255,178,26,.1);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.35rem, 6.6vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.072em;
  font-weight: 540;
}

h1 .motion {
  color: transparent;
  background: linear-gradient(90deg, var(--amber) 3%, var(--mint) 64%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-note {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.75rem;
  color: #8792a3;
  font-size: .86rem;
}

.hero-note svg { width: 18px; color: var(--mint); }

.motion-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.motion-stage::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,230,164,.13), rgba(53,230,164,.02) 46%, transparent 68%);
  filter: blur(8px);
  z-index: -1;
}

.agent-window {
  position: relative;
  width: min(100%, 470px);
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(21,32,51,.93), rgba(11,17,29,.84));
  box-shadow: var(--shadow);
}

.agent-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.055), transparent 52%);
  transform: translateX(-130%);
  animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen { 0%, 60% { transform: translateX(-130%); } 85%, 100% { transform: translateX(140%); } }

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .4rem .95rem;
  color: #929dad;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.window-status { display: inline-flex; align-items: center; gap: .4rem; }
.window-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.agent-body {
  padding: clamp(1.1rem, 4vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5,10,19,.64);
}

.signal {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .85rem;
  align-items: center;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.spark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #281700;
  background: linear-gradient(145deg, var(--amber-soft), var(--amber));
  box-shadow: 0 10px 30px rgba(255,178,26,.16);
}

.signal small, .run-step small { display: block; color: #7e8999; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.signal strong { display: block; margin-top: .12rem; font-size: 1rem; font-weight: 590; }

.run-track { position: relative; display: grid; gap: .72rem; margin-top: 1.2rem; }
.run-track::before { content: ""; position: absolute; top: 23px; bottom: 23px; left: 16px; width: 1px; background: linear-gradient(var(--amber), var(--mint)); opacity: .48; }

.run-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: .8rem;
  align-items: center;
  min-height: 58px;
  padding: .72rem .85rem .72rem .1rem;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background .25s ease, border-color .25s ease;
}

.run-step.active { border-color: rgba(53,230,164,.2); background: rgba(53,230,164,.055); }
.step-dot { width: 12px; height: 12px; margin: auto; border: 3px solid var(--ink-2); border-radius: 50%; background: #435066; box-shadow: 0 0 0 1px rgba(255,255,255,.08); z-index: 1; }
.run-step.done .step-dot, .run-step.active .step-dot { background: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 0 16px rgba(53,230,164,.5); }
.run-step strong { font-size: .9rem; font-weight: 580; }
.step-state { color: #8590a0; font-size: .72rem; }
.run-step.active .step-state { color: var(--mint-soft); }

.floating-chip {
  z-index: 2;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #dce2e9;
  background: rgba(13,20,35,.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
  font-size: .76rem;
  font-weight: 600;
}

.floating-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.chip-one { top: 10%; right: -3%; animation: float 5s ease-in-out infinite; }
.chip-two { bottom: 1%; left: -4%; animation: float 5s ease-in-out 1.1s infinite; }
.chip-two::before { background: var(--amber); }
@keyframes float { 50% { transform: translateY(-8px); } }

section { padding-block: clamp(5.5rem, 10vw, 9rem); }

.section-kicker {
  margin-bottom: .85rem;
  color: var(--mint);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 520;
}

.section-head > p { margin-bottom: .35rem; color: var(--muted); font-size: 1.02rem; }

.loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  overflow: hidden;
}

.loop::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--mint));
  opacity: .55;
}

.loop-step {
  position: relative;
  min-height: 250px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.loop-step:last-child { border-right: 0; }
.loop-number { position: relative; width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 3.5rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: var(--ink-2); font-size: .72rem; z-index: 1; }
.loop-step:first-child .loop-number { color: #231600; border-color: var(--amber); background: var(--amber); }
.loop-step:last-child .loop-number { color: #06130e; border-color: var(--mint); background: var(--mint); }
.loop-step h3 { margin-bottom: .65rem; font-size: 1.12rem; font-weight: 620; letter-spacing: -.02em; }
.loop-step p { margin-bottom: 0; color: #919cab; font-size: .92rem; }

.agents-section { border-block: 1px solid var(--line); background: rgba(255,255,255,.012); }

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

.agent-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,26,43,.84), rgba(10,16,28,.9));
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease;
}

.agent-card:hover { transform: translateY(-5px); border-color: rgba(53,230,164,.3); }
.agent-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: -100px; bottom: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(53,230,164,.1), transparent 68%); transition: transform .35s ease; }
.agent-card:hover::after { transform: scale(1.18); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.agent-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: var(--mint); background: rgba(53,230,164,.055); }
.agent-icon svg { width: 23px; height: 23px; }
.card-index { color: #596476; font-size: .76rem; letter-spacing: .1em; }
.agent-card h3 { margin: 2rem 0 .65rem; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 560; letter-spacing: -.035em; }
.agent-card p { max-width: 520px; margin-bottom: 1.5rem; color: #98a2b1; }
.task-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.task-list span { padding: .42rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: #c5ccd5; background: rgba(255,255,255,.025); font-size: .74rem; }

.build-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.build-copy { position: sticky; top: 130px; }
.build-copy p { max-width: 500px; margin-top: 1.4rem; color: var(--muted); font-size: 1.03rem; }

.process-list { counter-reset: process; }
.process-item {
  counter-increment: process;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.process-item:first-child { border-top: 1px solid var(--line); }
.process-item::before { content: "0" counter(process); padding-top: .18rem; color: var(--amber); font-size: .76rem; font-weight: 700; letter-spacing: .09em; }
.process-item h3 { margin-bottom: .45rem; font-size: 1.18rem; font-weight: 610; letter-spacing: -.02em; }
.process-item p { margin-bottom: 0; color: #919cab; }

.trust-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(53,230,164,.2);
  border-radius: 30px;
  background: linear-gradient(130deg, rgba(53,230,164,.07), rgba(17,26,43,.65) 48%, rgba(255,178,26,.035));
  overflow: hidden;
}

.trust-panel::before { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -120px; border: 1px solid rgba(53,230,164,.12); border-radius: 50%; box-shadow: 0 0 0 40px rgba(53,230,164,.02), 0 0 0 80px rgba(53,230,164,.015); }
.trust-copy h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.trust-copy p { margin: 1.2rem 0 0; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.trust-item { min-height: 128px; padding: 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,12,21,.42); }
.trust-item strong { display: block; margin-bottom: .38rem; font-size: .94rem; font-weight: 620; }
.trust-item span { display: block; color: #8f9aa9; font-size: .82rem; line-height: 1.5; }

.closing { padding-top: clamp(4rem, 8vw, 7rem); }
.closing-box { position: relative; padding: clamp(3rem, 8vw, 7rem); text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.closing-box::before { content: ""; position: absolute; width: 520px; height: 260px; left: 50%; bottom: -210px; transform: translateX(-50%); border-radius: 50%; background: var(--mint); filter: blur(120px); opacity: .14; }
.closing-box h2 { max-width: 830px; margin: 0 auto 1.25rem; }
.closing-box p { max-width: 620px; margin: 0 auto 2rem; color: var(--muted); font-size: 1.08rem; }

footer { padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #7f8998; font-size: .84rem; }
.footer-belief { color: #aeb6c1; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .motion-stage { min-height: 470px; }
  .section-head, .build-layout, .trust-panel { grid-template-columns: 1fr; }
  .section-head { gap: 1.3rem; }
  .build-copy { position: static; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop::before { display: none; }
  .loop-step { border-bottom: 1px solid var(--line); }
  .loop-step:nth-child(2) { border-right: 0; }
  .loop-step:nth-child(3), .loop-step:nth-child(4) { border-bottom: 0; }
  .loop-number { margin-bottom: 2rem; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 70px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: .15rem;
    padding: .7rem;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(13,20,35,.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a { padding: .75rem .85rem; border-radius: 10px; }
  .nav-links > a:hover { background: rgba(255,255,255,.04); }
  .nav-links .button { margin-top: .25rem; }
  h1 { font-size: clamp(3.15rem, 16vw, 5.2rem); }
  .hero { gap: 2rem; padding-block: 3.8rem 5rem; }
  .motion-stage { min-height: 420px; }
  .chip-one { right: -2%; }
  .chip-two { left: -2%; }
  .agent-grid, .trust-grid { grid-template-columns: 1fr; }
  .agent-card { min-height: 280px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .motion-stage { min-height: 390px; }
  .floating-chip { display: none; }
  .agent-window { padding: .7rem; border-radius: 22px; }
  .agent-body { padding: 1rem; }
  .run-step { grid-template-columns: 28px 1fr; }
  .step-state { display: none; }
  .loop { grid-template-columns: 1fr; }
  .loop-step { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .loop-step:last-child { border-bottom: 0 !important; }
  .trust-panel { padding: 1.4rem; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ============ Multi-page additions ============ */

.nav-links > a[aria-current="page"]:not(.button) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.6rem;
  color: var(--mint-soft);
  font-weight: 620;
  font-size: .95rem;
  border-bottom: 1px solid rgba(53,230,164,.35);
  padding-bottom: .15rem;
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--mint); border-color: var(--mint); }
.text-link:focus-visible, .agent-card:focus-visible, summary:focus-visible, .footer-grid a:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(53, 230, 164, .45);
  outline-offset: 4px;
  border-radius: 6px;
}

.section-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.section-tight { padding-top: 0; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(4.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { max-width: 920px; font-size: clamp(2.9rem, 5.8vw, 5.6rem); line-height: 1; }
.page-hero .lead { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.7; }
.page-hero .hero-actions { margin-top: 2rem; }

.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.jump-links a {
  padding: .5rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #c5ccd5;
  background: rgba(255,255,255,.025);
  font-size: .84rem;
  transition: border-color .2s ease, color .2s ease;
}
.jump-links a:hover { color: var(--text); border-color: rgba(53,230,164,.45); }

/* ---------- Tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.tile {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.tile h3 { margin-bottom: .5rem; font-size: 1.05rem; font-weight: 620; letter-spacing: -.015em; }
.tile p { margin-bottom: 0; color: #919cab; font-size: .92rem; }
.tile-accent { border-left: 2px solid var(--mint); }
.tile-accent.amber { border-left-color: var(--amber); }

/* ---------- Home: ways to start ---------- */
.start-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.start-strip a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  transition: border-color .25s ease, background .25s ease;
}
.start-strip a:hover { border-color: rgba(53,230,164,.3); background: rgba(53,230,164,.03); }
.start-strip a:focus-visible { outline: 3px solid rgba(53,230,164,.45); outline-offset: 4px; }
.start-strip h3 { margin-bottom: .5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.start-strip p { margin-bottom: 1.2rem; color: #919cab; font-size: .92rem; }
.start-strip .more { color: var(--mint-soft); font-size: .86rem; font-weight: 620; }

/* ---------- Solutions ---------- */
.solution {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.solution.flip .solution-copy { order: 2; }
.solution h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.solution-copy > p { max-width: 560px; margin: 1.2rem 0 1.9rem; color: var(--muted); }
.solution .agent-icon { margin-bottom: 1.4rem; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.detail-cols h3 { margin-bottom: .7rem; font-size: .95rem; font-weight: 640; }

.check-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.4rem; color: #b3bcc8; font-size: .92rem; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.check-list.amber li::before { background: var(--amber); }

.agent-window.flat { width: 100%; transform: none; }
.agent-window.flat::after { display: none; }

/* ---------- Approach ---------- */
.phase {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, .9fr);
  gap: 1rem 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-num { padding-top: .3rem; color: var(--amber); font-size: .76rem; font-weight: 700; letter-spacing: .09em; }
.phase h3 { margin-bottom: .6rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 580; letter-spacing: -.03em; }
.phase p { margin-bottom: 0; color: var(--muted); }
.phase-out { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.phase-out h4 { margin: 0 0 .7rem; color: #d7dde5; font-size: .86rem; font-weight: 640; }

.fit-check {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 5vw, 4rem);
  border: 1px solid rgba(53,230,164,.2);
  border-radius: 30px;
  background: linear-gradient(130deg, rgba(53,230,164,.07), rgba(17,26,43,.65) 48%, rgba(255,178,26,.035));
}
.fit-check h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.fit-check > div > p { margin: 1rem 0 1.6rem; color: var(--muted); }
.fit-list { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; }
.fit-list legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fit-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .85rem;
  align-items: start;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7,12,21,.42);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.fit-item:has(input:checked) { border-color: rgba(53,230,164,.35); background: rgba(53,230,164,.05); }
.fit-item span { color: #c5ccd5; font-size: .93rem; line-height: 1.5; }

input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: .05rem 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(5,10,19,.64);
  display: grid;
  place-items: center;
  cursor: pointer;
}
input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border: 2px solid #06130e; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
input[type="checkbox"]:checked { border-color: var(--mint); background: var(--mint); }
input[type="checkbox"]:checked::after { opacity: 1; }
input[type="checkbox"]:focus-visible { outline: 3px solid rgba(53,230,164,.45); outline-offset: 3px; }

.fit-result { align-self: center; padding: 1.8rem; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(5,10,19,.6); }
.fit-meter { height: 10px; margin: 1rem 0 1.5rem; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.fit-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--mint)); transition: width .45s ease; }
.fit-score { color: #8f9aa9; font-size: .84rem; }
.fit-result h3 { margin-bottom: .6rem; font-size: 1.45rem; font-weight: 580; letter-spacing: -.03em; }
.fit-result p { margin-bottom: 1.4rem; color: var(--muted); font-size: .95rem; }

/* ---------- Trust: autonomy ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; }
.rung { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.rung-bar {
  height: var(--h);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(53,230,164,.2);
  border-radius: 12px;
  background: linear-gradient(to top, rgba(255,178,26,.22), rgba(53,230,164,.3));
}
.rung-level { color: var(--amber); font-size: .76rem; font-weight: 700; letter-spacing: .09em; }
.rung h3 { margin: .35rem 0 .5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.rung p { margin-bottom: 1rem; color: #919cab; font-size: .9rem; }
.rung .example { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: #c5ccd5; font-size: .82rem; }
.ladder-note { margin-top: 1.4rem; color: #8f9aa9; font-size: .9rem; }

.steps-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: s; }
.steps-inline li { counter-increment: s; padding: 1.6rem; border-right: 1px solid var(--line); }
.steps-inline li:last-child { border-right: 0; }
.steps-inline li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 1.4rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--ink-2); font-size: .74rem; }
.steps-inline h3 { margin-bottom: .45rem; font-size: 1.05rem; font-weight: 620; }
.steps-inline p { margin-bottom: 0; color: #919cab; font-size: .9rem; }

/* ---------- Engagements ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,26,43,.84), rgba(10,16,28,.9));
}
.plan.featured { border-color: rgba(53,230,164,.4); box-shadow: 0 0 0 1px rgba(53,230,164,.12), var(--shadow); }
.plan-tag { align-self: flex-start; margin-bottom: 1.4rem; padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: #c5ccd5; font-size: .76rem; }
.plan.featured .plan-tag { border-color: rgba(53,230,164,.45); color: var(--mint-soft); }
.plan h3 { margin-bottom: .6rem; font-size: 1.6rem; font-weight: 560; letter-spacing: -.035em; }
.plan > p { margin-bottom: 1.5rem; color: #98a2b1; }
.plan h4 { margin: 0 0 .7rem; color: #d7dde5; font-size: .86rem; font-weight: 640; }
.plan .check-list { margin-bottom: 1.6rem; }
.plan-outcome { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); color: #c5ccd5; font-size: .9rem; }
.plan-outcome strong { display: block; margin-bottom: .2rem; color: var(--text); font-weight: 620; }
.plan .button { margin-top: 1.4rem; }

/* ---------- FAQ ---------- */
.faq-group { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; padding-block: 2.6rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-group > h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type summary { padding-top: .2rem; }
details.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 590;
  list-style: none;
  cursor: pointer;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--mint); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { max-width: 680px; margin: 0 0 1.4rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(21,32,51,.93), rgba(11,17,29,.84));
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.field label, .field legend { color: #d7dde5; font-size: .88rem; font-weight: 600; }
.field .hint { color: #7f8998; font-size: .8rem; }
.field .req { color: var(--amber); }
fieldset.field { margin: 0 0 1.2rem; padding: 0; border: 0; }
fieldset.field legend { margin-bottom: .6rem; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .78rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5,10,19,.64);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23a8b1bf' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select option { color: var(--text); background: var(--panel-solid); }
input::placeholder, textarea::placeholder { color: #667185; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(53,230,164,.2); }
[aria-invalid="true"] { border-color: var(--amber) !important; }
.field-error { color: var(--amber-soft); font-size: .8rem; }
.field-error:empty { display: none; }

.pill-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-options label { position: relative; cursor: pointer; }
.pill-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-options span {
  display: inline-block;
  padding: .55rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #c5ccd5;
  background: rgba(255,255,255,.025);
  font-size: .86rem;
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pill-options input:checked + span { color: #06130e; border-color: var(--mint); background: var(--mint); font-weight: 620; }
.pill-options input:focus-visible + span { outline: 3px solid rgba(53,230,164,.45); outline-offset: 3px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .6rem; }
.form-foot small { color: #7f8998; font-size: .8rem; max-width: 320px; }
.form-status { margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-radius: 14px; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--mint-soft); border: 1px solid rgba(53,230,164,.3); background: rgba(53,230,164,.06); }
.form-status.error { color: var(--amber-soft); border: 1px solid rgba(255,178,26,.3); background: rgba(255,178,26,.06); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

.contact-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1.4rem; }
.next-steps { display: grid; gap: 0; margin: 0 0 2.2rem; padding: 0; list-style: none; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: .6rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps li::before { content: "0" counter(n); padding-top: .2rem; color: var(--amber); font-size: .76rem; font-weight: 700; letter-spacing: .09em; }
.next-steps strong { display: block; margin-bottom: .2rem; font-weight: 610; }
.next-steps span { color: #919cab; font-size: .9rem; }
.direct-contact { padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.direct-contact p { margin-bottom: .3rem; color: #919cab; font-size: .9rem; }
.direct-contact a { color: var(--mint-soft); font-weight: 620; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 740px; }
.prose h2 { max-width: none; margin: 2.8rem 0 .8rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 560; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #b3bcc8; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--mint-soft); text-decoration: underline; text-underline-offset: 3px; }
.updated { color: #8792a3; font-size: .9rem; margin-top: 1.2rem; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - 78px - 260px); display: grid; align-content: center; }

/* ---------- Footer ---------- */
footer { padding: 0 0 2.2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-block: 3.5rem 2.8rem; }
.footer-grid .footer-belief { display: block; max-width: 280px; margin-top: 1rem; font-size: .92rem; }
.footer-title { margin-bottom: .9rem; color: var(--text); font-size: .9rem; font-weight: 620; }
.footer-grid ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-grid ul a { color: #97a1af; font-size: .9rem; transition: color .2s ease; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #7f8998; font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .solution, .contact-layout, .fit-check, .faq-group { grid-template-columns: 1fr; }
  .solution.flip .solution-copy { order: 0; }
  .faq-group { gap: 1.2rem; }
  .plan-grid, .start-strip { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .steps-inline { grid-template-columns: repeat(2, 1fr); }
  .steps-inline li:nth-child(2) { border-right: 0; }
  .steps-inline li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .phase { grid-template-columns: 58px 1fr; }
  .phase-out { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links > a[aria-current="page"]:not(.button) { text-decoration: none; background: rgba(53,230,164,.08); }
  .detail-cols, .field-row { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .rung-bar { height: calc(var(--h) / 3); }
  .steps-inline { grid-template-columns: 1fr; }
  .steps-inline li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-inline li:last-child { border-bottom: 0; }
  .phase { grid-template-columns: 1fr; gap: .6rem; }
  .phase-out { grid-column: auto; margin-top: .8rem; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-foot .button { width: 100%; }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .nav-links { gap: 1.25rem; font-size: .88rem; }
  .nav-links .button { padding-inline: .9rem; }
}
html { overflow-x: clip; }
@media (max-width: 760px) { .nav-links { background: #0d1423; } }
