/* ==========================================================================
   Apex Synthesis — Design System
   Venture Intelligence Platform
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --bg:            #06080F;
  --bg-2:          #090C15;
  --panel:         #0D111C;
  --panel-2:       #111726;
  --line:          rgba(255,255,255,.075);
  --line-strong:   rgba(255,255,255,.14);

  --text:          #E9EDF7;
  --text-2:        #B4BFD4;
  --muted:         #8590A8;
  --faint:         #5C6680;

  --accent:        #6E8BFF;
  --accent-soft:   #8FA6FF;
  --accent-dim:    rgba(110,139,255,.12);
  --mint:          #33E0AE;
  --mint-dim:      rgba(51,224,174,.11);
  --amber:         #FFC069;
  --rose:          #FF7A8A;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 12px 32px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.85);

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Mono",
          Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 15% -8%,  rgba(110,139,255,.16), transparent 65%),
    radial-gradient(760px 460px at 92% 4%,   rgba(51,224,174,.09),  transparent 62%),
    radial-gradient(1000px 700px at 50% 108%,rgba(110,139,255,.07), transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }

::selection { background: rgba(110,139,255,.32); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1E2536; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2B3450; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.14; letter-spacing: -0.032em; color: #fff; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); letter-spacing: -0.042em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); letter-spacing: -0.036em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.02em; }
p  { color: var(--text-2); }

.lead { font-size: clamp(1.05rem, 1.55vw, 1.2rem); color: var(--text-2); line-height: 1.65; }
.gradient-text {
  background: linear-gradient(104deg, #fff 12%, var(--accent-soft) 58%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3.25rem, 6vw, 5rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(13,17,28,.72) 22%, rgba(13,17,28,.72) 78%, transparent); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-bottom: 1rem; }
.sec-head p { font-size: 1.06rem; }

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

/* ---------- Eyebrow / Pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .715rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.sec-head--center .eyebrow::before { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .9rem .42rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  font-size: .8rem; color: var(--text-2);
}
.pill b { color: #fff; font-weight: 500; }
.pill .tag {
  padding: .12rem .5rem; border-radius: 99px;
  background: var(--accent-dim); color: var(--accent-soft);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.dot--pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px var(--mint-dim); }
  50%     { box-shadow: 0 0 0 7px rgba(51,224,174,.03); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem;
  border-radius: 10px;
  font-size: .92rem; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: all .22s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, #7D97FF, #5A78F5);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 24px -8px rgba(110,139,255,.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 14px 32px -10px rgba(110,139,255,.85); }

.btn--ghost {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.24); }

.btn--quiet { color: var(--text-2); padding-inline: .4rem; }
.btn--quiet:hover { color: #fff; }

.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(6,8,15,.78);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 2.25rem; height: 100%; }

.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo__mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo__text { font-size: 1.055rem; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.logo__text span { color: var(--accent-soft); }

.nav__links { display: flex; align-items: center; gap: .35rem; margin-right: auto; }
.nav__links a {
  padding: .48rem .7rem; border-radius: 8px;
  font-size: .9rem; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__links a.is-active { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line-strong); }
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative; transition: .25s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: .25s var(--ease);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: rgba(6,8,15,.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem 1.75rem;
  display: none; flex-direction: column; gap: .2rem;
  z-index: 99;
}
.nav__mobile.is-open { display: flex; animation: slideDown .28s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav__mobile a { padding: .8rem .2rem; font-size: 1rem; color: var(--text-2); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: 1.35rem 0 1.3rem; }
.hero .lead { max-width: 34rem; }
.hero .btn-row { margin-top: 2.1rem; }
.hero__note { margin-top: 1.5rem; font-size: .84rem; color: var(--faint); display: flex; align-items: center; gap: .5rem; }

.hero--center { text-align: center; }
.hero--center .lead { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }
.hero--center .eyebrow::before { display: none; }

/* Hero page (inner pages) */
.page-hero { padding: clamp(3.25rem, 6vw, 5.25rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); margin-bottom: 1.15rem; }
.page-hero .lead { max-width: 42rem; }

