:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9dde3;
  --blue: #0071e3;
  --blue-dark: #0057b8;
  --teal: #00a99d;
  --green: #35c759;
  --amber: #ff9f0a;
  --black: #05070a;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(15, 23, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.34);
  outline-offset: 4px;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
}

.local-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #424245;
  font-size: 14px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(580px, 1.18fr);
  align-items: center;
  gap: 52px;
  padding-top: 72px;
  padding-bottom: 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 750;
}

.hero h1 {
  margin: 0;
  max-width: 610px;
  font-size: 74px;
  line-height: 0.98;
  font-weight: 800;
}

.lead {
  margin: 24px 0 0;
  max-width: 540px;
  color: #4a4a4f;
  font-size: 22px;
  line-height: 1.36;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(0, 113, 227, 0.38);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 34px 0 0;
}

.hero-facts div {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.hero-facts dt {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.product-stage {
  position: relative;
  min-width: 0;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: auto 9% -22px 9%;
  height: 38px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(28px);
  border-radius: 999px;
}

.device-frame,
.screenshot-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(7, 20, 31, 0.14);
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #dfe4ea);
  box-shadow: var(--shadow);
}

.hero-device {
  transform: translateX(8px);
}

.screen-image,
.screenshot-card img {
  inline-size: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #ebe5d8;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7, 20, 31, 0.14);
  border-radius: 26px;
  background: #fbfbfd;
  box-shadow: var(--shadow);
}

.window-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.red {
  background: #ff605c;
}

.amber {
  background: #ffbd44;
}

.green {
  background: #00ca4e;
}

.window-title {
  margin-left: 8px;
  color: #595d63;
  font-size: 13px;
  font-weight: 700;
}

.workbench {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 210px;
  gap: 14px;
  padding: 14px;
  min-height: 520px;
}

.side-panel,
.nc-side,
.canvas-panel,
.quote-panel,
.code-visual {
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: var(--radius);
  background: #fff;
}

.side-panel,
.nc-side {
  padding: 16px;
}

.panel-title {
  margin-bottom: 14px;
  color: #666b72;
  font-size: 13px;
  font-weight: 800;
}

.field-row {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid #edf0f3;
}

.field-row span {
  color: #747980;
  font-size: 12px;
  font-weight: 700;
}

.field-row strong {
  color: #15191e;
  font-size: 15px;
}

.field-row.active strong {
  color: var(--blue);
}

.progress-stack {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.progress-stack span {
  height: 8px;
  border-radius: 999px;
  background: #e8ecf0;
}

.progress-stack span:nth-child(1) {
  width: 92%;
  background: var(--blue);
}

.progress-stack span:nth-child(2) {
  width: 70%;
  background: var(--teal);
}

.progress-stack span:nth-child(3) {
  width: 48%;
  background: var(--amber);
}

.canvas-panel {
  overflow: hidden;
  background: #f8fafb;
}

.canvas-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  color: #4f555d;
  font-size: 13px;
  font-weight: 750;
  border-bottom: 1px solid #e5e9ee;
  background: #fff;
}

.geometry-view {
  width: 100%;
  height: calc(100% - 44px);
  min-height: 410px;
}

.wire-path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawWire 3.4s ease-out 700ms forwards;
}

.floating-label {
  animation: floatLabel 3.2s ease-in-out infinite;
}

.nc-side pre,
.code-visual pre {
  margin: 0;
  overflow: hidden;
  color: #d7f6ff;
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
}

.nc-side {
  background: #10171f;
  color: #fff;
}

.nc-side .panel-title {
  color: #95a4b1;
}

.flow-teaser,
.feature-band,
.machine-section {
  padding: 82px 0;
  background: #fff;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 800;
}

.flow-grid,
.feature-grid,
.machine-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-step,
.feature-card,
.machine-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-step {
  min-height: 204px;
  padding: 24px;
}

.flow-step span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.flow-step h3,
.feature-card h3 {
  margin: 22px 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.flow-step p,
.feature-card p,
.showcase-copy p,
.split-copy p,
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

.dark-showcase {
  padding: 94px 0;
  background: var(--black);
  color: #fff;
}

.showcase-grid,
.split-grid,
.cta-grid {
  display: grid;
  align-items: center;
  gap: 54px;
}

.showcase-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
}

.showcase-copy h2,
.split-copy h2,
.cta-copy h2 {
  margin: 0 0 20px;
  font-size: 54px;
  line-height: 1.04;
}

