:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-dark: #0a0f1a;
  --bg-dark-alt: #101826;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-soft: #3c4657;
  --muted: #6b7280;
  --ink-on-dark: #f5f7fa;
  --muted-on-dark: #93a1b8;
  --accent: #b45309;
  --accent-strong: #92400e;
  --signal-blue: #2563eb;
  --signal-green: #16a34a;
  --signal-green-soft: #dcfce7;
  --border: rgba(11, 18, 32, 0.12);
  --border-strong: rgba(11, 18, 32, 0.2);
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 18, 32, 0.1);
  --max: 1180px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: hidden;
}

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  padding: 96px 0;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 62px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-md);
  color: white;
  background: var(--bg-dark);
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark path:first-child,
.brand-mark path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark path:first-child {
  stroke-width: 2.4;
}

.brand-mark path:last-child {
  stroke-width: 2.2;
}

.brand strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.brand em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  text-underline-offset: 5px;
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav-cta {
  min-height: 42px;
  padding: 0 16px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.button {
  min-height: 52px;
  padding: 0 22px;
  font-size: 14px;
}

.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.nav-cta:hover {
  color: white;
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--bg-alt);
}

.button.secondary:hover {
  border-color: rgba(11, 18, 32, 0.4);
  background: white;
}

.button.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: var(--radius-pill);
  background: white;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 88px;
  right: 20px;
  left: 20px;
  z-index: 19;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1fr);
  gap: 56px;
  align-items: center;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.cred-strip span,
.integration-map span,
.screenshot-tabs button {
  border-radius: var(--radius-pill);
}

.cred-strip span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: white;
  font-size: 13px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual::before {
  position: absolute;
  inset: 58px 24px 46px 54px;
  z-index: -1;
  content: "";
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
}

.signal-card {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
}

.signal-card-main {
  top: 20px;
  left: 0;
  width: min(390px, 70%);
  padding: 18px;
}

.signal-card-side {
  right: 0;
  bottom: 54px;
  width: min(290px, 52%);
  padding: 16px;
}

.signal-topline,
.workflow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--muted);
}

.dot.live {
  background: var(--signal-green);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.13);
}

.flow-mini {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  gap: 7px;
  align-items: center;
  margin: 18px 0;
}

.flow-mini span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #eff4ff;
  font-size: 12px;
  font-weight: 600;
}

.flow-mini i {
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--signal-blue);
}

.signal-row {
  display: grid;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.signal-row strong {
  font-size: 15px;
  font-weight: 700;
}

.signal-row span {
  color: var(--muted);
  font-size: 13px;
}

.mini-terminal,
.activity-log {
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
}

.mini-terminal {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  color: var(--muted-on-dark);
  background: var(--bg-dark);
  font-size: 12px;
}

.mini-terminal span:first-child {
  color: #fbbf24;
}

.mini-terminal span:not(:first-child)::before {
  content: "→ ";
  color: #93c5fd;
}

.device-stack {
  position: absolute;
  inset: 92px 38px 44px 90px;
}

.phone-frame {
  position: absolute;
  width: 240px;
  margin: 0;
  overflow: hidden;
  border: 10px solid var(--bg-dark);
  border-radius: 30px;
  background: var(--bg-dark);
  box-shadow: 0 18px 42px rgba(11, 18, 32, 0.24);
}

.phone-frame::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 26px;
  content: "";
  background: var(--bg-dark);
}

.phone-frame::before {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 18px;
  content: "";
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-front {
  top: 28px;
  right: 52px;
  z-index: 2;
  height: 520px;
  transform: rotate(3deg);
}

.phone-back {
  top: 100px;
  left: 0;
  z-index: 1;
  height: 470px;
  opacity: 0.9;
  transform: rotate(-6deg);
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.narrow {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-label,
.detail-kicker {
  margin: 0;
  color: var(--accent);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.proof-copy h2,
.estimator-shell h2,
.contact-shell h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-heading p:not(.section-label),
.proof-copy p,
.estimator-shell p,
.contact-shell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.services-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: stretch;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  background: white;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.service-card.active {
  border-color: var(--border-strong);
  background: #fffdf9;
  box-shadow: var(--shadow-md);
}

.service-icon {
  grid-row: span 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: var(--radius-md);
  color: var(--accent);
  background: #fff7ed;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon path,
.service-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.service-card span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-detail {
  display: grid;
  align-content: space-between;
  min-height: 444px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-md);
}

.detail-shell {
  max-width: 640px;
}

.detail-shell h3 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-shell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.detail-shell ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.detail-shell li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-weight: 600;
}

.detail-shell li::before {
  position: absolute;
  top: 0.46em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: var(--radius-pill);
  background: var(--signal-green);
}

.integration-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.integration-map span {
  padding: 10px 13px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 600;
}

.proof {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--bg-alt);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 42px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.proof-copy {
  display: grid;
  gap: 18px;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-lg);
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.driven-logo-chip {
  display: grid;
  min-width: 158px;
  min-height: 44px;
  place-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
}

.driven-logo-chip img {
  width: 126px;
  height: auto;
}

.case-card-header > span:not(.driven-logo-chip) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.screenshot-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
}

.screenshot-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.screenshot-tabs button.active {
  border-color: rgba(180, 83, 9, 0.24);
  color: var(--accent-strong);
  background: #fff7ed;
}

.case-preview {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 28px 28px;
}

.case-phone {
  position: relative;
  width: 232px;
  height: 488px;
}

.capability-list {
  display: grid;
  gap: 9px;
}

.capability-list span,
.ops-proof-panel div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.capability-list span {
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.ops-proof-panel {
  display: grid;
  gap: 9px;
}

.ops-proof-panel div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.ops-proof-panel span {
  color: var(--muted);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-proof-panel strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.case-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 32px;
  border: 0;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.28);
}

.case-dialog::backdrop {
  background: rgba(10, 15, 26, 0.48);
}

.case-dialog h3 {
  margin: 10px 0 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.case-dialog p,
.case-dialog li {
  color: var(--ink-soft);
  line-height: 1.62;
}

.case-dialog ul {
  padding-left: 20px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--bg-alt);
  font-size: 24px;
}

.automation-console {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
}

.workflow-panel,
.result-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-md);
}

