/* ==========================================================
   PRG Labs — dark cinematic theme
   ========================================================== */
:root {
  --bg: #060608;
  --bg-2: #0b0b0f;
  --surface: #111116;
  --surface-2: #17171d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2ef;
  --muted: #9b9aa4;
  --dim: #8a8993;
  --accent: #ff5b2e;
  --accent-2: #ffb547;
  --violet: #8b5cff;
  --green: #3ddc97;
  --grad: linear-gradient(100deg, #ffb547 0%, #ff5b2e 45%, #c84bff 100%);
  --radius: 18px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, -2%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--text); color: #0a0a0c;
  box-shadow: 0 0 0 0 rgba(255, 91, 46, 0);
}
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(255, 91, 46, 0.6); background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0; transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 6, 8, 0.72); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding: 10px 0;
}
.nav__inner { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; flex: none;
  /* Logo D: signal glow inside the tile */
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 91, 46, 0.32), transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(200, 75, 255, 0.34), transparent 60%),
    linear-gradient(145deg, #1c1c22, #0c0c10);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 24px -6px rgba(255, 91, 46, 0.6), 0 0 30px -8px rgba(139, 92, 255, 0.5);
}
.logo__mark svg { width: 22px; height: 22px; fill: none; stroke: url(#signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(255, 120, 60, 0.55)); }
.logo__word em { font-family: var(--serif); font-weight: 400; font-size: 1.12em; color: var(--muted); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute; left: 50%; top: -260px; width: 1300px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 50%, rgba(255, 91, 46, 0.32), transparent 70%),
    radial-gradient(closest-side at 25% 60%, rgba(139, 92, 255, 0.22), transparent 70%),
    radial-gradient(closest-side at 78% 55%, rgba(255, 181, 71, 0.16), transparent 70%);
  filter: blur(40px); animation: breathe 10s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.08); opacity: 0.85; } }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.hero__content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13px; color: var(--muted);
  backdrop-filter: blur(8px); transition: border-color 0.3s, color 0.3s;
}
.pill:hover { border-color: rgba(255, 91, 46, 0.5); color: var(--text); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255, 91, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); } }
.hero__title { margin-top: 28px; font-size: clamp(52px, 9.2vw, 128px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.94; }
.hero__title .serif { font-size: 1.08em; letter-spacing: -0.03em; }
.hero__sub { margin-top: 28px; max-width: 600px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero__ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__fit { margin-top: 18px; max-width: 520px; color: var(--muted); font-size: 14px; }

/* ---------- Engine demo ---------- */
.engine {
  position: relative; margin-top: 80px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.9), rgba(11, 11, 15, 0.95));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.02), 0 -20px 80px -40px rgba(255, 91, 46, 0.5);
}
.engine::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 181, 71, 0.6), transparent);
}
.engine__bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.engine__title { color: var(--dim); text-transform: none; }
.engine__status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--green); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.engine__body { display: grid; grid-template-columns: 1fr 1.5fr 1fr; min-height: 380px; }
.engine__col { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.engine__col:last-child { border-right: 0; }
.label { color: var(--dim); display: flex; align-items: center; gap: 8px; }
.count { margin-left: auto; color: var(--accent-2); }
.brief-box {
  min-height: 120px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--text);
}
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.brief-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-tags span {
  font: 500 11px/1 var(--mono); padding: 7px 10px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: all 0.5s var(--ease);
}
.brief-tags.show span { opacity: 1; transform: none; }
.brief-tags.show span:nth-child(2) { transition-delay: 0.12s; }
.brief-tags.show span:nth-child(3) { transition-delay: 0.24s; }

.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.variant {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; padding: 12px;
  display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line);
  opacity: 0; transform: scale(0.92) translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.variant.in { opacity: 1; transform: none; }