/* ---------- Trust bar ---------- */
.trust { padding: 2.25rem 0 1rem; }
.trust__label {
  text-align: center; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 1.6rem;
}
.trust__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
}
.trust__item {
  display: flex; align-items: center; gap: .55rem;
  font-size: .98rem; font-weight: 500; letter-spacing: -.02em;
  color: var(--muted); opacity: .82;
  transition: opacity .25s, color .25s;
}
.trust__item:hover { opacity: 1; color: var(--text-2); }
.trust__item svg { width: 19px; height: 19px; opacity: .8; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: border-color .28s var(--ease), transform .28s var(--ease), background .28s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3, .card h4 { margin-bottom: .6rem; }
.card p { font-size: .935rem; line-height: 1.62; }

.card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(110,139,255,.22);
  color: var(--accent-soft);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 19px; height: 19px; }
.card__icon--mint { background: var(--mint-dim); border-color: rgba(51,224,174,.22); color: var(--mint); }
.card__icon--amber { background: rgba(255,192,105,.11); border-color: rgba(255,192,105,.22); color: var(--amber); }

.card--glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px 180px at var(--mx,50%) var(--my,0%), rgba(110,139,255,.15), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card--glow:hover::after { opacity: 1; }

.card--flat { background: var(--panel); }
.card--pad { padding: clamp(1.6rem, 2.6vw, 2.4rem); }

/* ---------- Feature list ---------- */
.checklist { display: grid; gap: .85rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: .945rem; color: var(--text-2); }
.checklist svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: .27rem; color: var(--mint); }
.checklist b { color: #fff; font-weight: 500; }

/* ---------- Report mock (hero visual) ---------- */
.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #10151F, #0A0D16 65%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.06), transparent 42%);
}
.mock__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #232B3D; }
.mock__title { font-family: var(--mono); font-size: .72rem; color: var(--faint); margin-left: .4rem; letter-spacing: .02em; }
.mock__live {
  margin-left: auto; display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint);
}
.mock__body { padding: 1.5rem; }

