html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
.container,
.nav,
.hero-grid,
.section-head,
.machine,
.route-card,
.service,
.demo-card,
.operator-panel,
.case-card,
.step,
.contact-option,
.method,
.method-copy,
.method-list {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small {
  overflow-wrap: break-word;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

header.scrolled {
  border-bottom-color: var(--header-border);
  background: var(--header-bg-scrolled);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  box-shadow: var(--shadow-button);
}

.brand-name span { color: var(--muted); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--surface);
}

.theme-toggle,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.theme-toggle:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}

.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--panel-bg-strong);
  color: var(--ink);
}

.nav-links a.nav-demo {
  color: var(--surface);
  background: var(--accent);
  box-shadow: 0 8px 22px oklch(0.55 0.118 46 / 0.18);
}

.nav-links a.nav-demo:hover,
.nav-links a.nav-demo.is-active {
  color: var(--surface);
  background: var(--accent);
}

.theme-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  box-shadow: inset -4px -3px 0 currentColor;
}

:root[data-theme="dark"] .theme-toggle::before {
  box-shadow: inset 4px 0 0 currentColor;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle::before {
    box-shadow: inset 4px 0 0 currentColor;
  }
}

.btn.secondary {
  background: var(--panel-bg-strong);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  padding: clamp(54px, 8vw, 96px) 0 clamp(52px, 8vw, 92px);
}

.page-hero {
  padding-bottom: clamp(34px, 6vw, 70px);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(46px, 4.8rem, 86px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(28px, 5vw, 56px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
}

h1 {
  max-width: 12.5ch;
  margin: 18px 0 24px;
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span { color: var(--muted); }

.hero-lead {
  max-width: 62ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
}

.machine {
  position: relative;
  min-height: 360px;
  transform: translateY(calc(var(--hero-progress, 0) * -18px)) rotateX(calc(var(--hero-progress, 0) * 3deg));
  transform-origin: center top;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform 180ms linear;
}

.machine.reveal.in {
  transform: translateY(calc(var(--hero-progress, 0) * -18px)) rotateX(calc(var(--hero-progress, 0) * 3deg));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 520ms var(--ease);
}

.machine.has-hero-scene .hero-canvas {
  opacity: 0.86;
}

.machine::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 62%, oklch(0.74 0.12 58 / 0.08)),
    radial-gradient(circle at 14% 12%, oklch(0.55 0.085 244 / 0.12), transparent 24%);
}

.machine-top,
.machine-body {
  position: relative;
  z-index: 1;
}

.machine-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.machine-body {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 14px;
}

.flow-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--flow-bg);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.flow-row.is-live {
  transform: translateX(4px);
  border-color: oklch(0.74 0.12 58 / 0.58);
  box-shadow: 0 12px 34px oklch(0.5 0.1 58 / 0.12);
}

.flow-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  background: var(--surface-warm);
  color: var(--accent);
}

.flow-row strong { display: block; font-size: 14px; }
.flow-row small { color: var(--muted); font-weight: 700; }

.flow-status {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.flow-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: var(--radius-pill);
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: status-pulse 1800ms var(--ease) infinite;
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(52px, 8vw, 96px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  position: relative;
  min-height: 276px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.route-card::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel-bg-strong);
}

.route-card::after {
  content: "";
  position: absolute;
  right: 36px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}

.route-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.route-card:hover::after {
  transform: translate(2px, 0) rotate(45deg);
}

.route-card-main {
  min-height: 340px;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-md);
  background:
    radial-gradient(circle at 18% 12%, oklch(0.74 0.12 58 / 0.16), transparent 30%),
    linear-gradient(145deg, var(--panel-bg-strong), var(--panel-bg));
}

