/* =========================================================
   Dealer Forge — global stylesheet
   ========================================================= */

:root {
  /* palette */
  --bg: #0a0e1a;
  --bg-2: #0d1322;
  --bg-3: #111a2e;
  --panel: #131a2c;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #e7ecf5;
  --ink-2: #b9c2d4;
  --ink-3: #8794ad;
  --muted: #6b7896;

  /* light surfaces */
  --light: #f7f8fc;
  --light-2: #eef1f8;
  --ink-on-light: #0a0e1a;
  --ink-on-light-2: #475067;

  /* brand */
  --forge-1: #ff6b35;
  --forge-2: #ffa544;
  --forge-3: #ffd166;
  --ember:   #ff3d2e;
  --steel:   #2a3550;
  --plasma:  #6b8cff;

  --grad-forge: linear-gradient(135deg, #ff3d2e 0%, #ff6b35 35%, #ffa544 70%, #ffd166 100%);
  --grad-ink:   linear-gradient(180deg, #0a0e1a 0%, #0d1424 100%);

  --radius:   14px;
  --radius-2: 22px;
  --radius-3: 32px;

  --shadow-1: 0 2px 4px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 10px 30px rgba(0,0,0,.45), 0 30px 80px rgba(255,107,53,.12);

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =============== reset =============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* iOS safe areas */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* keyboard focus — visible orange ring on tab, no ring on click */
:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--forge-1);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.06); padding: .12em .4em; border-radius: 6px; color: #ffd9b8; }

::selection { background: var(--forge-1); color: #0a0e1a; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--forge-1); color: #0a0e1a;
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; z-index: 1000; }

/* =============== layout =============== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, #0a0e1a, #0c1326 60%, #0a0e1a); }
.section--dark {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,107,53,.10), transparent 60%),
    linear-gradient(180deg, #070b15 0%, #0a0e1a 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 14px; border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--forge-1);
  box-shadow: 0 0 0 4px rgba(255,107,53,.18), 0 0 14px rgba(255,107,53,.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
p  { color: var(--ink-2); }

.grad {
  background: var(--grad-forge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head { max-width: 760px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.sec-head--center { margin: 0 auto 56px; text-align: center; align-items: center; }
.sec-head p { font-size: 18px; }

/* =============== buttons =============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--xl { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  color: #0a0e1a;
  background: var(--grad-forge);
  box-shadow: 0 8px 24px rgba(255,107,53,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255,107,53,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost {
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }

/* =============== nav =============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,14,26,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,14,26,.85);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-size: 19px; }
.brand__name span { background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__links {
  display: flex; gap: 6px;
  margin-left: 16px;
  flex: 1;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,107,53,.12);
  box-shadow: inset 0 0 0 1px rgba(255,107,53,.35);
}

.nav__cta { display: flex; gap: 10px; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--pad) 24px;
  border-top: 1px solid var(--line);
  background: rgba(10,14,26,.95);
}
.nav__mobile a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.nav__mobile a:hover { background: rgba(255,255,255,.05); }

@media (max-width: 940px) {
  .nav__links { display: none; }
  /* keep theme toggle visible on mobile; hide marketing CTAs (they live in the mobile menu) */
  .nav__cta { display: inline-flex; gap: 8px; margin-left: auto; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__mobile.is-open { display: flex; }
}

/* =============== hero =============== */
.hero {
  position: relative;
  min-height: clamp(700px, 95vh, 1000px);
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 28px;
  max-width: 720px;
  z-index: 2;
}
@media (min-width: 1400px) {
  .hero__inner { max-width: 760px; }
}
.hero__title { margin: 0; }
.hero__sub { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__trust {
  display: flex; gap: clamp(20px, 4vw, 56px);
  margin-top: 36px; padding-top: 36px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__trust > div {
  display: flex; flex-direction: column;
}
.hero__trust strong {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 28px; letter-spacing: -.02em;
  background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__trust span { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* hero background */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -10% -5%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 30%, transparent 80%);
  opacity: .9;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--a {
  width: 620px; height: 620px;
  left: -180px; top: -120px;
  background: radial-gradient(circle, rgba(255,107,53,.55) 0%, transparent 60%);
}
.hero__glow--b {
  width: 720px; height: 720px;
  right: -200px; top: 40px;
  background: radial-gradient(circle, rgba(107,140,255,.42) 0%, transparent 60%);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.06); }
}

.hero__sparks { position: absolute; inset: 0; }
.hero__sparks span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--forge-2);
  box-shadow: 0 0 12px var(--forge-1);
  opacity: 0;
  animation: spark 9s linear infinite;
}
.hero__sparks span:nth-child(1) { left: 12%; top: 80%; animation-delay: 0s; }
.hero__sparks span:nth-child(2) { left: 20%; top: 60%; animation-delay: 1.4s; }
.hero__sparks span:nth-child(3) { left: 28%; top: 90%; animation-delay: 3s; }
.hero__sparks span:nth-child(4) { left: 35%; top: 70%; animation-delay: 4.6s; }
.hero__sparks span:nth-child(5) { left: 48%; top: 95%; animation-delay: 2.2s; }
.hero__sparks span:nth-child(6) { left: 58%; top: 75%; animation-delay: 5.8s; }
.hero__sparks span:nth-child(7) { left: 68%; top: 85%; animation-delay: 1.1s; }
.hero__sparks span:nth-child(8) { left: 78%; top: 65%; animation-delay: 6.5s; }
.hero__sparks span:nth-child(9) { left: 88%; top: 90%; animation-delay: 3.5s; }
.hero__sparks span:nth-child(10){ left: 95%; top: 78%; animation-delay: 7.5s; }
@keyframes spark {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-700px) scale(.4); opacity: 0; }
}