.showcase-copy p {
  color: #b8c0cb;
}

.showcase-screens {
  display: grid;
  align-items: start;
  min-width: 0;
}

.screenshot-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42);
}

.screenshot-card img {
  border-color: rgba(255, 255, 255, 0.1);
}

.secondary-shot {
  width: 72%;
  justify-self: end;
  margin-top: -132px;
  transform: translateX(24px);
}

.code-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 28px;
  background: #0d1118;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
}

.mini-map {
  position: absolute;
  inset: 28px 28px auto auto;
  width: 230px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mini-map span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.mini-map span:nth-child(1) {
  width: 150px;
  height: 3px;
  left: 36px;
  top: 48px;
  background: var(--blue);
  transform: rotate(9deg);
}

.mini-map span:nth-child(2) {
  width: 116px;
  height: 3px;
  left: 58px;
  top: 94px;
  background: var(--green);
  transform: rotate(-14deg);
}

.mini-map span:nth-child(3) {
  width: 12px;
  height: 12px;
  left: 30px;
  top: 43px;
  background: var(--green);
}

.mini-map span:nth-child(4) {
  width: 12px;
  height: 12px;
  right: 34px;
  top: 110px;
  background: var(--amber);
}

.code-visual pre {
  width: min(420px, 100%);
  padding-top: 10px;
  font-size: 17px;
  line-height: 1.92;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 266px;
  padding: 24px;
}

.feature-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.split-section {
  padding: 94px 0;
  background: #f5f5f7;
}

.split-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.82fr);
}

.quote-panel {
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(15, 23, 32, 0.1);
}

.quote-row,
.quote-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f3;
}

.quote-row span,
.quote-total span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.quote-row strong,
.quote-total strong {
  color: var(--ink);
  font-size: 20px;
}

.quote-total {
  min-height: 86px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius);
  background: #111820;
}

.quote-total span {
  color: #aeb8c2;
}

.quote-total strong {
  color: #fff;
  font-size: 28px;
}

.machine-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.machine-item {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 20px;
  color: #26282c;
  font-size: 22px;
  font-weight: 800;
}

.cta-section {
  padding: 90px 0;
  background: #111820;
  color: #fff;
}

.cta-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta-copy {
  display: grid;
  grid-template-columns: 64px minmax(0, 760px);
  column-gap: 22px;
  align-items: start;
}

.cta-copy img {
  border-radius: 16px;
}

.cta-copy h2 {
  grid-column: 2;
  color: #fff;
}

.cta-copy p {
  grid-column: 2;
  color: #c9d0d8;
}

.cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.cta-section .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.site-footer {
  padding: 34px 0;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner img {
  width: 148px;
  height: auto;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--blue);
  font-weight: 700;
}

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

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

@keyframes drawWire {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes floatLabel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero,
  .showcase-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: 62px;
  }

  .lead {
    max-width: 690px;
  }

  .hero-device {
    transform: none;
  }

  .workbench {
    grid-template-columns: 170px minmax(0, 1fr) 190px;
  }

  .feature-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .machine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .local-nav,
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .local-nav {
    min-height: 54px;
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 43px;
    line-height: 1.02;
  }

  .lead {
    font-size: 18px;
  }

  .hero-facts {
    display: none;
  }

  .app-window {
    border-radius: 18px;
  }

  .device-frame,
  .screenshot-card {
    padding: 6px;
    border-radius: 20px;
  }

  .screen-image,
  .screenshot-card img {
    border-radius: 15px;
  }

  .workbench {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 10px;
  }

  .side-panel,
  .nc-side {
    display: none;
  }

  .canvas-toolbar {
    min-height: 48px;
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
  }

  .geometry-view {
    min-height: 270px;
  }

  .flow-teaser,
  .feature-band,
  .machine-section,
  .split-section,
  .dark-showcase,
  .cta-section {
    padding: 62px 0;
  }

  .section-title,
  .showcase-copy h2,
  .split-copy h2,
  .cta-copy h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .flow-grid,
  .feature-grid,
  .machine-grid {
    grid-template-columns: 1fr;
  }

  .code-visual {
    min-height: 390px;
    padding: 22px;
  }

  .mini-map {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .code-visual pre {
    font-size: 14px;
  }

  .secondary-shot {
    width: 100%;
    margin-top: 14px;
    transform: none;
  }

  .quote-row,
  .quote-total {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 16px;
  }

  .cta-copy {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .cta-copy h2,
  .cta-copy p {
    grid-column: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