.route-card small {
  margin-bottom: clamp(52px, 7vw, 86px);
  padding-right: 48px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-card h3 {
  max-width: 14ch;
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.services-grid-page .service {
  min-height: 330px;
}

.service {
  grid-column: span 3;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
}

.services-grid .service:nth-child(3),
.services-grid .service:nth-child(4) {
  grid-column: span 4;
}

.service-feature {
  grid-column: span 5;
  min-height: 372px;
  background:
    radial-gradient(circle at 18% 12%, oklch(0.74 0.12 58 / 0.16), transparent 30%),
    linear-gradient(145deg, var(--panel-bg-strong), var(--panel-bg));
  box-shadow: var(--shadow-soft);
}

.service-wide {
  grid-column: span 8;
  background:
    linear-gradient(180deg, var(--panel-bg), transparent),
    radial-gradient(circle at 86% 18%, oklch(0.55 0.085 244 / 0.12), transparent 36%);
}

.services-grid .service.service-custom {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 22px;
  background:
    linear-gradient(135deg, var(--panel-bg-strong), var(--panel-bg)),
    radial-gradient(circle at 92% 20%, oklch(0.74 0.12 58 / 0.12), transparent 34%);
}

.services-grid .service.service-custom .service-kicker,
.services-grid .service.service-custom .service-icon,
.services-grid .service.service-custom h3,
.services-grid .service.service-custom p {
  margin: 0;
}

.services-grid .service.service-custom .service-kicker {
  grid-column: 1 / -1;
}

.services-grid .service.service-custom .service-icon {
  grid-row: 2 / span 2;
}

.services-grid .service.service-custom h3 {
  grid-column: 2;
  max-width: 24ch;
  font-size: clamp(24px, 3vw, 36px);
}

.services-grid .service.service-custom p {
  grid-column: 2;
  max-width: 68ch;
}

.services-grid .service.service-custom .btn {
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: center;
  white-space: nowrap;
}

.service-kicker {
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-xs);
  background: var(--surface-warm);
  color: var(--accent);
}

.service h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.15;
}

.service-feature h3 {
  max-width: 12ch;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 0.98;
}

.service p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.tags span {
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: oklch(0.59 0.078 156 / 0.1);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.case-card {
  min-height: 288px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
}

.case-card:first-child {
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-md);
  background:
    radial-gradient(circle at 14% 12%, oklch(0.74 0.12 58 / 0.14), transparent 34%),
    var(--panel-bg-strong);
}

.case-card small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-card h3 {
  max-width: 15ch;
  margin: 34px 0 12px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.04;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.64;
}

.case-measure {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 6px;
}

.case-measure span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-measure strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.demos-band {
  background: var(--band-bg);
  color: var(--band-text);
  padding: clamp(56px, 8vw, 92px) 0;
}

.demos-band .eyebrow { color: oklch(0.79 0.09 67); }
.demos-band .eyebrow::before { background: oklch(0.79 0.09 67); }
.demos-band h2 { color: var(--band-text); }
.demos-band .section-head p { color: var(--demo-muted); }

.demo-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid oklch(0.992 0.006 82 / 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: oklch(0.992 0.006 82 / 0.04);
}

.demo-item {
  min-height: 164px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-right: 1px solid oklch(0.992 0.006 82 / 0.14);
  transition: background 160ms var(--ease);
}

.demo-item:last-child { border-right: 0; }
.demo-item:hover { background: oklch(0.992 0.006 82 / 0.08); }

.demo-item small {
  color: var(--demo-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
}

.demo-item strong { font-size: 15px; line-height: 1.25; }

.demo-item span {
  color: var(--demo-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.demos-hero {
  padding: clamp(54px, 9vw, 104px) 0 34px;
}

.demos-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.93;
}

.demos-hero .hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.45fr);
  align-items: end;
}

.demos-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  margin-top: 18px;
}

