:root {
  --bg: #0A0E1A;
  --bg-elev: #0F1422;
  --bg-elev-2: #131A2D;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #F5F7FA;
  --fg-dim: rgba(245, 247, 250, 0.68);
  --fg-mute: rgba(245, 247, 250, 0.48);
  --fg-faint: rgba(245, 247, 250, 0.28);
  --accent: #3B82F6;
  --accent-bright: #60A5FA;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --danger: #F87171;
  --container: 1240px;
  --gutter-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 9vw, 140px);
  --section-y-tight: clamp(56px, 6vw, 96px);
  --radius: 4px;
  --radius-lg: 8px;
  font-feature-settings: "ss01", "cv11";
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(59, 130, 246, 0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0A0E1A; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
}
.brand-mark::after {
  inset: 4px;
  border-color: var(--accent);
  border-style: dashed;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-name { font-size: 15px; }
.brand-name em { font-style: normal; color: var(--fg-mute); font-weight: 400; }

.nav-links {
  display: none;
  gap: 22px;
  font-size: 14px;
  color: var(--fg-dim);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); }
@media (min-width: 880px) { .nav-links { display: inline-flex; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #0A0E1A;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.03);
}

.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ============ SECTION SCAFFOLD ============ */
section { padding-block: var(--section-y); position: relative; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-dim); line-height: 1.55; max-width: 64ch; }

/* ============ HERO ============ */
.hero {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}
.hero-descriptor {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-descriptor .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-descriptor .pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hero h1 { margin-bottom: 28px; }
.hero h1 .accent { color: var(--accent-bright); position: relative; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-dim); max-width: 56ch; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.hero-meta .dot { color: var(--accent); }

/* Diagnostic panel */
.diag {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  position: relative;
}
.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.diag-header .dots { display: inline-flex; gap: 6px; }
.diag-header .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-block;
}
.diag-header .label { color: var(--fg-mute); font-size: 11px; letter-spacing: 0.05em; }
.diag-body { padding: 18px 18px 6px; }
.diag-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.diag-row:last-child { border-bottom: 0; }
.diag-q { color: var(--fg); margin-bottom: 8px; display: flex; gap: 8px; }
.diag-q .prompt { color: var(--accent); }
.diag-engines { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.engine {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-mute);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.engine.hit { color: var(--accent-bright); border-color: var(--accent); background: rgba(59,130,246,0.08); }
.engine.miss { color: var(--fg-faint); }
.engine.hit i { background: var(--accent); }
.engine.miss i { background: var(--fg-faint); }
.engine i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.diag-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.015);
  font-size: 11px;
  color: var(--fg-mute);
}
.diag-footer .sov { color: var(--fg); }
.diag-footer .sov b { color: var(--accent-bright); font-weight: 600; }

/* ============ PROBLEM ============ */
.problem .container { max-width: 980px; }
.problem-text {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 400;
}
.problem-text p + p { margin-top: 1.2em; }
.problem-text .dim { color: var(--fg-mute); }
.problem-text .strike { color: var(--fg-faint); position: relative; }
.problem-text .strike::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--fg-faint);
}
.problem-text em.hit {
  font-style: normal;
  color: var(--accent-bright);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}
.problem-text .small {
  font-size: clamp(15px, 1.1vw, 17px);
  margin-top: 1.6em;
  max-width: 60ch;
  line-height: 1.6;
}
.problem-text .queries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.4;
}
.problem-text .queries span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
  background: rgba(255,255,255,0.015);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.problem-text .queries span:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-1px);
}
.problem-text .queries-long {
  display: block !important;
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px !important;
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.5;
  color: var(--fg-dim) !important;
  border-color: var(--line-strong) !important;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 6px !important;
  position: relative;
}
.problem-text .queries-long::before {
  content: "long-tail query";
  position: absolute;
  top: -8px;
  left: 14px;
  background: var(--bg);
  color: var(--accent-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 6px;
}
.problem-text .longtail-note {
  border-left: 1px solid var(--accent);
  padding-left: 18px;
  margin-top: 1.2em !important;
  margin-bottom: 1.2em;
}
.problem-text .longtail-note .lt-label {
  color: var(--accent-bright);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
}
.problem-text .queries .queries-long {
  width: 100%;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  padding: 14px 18px;
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.04);
  color: var(--fg-dim);
  text-wrap: pretty;
  position: relative;
}
.problem-text .queries .queries-long::before {
  content: "long-tail";
  position: absolute;
  top: -10px; left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--bg);
  padding: 0 6px;
}
.problem-text .longtail-note {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-top: 1.4em;
  margin-bottom: 1.4em;
  color: var(--fg-dim) !important;
}
.problem-text .longtail-note .lt-label {
  color: var(--accent-bright);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}

