/* ==========  Santech — global styles  ========== */
:root {
  --bg: #F6F4EE;
  --bg-2: #EFEDE5;
  --ink: #0E0F0D;
  --ink-2: #1A1B18;
  --muted: #6B6A63;
  --rule: #E2DFD3;
  --rule-strong: #C9C5B5;
  --accent: oklch(0.85 0.19 115);   /* electric lime */
  --accent-ink: #1c2207;
  --warn: oklch(0.78 0.18 55);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1360px;
  --gutter: 32px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  overflow-x: hidden;
}

.mono { font-family: "Geist Mono", ui-monospace, "JetBrains Mono", monospace; font-feature-settings: "zero", "ss01"; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* utility */
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.sec-num {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.h-display {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0;
}

.h-section {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
}

.h-card {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
}

.subtle { color: var(--muted); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 26px; height: 26px;
  background: var(--ink);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn .arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  position: relative;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary .arr { background: var(--bg); }
.btn-primary .arr svg { color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover .arr { background: var(--accent-ink); }
.btn-primary:hover .arr svg { color: var(--accent); }
.btn-ghost { color: var(--ink); border: 1px solid var(--rule-strong); background: transparent; }
.btn-ghost .arr { background: var(--ink); }
.btn-ghost .arr svg { color: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost:hover .arr { background: var(--bg); }
.btn-ghost:hover .arr svg { color: var(--ink); }

.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-lg .arr { width: 28px; height: 28px; }

/* ===== Hero ===== */
.hero {
  padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.hero h1 {
  margin-top: 16px;
}
.hero h1 .typed-wrap {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--ink);
}
.hero h1 .typed-wrap > .typed,
.hero h1 .typed-wrap > .typed-ghost {
  grid-area: 1 / 1;
  padding: 0.02em 0.18em 0.04em;
  white-space: nowrap;
}
.hero h1 .typed-ghost {
  visibility: hidden;
  pointer-events: none;
}
.hero h1 .typed {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  justify-self: start;
}
.hero h1 .typed::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 0.85em;
  background: var(--accent-ink);
  margin-left: 4px;
  vertical-align: -0.08em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-footer {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 860px) { .hero-footer { grid-template-columns: 1fr; } }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 500;
}
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 38s linear infinite;
  align-items: center;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-item .star { color: var(--accent); font-size: 16px; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== Section scaffolding ===== */
section.block { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
section.block + section.block { border-top: 1px solid var(--rule); }
.block-head {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 800px) { .block-head { grid-template-columns: 1fr; } }
.block-head .col-num { color: var(--muted); }
.block-head .col-title h2 { margin: 0; }
.block-head .col-meta { color: var(--muted); font-size: 15px; max-width: 38ch; padding-top: 10px; }

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  grid-column: span 6;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service-card:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.service-card:hover .svc-num,
.service-card:hover .svc-tags span { color: var(--bg); }
.service-card:hover .svc-tags span { border-color: rgba(255,255,255,0.18); }
.service-card:hover .svc-art { opacity: 1; transform: translate(0,0); }

.service-card .svc-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.svc-num { font-size: 12px; color: var(--muted); }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.svc-tags span {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.svc-body { display: flex; flex-direction: column; gap: 8px; }
.svc-body p { margin: 0; color: var(--ink-2); font-size: 15px; }
.service-card:hover .svc-body p { color: rgba(255,255,255,0.7); }

.svc-art {
  position: absolute;
  top: 50%; right: 28px;
  width: 140px; height: 140px;
  transform: translate(20px, -50%);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.service-card:hover .svc-art { transform: translate(0, -50%); }

@media (max-width: 800px) {
  .service-card { grid-column: span 12; }
}

/* ===== Automation demo ===== */
.demo {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-side h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
  margin: 12px 0 16px;
}
.demo-side p { color: rgba(255,255,255,0.6); max-width: 38ch; }
.demo-side .eyebrow { color: rgba(255,255,255,0.55); }
.demo-side .eyebrow .dot { background: var(--accent); }

.demo-controls {
  display: flex; gap: 10px; margin-top: 28px; align-items: center;
}
.demo-btn {
  height: 42px; padding: 0 18px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-btn.ghost { background: transparent; color: var(--bg); border: 1px solid rgba(255,255,255,0.18); }

/* pipeline */
.pipe {
  background: #16171b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 460px;
  position: relative;
}
.pipe-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px; color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.pipe-head .dots { display: flex; gap: 6px; }
.pipe-head .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16);
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.step.active { background: rgba(193, 247, 73, 0.08); border-color: rgba(193, 247, 73, 0.35); }
.step.done { opacity: 0.6; }

.step-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
}
.step.active .step-ico { background: var(--accent); color: var(--accent-ink); }
.step.done .step-ico { background: rgba(193, 247, 73, 0.2); color: var(--accent); }

.step-meta { display: flex; flex-direction: column; gap: 2px; }
.step-meta .t { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.step-meta .d { font-family: "Geist Mono", monospace; font-size: 11px; color: rgba(255,255,255,0.45); }

.step-status {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  display: inline-flex; align-items: center; gap: 6px;
}
.step-status .ind {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.step.active .step-status .ind { background: var(--accent); animation: pulse 1.2s var(--ease) infinite; }
.step.done .step-status .ind { background: var(--accent); }
.step.done .step-status { color: var(--accent); }
.step.active .step-status { color: var(--accent); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 247, 73, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(193, 247, 73, 0); }
}

.pipe-log {
  margin-top: auto;
  background: #0c0d10;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  height: 90px;
  overflow: hidden;
  position: relative;
}
.pipe-log .line { line-height: 1.5; }
.pipe-log .line .ts { color: rgba(193, 247, 73, 0.7); margin-right: 8px; }

/* ===== Process ===== */
.process { display: grid; gap: 0; }
.process-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 0.6fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: padding .3s var(--ease), background .3s var(--ease);
  position: relative;
}
.process-row:last-child { border-bottom: 1px solid var(--rule); }
.process-row.open { padding: 32px 0; }
.process-row .p-num { font-family: "Geist Mono", monospace; font-size: 13px; color: var(--muted); }
.process-row .p-title { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1; font-weight: 500; }
.process-row .p-desc { color: var(--muted); font-size: 15px; max-width: 50ch; opacity: 0; transition: opacity .3s var(--ease); }
.process-row.open .p-desc { opacity: 1; }
.process-row .p-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  justify-self: end;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.process-row.open .p-toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(45deg); }

@media (max-width: 800px) {
  .process-row { grid-template-columns: 32px 1fr auto; }
  .process-row .p-desc { grid-column: 2 / 4; }
}

/* ===== Tech stack ===== */
.stack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.stack-col {
  grid-column: span 4;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg);
}
@media (max-width: 900px) { .stack-col { grid-column: span 12; } }
.stack-col h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  margin: 0 0 18px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  background: var(--bg-2);
  transition: all .2s var(--ease);
  cursor: default;
}
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }

/* ===== Estimator ===== */
.estimator {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }

.est-controls {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 22px;
}
.est-row { display: flex; flex-direction: column; gap: 10px; }
.est-row .lbl {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
}
.est-row .lbl b { font-weight: 500; }
.est-row .lbl .val { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--muted); }

.seg {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 12px;
}
.seg button {
  height: 38px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg button.on { background: var(--ink); color: var(--bg); }
.seg button:not(.on):hover { background: rgba(0,0,0,0.05); }

.range-wrap { position: relative; }
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--rule); border-radius: 100px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--ink); border-radius: 50%;
  cursor: pointer;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--ink); border-radius: 50%;
  border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: pointer;
}

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.toggle .sw {
  width: 36px; height: 20px; border-radius: 100px; background: var(--rule-strong);
  position: relative; transition: background .2s var(--ease);
  flex-shrink: 0;
}
.toggle .sw::after {
  content: "";
  position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  transition: left .2s var(--ease);
}
.toggle.on .sw { background: var(--ink); }
.toggle.on .sw::after { left: 18px; }
.toggle.on { background: var(--bg-2); border-color: var(--rule-strong); }