.hero-side span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-xs);
  background: var(--panel-bg-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-side strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 34px;
  line-height: 0.9;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.demo-card {
  min-height: 548px;
  display: grid;
  grid-template-rows: 230px 1fr auto;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: 0 0 0 oklch(0 0 0 / 0);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.demo-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.demo-visual {
  height: 230px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.demo-body {
  padding: 24px 24px 18px;
  display: flex;
  flex-direction: column;
}

.demo-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.demo-card h2 {
  max-width: 18ch;
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.04;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.demo-custom {
  grid-column: 1 / -1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 18px 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, var(--panel-bg-strong), var(--panel-bg)),
    radial-gradient(circle at 88% 24%, oklch(0.55 0.085 244 / 0.13), transparent 34%);
}

.demo-custom:hover {
  transform: translateY(-2px);
}

.demo-custom-body,
.demo-custom-foot {
  padding: 0;
}

.demo-custom-body {
  max-width: 760px;
}

.demo-custom .demo-meta {
  justify-content: flex-start;
}

.demo-custom h2 {
  max-width: 22ch;
}

.demo-custom-foot {
  align-self: end;
}

.demo-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 24px 24px;
}

.demo-foot small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.demo-foot .btn {
  min-width: 126px;
}

.demo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-actions .btn {
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
}

.demo-actions button.btn {
  font-family: inherit;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease);
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.205 0.035 255 / 0.62);
  backdrop-filter: blur(3px);
}

.demo-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms var(--ease);
}

.demo-modal.is-open .demo-modal-panel {
  transform: translateY(0) scale(1);
}

.demo-modal-panel h2 {
  max-width: 15ch;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.demo-modal-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.demo-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.demo-modal-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--panel-bg);
}

.demo-modal-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
}

.demo-modal-grid span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.demo-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.mini-browser,
.mini-phone,
.mini-call,
.mini-panel,
.mini-booking,
.mini-ig,
.mini-lead,
.mini-web {
  width: min(100%, 250px);
  border: 1px solid var(--line);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow-soft);
}

.mini-browser {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mini-browser-bar {
  height: 24px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 10px;
  background: var(--ink);
}

.mini-browser-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.mini-browser-body {
  position: relative;
  min-height: 168px;
  padding: 15px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.line {
  height: 9px;
  border-radius: var(--radius-pill);
  background: oklch(0.205 0.035 255 / 0.12);
}

:root[data-theme="dark"] .line {
  background: oklch(0.92 0.012 82 / 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .line {
    background: oklch(0.92 0.012 82 / 0.14);
  }
}

.line.short { width: 48%; }
.line.mid { width: 70%; }

.mini-chat-window {
  width: 154px;
  margin: 8px 0 0 auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid oklch(0.55 0.085 244 / 0.28);
  border-radius: 14px 14px 4px 14px;
  background: var(--panel-bg-strong);
  box-shadow: 0 14px 34px oklch(0.205 0.035 255 / 0.16);
}

.mini-chat-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
}

.mini-chat-head span {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--sage);
}

.mini-phone {
  width: 168px;
  border-radius: 28px;
  padding: 10px;
  background: var(--ink);
}

.mini-phone-web {
  width: 178px;
}

.mini-screen {
  min-height: 168px;
  border-radius: 20px;
  padding: 12px;
  background: oklch(0.91 0.025 78);
  display: grid;
  align-content: start;
  gap: 7px;
}

.bubble {
  max-width: 84%;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--panel-bg-strong);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.3;
}

.bubble.user {
  margin-left: auto;
  background: oklch(0.9 0.08 140);
}