/* ============ WHAT WE DO ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: minmax(200px, 320px) 1fr; gap: 64px; }
}
.section-head h2 { letter-spacing: -0.03em; }
.section-head .lead { color: var(--fg-dim); }

.wwd-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.wwd-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background .25s ease;
}
.wwd-item:last-child { border-bottom: 1px solid var(--line); }
.wwd-item:hover { background: rgba(255,255,255,0.012); }
@media (min-width: 880px) {
  .wwd-item { grid-template-columns: 80px 1.1fr 2fr; gap: 40px; align-items: start; }
}
.wwd-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wwd-num .glyph { color: var(--accent); }
.wwd-title h3 { letter-spacing: -0.02em; }
.wwd-title .tag {
  display: inline-block;
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.wwd-body { color: var(--fg-dim); font-size: 16px; max-width: 60ch; }

.glyph-mark {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  font-size: 13px;
}

/* ============ WHY THIS WORKS ============ */
.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) { .points { grid-template-columns: 1fr 1fr; } }
.point {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.point:nth-child(2n) { border-right: 0; }
.points .point:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 879px) {
  .point { border-right: 0; }
  .points .point:nth-last-child(1) { border-bottom: 0; }
  .points .point:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
.point .ix {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.06em; margin-bottom: 18px;
}
.point h3 { margin-bottom: 14px; max-width: 22ch; }
.point p { color: var(--fg-dim); font-size: 15.5px; }

/* ============ WHY DIFFERENT ============ */
.compare-stack { display: grid; gap: clamp(20px, 2vw, 32px); }
.compare {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
}
.compare-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
}
.compare-head h3 { letter-spacing: -0.02em; }
.compare-head .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--accent-bright);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.compare-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 760px) {
  .compare-grid { grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 3vw, 48px); }
}
.compare-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
  font-weight: 500;
}
.compare-col.old h4 { color: var(--fg-faint); }
.compare-col.new h4 { color: var(--accent-bright); }
.compare-col p { color: var(--fg-dim); font-size: 15.5px; line-height: 1.55; }
.compare-col p + p { margin-top: 12px; }
.compare-col.old p { color: var(--fg-mute); }
.compare-divider {
  display: none;
  background: var(--line);
}
@media (min-width: 760px) { .compare-divider { display: block; } }
@media (max-width: 759px) {
  .compare-col + .compare-col { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
}
/* ============ FLYWHEEL GRAPHIC ============ */
.flywheel { position: relative; }

@media (min-width: 720px) {
  /* leave horizontal + vertical room for nodes that straddle the SVG edges */
  .flywheel { padding: 60px 100px; }
}

/* the SVG-based circular graphic — desktop only */
.flywheel-svg {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: none;
}
.flywheel-svg svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.fw-node {
  position: absolute;
  display: grid; gap: 4px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 150px;
  text-align: center;
  z-index: 2;
  transition: border-color .2s ease, transform .2s ease;
}
.fw-node:hover { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.04); }
.fw-node .fw-num {
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--fg-faint);
}
.fw-node .fw-t {
  font-size: 13px; font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.fw-node .fw-v {
  font-size: 13px; font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: -0.005em;
}
/* positioning each quadrant */
.fw-top    { top: 0%;   left: 50%;  transform: translate(-50%, -50%); }
.fw-right  { top: 50%;  left: 100%; transform: translate(-50%, -50%); }
.fw-bottom { top: 100%; left: 50%;  transform: translate(-50%, -50%); }
.fw-left   { top: 50%;  left: 0%;   transform: translate(-50%, -50%); }
.fw-top:hover, .fw-bottom:hover { transform: translate(-50%, -50%) scale(1.04); }
.fw-right:hover, .fw-left:hover { transform: translate(-50%, -50%) scale(1.04); }

@media (min-width: 720px) {
  .flywheel-svg { display: block; }
}

/* mobile: stacked list with arrows */
.flywheel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.flywheel-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.012);
  position: relative;
  margin-bottom: 28px;
}
.flywheel-list li:last-child { margin-bottom: 0; }
.flywheel-list .fw-num {
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.06em;
}
.flywheel-list .fw-text {
  font-size: 14.5px; color: var(--fg-dim);
  line-height: 1.4;
}
.flywheel-list .fw-text strong { color: var(--fg); font-weight: 500; }
.flywheel-list .fw-arr {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}
.flywheel-list .fw-arr.fw-loop { animation: spin 4s linear infinite; }

@media (min-width: 720px) {
  .flywheel-list { display: none; }
}