.est-output {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  overflow: hidden;
}
.est-output .eyebrow { color: rgba(255,255,255,0.55); }
.est-output .eyebrow .dot { background: var(--accent); }
.tier-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0 2px;
}
.tier-letter {
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: var(--accent);
}
.tier-meta { display: flex; flex-direction: column; gap: 4px; }
.tier-label { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1; }
.tier-sub { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }

.deliverables {
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}
.deliverables .deliv-head { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 10px; letter-spacing: 0.04em; }
.deliverables ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.deliverables li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.005em;
}
.deliverables li svg { color: var(--accent); flex-shrink: 0; }
.est-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.est-meta .cell { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 12px; }
.est-meta .k { font-family: "Geist Mono", monospace; font-size: 11px; color: rgba(255,255,255,0.5); }
.est-meta .v { font-size: 18px; margin-top: 4px; letter-spacing: -0.01em; }
.est-disclaimer { font-size: 11.5px; color: rgba(255,255,255,0.4); font-family: "Geist Mono", monospace; margin-top: auto; }

/* ===== Principles (replaces Team) ===== */
.principles { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }
.principle-card {
  padding: 28px;
  gap: 18px;
  min-height: 200px;
  justify-content: space-between;
}
.principle-num {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.principle-card:hover .principle-num { color: rgba(255,255,255,0.55); }
.principle-title {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 10px;
}
.principle-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.principle-card:hover .principle-desc { color: rgba(255,255,255,0.7); }
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
.team-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.team-card:hover { background: var(--ink); color: var(--bg); }

/* ===== CTA / Contact ===== */
.cta-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(193, 247, 73, 0.18), transparent 50%),
              radial-gradient(circle at 80% 100%, rgba(193, 247, 73, 0.12), transparent 50%);
  pointer-events: none;
}
.cta-block .h-display { font-size: clamp(52px, 9vw, 144px); }
.cta-block .h-display em { font-style: normal; color: var(--accent); }
.cta-block .h-display em::after {
  content: "→";
  display: inline-block;
  margin-left: 0.1em;
}
.cta-block .lede { color: rgba(255,255,255,0.6); margin: 24px auto 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-block .btn-primary { background: var(--accent); color: var(--accent-ink); }
.cta-block .btn-primary .arr { background: var(--accent-ink); }
.cta-block .btn-primary .arr svg { color: var(--accent); }
.cta-block .btn-primary:hover { background: var(--bg); color: var(--ink); }
.cta-block .btn-primary:hover .arr { background: var(--ink); }
.cta-block .btn-primary:hover .arr svg { color: var(--bg); }
.cta-block .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,0.2); }
.cta-block .btn-ghost .arr { background: var(--bg); }
.cta-block .btn-ghost .arr svg { color: var(--ink); }
.cta-block .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-block .btn-ghost:hover .arr { background: var(--ink); }
.cta-block .btn-ghost:hover .arr svg { color: var(--bg); }

