:root {
  --bg: #f5f5f2;
  --ink: #111316;
  --muted: #6b6f76;
  --line: rgba(17, 19, 22, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --blue: #2c71ff;
  --green: #19b37b;
  --gold: #c88a2d;
  --rose: #d9576d;
  --shadow: 0 28px 80px rgba(17, 19, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 113, 255, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(25, 179, 123, 0.14), transparent 30%),
    linear-gradient(135deg, #fbfbf9 0%, #efeee9 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 36px rgba(17, 19, 22, 0.09);
  backdrop-filter: blur(20px);
}

.brand,
.header-action,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 0 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #111316;
  color: #f8f8f5;
  font-size: 0.92rem;
}

nav {
  justify-content: center;
  gap: 8px;
}

nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

nav a:hover {
  background: rgba(17, 19, 22, 0.06);
  color: var(--ink);
}

.header-action {
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.panel {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 110px max(24px, calc((100vw - 1120px) / 2)) 64px;
  isolation: isolate;
  transform: translateY(var(--panel-lift, 0)) scale(var(--panel-scale, 1));
  transition: transform 180ms linear;
}

.hero,
.split,
.proof {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 0;
}

.hero {
  min-height: 108svh;
  padding-bottom: 120px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  max-width: 760px;
  transform: translateY(-205px);
}

.hero-copy[data-reveal].is-visible {
  transform: translateY(-205px);
}

.hero::after,
.split::after,
.workflow::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 28px;
  left: max(24px, calc((100vw - 1120px) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: none;
  font-size: clamp(4.65rem, 7.05vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.lead,
.section-copy p,
.start-inner p {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 40px rgba(17, 19, 22, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.product-shell {
  z-index: 2;
  width: min(100%, 560px);
  justify-self: end;
  min-width: 0;
  margin-left: 0;
  perspective: 1000px;
}

.system-window {
  width: 100%;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
  transform: translate3d(var(--device-drift, 0), 0, 0) rotateX(7deg) rotateY(-10deg);
  transition: transform 180ms linear;
}

.window-top {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.window-top span:nth-child(2) {
  background: var(--gold);
}

.window-top span:nth-child(3) {
  background: var(--green);
}

.pipeline {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.pipeline-row.active {
  background: #111316;
  color: #fff;
}

.pipeline-row strong {
  color: inherit;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metric-strip div {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip span,
.proof-stat span,
.stage-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-strip strong,
.proof-stat strong {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  transform: translateX(var(--grid-drift, 0));
  transition: transform 180ms linear;
}

.feature-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(17, 19, 22, 0.08);
  backdrop-filter: blur(18px);
}

.feature-grid p,
.stage-card p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 800;
}

.workflow {
  align-items: center;
}

.centered {
  width: min(760px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

.workflow-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  transform: translateX(var(--stage-drift, 0));
  transition: transform 180ms linear;
}

.stage-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  opacity: 0.62;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease, background 700ms ease;
}

.stage-card.is-visible {
  background: rgba(17, 19, 22, 0.92);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

.stage-card.is-visible p,
.stage-card.is-visible span {
  color: rgba(255, 255, 255, 0.72);
}

.proof-board {
  display: grid;
  gap: 14px;
}

.proof-stat {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.start {
  min-height: 92svh;
  place-items: center;
  text-align: center;
}

.start-inner {
  width: min(780px, 100%);
}

.start .button {
  margin-top: 22px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 820px) {
  .site-header {
    top: 12px;
    grid-template-columns: 1fr auto;
    border-radius: 26px;
  }

  nav {
    display: none;
  }

  .brand {
    padding-left: 4px;
  }

  .panel {
    min-height: auto;
    padding: 104px 18px 72px;
  }

  .hero,
  .split,
  .proof {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: 100svh;
  }

  .system-window {
    margin: 0;
    border-radius: 22px;
    transform: none;
  }

  .product-shell {
    width: 100%;
    justify-self: stretch;
    margin-left: 0;
  }

  .hero-copy {
    max-width: 100%;
    transform: none;
  }

  .hero-copy[data-reveal].is-visible {
    transform: none;
  }

  h1 {
    font-size: clamp(4.1rem, 17vw, 6.4rem);
    white-space: normal;
  }

  .metric-strip,
  .feature-grid,
  .workflow-stage {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .stage-card {
    min-height: 190px;
  }

  .button {
    width: 100%;
  }
}

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