.mini-call {
  width: 220px;
  padding: 22px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.call-core {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: oklch(0.55 0.118 46 / 0.12);
  border: 1px solid oklch(0.55 0.118 46 / 0.35);
}

.wave {
  display: flex;
  gap: 4px;
  align-items: end;
  justify-content: center;
  height: 42px;
}

.wave span {
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.wave span:nth-child(1) { height: 16px; }
.wave span:nth-child(2) { height: 29px; }
.wave span:nth-child(3) { height: 40px; }
.wave span:nth-child(4) { height: 22px; }
.wave span:nth-child(5) { height: 33px; }

.mini-panel {
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.panel-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 9px;
  border-radius: 6px;
  background: oklch(0.59 0.078 156 / 0.08);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.mini-booking {
  width: min(100%, 260px);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: stretch;
  background:
    linear-gradient(135deg, var(--panel-bg-strong), var(--panel-bg)),
    radial-gradient(circle at 18% 20%, oklch(0.59 0.078 156 / 0.14), transparent 34%);
}

.booking-chat {
  min-height: 126px;
  padding: 10px;
  display: grid;
  align-content: end;
  gap: 7px;
  border-radius: 14px;
  background: oklch(0.91 0.025 78);
}

.booking-panel {
  display: grid;
  gap: 8px;
}

.booking-panel div {
  padding: 10px 8px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border-radius: 10px;
  background: oklch(0.59 0.078 156 / 0.1);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.booking-panel strong {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mini-ig {
  width: 174px;
  border-radius: 26px;
  padding: 10px;
  background: var(--ink);
}

.ig-screen {
  min-height: 168px;
  border-radius: 18px;
  background: var(--panel-bg-strong);
  overflow: hidden;
}

.ig-media {
  height: 74px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, oklch(0.62 0.12 354 / 0.24), oklch(0.74 0.12 58 / 0.22));
  color: var(--rose);
  font-weight: 900;
  font-size: 28px;
}

.ig-copy {
  padding: 10px;
  display: grid;
  gap: 7px;
}

.ig-comment {
  padding: 7px;
  border-radius: var(--radius-pill);
  background: oklch(0.62 0.12 354 / 0.12);
  color: var(--rose);
  font-size: 10px;
  font-weight: 900;
}

.ig-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px;
  border: 1px solid oklch(0.62 0.12 354 / 0.18);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}

.ig-route strong {
  color: var(--rose);
}

.mini-lead {
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.lead-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
}

.lead-step span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.55 0.085 244 / 0.12);
  color: var(--blue);
}

.mini-web {
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  gap: 10px;
  background: oklch(0.94 0.035 82);
}

.price {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 6px;
  background: oklch(0.55 0.118 46 / 0.1);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.method {
  margin-top: clamp(44px, 7vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.45fr);
  gap: 22px;
  align-items: stretch;
}

.method-copy,
.method-list {
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  padding: clamp(22px, 3vw, 32px);
}

.method-copy h2 {
  margin: 0 0 12px;
  max-width: 14ch;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.method-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.method-list span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.55 0.118 46 / 0.1);
  color: var(--accent);
  font-weight: 900;
}

.method-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.process {
  --process-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.process-page .step {
  min-height: 260px;
}

.process-detail-grid {
  margin-top: 0;
}

.process-progress {
  position: absolute;
  left: 0;
  top: -2px;
  width: calc(var(--process-progress) * 100%);
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--sage));
  transition: width 120ms linear;
}

.step {
  padding: 24px 22px 0 0;
  border-right: 1px solid var(--line);
}

.step:not(:first-child) { padding-left: 22px; }
.step:last-child { border-right: 0; }

.step-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 7px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.operator-section {
  padding-top: clamp(40px, 6vw, 72px);
}

.operator-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 12%, oklch(0.55 0.085 244 / 0.12), transparent 30%),
    var(--panel-bg-strong);
  box-shadow: var(--shadow-soft);
}

.operator-panel h2 {
  max-width: 13ch;
  margin-top: 14px;
}