.workflow-panel {
  padding: 24px;
}

.workflow-header {
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.workflow-header strong {
  margin-right: auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.workflow-header button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-md);
  color: white;
  background: var(--bg-dark);
  font-size: 13px;
  font-weight: 600;
}

.workflow-header button.running {
  background: var(--accent);
}

.workflow-progress {
  height: 5px;
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}

.workflow-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}

.workflow-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.flow-step span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: white;
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}

.flow-step strong {
  align-self: end;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.flow-step em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.flow-step.active {
  border-color: rgba(180, 83, 9, 0.34);
  background: #fffaf3;
  box-shadow: var(--shadow-sm);
}

.flow-step.active span {
  color: white;
  background: var(--accent);
}

.flow-step.complete span {
  color: #14532d;
  background: var(--signal-green-soft);
}

.result-panel {
  display: grid;
  gap: 22px;
  align-content: space-between;
  padding: 30px;
}

.result-panel h3 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.result-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.result-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.result-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.result-grid strong,
.estimate-card output,
.estimate-result strong {
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
}

.result-grid strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.activity-log {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  color: var(--muted-on-dark);
  background: var(--bg-dark);
  font-size: 12px;
}

.activity-log span::before {
  content: "• ";
  color: var(--signal-green);
}

.estimator {
  padding-top: 48px;
}

.estimator-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  box-shadow: var(--shadow-lg);
}

.estimator-shell .section-label {
  color: #fbbf24;
}

.estimator-shell h2,
.estimator-shell p {
  color: var(--ink-on-dark);
}

.estimator-shell p {
  color: var(--muted-on-dark);
}

.estimate-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-alt);
}

.estimate-card label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: var(--ink-on-dark);
  font-size: 14px;
  font-weight: 600;
}

.estimate-card input[type="range"] {
  grid-column: 1 / -1;
  accent-color: var(--accent);
}

.estimate-card output {
  color: #fbbf24;
}

.estimate-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: white;
}

.estimate-result span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.estimate-result strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-track article {
  min-height: 232px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.process-track span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: var(--radius-md);
  color: var(--accent-strong);
  background: #fff7ed;
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}

.process-track h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-track p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.contact {
  padding-top: 48px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.82fr);
  gap: 42px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-md);
}

.contact-shell > div:first-child {
  display: grid;
  gap: 18px;
}

.contact-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.contact-routes a,
.security-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.contact-routes a {
  padding: 11px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.security-note {
  margin: 4px 0 0;
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 15px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 126px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(180, 83, 9, 0.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-note.success {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #14532d;
  background: var(--signal-green-soft);
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  width: min(var(--max), calc(100% - 40px));
  padding: 40px;
  margin: 0 auto 40px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-xl);
  color: var(--muted-on-dark);
  background: var(--bg-dark);
  font-size: 13px;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.site-footer nav {
  justify-content: flex-end;
}

.site-footer a {
  color: var(--ink-on-dark);
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-on-dark);
  line-height: 1.55;
}

.footer-brand {
  color: var(--ink-on-dark);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 580ms ease,
    transform 580ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .services-layout,
  .proof-grid,
  .automation-console,
  .estimator-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-visual {
    min-height: 580px;
  }

  .proof-grid {
    max-width: 760px;
  }

  .case-preview {
    grid-template-columns: 248px 1fr;
  }

  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section-pad {
    width: min(100% - 28px, var(--max));
    padding: 48px 0;
  }

  .site-header {
    top: 10px;
    right: 14px;
    left: 14px;
    width: auto;
    min-height: 58px;
    transform: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions,
  .proof-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .proof-links .button,
  .contact-form .button {
    width: 100%;
  }

  .hero-grid,
  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .cred-strip {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-visual::before {
    inset: 58px 0 28px 0;
  }

  .signal-card-main {
    top: 0;
    width: 100%;
  }

  .signal-card-side,
  .phone-back {
    display: none;
  }

  .device-stack {
    inset: 130px 0 0 0;
  }

  .phone-frame {
    width: 190px;
    border-width: 8px;
    border-radius: 26px;
  }

  .phone-front {
    top: 0;
    right: 50%;
    height: 392px;
    transform: translateX(50%) rotate(0deg);
  }

  .section-heading h2,
  .proof-copy h2,
  .estimator-shell h2,
  .contact-shell h2 {
    font-size: clamp(34px, 10.4vw, 46px);
    letter-spacing: -0.02em;
  }

  .service-detail,
  .workflow-panel,
  .result-panel,
  .estimator-shell,
  .contact-shell {
    padding: 22px;
    border-radius: var(--radius-xl);
  }

  .case-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .screenshot-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .case-preview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .case-phone {
    width: 216px;
    height: 454px;
  }

  .capability-list,
  .ops-proof-panel {
    width: 100%;
  }

  .result-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .process-track article {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    padding: 28px 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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