/* simplify the proposal-card now that there's no retainer card next to it */
.proposal-card {
  display: flex; flex-direction: column;
  gap: 0;
  padding: clamp(28px, 3vw, 36px);
}
.proposal-card .btn { align-self: flex-start; }

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  position: relative;
}
.step .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.06em;
}
.step .ix-big {
  font-family: "Inter Tight", sans-serif;
  font-size: 64px; font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--fg-faint);
  line-height: 0.9;
  margin-bottom: 6px;
}
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }

/* ============ INVESTMENT ============ */
.invest-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .invest-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.invest-side {
  display: grid;
  gap: 20px;
}
.retainer-card,
.proposal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg-elev);
  display: grid;
  gap: 16px;
}
.proposal-card {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(59,130,246,0.08), transparent 60%),
    var(--bg-elev);
  border-color: var(--line-strong);
}
.proposal-card h4 { font-size: 18px; }

.tiers {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .tiers { grid-template-columns: 1.15fr 1fr; } }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg-elev);
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59,130,246,0.06), transparent 60%), var(--bg-elev);
}
.tier-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.tier-eyebrow .badge {
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  background: rgba(59,130,246,0.08);
  padding: 3px 8px; border-radius: 999px;
}
.tier h3 { font-size: 22px; }
.tier .price {
  display: flex; align-items: baseline; gap: 10px;
  font-family: "Inter Tight", sans-serif;
  letter-spacing: -0.03em;
}
.tier .price .amount { font-size: clamp(36px, 4vw, 52px); font-weight: 500; }
.tier .price .unit { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--fg-mute); }
.tier p.desc { color: var(--fg-dim); font-size: 15.5px; }
.tier { min-width: 0; }
.tier > * { min-width: 0; }
.tier ul {
  list-style: none; padding: 0; margin: 0;
  display: block;
  width: 100%;
}
.tier ul li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 14.5px; color: var(--fg-dim);
  line-height: 1.5;
  width: 100%;
  min-width: 0;
}
.tier ul li + li { margin-top: 10px; }
.tier ul li::before {
  content: "+"; color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; line-height: 1.4;
}
.tier-foot { color: var(--fg-mute); font-size: 13px; font-family: "JetBrains Mono", monospace; }

/* ============ FOR / NOT FOR ============ */
.split {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split { grid-template-columns: 1.2fr 1fr; gap: 0; } }
.split-col {
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
@media (min-width: 880px) {
  .split-col.left { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-right: 0; }
  .split-col.right { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--bg); }
}
.split-col h3 { margin-bottom: 24px; font-size: 22px; }
.split-col h3 .ok { color: var(--accent); }
.split-col h3 .no { color: var(--danger); }
.fit-list { display: grid; gap: 18px; }
.fit-item { display: grid; grid-template-columns: 18px 1fr; gap: 14px; }
.fit-item .mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px; line-height: 1.2;
}
.fit-item.yes .mark { color: var(--accent); }
.fit-item.no .mark { color: var(--danger); }
.fit-item h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.fit-item p { color: var(--fg-dim); font-size: 14.5px; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--fg);
  text-align: left;
  padding: clamp(20px, 2vw, 28px) 0;
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-family: inherit;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--accent-bright); }
.faq-q .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--fg-faint);
  letter-spacing: 0.06em;
}
.faq-q .toggle {
  position: relative; width: 14px; height: 14px;
  justify-self: end;
}
.faq-q .toggle::before, .faq-q .toggle::after {
  content: ""; position: absolute; background: var(--fg-mute);
  transition: transform .25s ease, background .2s ease;
}
.faq-q .toggle::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .toggle::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .toggle::after { transform: translateX(-50%) rotate(90deg); }
.faq-item.open .faq-q .toggle::before { background: var(--accent); }
.faq-item.open .faq-q { color: var(--fg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
  padding-left: 56px;
  padding-right: 28px;
}
.faq-item.open .faq-a-inner { padding-bottom: clamp(20px, 2vw, 28px); }

/* ============ CASE STUDY ============ */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4vw, 64px);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(255,255,255,0.02) 12px,
      rgba(255,255,255,0.02) 13px
    ),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.case-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--accent-bright);
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(59,130,246,0.08);
}
.case h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 22ch;
}
.case p { color: var(--fg-dim); max-width: 60ch; margin-bottom: 28px; }
.case-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
}
@media (min-width: 760px) { .case-data { grid-template-columns: repeat(4, 1fr); } }
.case-cell {
  padding: 18px 20px;
  border-right: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
}
.case-cell:last-child { border-right: 0; }
@media (max-width: 759px) {
  .case-cell { border-right: 0; border-bottom: 1px dashed var(--line); }
  .case-cell:last-child { border-bottom: 0; }
}
.case-cell .k { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.case-cell .v { font-size: 22px; color: var(--fg); letter-spacing: -0.01em; }
.case-cell .v .pending { color: var(--fg-faint); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-elev);
  display: grid; gap: 16px;
  align-self: start;
}
.about-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #1E3A8A 100%);
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600; font-size: 20px;
  color: #0A0E1A;
}
.about-meta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--fg-mute); display: grid; gap: 4px; }
.about-meta .k { color: var(--fg-faint); }
.about-text { font-size: 17px; color: var(--fg-dim); line-height: 1.6; max-width: 60ch; }
.about-text p + p { margin-top: 1em; }
.about-text strong { color: var(--fg); font-weight: 500; }

