/* ==============================================================
   RunWeb landing — original design system
   Type: Inter (display) + DM Sans (body) + Instrument Serif (italic)
   Color: brand purple + deep violet over warm white
============================================================== */

:root {
  --primary: #8161ff;
  --primary-soft: #a588ff;
  --primary-deep: #2D0A54;
  --primary-glow: rgba(129, 97, 255, .35);
  --ink: #0B0418;
  --ink-2: #2A1B3D;
  --muted: #6B6478;
  --paper: #F4F0FF;
  --paper-warm: #F8F5FF;
  --paper-pure: #FFFFFF;
  --line: rgba(11, 4, 24, .09);
  --line-soft: rgba(11, 4, 24, .04);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:  "DM Sans", "Inter", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --pad-x: clamp(20px, 5vw, 80px);
  --max:   1320px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -30px rgba(45, 10, 84, .25), 0 8px 18px -10px rgba(45, 10, 84, .12);
  --shadow-soft: 0 14px 40px -20px rgba(45, 10, 84, .28);
  --shadow-lift: 0 60px 120px -50px rgba(45, 10, 84, .45), 0 20px 40px -20px rgba(45, 10, 84, .22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--primary-deep); }

/* ============================================
   Header
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px var(--pad-x);
  gap: 32px;
  background: rgba(244, 240, 255, 0);
  backdrop-filter: blur(0px) saturate(140%);
  -webkit-backdrop-filter: blur(0px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .55s cubic-bezier(.4,.2,.2,1), backdrop-filter .55s cubic-bezier(.4,.2,.2,1), -webkit-backdrop-filter .55s cubic-bezier(.4,.2,.2,1), border-color .55s cubic-bezier(.4,.2,.2,1), padding .35s cubic-bezier(.4,.2,.2,1), box-shadow .55s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: transparent;
  padding-top: 10px; padding-bottom: 10px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 30px; width: auto; }
.nav.is-scrolled .nav__logo img { height: 26px; }

.nav__links {
  position: relative;
  display: flex; gap: 2px; justify-content: center; align-items: center;
  padding: 4px;
  border-radius: var(--r-pill);
}
.nav__links a {
  position: relative; z-index: 2;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  padding: 9px 16px; border-radius: var(--r-pill);
  transition: color .25s ease, background-color .25s ease;
}
.nav__links a:hover { color: var(--ink); background-color: rgba(11,4,24,.05); }
.nav__links a.is-active { color: var(--ink); background-color: rgba(129,97,255,.10); }
.nav__links a.is-active:hover { color: var(--ink); background-color: rgba(129,97,255,.18); }
/* When the pill is parked over the active link, suppress the active link's own bg
   and flip its color to white so it reads on the dark pill. When pill leaves
   (i.e. user hovers a different link), the rules above take over again. */