/* ===== Footer ===== */
footer {
  padding: 40px 0 28px;
}
.foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.foot-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 22px; }
.foot .links a:hover { color: var(--ink); }

/* ===== Small helpers used by Alpine markup ===== */
.demo-btn-label { display: inline-flex; align-items: center; gap: 8px; }
.demo-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.demo-stats .k { font-family: "Geist Mono", monospace; font-size: 11px; color: rgba(255,255,255,0.45); }
.demo-stats .v { font-size: 32px; letter-spacing: -0.035em; margin-top: 6px; }
.demo-stats .v small { color: rgba(255,255,255,0.45); font-size: 18px; font-weight: inherit; }
.stat-num small { color: var(--muted); font-size: inherit; font-weight: inherit; }
.range-scale {
  display: flex; justify-content: space-between;
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--muted); margin-top: 2px;
}
.est-output .btn-primary { background: var(--accent); color: var(--accent-ink); margin-top: 8px; }
.est-output .btn-primary .arr { background: var(--accent-ink); }
.est-output .btn-primary .arr svg { color: var(--accent); }

/* ===== Responsive: tablet ===== */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .demo { padding: 28px 22px; }
  .cta-block { padding: 48px 28px; }
}

/* ===== Responsive: mobile ===== */
@media (max-width: 720px) {
  :root { --gutter: 18px; }

  /* Nav: collapse links, slim down the CTA pill */
  .nav-inner { height: 60px; gap: 12px; }
  .nav-links { display: none; }
  .nav .btn-primary {
    height: 38px;
    padding: 0 12px 0 14px;
    font-size: 12.5px;
    gap: 6px;
  }
  .nav .btn-primary .arr { width: 18px; height: 18px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 22px; height: 22px; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .h-display { font-size: clamp(40px, 13vw, 64px); letter-spacing: -0.03em; }
  .hero h1 .typed-wrap > .typed,
  .hero h1 .typed-wrap > .typed-ghost { white-space: normal; padding: 0.02em 0.14em 0.06em; }
  .hero h1 .typed { border-radius: 8px; }
  .hero-footer { margin-top: 36px; gap: 28px; }
  .hero-stats { gap: 12px; padding-top: 18px; }
  .stat-num { font-size: clamp(22px, 7vw, 32px); }
  .stat-lbl { font-size: 10px; letter-spacing: 0.02em; }
  .hero-cta { gap: 8px; justify-content: center; }
  .hero-cta .btn-lg { height: 48px; padding: 0 18px; font-size: 14px; }
  .hero-cta .btn-lg .arr { width: 24px; height: 24px; }

  /* Marquee */
  .marquee { padding: 16px 0; }
  .marquee-track { gap: 36px; animation-duration: 28s; }
  .marquee-item { font-size: 17px; gap: 8px; }

  /* Section scaffolding */
  section.block { padding: clamp(56px, 14vw, 96px) 0; }
  .block-head { margin-bottom: 36px; gap: 18px; }
  .block-head .col-meta { font-size: 14px; padding-top: 0; }
  .h-section { font-size: clamp(34px, 10vw, 56px); }

  /* Services — hide hover-only art on touch */
  .service-card { padding: 22px; min-height: 0; }
  .service-card .svc-top { margin-bottom: 18px; }
  .svc-art { display: none; }

  /* Demo */
  .demo { padding: 22px 16px; border-radius: 22px; }
  .demo-grid { gap: 28px; }
  .demo-side h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .demo-controls { margin-top: 22px; flex-wrap: wrap; }
  .demo-controls .demo-btn { flex: 1 1 auto; justify-content: center; }
  .pipe { padding: 16px; min-height: 0; gap: 10px; }
  .pipe-head { font-size: 10px; }
  .step { grid-template-columns: 28px 1fr auto; padding: 11px; gap: 10px; border-radius: 10px; }
  .step-ico { width: 28px; height: 28px; border-radius: 7px; }
  .step-meta .t { font-size: 13px; }
  .step-meta .d { font-size: 10.5px; }
  .step-status { font-size: 9.5px; gap: 5px; }
  .pipe-log { height: 80px; font-size: 10.5px; padding: 9px 10px; }

  /* Process */
  .process-row { grid-template-columns: 28px 1fr 30px; gap: 10px 14px; padding: 18px 0; align-items: center; }
  .process-row.open { padding: 22px 0; }
  .process-row .p-num { grid-column: 1; grid-row: 1; font-size: 11px; }
  .process-row .p-title { grid-column: 2; grid-row: 1; font-size: clamp(22px, 7vw, 32px); }
  .process-row .p-toggle { grid-column: 3; grid-row: 1; width: 30px; height: 30px; }
  .process-row .p-desc { grid-column: 2 / 4; grid-row: 2; font-size: 14px; max-width: none; display: none; }
  .process-row.open .p-desc { display: block; }

  /* Stack */
  .stack-col { padding: 20px; }
  .stack-col h4 { margin-bottom: 14px; }
  .chip { height: 32px; padding: 0 12px; font-size: 12.5px; }

  /* Estimator */
  .est-controls, .est-output { padding: 22px; }
  .est-controls { gap: 18px; }
  .toggles { grid-template-columns: 1fr; }
  .seg { gap: 4px; padding: 3px; }
  .seg button { height: 36px; font-size: 12.5px; }
  .tier-letter { font-size: clamp(56px, 18vw, 84px); }
  .tier-label { font-size: clamp(20px, 5.5vw, 26px); }
  .est-meta { gap: 12px; }
  .est-meta .v { font-size: 16px; }

  /* CTA */
  .cta-block { padding: 44px 22px; border-radius: 22px; }
  .cta-block .h-display {
    font-size: clamp(36px, 12vw, 60px);
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .cta-block .lede { margin: 18px auto 28px; font-size: 16px; }
  .cta-actions { flex-direction: column; gap: 10px; align-items: center; }
  .cta-block .btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }

  /* Footer */
  footer { padding: 32px 0 24px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .foot-left { gap: 16px; align-items: flex-start; flex-direction: column; }
  .foot .links { flex-wrap: wrap; gap: 16px 18px; }
}

/* ===== Responsive: narrow phones ===== */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
  .est-meta { grid-template-columns: 1fr; }
  .est-meta .cell { padding-top: 10px; }
}