/* ============ FINAL CTA ============ */
.final {
  text-align: left;
  border-top: 1px solid var(--line);
}
.final-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(59,130,246,0.12), transparent 60%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.final-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, black, transparent 70%);
  pointer-events: none;
}
.final h2 { margin-bottom: 20px; max-width: 18ch; }
.final p.lead { margin-bottom: 36px; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.final-contact { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--fg-mute); }
.final-contact a { color: var(--accent-bright); }
.final-contact a:hover { color: var(--fg); }

/* ============ FOOTER ============ */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  color: var(--fg-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.footer .left { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer a:hover { color: var(--fg); }
.footer .footer-link {
  background: transparent; border: 0; color: inherit; cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.footer .footer-link:hover { color: var(--fg); text-decoration-color: var(--accent); }

/* ============ CONTACT MODAL ============ */
.cm-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: clamp(0px, 4vw, 40px);
  animation: cm-fade .25s ease;
  overflow-y: auto;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }

.cm-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  position: relative;
  animation: cm-rise .35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 32px);
  overflow: hidden;
}
@keyframes cm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .cm-backdrop { padding: 0; align-items: stretch; }
  .cm-dialog {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }
}

.cm-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(15, 20, 34, 0.8);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px; line-height: 1;
  transition: all .15s ease;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.cm-close:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255,255,255,0.06); }

.cm-head {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px) clamp(20px, 2.4vw, 24px);
  flex-shrink: 0;
}
.cm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 18px;
}
.cm-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.cm-head h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.cm-sub { color: var(--fg-dim); font-size: 15px; line-height: 1.5; max-width: 48ch; }

.cm-form {
  padding: 0 clamp(24px, 4vw, 40px) clamp(24px, 3vw, 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 20px;
  flex: 1;
}

.cm-field { display: grid; gap: 8px; }
.cm-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-weight: 500;
}
.cm-req { color: var(--accent); margin-left: 2px; }

.cm-form input[type="text"],
.cm-form input[type="email"],
.cm-form input[type="url"],
.cm-form input[type="tel"],
.cm-form input:not([type]),
.cm-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cm-form textarea { resize: vertical; min-height: 84px; line-height: 1.5; font-size: 15px; }
.cm-form input::placeholder, .cm-form textarea::placeholder { color: var(--fg-faint); }
.cm-form input:focus, .cm-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--bg-elev-2);
  color: var(--fg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* defensive: in case the browser autofills with white */
.cm-form input:-webkit-autofill,
.cm-form input:-webkit-autofill:hover,
.cm-form input:-webkit-autofill:focus,
.cm-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--fg);
  transition: background-color 9999s ease-out;
}

.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: "Inter Tight", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  min-height: 38px;
}
.cm-chip:hover { border-color: var(--line-strong); color: var(--fg); }
.cm-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0E1A;
  font-weight: 600;
}

.cm-actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cm-actions .btn { width: 100%; justify-content: center; padding: 14px 22px; }
.cm-fineprint {
  font-size: 12px; color: var(--fg-mute);
  letter-spacing: 0.02em;
  text-align: center;
}
@media (min-width: 600px) {
  .cm-actions { grid-template-columns: auto 1fr; align-items: center; }
  .cm-actions .btn { width: auto; }
  .cm-fineprint { text-align: left; }
}

.cm-error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.cm-success {
  padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 48px);
  display: grid; gap: 16px;
}
.cm-success h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  max-width: 22ch;
}
.cm-success p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.cm-success .btn { justify-self: start; margin-top: 8px; }

.cm-hp { position: absolute; left: -9999px; }

/* ============ MOTION (reveal on scroll) ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-mark::after { animation: none; }
  .hero-descriptor .pulse::after { animation: none; }
}

/* density tweak */
[data-density="compact"] section { padding-block: clamp(56px, 6vw, 96px); }
[data-density="airy"] section { padding-block: clamp(112px, 13vw, 200px); }
[data-density="airy"] .hero { padding-block: clamp(120px, 12vw, 180px); }