.variant__bg { position: absolute; inset: 0; z-index: 0; }
.variant__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75)); }
.variant__shape { position: absolute; border-radius: 50%; filter: blur(2px); }
.variant h5 { position: relative; z-index: 1; margin: 0; font: 600 13px/1.15 var(--sans); letter-spacing: -0.02em; }
.variant .ctr {
  position: absolute; top: 8px; right: 8px; z-index: 1; font: 500 10px/1 var(--mono); padding: 5px 7px; border-radius: 6px;
  background: rgba(0,0,0,0.55); color: var(--muted); opacity: 0; transition: opacity 0.4s, color 0.4s, background 0.4s;
}
.variant.scored .ctr { opacity: 1; }
.variant.winner { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -6px rgba(255, 91, 46, 0.8); }
.variant.winner .ctr { background: var(--accent); color: #fff; }
.variant.loser { opacity: 0.35; filter: saturate(0.3); }
.variant.shimmer .variant__bg { background: linear-gradient(110deg, #16161b 30%, #24242c 50%, #16161b 70%) !important; background-size: 200% 100% !important; animation: shimmer 1.2s linear infinite; }
.variant.shimmer .variant__shape, .variant.shimmer h5 { opacity: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.channels { display: flex; flex-direction: column; gap: 14px; }
.channel { display: grid; grid-template-columns: 88px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.desk-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.desk-steps li {
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  color: var(--dim); font-size: 15px; opacity: 0.35; transition: opacity 0.45s var(--ease), border-color 0.45s, color 0.45s;
}
.desk-steps li.is-on { opacity: 1; color: var(--text); border-color: rgba(255, 91, 46, 0.45); }
.channel b { text-align: right; color: var(--text); font-weight: 500; }
.bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); transition: width 1.2s var(--ease); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.kpi { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.kpi span { color: var(--dim); display: block; margin-bottom: 6px; }
.kpi strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.engine__log { margin-top: auto; color: var(--green); text-transform: none; font-size: 11.5px; min-height: 2.6em; }

/* ---------- Marquee ---------- */
.stack { padding: 40px 0 20px; }
.stack__label { text-align: center; color: var(--dim); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 64px; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: #4a4a53; white-space: nowrap; transition: color 0.3s; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 140px 0; scroll-margin-top: 72px; }
.section__head { margin-bottom: 64px; }
.section__head h2, .process__intro h2, .cta__copy h2 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; }
.section__head h2 .serif, .process__intro h2 .serif, .cta__copy h2 .serif { color: var(--muted); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section__lede { color: var(--muted); font-size: 17px; max-width: 440px; }

/* ---------- Shift ---------- */
.shift__grid { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 24px; }
.shift__col { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.shift__col--after {
  background: linear-gradient(160deg, rgba(255, 91, 46, 0.09), rgba(139, 92, 255, 0.05) 60%, var(--bg-2));
  border-color: rgba(255, 91, 46, 0.3);
}
.shift__tag { color: var(--dim); margin-bottom: 22px; }
.shift__col--after .shift__tag { color: var(--accent-2); }
.shift__col li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); font-size: 16px; }
.shift__col li:first-child { border-top: 0; }
.shift__col--before li { color: var(--muted); }
.shift__col--before li::before { content: "×"; position: absolute; left: 4px; top: 13px; color: var(--dim); }
.shift__col--after li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.shift__arrow svg { width: 80px; fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* ---------- Services ---------- */
.service {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
}
.service + .service { margin-top: 24px; }
.service--flip .service__copy { order: 2; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 46, 0.1), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }
.service__num { color: var(--accent); }
.service h3 { margin-top: 18px; font-size: clamp(30px, 3.6vw, 46px); }
.service__copy > p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.checks { margin-top: 30px; display: grid; gap: 4px; }
.checks li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.checks b { color: var(--text); font-weight: 500; }
.service__demo { display: inline-flex; margin-top: 8px; font-weight: 500; letter-spacing: -0.02em; }
.service__demo:hover { color: var(--accent-2); }
.service__visual {
  position: relative; min-height: 440px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(255, 91, 46, 0.12), transparent 60%), var(--surface);
  display: grid; place-items: center; padding: 24px; overflow: hidden;
}

/* follow-up sequence, content board, agent card */
.seq, .board, .specard {
  width: 100%; max-width: 380px; border-radius: 18px; border: 1px solid var(--line-2);
  background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.seq { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.seq__row {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--dim); font-size: 14px; opacity: 0.4;
  transition: opacity 0.4s var(--ease), border-color 0.4s, color 0.4s, background 0.4s;
}
.seq__row .mono { font-size: 10px; letter-spacing: 0.04em; }
.seq__row.is-on { opacity: 1; color: var(--text); border-color: rgba(255, 91, 46, 0.4); }
.seq__row.is-stop { opacity: 1; color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08); }
.board, .specard { padding: 22px; }
.board__top, .specard > .mono { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dim); font-size: 11px; }
.board__hold { color: var(--accent-2); }
.board__list, .specard ol { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; }
.board__list li, .specard li {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.board__list b { min-width: 42px; color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.specard h4 { margin-top: 16px; font-size: 26px; letter-spacing: -0.03em; }
.specard li { display: block; }
.board__note { margin-top: 8px; color: var(--green); text-transform: none; font-size: 11.5px; }

/* chat */
.chat { width: 100%; max-width: 380px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 14px; font-weight: 500; }
.chat__head .mono { color: var(--green); font-size: 10px; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 600; color: #fff; }
.chat__body { height: 340px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: pop 0.45s var(--ease) both; }
.msg--in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: linear-gradient(135deg, #ff6a3d, #e2482a); color: #fff; border-bottom-right-radius: 4px; }
.msg--sys { align-self: center; max-width: 100%; font: 500 11px/1.4 var(--mono); color: var(--green); background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.25); border-radius: 999px; padding: 7px 12px; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.8); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* ---------- Agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent {
  position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; min-height: 330px; overflow: hidden;
}
.agent__top { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 10.5px; }
.agent__state { color: var(--accent-2); }
.agent h4 { margin-top: 16px; font-size: 19px; letter-spacing: -0.025em; }
.agent__log { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.agent__log li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--muted); animation: pop 0.4s var(--ease) both; }
.agent__log li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--dim); }
.agent__log li.done::before { background: var(--green); border-color: var(--green); }
.agent__log li.flag { color: var(--accent-2); }
.agent__log li.flag::before { background: var(--accent-2); border-color: var(--accent-2); }
.agent__progress { margin-top: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.agent__progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.8s var(--ease); }
.agent.active { border-color: rgba(255, 91, 46, 0.35); }

/* ---------- Numbers ---------- */
.numbers { padding: 40px 0 120px; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 48px 28px; border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; }
.num strong { display: block; font-size: clamp(44px, 5vw, 72px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.num span { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Process ---------- */
.process__wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.process__intro { position: sticky; top: 120px; }
.process__intro .section__lede { margin: 24px 0 32px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 16px; }
.step { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.4s, background 0.4s; }
.step:hover { border-color: rgba(255, 91, 46, 0.35); background: linear-gradient(160deg, rgba(255, 91, 46, 0.06), var(--bg-2) 60%); }
.step__num { color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 28px; }
.step p { margin-top: 12px; color: var(--muted); }


/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 36px 32px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2);
}
.plan--featured {
  border-color: rgba(255, 91, 46, 0.45);
  background: linear-gradient(170deg, rgba(255, 91, 46, 0.12), rgba(139, 92, 255, 0.07) 55%, var(--bg-2));
  box-shadow: 0 30px 80px -30px rgba(255, 91, 46, 0.45);
}
.plan__badge {
  position: absolute; top: 22px; right: 22px; padding: 6px 10px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 10.5px;
}
.plan__name { color: var(--accent); }
.plan__for { margin-top: 14px; color: var(--muted); font-size: 15px; min-height: 48px; }
.plan__price { margin-top: 28px; display: flex; align-items: baseline; gap: 8px; }
.plan__from { color: var(--dim); text-transform: none; }
.plan__price strong { font-size: 52px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.plan__unit { color: var(--muted); font-size: 15px; }
.plan__then { margin-top: 10px; color: var(--accent-2); text-transform: none; }
.plan__list { margin: 28px 0 32px; display: grid; gap: 4px; flex: 1; align-content: start; }
.plan__list li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--line); font-size: 15px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pricing__also {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.pricing__also p {
  padding: 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--muted); font-size: 14px; line-height: 1.45;
}
.pricing__also b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.pricing__note { margin-top: 24px; text-align: center; color: var(--dim); text-transform: none; }

@media (max-width: 1024px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan__for { min-height: 0; }
  .pricing__also { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */
.faq__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s;
  scroll-margin-top: 88px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); animation: pop 0.4s var(--ease); }

/* ---------- CTA ---------- */
.cta { overflow: hidden; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute; left: 50%; bottom: -400px; width: 1200px; height: 800px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.25), transparent 70%), radial-gradient(closest-side at 30% 60%, rgba(139, 92, 255, 0.18), transparent 70%);
  filter: blur(40px);
}
.cta__wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.cta__copy .section__lede { margin-top: 24px; }
.cta__points { margin-top: 32px; display: grid; gap: 12px; color: var(--muted); }
.cta__points li::before { content: "→ "; color: var(--accent); }
.form {
  padding: 32px; border-radius: 24px; border: 1px solid var(--line-2);
  background: rgba(17, 17, 22, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  color: var(--text); font: 15px/1.4 var(--sans); outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--surface); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.15); }
.form input.invalid { border-color: #ff4d6d; }
.form__note { text-align: center; color: var(--dim); text-transform: none; }
.form__note.ok { color: var(--green); }


/* ---------- The Lab (newsletter) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab { padding-top: 40px; }
.lab__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 64px; border-radius: 32px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255, 91, 46, 0.08), rgba(139, 92, 255, 0.05) 55%, var(--bg-2));
}
.lab__glow {
  position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.22), transparent 70%), radial-gradient(closest-side at 70% 70%, rgba(200, 75, 255, 0.2), transparent 70%);
  filter: blur(30px);
}
.lab__copy, .lab__issue { position: relative; }
.lab__copy h2 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.045em; }
.lab__copy .section__lede { margin-top: 22px; max-width: 480px; }
.lab__list { margin-top: 26px; display: grid; gap: 10px; }
.lab__list li { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.lab__list .mono { color: var(--accent); }
.lab__form { margin-top: 30px; display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); max-width: 480px; transition: border-color 0.2s, box-shadow 0.2s; }
.lab__form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.15); }
.lab__form input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: var(--text); font: 15px/1 var(--sans); outline: none; }
.lab__form input::placeholder { color: var(--dim); }
.lab__form.invalid { border-color: #ff4d6d; }
.lab__form .btn { height: 46px; }
.lab__note { margin-top: 14px; color: var(--dim); text-transform: none; }
.lab__note.ok { color: var(--green); }

.issue { border-radius: 22px; border: 1px solid var(--line-2); background: rgba(11, 11, 15, 0.85); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); overflow: hidden; transform: rotate(1.5deg); transition: transform 0.6s var(--ease); }
.lab__card:hover .issue { transform: rotate(0deg) translateY(-4px); }
.issue__top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.issue__top b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.issue__top .mono { color: var(--dim); font-size: 10.5px; text-transform: none; }
.issue__lock { margin-left: auto; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--accent-2) !important; }
.issue__body { position: relative; padding: 22px 18px 26px; }
.issue__kicker { display: block; color: var(--accent); font-size: 10.5px; margin: 0 0 10px; }
.issue__headline { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 18px; }
.issue__blur { filter: blur(5px); opacity: 0.7; display: grid; gap: 10px; user-select: none; }
.issue__blur i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); }
.issue__blur .issue__kicker { margin: 10px 0 0; }
.issue__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.issue__tools span { height: 64px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 181, 71, 0.35), rgba(255, 91, 46, 0.3), rgba(200, 75, 255, 0.3)); }
.issue__unlock {
  position: absolute; left: 0; right: 0; bottom: 0; top: 46%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 15, 0.92) 45%);
}
.issue__unlock .mono { color: var(--muted); font-size: 11px; }

@media (max-width: 1024px) {
  .lab__card { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 760px) {
  .lab__card { padding: 24px; border-radius: 24px; gap: 40px; }
  .lab__form { flex-direction: column; border-radius: 18px; }
  .lab__form input { height: 46px; }
  .lab__form .btn { width: 100%; }
  .issue { transform: none; }
}


/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 100px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.045em; }
.legal h1 .serif { color: var(--muted); }
.legal__updated { margin: 18px 0 40px; color: var(--dim); text-transform: none; }
.legal h2 { margin: 44px 0 14px; font-size: 22px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; margin-top: 12px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal b { color: var(--text); font-weight: 500; }
.legal__link { color: var(--accent-2); border-bottom: 1px solid rgba(255, 181, 71, 0.4); }
.legal__back { margin-left: auto; }
.legal .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big {
  font-size: clamp(34px, 6.6vw, 104px); line-height: 0.85; letter-spacing: -0.04em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.01)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 48px; user-select: none;
}
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer__links a:hover { color: var(--text); }
.footer__meta { color: var(--dim); text-transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .engine__body { grid-template-columns: 1fr 1.4fr; }
  .engine__channels { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .service--flip .service__copy { order: 0; }
  .process__wrap, .faq__wrap, .cta__wrap { grid-template-columns: 1fr; gap: 48px; }
  .process__intro { position: static; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,0.03); cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.is-open { background: rgba(6, 6, 8, 0.96); backdrop-filter: blur(16px); }
  .nav__mobile { display: grid; gap: 4px; max-height: 0; overflow: hidden; padding: 0 16px; transition: max-height 0.4s var(--ease), padding 0.4s; }
  .nav.is-open .nav__mobile { max-height: 420px; padding: 16px; }
  .nav__mobile a:not(.btn) { padding: 12px 0; font-size: 22px; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 14px; }

  .hero { padding: 130px 0 56px; }
  .engine { margin-top: 56px; }
  .engine__body { grid-template-columns: 1fr; }
  .engine__col { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .engine__col:last-child { border-bottom: 0; }
  .engine__channels { border-top: 0; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 40px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .shift__grid { grid-template-columns: 1fr; }
  .shift__arrow { justify-self: center; transform: rotate(90deg); }
  .shift__col { padding: 24px; }
  .service { padding: 24px; border-radius: 22px; }
  .service__visual { min-height: 360px; padding: 16px; }
  .pricing__also { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent { min-height: 280px; }
  .num { padding: 32px 16px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* Phones: tighter hero demo so the page gets to the point faster */
@media (max-width: 760px) {
  .engine__body { min-height: 0; }
  .brief-box { min-height: 0; font-size: 14px; }
  .engine__col { gap: 12px; }
  .channels, .engine__log { display: none; }
  .kpis { margin-top: 0; }
  .kpi { padding: 10px 12px; }
  .kpi strong { font-size: 22px; }
}

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