.score-row { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.5rem; }
.dial { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.dial svg { transform: rotate(-90deg); width: 116px; height: 116px; }
.dial circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.dial .track { stroke: rgba(255,255,255,.07); }
.dial .fill {
  stroke: url(#dialGrad);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.dial__val {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dial__val b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -.05em; color: #fff; line-height: 1; }
.dial__val span { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.score-meta h4 { font-size: 1.15rem; margin-bottom: .3rem; }
.score-meta p { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem; border-radius: 99px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
}
.badge--mint { background: var(--mint-dim); color: var(--mint); border: 1px solid rgba(51,224,174,.24); }
.badge--blue { background: var(--accent-dim); color: var(--accent-soft); border: 1px solid rgba(110,139,255,.24); }
.badge--amber { background: rgba(255,192,105,.1); color: var(--amber); border: 1px solid rgba(255,192,105,.24); }
.badge--rose { background: rgba(255,122,138,.1); color: var(--rose); border: 1px solid rgba(255,122,138,.24); }

.metrics { display: grid; gap: .8rem; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: center; }
.metric__name { font-size: .84rem; color: var(--text-2); }
.metric__num { font-family: var(--mono); font-size: .78rem; color: #fff; }
.metric__bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.metric__bar i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transition: width 1.4s var(--ease);
}
.metric__bar i.is-warn { background: linear-gradient(90deg, #FF9A6B, var(--amber)); }

.mock__foot {
  margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.avatars { display: flex; }
.avatars i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #0C1019;
  margin-left: -8px;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 600; font-style: normal; color: #05070D;
}
.avatars i:first-child { margin-left: 0; }
.mock__foot small { font-size: .78rem; color: var(--muted); }

/* Floating chips near mock */
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13,17,28,.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: .8rem; color: var(--text);
  animation: float 5.5s ease-in-out infinite;
}
.float-chip svg { width: 15px; height: 15px; }
.float-chip small { display: block; font-size: .68rem; color: var(--faint); }
.float-chip--a { top: 8%; right: -6%; }
.float-chip--b { bottom: 11%; left: -8%; animation-delay: -2.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.mock-wrap { position: relative; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 1.75rem 1.5rem; background: var(--bg-2); }
.stat b { display: block; font-size: clamp(1.85rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.045em; color: #fff; line-height: 1; margin-bottom: .5rem; }
.stat b em { font-style: normal; color: var(--accent-soft); }
.stat span { font-size: .875rem; color: var(--muted); }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.agent {
  position: relative; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  transition: .3s var(--ease);
}
.agent:hover { border-color: rgba(110,139,255,.34); transform: translateY(-3px); background: linear-gradient(168deg, rgba(110,139,255,.08), rgba(255,255,255,.012)); }
.agent__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.agent__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); color: var(--accent-soft); }
.agent__ico svg { width: 18px; height: 18px; }
.agent__id { font-family: var(--mono); font-size: .66rem; color: var(--faint); letter-spacing: .08em; }
.agent h4 { margin-bottom: .5rem; font-size: 1.02rem; }
.agent p { font-size: .885rem; line-height: 1.6; color: var(--muted); }
.agent__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.1rem; }
.agent__tags span {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .04em;
  padding: .2rem .5rem; border-radius: 6px;
  background: rgba(255,255,255,.045); color: var(--muted); border: 1px solid var(--line);
}

/* Synthesis node */
.synth {
  margin-top: 1.1rem; padding: 1.6rem clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(51,224,174,.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(51,224,174,.09), rgba(110,139,255,.06));
  display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap;
}
.synth__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(51,224,174,.14); border: 1px solid rgba(51,224,174,.3); color: var(--mint); flex-shrink: 0; }
.synth__ico svg { width: 21px; height: 21px; }
.synth div h4 { margin-bottom: .3rem; }
.synth div p { font-size: .9rem; color: var(--text-2); }
.synth > div:nth-child(2) { flex: 1; min-width: 240px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: s; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em;
  color: var(--accent-soft);
}
.step::after {
  content: ""; position: absolute; top: .55rem; left: 2.4rem; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
.step h4 { margin-bottom: .55rem; }
.step p { font-size: .91rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .3rem; padding: .3rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); width: fit-content; margin-bottom: 2.25rem; }
.tabs--center { margin-inline: auto; }
.tab {
  padding: .58rem 1.15rem; border-radius: 9px;
  font-size: .89rem; color: var(--muted);
  transition: .2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { background: rgba(255,255,255,.075); color: #fff; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
.split + .split { margin-top: clamp(4rem, 7vw, 6.5rem); }

/* ---------- Panel / terminal ---------- */
.panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #0F141E, #090C14);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel__head { padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.panel__head h5 { font-size: .88rem; font-weight: 500; }
.panel__head .badge { margin-left: auto; }
.panel__body { padding: 1.35rem; }

.log { display: grid; gap: .7rem; }
.log__line { display: flex; gap: .7rem; align-items: flex-start; font-size: .855rem; }
.log__line .t { font-family: var(--mono); font-size: .7rem; color: var(--faint); padding-top: .18rem; flex-shrink: 0; }
.log__line .n { color: var(--text-2); }
.log__line .n b { color: #fff; font-weight: 500; }
.log__line .s { margin-left: auto; flex-shrink: 0; }

/* Memo excerpt */
.memo { font-size: .89rem; line-height: 1.72; color: var(--text-2); }
.memo h5 { font-size: .78rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 1.25rem 0 .5rem; }
.memo h5:first-child { margin-top: 0; }
.memo p + p { margin-top: .7rem; }
.memo mark { background: rgba(110,139,255,.16); color: var(--accent-soft); padding: .05rem .25rem; border-radius: 4px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: .95rem 1.15rem; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: rgba(255,255,255,.02); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: #fff; font-weight: 500; }
td.yes { color: var(--mint); }
td.no  { color: var(--faint); }
tbody tr:hover { background: rgba(255,255,255,.018); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.plan {
  position: relative; padding: 1.9rem 1.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  transition: .3s var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan--featured {
  border-color: rgba(110,139,255,.4);
  background: linear-gradient(168deg, rgba(110,139,255,.11), rgba(255,255,255,.015));
  box-shadow: 0 30px 70px -34px rgba(110,139,255,.5);
}
.plan__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: .25rem .75rem; border-radius: 99px;
  background: linear-gradient(180deg, #7D97FF, #5A78F5); color: #fff;
  font-family: var(--mono); font-size: .63rem; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap;
}
.plan__name { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: .35rem; }
.plan__for { font-size: .84rem; color: var(--muted); min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: .35rem; margin: 1.35rem 0 .35rem; }
.plan__price b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; color: #fff; line-height: 1; }
.plan__price span { font-size: .86rem; color: var(--muted); }
.plan__billed { font-size: .78rem; color: var(--faint); margin-bottom: 1.5rem; }
.plan .btn { margin-bottom: 1.6rem; }
.plan__feats { display: grid; gap: .68rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.plan__feats li { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--text-2); }
.plan__feats svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .26rem; color: var(--mint); }
.plan__feats .head { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: -.1rem; }

.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-bottom: 2.5rem; font-size: .89rem; color: var(--muted); }
.toggle-wrap b { color: #fff; font-weight: 500; }
.switch { width: 46px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.09); border: 1px solid var(--line-strong); position: relative; transition: .25s var(--ease); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: .25s var(--ease); }
.switch.is-on { background: rgba(110,139,255,.35); border-color: rgba(110,139,255,.5); }
.switch.is-on::after { transform: translateX(20px); background: var(--accent-soft); }
.save-tag { padding: .18rem .5rem; border-radius: 99px; background: var(--mint-dim); color: var(--mint); font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(255,255,255,.038), rgba(255,255,255,.008));
  display: flex; flex-direction: column;
}
.quote__mark { font-size: 2.6rem; line-height: 1; color: var(--accent); opacity: .35; font-family: Georgia, serif; margin-bottom: .35rem; }
.quote p { font-size: .955rem; line-height: 1.68; color: var(--text-2); flex: 1; }
.quote__by { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: #05070D; flex-shrink: 0; }
.quote__by b { display: block; font-size: .875rem; font-weight: 500; color: #fff; }
.quote__by span { font-size: .79rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; text-align: left;
  font-size: 1.01rem; font-weight: 500; color: #fff;
  transition: color .2s;
}
.faq__q:hover { color: var(--accent-soft); }
.faq__q i {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); position: relative; transition: .3s var(--ease);
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: currentColor; border-radius: 2px;
}
.faq__q i::before { width: 9px; height: 1.5px; }
.faq__q i::after  { width: 1.5px; height: 9px; transition: .3s var(--ease); }
.faq__item.is-open .faq__q i { transform: rotate(180deg); border-color: var(--accent); color: var(--accent-soft); }
.faq__item.is-open .faq__q i::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.faq__a p { padding-bottom: 1.4rem; font-size: .945rem; line-height: 1.7; max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.75rem, 5vw, 4rem);
  border: 1px solid rgba(110,139,255,.26);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(110,139,255,.14), rgba(51,224,174,.07) 55%, rgba(255,255,255,.02));
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(110,139,255,.22), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 46rem; margin-inline: auto; font-size: 1.05rem; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }
.cta-band small { display: block; margin-top: 1.25rem; font-size: .82rem; color: var(--faint); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; color: var(--text-2); font-weight: 500; }
.field label span { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(255,255,255,.035);
  font-size: .93rem; color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(110,139,255,.6);
  background: rgba(110,139,255,.06);
  box-shadow: 0 0 0 3px rgba(110,139,255,.13);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238590A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 16px; padding-right: 2.4rem;
}
.field select option { background: #0D111C; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__note { font-size: .8rem; color: var(--faint); line-height: 1.6; }
.form__ok {
  display: none; align-items: center; gap: .7rem; padding: .9rem 1.1rem;
  border: 1px solid rgba(51,224,174,.3); border-radius: 10px;
  background: var(--mint-dim); color: var(--mint); font-size: .89rem;
}
.form__ok.is-shown { display: flex; animation: fadeUp .35s var(--ease); }
.form__ok svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Contact info ---------- */
.contact-item { display: flex; gap: .9rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 18px; height: 18px; color: var(--accent-soft); flex-shrink: 0; margin-top: .22rem; }
.contact-item b { display: block; font-size: .9rem; font-weight: 500; color: #fff; margin-bottom: .15rem; }
.contact-item span, .contact-item a { font-size: .89rem; color: var(--muted); }
.contact-item a:hover { color: var(--accent-soft); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.member { text-align: left; }
.member__ph {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); margin-bottom: 1rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-size: 1.9rem; font-weight: 600; letter-spacing: -.04em; color: rgba(255,255,255,.85);
}
.member b { display: block; font-size: .97rem; font-weight: 500; color: #fff; }
.member span { font-size: .85rem; color: var(--muted); }
.member p { font-size: .855rem; color: var(--faint); margin-top: .5rem; line-height: 1.6; }

/* ---------- Portrait (photo with initials fallback) ---------- */
.portrait {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #26314C, #131A28);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.portrait img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.portrait__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -.04em;
  color: rgba(255,255,255,.82);
}
.portrait--round { border-radius: 50%; }
.portrait--sm { width: 56px; height: 56px; }
.portrait--sm .portrait__fallback { font-size: 1.05rem; }

/* ---------- Founder's message ---------- */
.founder-note {
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(110,139,255,.24);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(110,139,255,.1), rgba(51,224,174,.04) 60%, rgba(255,255,255,.015));
}
.founder-note__aside { display: grid; gap: 1rem; }
.founder-note__body p { font-size: 1rem; line-height: 1.72; }
.founder-note__body p + p { margin-top: .95rem; }
.founder-note__body .lead { margin-bottom: .95rem; }

.signature {
  margin-top: 1.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.signature__name {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 1.5rem; letter-spacing: -.01em; color: #fff; line-height: 1;
}
.signature__role { font-size: .86rem; color: var(--muted); margin-top: .3rem; }

/* LinkedIn button */
.btn--li {
  background: rgba(10,102,194,.16);
  border: 1px solid rgba(90,160,230,.38);
  color: #9CC8F5;
}
.btn--li:hover { background: rgba(10,102,194,.28); border-color: rgba(120,185,245,.55); color: #CFE5FB; transform: translateY(-1px); }
.btn--li svg { width: 16px; height: 16px; }

/* Inline LinkedIn link on team cards */
.member__li {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .65rem; font-size: .82rem; color: var(--muted);
  transition: color .2s var(--ease);
}
.member__li svg { width: 14px; height: 14px; }
.member__li:hover { color: #9CC8F5; }

@media (max-width: 720px) {
  .founder-note { grid-template-columns: 1fr; }
  .founder-note__aside { grid-template-columns: 120px 1fr; align-items: center; gap: 1.25rem; }
  .founder-note__aside .btn { grid-column: 1 / -1; }
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; max-width: 760px; }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-item .yr { font-family: var(--mono); font-size: .82rem; color: var(--accent-soft); padding-top: .15rem; }
.tl-item h4 { margin-bottom: .35rem; font-size: 1rem; }
.tl-item p { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 5vw, 4.25rem) 0 2.25rem; margin-top: clamp(4rem, 7vw, 6rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand p { font-size: .89rem; color: var(--muted); margin: 1rem 0 1.35rem; max-width: 26rem; line-height: 1.65; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: .22s var(--ease);
}
.footer__social a:hover { border-color: var(--line-strong); color: #fff; background: rgba(255,255,255,.05); transform: translateY(-2px); }
.footer__social svg { width: 15px; height: 15px; }
.footer__col h5 { font-size: .8rem; font-weight: 500; color: #fff; margin-bottom: 1rem; letter-spacing: -.01em; }
.footer__col a { display: block; font-size: .875rem; color: var(--muted); padding: .32rem 0; transition: color .18s; }
.footer__col a:hover { color: var(--accent-soft); }
.footer__bottom {
  padding-top: 1.85rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--faint);
}
.footer__bottom nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--text-2); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero .lead { max-width: none; }
  .float-chip--a { right: 2%; }
  .float-chip--b { left: 2%; }
  .agents, .grid-3, .quotes, .plans { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .plan--featured { order: -1; grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn--quiet { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { justify-content: space-between; gap: 1rem; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split { gap: 2.25rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.25rem); }
  .logo { gap: .5rem; }
  .logo__text { font-size: .96rem; }
  .agents, .grid-2, .grid-3, .grid-4, .quotes, .plans, .team, .steps, .form__row { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .plan--featured { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
  .score-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tabs { width: 100%; overflow-x: auto; }
  .btn-row .btn { flex: 1; min-width: 160px; }
  .tl-item { grid-template-columns: 1fr; gap: .4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