.operator-copy {
  display: grid;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.operator-copy p {
  margin: 0;
}

.faq-section {
  padding-top: clamp(40px, 6vw, 72px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 74ch;
  margin: -6px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow-lift);
}

.contact-panel h2 { max-width: 16ch; }
.contact-panel p { color: var(--muted); max-width: 62ch; line-height: 1.7; }

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.contact-option {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.contact-option:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.contact-option strong {
  margin-bottom: 34px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.contact-option h2 {
  max-width: 11ch;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 0.98;
}

.contact-option p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-option .btn {
  margin-top: auto;
}

.contact-option-primary {
  background:
    radial-gradient(circle at 18% 12%, oklch(0.74 0.12 58 / 0.16), transparent 30%),
    linear-gradient(145deg, var(--panel-bg-strong), var(--panel-bg));
  box-shadow: var(--shadow-soft);
}

.contact-notes {
  margin-top: clamp(36px, 6vw, 64px);
}

footer {
  padding: 42px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .method,
  .route-grid,
  .contact-options,
  .operator-panel,
  .contact-panel { grid-template-columns: 1fr; }
  .demos-hero .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-card { grid-column: auto; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service,
  .services-grid .service:nth-child(3),
  .services-grid .service:nth-child(4),
  .service-feature,
  .service-wide { grid-column: auto; min-height: 280px; }
  .services-grid .service.service-custom {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: 0;
  }
  .services-grid .service.service-custom .service-icon,
  .services-grid .service.service-custom h3,
  .services-grid .service.service-custom p,
  .services-grid .service.service-custom .btn {
    grid-column: auto;
    grid-row: auto;
  }
  .demo-custom {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .demo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-item { border-bottom: 1px solid oklch(0.992 0.006 82 / 0.14); }
  .case-grid,
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }
  .brand {
    min-width: 0;
    overflow: hidden;
  }
  .brand-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }
  .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 3px;
  }
  .nav-links a {
    min-width: 0;
    justify-content: center;
    min-height: 38px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  .theme-toggle { min-height: 40px; padding: 0 14px; }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero,
  .page-hero,
  .section {
    overflow-x: clip;
  }
  .section { scroll-margin-top: 132px; }
  h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 58px);
    line-height: 0.98;
  }
  .demos-hero h1 {
    max-width: 11ch;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 0.96;
  }
  .demos-hero p {
    max-width: 100%;
    font-size: 16px;
  }
  .page-hero h1 {
    font-size: 48px;
    line-height: 0.96;
    overflow-wrap: anywhere;
  }
  .machine-top { flex-direction: column; }
  .machine { min-height: 390px; }
      .flow-row { grid-template-columns: 34px 1fr; }
      .flow-status { grid-column: 2; }
      .service,
      .services-grid .service:nth-child(3),
      .services-grid .service:nth-child(4),
      .service-feature,
      .service-wide { grid-column: auto; min-height: 0; }
      .services-grid .service.service-custom {
        grid-column: auto;
        grid-template-columns: 1fr;
        min-height: 0;
      }
      .services-grid .service.service-custom .service-icon,
      .services-grid .service.service-custom h3,
      .services-grid .service.service-custom p,
      .services-grid .service.service-custom .btn {
        grid-column: auto;
        grid-row: auto;
      }
      .services-grid { grid-template-columns: 1fr; }
      .route-grid,
      .demo-grid,
      .demo-list,
      .case-grid,
      .process { grid-template-columns: 1fr; }
      .hero-side { grid-template-columns: 1fr; }
      .hero-side span { min-height: auto; }
      .demo-card { grid-column: auto; }
      .demo-custom {
        grid-column: auto;
        grid-template-columns: 1fr;
        padding: 24px;
      }
      .demo-foot {
        align-items: flex-start;
        flex-direction: column;
      }
      .demo-actions {
        width: 100%;
        justify-content: flex-start;
      }
      .demo-modal-grid {
        grid-template-columns: 1fr;
      }
      .demo-modal-actions .btn {
        width: 100%;
      }
      .demo-item,
      .case-card,
      .step { border-right: 0; border-bottom: 1px solid var(--line); }
      .step:not(:first-child) { padding-left: 0; }
    }

@media (max-width: 380px) {
  .nav {
    padding-inline: 12px;
  }

  .brand-name span {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    padding: 0;
  }

  .theme-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 11px;
    padding-inline: 2px;
  }
}