/* hero hud panel */
.hero__panel {
  position: absolute;
  right: clamp(20px, 3vw, 80px);
  top: 50%;
  transform: translateY(-46%);
  width: clamp(340px, 30vw, 420px);
  z-index: 1;
  pointer-events: none;
}
.hud {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-2);
  padding: 18px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(20px);
  transform: rotate(-1.5deg);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: rotate(-1.5deg) translateY(0); }
  50%     { transform: rotate(-1.2deg) translateY(-10px); }
}
.hud::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,53,.5), transparent 35%, transparent 70%, rgba(107,140,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hud__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hud__chip { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #6effa1; padding: 4px 8px; border-radius: 6px; background: rgba(110,255,161,.1); border: 1px solid rgba(110,255,161,.25); }
.hud__title { font-family: 'Space Grotesk',Inter,sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.hud__pill { margin-left: auto; font-size: 12px; color: var(--ink-3); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.hud__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-size: 22px; font-family: 'Space Grotesk', Inter, sans-serif; }
.kpi i { font-style: normal; font-size: 11px; color: #6effa1; }
.kpi i.up::before { content: '↑ '; }
.hud__chart svg { width: 100%; height: 90px; display: block; }
.hud__row { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hud__item { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.hud__item:first-child { border-top: 0; }
.dotg, .doty, .dotr { width: 7px; height: 7px; border-radius: 50%; }
.dotg { background: #6effa1; box-shadow: 0 0 8px #6effa1; }
.doty { background: #ffd166; box-shadow: 0 0 8px #ffd166; }
.dotr { background: #ff6b35; box-shadow: 0 0 8px #ff6b35; }

@media (max-width: 1180px) {
  .hero__panel { display: none; }
  .hero__inner { max-width: none; }
}

/* =============== logo bar =============== */
.logobar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  background: rgba(255,255,255,.015);
}
.logobar__inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.logobar p { color: var(--ink-3); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.logobar__row {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px);
  font-family: 'Space Grotesk', Inter, sans-serif;
  color: var(--ink-3);
  font-weight: 600; letter-spacing: .15em;
  opacity: .8;
}
.logobar__row span { transition: color .25s var(--ease); }
.logobar__row span:hover { color: var(--ink); }

/* =============== pillars =============== */
.pillars {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.pillar {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: var(--shadow-2); }
.pillar::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--clr, rgba(255,107,53,.18)), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.pillar--lead { --clr: rgba(255,107,53,.22); }
.pillar--cust { --clr: rgba(107,140,255,.22); }
.pillar--deal { --clr: rgba(255,209,102,.22); }
.pillar--ai   { --clr: rgba(255,61,46,.22); }
.pillar__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--grad-forge);
  color: #0a0e1a;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.pillar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pillar__list li {
  position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ink-2);
}
.pillar__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--forge-1);
  box-shadow: 0 0 8px var(--forge-1);
}

@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } }

/* =============== showcase =============== */
.showcase {
  padding: clamp(72px, 9vw, 130px) 0;
  background:
    radial-gradient(1100px 500px at 20% 20%, rgba(107,140,255,.08), transparent 60%),
    var(--bg);
}
.showcase__grid {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.showcase__copy h2 { margin-bottom: 16px; }
.showcase__copy p { font-size: 17px; max-width: 540px; }
.bullets { margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.bullets > div { display: grid; gap: 4px; padding: 14px 16px; border-left: 2px solid var(--forge-1); background: rgba(255,107,53,.05); border-radius: 0 12px 12px 0; }
.bullets b { font-family: 'Space Grotesk',Inter,sans-serif; font-size: 15px; }
.bullets span { font-size: 14px; color: var(--ink-2); }

.showcase__visual {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.lane {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
}
.lane__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; border-bottom: 1px dashed var(--line); }
.lane__head span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lane__head i { font-style: normal; font-size: 12px; color: var(--ink-2); padding: 2px 8px; background: rgba(255,255,255,.06); border-radius: 999px; }

.card {
  position: relative;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.card b { font-size: 14px; }
.card em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.tag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.tag--hot { color: #ffb29b; background: rgba(255,107,53,.12); border-color: rgba(255,107,53,.4); }
.tag--cool { color: #9ec0ff; background: rgba(107,140,255,.12); border-color: rgba(107,140,255,.35); }
.tag--ai   { color: #ffd166; background: rgba(255,209,102,.1); border-color: rgba(255,209,102,.35); }
.card--hot { border-color: rgba(255,107,53,.4); box-shadow: 0 0 0 1px rgba(255,107,53,.2), 0 8px 24px rgba(255,107,53,.12); }
.card--ai  { border-color: rgba(255,209,102,.35); }

@media (max-width: 960px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__visual { grid-template-columns: 1fr; }
  .lane { min-height: 0; }
}

/* =============== madison =============== */
.madison {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-top: 16px;
}
.phone {
  position: relative;
  width: 320px; height: 640px;
  margin: 0 auto;
  background: #0a0e1a;
  border: 12px solid #1a2236;
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
.phone__notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #1a2236; border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone__screen { position: absolute; inset: 0; padding: 36px 14px 14px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #0d1424, #0a0e1a); }
.phone__header { display: flex; align-items: center; gap: 10px; padding: 8px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-forge);
  display: grid; place-items: center;
  color: #0a0e1a; font-weight: 800;
}
.phone__header b { font-size: 14px; display: block; }
.phone__header span { font-size: 11.5px; color: #6effa1; }
.bubbles { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  animation: bubble .5s var(--ease) backwards;
}
.bubble em { font-style: normal; color: var(--forge-2); font-size: 11.5px; font-weight: 600; }
.bubble--in {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble--out {
  background: var(--grad-forge);
  color: #0a0e1a; font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble:nth-child(1){ animation-delay: .1s; }
.bubble:nth-child(2){ animation-delay: .8s; }
.bubble:nth-child(3){ animation-delay: 1.4s; }
.bubble:nth-child(4){ animation-delay: 2.0s; }
.bubble:nth-child(5){ animation-delay: 2.7s; }
.bubble:nth-child(6){ animation-delay: 3.3s; }
@keyframes bubble {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.madison__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcard {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.mcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.mcard h4 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mcard__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--forge-2);
  background: rgba(255,107,53,.12);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(255,107,53,.3);
}
.mcard p { margin: 0; font-size: 14px; }

@media (max-width: 960px) {
  .madison { grid-template-columns: 1fr; }
  .madison__cards { grid-template-columns: 1fr; }
}

/* =============== split =============== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.split__copy h2 { margin-bottom: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 28px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.stat strong {
  display: block;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 24px;
  background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.stat span { font-size: 13.5px; color: var(--ink-2); }

.split__visual { display: flex; flex-direction: column; gap: 14px; }
.dashlet {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  padding: 18px;
  box-shadow: var(--shadow-1);
}
.dashlet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.dashlet__head b { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 15px; }
.dashlet__head span { font-size: 12px; color: var(--ink-3); }

.shoppers, .visits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shoppers li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px;
}
.shoppers em { font-style: normal; color: var(--ink-3); font-size: 12.5px; display: block; }
.shoppers b { font-size: 14px; }
.shoppers .score { font-family: 'Space Grotesk', Inter, sans-serif; font-style: normal; font-size: 18px; font-weight: 700; background: var(--grad-forge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6effa1;
  box-shadow: 0 0 0 0 rgba(110,255,161,.7);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(110,255,161,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(110,255,161,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,255,161,0); }
}

.visits { counter-reset: v; }
.visits li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px;
}
.visits li i {
  font-style: normal;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,107,53,.15); color: var(--forge-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255,107,53,.3);
}
.visits li .tag { margin-left: auto; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* =============== modules grid =============== */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mod {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  position: relative; overflow: hidden;
}
.mod::after {
  content: '→';
  position: absolute; right: 18px; top: 18px;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.mod:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,53,.5);
  background: linear-gradient(180deg, rgba(255,107,53,.05), rgba(255,255,255,.01));
}
.mod:hover::after { transform: translateX(4px); color: var(--forge-1); }
.mod h4 { font-size: 16px; margin-bottom: 6px; }
.mod p { font-size: 13.5px; margin: 0; color: var(--ink-2); }

@media (max-width: 1024px) { .modules { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .modules { grid-template-columns: 1fr; } }

/* =============== security =============== */
.security {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.security__copy h2 { margin-bottom: 14px; }
.security__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.security__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas: 'badge title' 'badge body';
  column-gap: 16px;
  row-gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.security__list li:hover { border-color: rgba(255,107,53,.4); background: rgba(255,107,53,.03); }
.security__list li > span {
  grid-area: badge;
  align-self: stretch;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--forge-2);
  background: rgba(255,107,53,.1);
  border: 1px solid rgba(255,107,53,.3);
  border-radius: 10px;
  min-height: 48px;
}
.security__list b {
  grid-area: title;
  font-family: 'Space Grotesk', Inter, sans-serif; font-size: 15.5px;
  align-self: end;
}
.security__list em {
  grid-area: body;
  font-style: normal; font-size: 13.5px; color: var(--ink-2);
  align-self: start;
}

@media (max-width: 960px) { .security { grid-template-columns: 1fr; } }

/* =============== quote =============== */
.section--quote { background: linear-gradient(180deg, var(--bg), #07091a); }
.quote {
  position: relative;
  max-width: 920px;
  margin: 0 auto; padding: 0;
  text-align: center;
}
.quote__mark { width: 56px; height: 56px; color: rgba(255,107,53,.4); margin: 0 auto 16px; }
.quote blockquote {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.quote figcaption { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.quote figcaption strong { color: var(--ink); display: block; }

/* =============== final cta =============== */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    radial-gradient(900px 400px at 80% 20%, rgba(255,107,53,.18), transparent 60%),
    radial-gradient(800px 400px at 20% 80%, rgba(107,140,255,.12), transparent 60%),
    linear-gradient(180deg, #0a0e1a, #0d1322);
  border-top: 1px solid var(--line);
}
.cta__inner {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 40px; align-items: center;
}
.cta__copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 8px; }
.cta__copy p { margin: 0; font-size: 17px; max-width: 600px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta__inner { grid-template-columns: 1fr; } }

/* =============== footer =============== */
.footer {
  background: #060914;
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px; align-items: flex-start;
}
.footer__brand p { color: var(--ink-3); margin: 12px 0 0; font-size: 14px; max-width: 280px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer__cols h5 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-family: 'Space Grotesk', Inter, sans-serif; }
.footer__cols a { display: block; color: var(--ink-2); padding: 8px 0; font-size: 14px; min-height: 32px; transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--forge-1); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13px;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* =============== reveal animation =============== */
/* Only hide elements once JS has flagged them with .reveal.
   The class is applied by main.js — without JS, content stays visible (no FOUC for crawlers / no-JS users). */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

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

/* === touch / coarse-pointer tweaks === */
@media (pointer: coarse) {
  .nav__mobile a { min-height: 44px; display: flex; align-items: center; }
  .footer__cols a { min-height: 44px; padding: 12px 0; }
  .toc a { min-height: 36px; display: flex; align-items: center; }
  .mod, .pillar, .plan, .contact-card, .stat, .bullets > div { -webkit-tap-highlight-color: rgba(255,107,53,.15); }
}

/* === ultra-wide screens — keep content from feeling lost === */
@media (min-width: 1600px) {
  :root { --maxw: 1280px; }
  .hero__inner { max-width: 820px; }
}
@media (min-width: 1920px) {
  :root { --maxw: 1360px; }
}

/* iOS form zoom prevention — inputs must be >= 16px */
.form input, .form textarea, .form select { font-size: 16px; }

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  display: inline-grid; place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .35s var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,.08); color: var(--ink); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle { background: rgba(10,14,26,.04); }
[data-theme="light"] .theme-toggle:hover { background: rgba(10,14,26,.08); }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* =========================================================
   LIGHT THEME
   Activates via [data-theme="light"] on <html>.
   The brand-default is dark; this block overrides palette
   and the few selectors that use literal rgba(255,255,255,…).
   ========================================================= */

:root[data-theme="light"] {
  --bg: #fafbfd;
  --bg-2: #eef1f8;
  --bg-3: #e3e8f2;
  --panel: #ffffff;
  --line: rgba(10,14,26,.10);
  --line-2: rgba(10,14,26,.16);
  --ink: #0a0e1a;
  --ink-2: #475067;
  --ink-3: #6b7896;
  --muted: #8794ad;
  --shadow-1: 0 1px 2px rgba(10,14,26,.04), 0 6px 18px rgba(10,14,26,.06);
  --shadow-2: 0 10px 30px rgba(10,14,26,.08), 0 30px 80px rgba(255,107,53,.12);
  --grad-ink: linear-gradient(180deg, #fafbfd 0%, #eef1f8 100%);
  color-scheme: light;
}
:root { color-scheme: dark; }

/* Nav */
[data-theme="light"] .nav { background: rgba(255,255,255,.65); }
[data-theme="light"] .nav.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--line); }
[data-theme="light"] .nav__links a:hover { background: rgba(10,14,26,.05); }
[data-theme="light"] .nav__links a[aria-current="page"] { background: rgba(255,107,53,.08); box-shadow: inset 0 0 0 1px rgba(255,107,53,.35); }
[data-theme="light"] .nav__burger { background: rgba(10,14,26,.03); }
[data-theme="light"] .nav__burger span { background: var(--ink); }
[data-theme="light"] .nav__mobile { background: rgba(255,255,255,.98); }
[data-theme="light"] .nav__mobile a:hover { background: rgba(10,14,26,.05); }

/* Pills, buttons, code */
[data-theme="light"] .eyebrow { background: rgba(10,14,26,.04); }
[data-theme="light"] .btn--ghost { background: rgba(10,14,26,.04); }
[data-theme="light"] .btn--ghost:hover { background: rgba(10,14,26,.08); border-color: rgba(10,14,26,.22); }
[data-theme="light"] code { background: rgba(255,107,53,.10); color: #b53a17; }

/* Hero */
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(to right, rgba(10,14,26,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,26,.05) 1px, transparent 1px);
}
[data-theme="light"] .hero__glow--a { opacity: .4; }
[data-theme="light"] .hero__glow--b {
  background: radial-gradient(circle, rgba(255,165,68,.25) 0%, transparent 60%);
  opacity: .65;
}
[data-theme="light"] .hero__sparks span { background: var(--forge-1); box-shadow: 0 0 12px rgba(255,107,53,.6); }

/* Logobar */
[data-theme="light"] .logobar { background: rgba(10,14,26,.025); }
[data-theme="light"] .logobar__row { color: var(--ink-3); }

/* Cards / panels — fall back to clean white surfaces */
[data-theme="light"] .pillar,
[data-theme="light"] .mcard,
[data-theme="light"] .dashlet,
[data-theme="light"] .mod,
[data-theme="light"] .plan,
[data-theme="light"] .contact-card {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10,14,26,.04), 0 6px 16px rgba(10,14,26,.05);
}
[data-theme="light"] .pillar:hover,
[data-theme="light"] .mod:hover,
[data-theme="light"] .plan:hover,
[data-theme="light"] .mcard:hover { box-shadow: 0 4px 8px rgba(10,14,26,.06), 0 16px 40px rgba(10,14,26,.10); }

/* Lead engine kanban */
[data-theme="light"] .lane { background: var(--bg-2); }
[data-theme="light"] .card { background: #ffffff; }
[data-theme="light"] .card--hot { box-shadow: 0 0 0 1px rgba(255,107,53,.25), 0 8px 24px rgba(255,107,53,.10); }

/* HUD */
[data-theme="light"] .hud {
  background: linear-gradient(160deg, #ffffff, #f4f6fc);
  box-shadow: 0 18px 50px rgba(10,14,26,.12), 0 30px 80px rgba(255,107,53,.10);
}
[data-theme="light"] .kpi { background: rgba(10,14,26,.025); }
[data-theme="light"] .hud__pill { color: var(--ink-3); }

/* Tags */
[data-theme="light"] .tag { background: rgba(10,14,26,.05); border-color: rgba(10,14,26,.12); color: var(--ink-2); }
[data-theme="light"] .tag--hot  { color: #b53a17; background: rgba(255,107,53,.10); border-color: rgba(255,107,53,.35); }
[data-theme="light"] .tag--cool { color: #2643b8; background: rgba(107,140,255,.10); border-color: rgba(107,140,255,.30); }
[data-theme="light"] .tag--ai   { color: #8a5a00; background: rgba(255,209,102,.20); border-color: rgba(255,209,102,.45); }

/* Showcase / bullets / stats / dashlets */
[data-theme="light"] .bullets > div { background: rgba(255,107,53,.06); }
[data-theme="light"] .stat { background: #ffffff; box-shadow: 0 1px 2px rgba(10,14,26,.04); }
[data-theme="light"] .shoppers li,
[data-theme="light"] .visits li { background: var(--bg-2); }

/* Section variants */
[data-theme="light"] .section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg)); }
[data-theme="light"] .section--dark {
  /* Madison AI section stays dark — high-contrast accent that still pops in light mode */
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,107,53,.18), transparent 60%),
    linear-gradient(180deg, #070b15 0%, #0a0e1a 100%);
  color: #e7ecf5;
}
[data-theme="light"] .section--dark h2,
[data-theme="light"] .section--dark p,
[data-theme="light"] .section--dark .eyebrow { color: #e7ecf5; }
[data-theme="light"] .section--dark .eyebrow { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); color: #b9c2d4; }
[data-theme="light"] .section--dark .mcard { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); box-shadow: none; color: #e7ecf5; }
[data-theme="light"] .section--dark .mcard p { color: #b9c2d4; }
[data-theme="light"] .section--quote { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

/* Phone (Madison) — stays dark, it's a phone */

/* CTA */
[data-theme="light"] .cta {
  background:
    radial-gradient(900px 400px at 80% 20%, rgba(255,107,53,.18), transparent 60%),
    radial-gradient(800px 400px at 20% 80%, rgba(107,140,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* Subhero */
[data-theme="light"] .subhero::before {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(255,107,53,.15), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(107,140,255,.10), transparent 60%);
}

/* Docs / TOC */
[data-theme="light"] .toc a { color: var(--ink-3); }
[data-theme="light"] .toc a:hover, [data-theme="light"] .toc a.active { color: var(--forge-1); background: rgba(255,107,53,.08); }
[data-theme="light"] .kvtable th { background: rgba(10,14,26,.04); color: var(--ink-3); }

/* Forms */
[data-theme="light"] .form input,
[data-theme="light"] .form textarea,
[data-theme="light"] .form select { background: #ffffff; color: var(--ink); }
[data-theme="light"] .form input:focus,
[data-theme="light"] .form textarea:focus,
[data-theme="light"] .form select:focus { background: #fff8f3; border-color: var(--forge-1); }

/* Security list */
[data-theme="light"] .security__list li { background: #ffffff; box-shadow: 0 1px 2px rgba(10,14,26,.04); }
[data-theme="light"] .security__list li:hover { background: rgba(255,107,53,.04); }

/* Footer — keep contrast against bright body */
[data-theme="light"] .footer { background: #0a0e1a; color: #b9c2d4; border-top: 0; }
[data-theme="light"] .footer h5 { color: #8794ad; }
[data-theme="light"] .footer__cols a { color: #b9c2d4; }
[data-theme="light"] .footer__cols a:hover { color: var(--forge-1); }
[data-theme="light"] .footer__brand .brand__name { color: #ffffff; }
[data-theme="light"] .footer__brand p { color: #8794ad; }
[data-theme="light"] .footer__bottom { color: #6b7896; border-top-color: rgba(255,255,255,.08); }

/* Skip link */
[data-theme="light"] .skip { background: var(--forge-1); color: #fff; }

/* Quote mark */
[data-theme="light"] .quote__mark { color: rgba(255,107,53,.45); }

/* Pillar inner glow — soften for light */
[data-theme="light"] .pillar::before { opacity: .55; }

/* =========================================================
   FEATURE / PRICING / CONTACT SUB-PAGES
   ========================================================= */

.subhero {
  padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 70px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.subhero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(255,107,53,.15), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(107,140,255,.10), transparent 60%);
  pointer-events: none;
}
.subhero__inner { position: relative; max-width: 820px; }
.subhero h1 { font-size: clamp(36px, 5vw, 64px); }
.subhero p { font-size: 18px; max-width: 700px; }

.toc {
  position: sticky; top: 88px;
  align-self: start;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.toc a {
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.toc a:hover, .toc a.active { color: var(--forge-1); background: rgba(255,107,53,.06); }

.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}
.docs__main { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 60px); }
.docblock {
  scroll-margin-top: 100px;
  padding-bottom: clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--line);
}
.docblock:last-child { border-bottom: 0; padding-bottom: 0; }
.docblock h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.docblock h3 { font-size: 18px; margin: 24px 0 8px; color: var(--forge-2); font-family: 'Space Grotesk', Inter, sans-serif; }
.docblock p, .docblock li { color: var(--ink-2); }
.docblock ul { padding-left: 20px; }
.docblock li { margin: 4px 0; }
.docblock .tag { margin-right: 6px; margin-bottom: 6px; display: inline-flex; }

.kvtable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.kvtable th, .kvtable td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.kvtable th {
  background: rgba(255,255,255,.04);
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.kvtable tr:last-child td { border-bottom: 0; }
.kvtable td code { color: var(--forge-2); }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.plan--featured {
  border-color: rgba(255,107,53,.5);
  background:
    linear-gradient(180deg, rgba(255,107,53,.08), rgba(255,107,53,.01)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: 0 30px 80px rgba(255,107,53,.18);
}
.plan__badge {
  position: absolute; top: -12px; right: 24px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad-forge); color: #0a0e1a;
  padding: 5px 10px; border-radius: 999px; font-weight: 700;
}
.plan h3 { margin-bottom: 6px; }
.plan__sub { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
.plan__price { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.plan__price small { font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); }
.plan li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  background: rgba(255,107,53,.12); color: var(--forge-1);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.plan .btn { width: 100%; }

@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* contact */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 14px;
}
.contact-card h3 { margin: 0; }
.contact-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.contact-card a { color: var(--forge-1); }
.contact-card a:hover { text-decoration: underline; }

.form { display: grid; gap: 14px; }
.form label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--forge-1);
  background: rgba(255,107,53,.04);
}
.form textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hint { font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