.nav__links.pill-on-active a.is-active { color: #fff; background-color: transparent; }
/* Whichever link the pill is sliding TOWARD must be white, since it sits on the dark pill */
.nav__links.has-active a.is-pill-target { color: #fff; background-color: transparent; }
.nav__pill {
  position: absolute; z-index: 1;
  top: 4px; left: 0;
  height: calc(100% - 8px);
  width: 0;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: transform .45s cubic-bezier(.7,.1,.25,1), width .45s cubic-bezier(.7,.1,.25,1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.nav__links.has-active .nav__pill { opacity: 1; }
.nav__cta { justify-self: end; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--r-pill);
  cursor: pointer; border: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 28px -12px rgba(129,97,255,.45);
}
.btn--primary:hover {
  background: var(--primary); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 18px 38px -14px rgba(129,97,255,.7);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: #fff; transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { display: flex; justify-content: center; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   Speed-line backdrop (in hero)
============================================ */
.speed-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .5;
}
.speed-bg svg { width: 100%; height: 100%; }

/* ============================================
   HERO — morphing: solid copy becomes outline drift
============================================ */
.hero {
  position: relative;
  background: var(--paper);
  height: 380vh;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
}
.hero__pin {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Solid headline, centered */
.hero__headline {
  position: absolute; inset: 0; z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding-bottom: 22vh;
}
.hero__h1 {
  position: relative;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: .98;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  padding: 0 24px;
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(0.94);
  will-change: transform, opacity;
}
.hero__h1 .line { display: block; }
.hero__h1 .l2 { color: var(--ink-2); }
.hero__h1 em { color: var(--primary-deep); }

/* Drifting OUTLINE copies (behind), opacity scaled by scroll */
.hero__drift {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(-10px, 0vw, 10px);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  transition: opacity .3s ease;
}
.drift__row {
  display: flex; align-items: center;
  gap: clamp(20px, 4vw, 60px);
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(90px, 17vw, 260px);
  line-height: .82;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(129, 97, 255, .35);
  will-change: transform;
}
.drift__row .i, .drift__row em { font-family: var(--serif); font-style: italic; font-weight: 400; -webkit-text-stroke: 1.4px rgba(45, 10, 84, .45); letter-spacing: -.015em; color: transparent; }
.drift__row .dot { color: var(--primary); -webkit-text-stroke: 0; font-size: .34em; transform: translateY(-.5em); opacity: .75; }

/* Hero center copy (sub + CTAs) */
.hero__center {
  position: absolute; left: 50%; bottom: 22vh;
  transform: translate3d(-50%, 0, 0);
  z-index: 4;
  text-align: center;
  width: min(720px, 90vw);
  padding: 0 24px;
  opacity: 0;
  will-change: transform, opacity;
}

/* Scroll-down indicator — visible in the first phase (mocks), fades as user scrolls */
.hero__scroll {
  position: absolute; left: 50%; bottom: 36px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: .85;
  will-change: opacity, transform;
  pointer-events: none;
}
.hero__scroll svg {
  width: 14px; height: 22px;
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: .45; }
}
.hero__sub {
  font-family: var(--body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* --- 3D mockups --- */
.hero__mock {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  perspective: 1600px;
  transform-style: preserve-3d;
  transition: opacity .4s ease;
}
.mock {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lift);
  transform-style: preserve-3d;
  will-change: transform;
}
.mock--a {
  top: 14%; left: 6%;
  width: 44%;
  transform: rotateY(14deg) rotateX(6deg) rotateZ(-4deg);
}
.mock--b {
  top: 30%; right: 6%;
  width: 38%;
  transform: rotateY(-18deg) rotateX(7deg) rotateZ(5deg);
}
.mock__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: #f6f2ff; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 11px; color: var(--muted);
}
.mock__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #e4ddf4; }
.mock__chrome i:nth-child(1) { background: #ff5f57; }
.mock__chrome i:nth-child(2) { background: #ffbd2e; }
.mock__chrome i:nth-child(3) { background: #28c840; }
.mock__chrome span { margin-left: auto; margin-right: auto; font-variant-numeric: tabular-nums; }

/* ===== Code editor mock (left) — broken HTML ===== */
.mock--a .mock__chrome { background: #1d1430; color: rgba(255,255,255,.55); border-bottom-color: rgba(255,255,255,.08); }
.code {
  display: grid;
  grid-template-columns: 42px 1fr;
  background: #0d0820;
  color: #d7cdf0;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  padding: 10px 0 12px;
  min-height: 300px;
}
.code__gutter {
  display: flex; flex-direction: column;
  text-align: right; padding: 0 10px;
  color: rgba(255,255,255,.22);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.code__gutter span { display: block; }
.code__gutter .err { color: #ff6d7b; font-weight: 700; }
.code__gutter .err::before { content: "●"; color: #ff6d7b; margin-right: 4px; font-size: .8em; }
.code__body { padding-right: 14px; white-space: nowrap; overflow: hidden; }
.ln { position: relative; padding: 0 4px; }
.ln.is-err { background: rgba(255, 80, 95, .08); border-left: 2px solid #ff6d7b; margin-left: -2px; }
.ln .wavy {
  position: absolute; right: 6px; top: 50%; width: 60%; height: 3px;
  transform: translateY(4px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'><path d='M0 2 Q2.5 0 5 2 T10 2 T15 2 T20 2' fill='none' stroke='%23ff6d7b' stroke-width='1.1'/></svg>");
  background-repeat: repeat-x;
  background-size: 10px 3px;
}
.tag { color: #ff86c8; }
.attr { color: #b0f0a0; }
.str { color: #ffd48f; }
.kw { color: #b48bff; }
.num { color: #ffa75e; }
.fn { color: #8fd0ff; }
.cmt { color: rgba(255,255,255,.35); font-style: italic; }
.cmt--red { color: #ff6d7b; font-style: normal; font-weight: 600; }
.cursor {
  position: relative;
}
.cursor::before {
  content: "";
  display: inline-block;
  width: 7px; height: 13px;
  background: #b48bff;
  animation: blink 1.1s steps(2) infinite;
  vertical-align: middle;
  margin-left: 30px;
}
@keyframes blink { 50% { opacity: 0; } }
.code__status {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: #1d1430;
  color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--sans); font-size: 11px;
}
.code__status .dot { width: 7px; height: 7px; border-radius: 50%; }
.code__status .dot.red { background: #ff6d7b; }
.code__status .dot.yel { background: #ffc45a; }
.code__status .mutex { margin-left: auto; color: #ff6d7b; font-weight: 600; }

/* ===== Crash mock (right) — 500 glitch ===== */
.mock--b .mock__chrome { background: #190a0d; color: rgba(255,210,210,.55); border-bottom-color: rgba(255,109,123,.2); }
.mock--b .mock__chrome i:nth-child(3) { background: #5a1f24; }
.crash {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,109,123,.18), transparent 70%),
    #0d0207;
  color: #ffb8c2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  padding: 24px 20px;
  overflow: hidden;
}
.crash::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,.03) 3px,
    rgba(255,255,255,.03) 4px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}
.crash::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 22px; background: rgba(255,109,123,.08);
  top: 30%;
  animation: scanline 4.2s linear infinite;
  pointer-events: none;
}
@keyframes scanline {
  0%   { top: -10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.crash__glitch {
  position: relative;
  font-family: "Inter", var(--sans);
  font-weight: 900;
  font-size: 82px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #ffd7db;
  margin-bottom: 14px;
}
.crash__glitch::before,
.crash__glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%;
  mix-blend-mode: screen;
}
.crash__glitch::before {
  color: #ff2e50;
  transform: translate(-2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 48%);
  animation: glitchA 2.6s steps(7) infinite;
}
.crash__glitch::after {
  color: #00e0ff;
  transform: translate(2px, 0);
  clip-path: polygon(0 52%, 100% 52%, 100% 100%, 0 100%);
  animation: glitchB 2.9s steps(9) infinite;
}
.crash__glitch::before {
  content: "500";
}
.crash__glitch::after {
  content: "500";
}
.crash__glitch { }
@keyframes glitchA {
  0%, 100% { transform: translate(-2px, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-3px, 1px); }
  75% { transform: translate(0, 0); }
}
@keyframes glitchB {
  0%, 100% { transform: translate(2px, 0); }
  30% { transform: translate(-1px, 1px); }
  60% { transform: translate(3px, -1px); }
}
.crash__stack {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,220,225,.85);
  margin-bottom: 18px;
}
.crash__stack > div:first-child { color: #ff6d7b; font-weight: 700; }
.crash__file { color: rgba(255,220,225,.4); }
.crash__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 10.5px;
  color: rgba(255,220,225,.55);
  padding-top: 12px;
  border-top: 1px dashed rgba(255,109,123,.25);
  font-variant-numeric: tabular-nums;
}
.crash__meta em { font-style: normal; color: rgba(255,220,225,.3); }

/* ============================================
   TRUST strip — inside hero__pin, pinned to bottom
============================================ */
.trust {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 28px var(--pad-x) 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  opacity: 0;
  will-change: transform, opacity;
}
.trust__lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.trust__marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust__track {
  display: flex; align-items: center;
  gap: clamp(36px, 5vw, 72px);
  will-change: transform;
}
.trust__track img {
  height: clamp(22px, 2vw, 30px);
  width: auto;
  opacity: .6;
  filter: grayscale(1) brightness(.7) contrast(1.1);
  transition: opacity .2s, filter .2s;
  flex-shrink: 0;
}
.trust__track img:hover { opacity: 1; filter: none; }

/* ============================================
   SECTION HEADS
============================================ */
.sec__head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.sec__head--center { text-align: center; }
.sec__title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.sec__sub {
  font-family: var(--body);
  font-size: clamp(14px, 1vw, 17px);
  color: var(--muted);
  margin: 18px auto 0;
  max-width: 620px;
}

/* ============================================
   SERVICES — tilt cards
============================================ */
.services {
  padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 140px);
}
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 var(--pad-x);
  perspective: 1400px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .35s, border-color .35s;
}
.card:hover { border-color: rgba(129,97,255,.4); box-shadow: var(--shadow-card); }
.card__num {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; color: var(--muted);
  margin-bottom: 18px;
}
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--paper-warm);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(129,97,255,.18);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 20px; letter-spacing: -.02em;
  margin: 0 0 10px;
}
.card p {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  margin: 0;
  flex: 1;
}
.card__cta {
  margin-top: 22px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__cta .arrow { transition: transform .25s; }
.card:hover .card__cta .arrow { transform: translateX(4px); }

/* ============================================
   HOW IT WORKS — sticky pinned
============================================ */
.how {
  background: var(--paper-warm);
  color: var(--ink);
  padding: clamp(100px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how__rail { height: 280vh; position: relative; }
.how__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px var(--pad-x) 60px;
  gap: 50px;
}
.how__head .sec__title { color: var(--ink); }
.how__head em { color: var(--primary); }

.how__progress {
  margin-top: 28px;
  height: 3px;
  background: rgba(11,4,24,.08);
  border-radius: 3px;
  overflow: hidden;
}
.how__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-soft), var(--primary));
  border-radius: 2px;
  transition: width .3s ease;
}

.how__stage { position: relative; }
.how__panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.how__panel.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.how__num {
  position: absolute; top: -120px; right: 0;
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11,4,24,.08);
  letter-spacing: -.04em;
  pointer-events: none;
}
.how__copy h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.how__copy p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin: 0;
}
.how__art {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  align-self: center;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

/* Step 1 tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
}
.tier b { font-family: var(--sans); font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
.tier i { font-style: normal; font-size: 12px; color: var(--muted); }
.tier:nth-child(2) { border-color: var(--primary); background: rgba(129,97,255,.08); }
.tiers__plan { grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: 10px; padding: 14px; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* Step 2 builder */
.builder { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.builder__bar { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.builder__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(11,4,24,.1); }
.builder__bar i:nth-child(1) { background: #ff5f57; }
.builder__bar i:nth-child(2) { background: #ffbd2e; }
.builder__bar i:nth-child(3) { background: #28c840; }
.builder__bar span { margin-left: 10px; font-family: var(--sans); }
.builder__rows { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); }
.brow { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: var(--paper-warm); }
.brow b { font-weight: 600; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.brow b.ok { color: #15a34a; }
.brow b.go { color: var(--primary); }

/* Step 3 dash */
.dash { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); justify-content: center; }
.dash .builder__bar { margin: -10px -10px 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dash__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--paper-warm); }
.dash__row b { font-weight: 700; letter-spacing: -.01em; }
.dash__row b.up { color: #15a34a; }

/* ============================================
   INDUSTRIES
============================================ */
.industries { padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.ind__list {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
}
.ind {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: padding .4s cubic-bezier(.2,.8,.2,1);
}
.ind:hover { padding-left: 24px; }
.ind::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(129,97,255,.08), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.ind:hover::before { opacity: 1; }
.ind__num { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--muted); }
.ind__copy h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -.022em;
  margin: 0 0 6px;
}
.ind:hover .ind__copy h3 { color: var(--primary); }
.ind__copy p { margin: 0; color: var(--muted); font-size: 15px; }
.ind__cta {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--muted);
  transition: transform .3s, color .3s;
}
.ind:hover .ind__cta { color: var(--primary); transform: translateX(6px); }

/* ============================================
   CLIENTS
============================================ */
.clients {
  padding: 60px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.clients__lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.clients__row {
  display: flex; align-items: center; justify-content: space-around;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
}
.clients__row img {
  height: clamp(28px, 2.6vw, 40px);
  width: auto;
  opacity: .6;
  filter: grayscale(1) brightness(.6);
  transition: opacity .25s, filter .25s;
}
.clients__row img:hover { opacity: 1; filter: none; }

/* ============================================
   INCLUDED
============================================ */
.incl {
  padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 140px);
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.incl__grid {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.incl__cell {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.incl__cell:hover { background: var(--paper); transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(129,97,255,.3); }
.incl__cell h4 {
  font-family: var(--sans); font-weight: 700;
  font-size: 17px; letter-spacing: -.015em;
  margin: 0 0 8px;
}
.incl__cell p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================
   PRICING
============================================ */
.pricing { padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); }
.prices {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1600px;
  align-items: stretch;
}
.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.price header { margin: 0; }
.price__tag {
  display: inline-block;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(129,97,255,.1);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.price__setup {
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.price__num {
  font-family: var(--sans); font-weight: 800;
  font-size: 56px; letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin: 4px 0 0;
}
.price__num .dollar { font-size: 28px; vertical-align: top; margin-right: 4px; font-weight: 600; }
.price__num .per { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price__time {
  font-family: var(--sans); font-size: 13px;
  padding: 8px 12px;
  background: var(--paper-warm);
  border-radius: 8px;
  color: var(--ink-2);
  align-self: flex-start;
}
.price .btn { margin-top: auto; }
.price--feat {
  background: var(--ink); color: #fff;
  transform: translateZ(30px) translateY(-12px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s, color .4s, border-color .4s;
}
.price--feat .price__tag { background: rgba(255,255,255,.12); color: var(--primary-soft); transition: background .4s, color .4s; }
.price--feat .price__setup { color: rgba(255,255,255,.6); transition: color .4s; }
.price--feat .price__num { color: #fff; transition: color .4s; }
.price--feat .price__num .per { color: rgba(255,255,255,.5); transition: color .4s; }
.price--feat .price__time { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); transition: background .4s, color .4s; }

/* When hovering ANY OTHER card, demote featured back to plain look */
.prices:has(.price:not(.price--feat):hover) .price--feat {
  background: #fff; color: var(--ink);
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.prices:has(.price:not(.price--feat):hover) .price--feat .price__tag { background: rgba(129,97,255,.1); color: var(--primary); }
.prices:has(.price:not(.price--feat):hover) .price--feat .price__setup { color: var(--muted); }
.prices:has(.price:not(.price--feat):hover) .price--feat .price__num { color: var(--ink); }
.prices:has(.price:not(.price--feat):hover) .price--feat .price__num .per { color: var(--muted); }
.prices:has(.price:not(.price--feat):hover) .price--feat .price__time { background: var(--paper-warm); color: var(--ink-2); }
.prices:has(.price:not(.price--feat):hover) .price--feat .btn--primary { background: var(--ink); color: #fff; }

/* Non-feat cards become dark on hover */
.price:not(.price--feat) {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s, color .4s, border-color .4s;
}
.price:not(.price--feat):hover {
  background: var(--ink); color: #fff;
  transform: translateZ(30px) translateY(-12px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.price:not(.price--feat):hover .price__tag { background: rgba(255,255,255,.12); color: var(--primary-soft); }
.price:not(.price--feat):hover .price__setup { color: rgba(255,255,255,.6); }
.price:not(.price--feat):hover .price__num { color: #fff; }
.price:not(.price--feat):hover .price__num .per { color: rgba(255,255,255,.5); }
.price:not(.price--feat):hover .price__time { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.price:not(.price--feat):hover .btn--ghost { background: #fff; color: var(--ink); border-color: #fff; }
.prices__note {
  text-align: center;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  margin: 32px auto 0;
}
.prices__cta { text-align: center; margin-top: 16px; }
.view-full {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.view-full:hover { color: var(--primary-deep); }

/* ============================================
   QUOTES — sequential stack
============================================ */
.quotes {
  padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px);
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.quotes__stack {
  max-width: 900px;
  margin: 70px auto 0;
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
  gap: 20px;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
}
.quote.is-in { opacity: 1; transform: translateY(0); }
.quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
}
.quote footer {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.qlogo {
  height: 32px; width: auto;
  filter: grayscale(1) brightness(.5);
  opacity: .75;
  flex: 0 0 auto;
}
.quote footer b { font-family: var(--sans); font-weight: 700; font-size: 15px; display: block; letter-spacing: -.01em; }
.quote footer i { font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.quotes__cta { text-align: center; margin-top: 28px; }

/* ============================================
   BADGES
============================================ */
.badges {
  padding: 50px var(--pad-x) 30px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.badges img {
  height: clamp(44px, 4vw, 60px);
  width: auto;
  opacity: .7;
  filter: grayscale(.3);
  transition: opacity .2s, filter .2s, transform .2s;
}
.badges img:hover { opacity: 1; filter: none; transform: translateY(-2px); }

/* ============================================
   FINAL CTA
============================================ */
.final { padding: 0 var(--pad-x) clamp(80px, 10vw, 140px); }
.final__card {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: clamp(24px, 3vw, 44px);
  padding: clamp(60px, 10vw, 140px) var(--pad-x);
  text-align: center;
  overflow: hidden;
}
.final__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 20% 30%, rgba(129,97,255,.4), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 70%, rgba(239, 65, 189, .25), transparent 60%);
}
.final__card h2 {
  position: relative;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 76px);
  letter-spacing: -.028em;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: balance;
}
.final__card em { color: var(--primary-soft); }
.final__card p {
  position: relative;
  max-width: 540px; margin: 0 auto 36px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}
.final__ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final__card .btn--primary { background: #fff; color: var(--ink); }
.final__card .btn--primary:hover { background: var(--primary-soft); color: var(--ink); }
.final__card .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.final__card .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

/* ============================================
   FOOTER
============================================ */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 40px;
}
.foot__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot__logo { height: 32px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.foot__brand p { margin: 0; font-size: 14px; line-height: 1.65; max-width: 280px; color: rgba(255,255,255,.55); }
.foot__col h5 { font-family: var(--sans); font-weight: 600; color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.foot__col a { display: block; padding: 4px 0; font-size: 14px; cursor: pointer; transition: color .2s; }
.foot__col a:hover { color: var(--primary-soft); }
.foot__bot {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; padding-top: 30px;
  font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 14px;
}

/* ============================================
   TWEAKS
============================================ */
.tweaks {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 280px;
  background: #fff; color: var(--ink);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 16px; font-family: var(--sans); font-size: 13px;
}
.tweaks[hidden] { display: none !important; }
.tweaks header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tweaks header b { font-weight: 700; }
.tweaks header button { background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); padding: 0 6px; line-height: 1; }
.tweaks label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 500; }
.tweaks label.row { flex-direction: row; align-items: center; gap: 8px; }
.tweaks input[type="color"] { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; padding: 2px; }
.tweaks input[type="range"] { width: 100%; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .incl__grid { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; max-width: 440px; }
  .price--feat { transform: none; }
  .how__panel { grid-template-columns: 1fr; gap: 24px; }
  .how__num { top: -80px; font-size: clamp(100px, 24vw, 180px); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .mock--a, .mock--b { width: 70%; }
  .trust, .clients { grid-template-columns: 1fr; text-align: center; }
  .ind { grid-template-columns: 60px 1fr; }
  .ind__cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .cards, .incl__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .quote { padding: 24px; }
}
