:root {
  color-scheme: dark;
  --background: #080B0D;
  --surface: #10171A;
  --surface-raised: #121B1F;
  --text: #EDF4F1;
  --muted: #8EA09A;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #2DD4BF;
  --blue: #6EA8FF;
  --gold: #F5D46C;
  --danger: #FF6B6B;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.06), rgba(8, 11, 13, 0) 360px),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

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

.site-header,
main,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
}

.site-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 22px 0;
}

.brand,
.nav-links,
.hero-actions,
.hero-points,
.phone-status,
.review-panel,
.platform-strip,
.meter-row,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 15px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  background: var(--accent);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  display: inline-block;
  height: 17px;
  width: 19px;
}

.nav-links {
  background: rgba(18, 27, 31, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 2px;
  padding: 5px;
}

.nav-links a,
.header-cta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 10px 12px;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--text);
}

.header-cta {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  min-height: 82vh;
  padding: 80px 22px 72px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(68px, 12vw, 142px);
  line-height: 0.88;
  margin: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  margin: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.08;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
  margin: 0;
}

.hero-lede {
  color: rgba(237, 244, 241, 0.78);
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.25;
  margin-top: 28px;
  max-width: 740px;
}

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

.button {
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  min-width: 164px;
  padding: 16px 18px;
}

.button-primary {
  background: var(--accent);
  color: #04100F;
}

.button-secondary {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-points {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-points span {
  background: rgba(18, 27, 31, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.hero-product {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-stage {
  background:
    radial-gradient(circle at 50% 28%, rgba(45, 212, 191, 0.12), transparent 36%),
    radial-gradient(circle at 72% 64%, rgba(110, 168, 255, 0.08), transparent 34%);
  display: flex;
  isolation: isolate;
  justify-content: center;
  overflow: visible;
  padding: 28px;
  position: relative;
  width: min(100%, 430px);
}

.phone-stage::before {
  animation: phoneGlow 4200ms ease-in-out infinite;
  background: radial-gradient(circle at 50% 48%, rgba(45, 212, 191, 0.16), transparent 62%);
  border-radius: 999px;
  content: "";
  inset: 42px 10px;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.phone-device {
  filter: drop-shadow(0 34px 64px rgba(0, 0, 0, 0.55));
  position: relative;
  width: min(100%, 390px);
}

.phone-button {
  background: linear-gradient(180deg, #2A3237, #11171B);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: absolute;
  width: 5px;
  z-index: 0;
}

.phone-button-action {
  height: 48px;
  left: -3px;
  top: 128px;
}

.phone-button-volume {
  height: 96px;
  left: -4px;
  top: 204px;
}

.phone-button-power {
  height: 118px;
  right: -4px;
  top: 190px;
}

.phone-shell {
  background:
    linear-gradient(180deg, rgba(20, 29, 33, 0.98), rgba(5, 7, 8, 0.98)),
    var(--background);
  border: 12px solid #20282D;
  border-radius: 62px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 7px #050708,
    inset 0 -18px 38px rgba(255, 255, 255, 0.03);
  min-height: 690px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.iphone-17-pro::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  height: 1px;
  left: 74px;
  position: absolute;
  right: 74px;
  top: 9px;
  z-index: 7;
}

.phone-frame-highlight {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 48px;
  inset: 11px;
  pointer-events: none;
  position: absolute;
  z-index: 7;
}

.phone-glass {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.1), transparent 22%);
  inset: 12px;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
  z-index: 6;
}

.dynamic-island {
  background: #030405;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 31px;
  left: 50%;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  width: 112px;
  z-index: 8;
}

.phone-status {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 52px;
  padding-top: 6px;
  position: relative;
  z-index: 2;
}

.phone-status span:last-child,
.phone-kicker,
.small-label,
.step-index,
.slot-number {
  color: var(--accent);
}

.phone-kicker,
.small-label,
.step-index,
.slot-number {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0 22px;
}

.motion-screen {
  min-height: 560px;
  position: relative;
  z-index: 2;
}

.demo-status {
  align-items: center;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  color: rgba(237, 244, 241, 0.8);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  line-height: 1.25;
  margin-bottom: 16px;
  min-height: 32px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.demo-status-dot {
  animation: demoDotPulse 1400ms ease-in-out infinite;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.72);
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.showcase-panel {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-panel.is-transitioning {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}

.showcase-body {
  min-height: 360px;
  position: relative;
}

.showcase-body > * {
  animation: settleIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.input-line,
.smart-button,
.review-panel,
.track-card,
.source-chip,
.mini-slot,
.mini-branch,
.step-card,
.meter-board,
.set-map,
.proof-grid article,
.faq-list details {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.input-line {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  padding: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-button {
  background: var(--accent);
  color: #04100F;
  font-weight: 900;
  margin: 14px 0;
  padding: 15px;
  position: relative;
  text-align: center;
}

.tap-ring {
  animation: tapPulse 1500ms ease-out both;
  border: 2px solid rgba(45, 212, 191, 0.8);
  border-radius: 999px;
  height: 44px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 242px;
  transform: translateX(-50%) scale(0.42);
  width: 44px;
}

.demo-pointer {
  animation: pointerTap 1500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background: rgba(237, 244, 241, 0.98);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 7px rgba(45, 212, 191, 0.14);
  height: 18px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 252px;
  transform: translate(-50%, -50%);
  width: 18px;
}

.track-card {
  padding: 16px;
}

.track-card span,
.source-chip,
.mini-slot span,
.mini-branch span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.track-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-top: 9px;
  overflow-wrap: anywhere;
}

.review-panel {
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.review-panel div {
  background: #050708;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  padding: 12px;
}

.review-panel strong {
  display: block;
  font-size: 28px;
  margin-top: 5px;
}

.processing-orbit {
  height: 58px;
  margin: 0 auto 12px;
  position: relative;
  width: 58px;
}

.processing-orbit span {
  animation: orbitPulse 1400ms ease-in-out infinite;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  inset: 0;
  position: absolute;
}

.processing-orbit span:nth-child(2) {
  animation-delay: 180ms;
  inset: 8px;
}

.processing-orbit span:nth-child(3) {
  animation-delay: 360ms;
  background: rgba(45, 212, 191, 0.42);
  border: 0;
  inset: 23px;
}

.scan-line {
  animation: scanSweep 1600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 999px;
  height: 2px;
  margin: 14px 0;
  opacity: 0.78;
  transform-origin: left;
  width: 100%;
}

.source-chip {
  color: var(--accent);
  margin-top: 12px;
  padding: 13px;
}

.mini-set {
  display: grid;
  gap: 11px;
  margin-top: 8px;
}

.mini-slot,
.mini-branch {
  animation: setCardIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  padding: 14px;
}

.mini-slot:nth-child(2),
.mini-branch:nth-child(2) {
  animation-delay: 120ms;
}

.mini-slot:nth-child(3) {
  animation-delay: 220ms;
}

.mini-slot.active {
  border-color: rgba(45, 212, 191, 0.52);
}

.mini-slot strong,
.mini-branch strong {
  display: block;
  font-size: 17px;
  margin-top: 6px;
}

.mini-branch {
  animation-name: branchSlide;
  background: rgba(245, 212, 108, 0.09);
  border-color: rgba(245, 212, 108, 0.3);
  margin-left: 28px;
}

.mini-branch span {
  color: var(--gold);
}

.motion-progress {
  bottom: 18px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
}

.motion-progress span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 4px;
  overflow: visible;
  position: relative;
}

.motion-progress span::after {
  background: var(--accent);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.motion-progress span::before {
  color: rgba(237, 244, 241, 0.5);
  content: attr(data-progress-label);
  font-size: 9px;
  font-weight: 900;
  left: 0;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
}

[data-demo-step="capture"] .motion-progress span:nth-child(1)::after,
[data-demo-step="analyze"] .motion-progress span:nth-child(2)::after,
[data-demo-step="place"] .motion-progress span:nth-child(3)::after {
  transform: scaleX(1);
}

[data-demo-step="analyze"] .motion-progress span:nth-child(1)::after,
[data-demo-step="place"] .motion-progress span:nth-child(1)::after,
[data-demo-step="place"] .motion-progress span:nth-child(2)::after {
  background: rgba(45, 212, 191, 0.48);
  transform: scaleX(1);
}

.platform-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 22px;
  padding: 18px 0;
}

.platform-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-strip span::after {
  color: var(--accent);
  content: "/";
  margin-left: 10px;
}

.platform-strip span:last-child::after {
  content: "";
  margin: 0;
}

.section {
  padding: 88px 22px;
}

.workflow-section,
.feature-band,
.set-section,
.proof-section,
.faq-section {
  display: grid;
  gap: 34px;
  grid-template-columns: 0.86fr 1.14fr;
}

.section-heading p,
.feature-copy p,
.cta-section p {
  margin-top: 18px;
}

.steps,
.proof-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.step-card,
.proof-grid article {
  padding: 22px;
}

.step-card h3,
.proof-grid h3 {
  margin: 14px 0 10px;
}

.feature-band {
  align-items: center;
  background: rgba(16, 23, 26, 0.52);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 22px;
  padding: 42px;
}

.meter-board {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.meter-row {
  background: #050708;
  border-left: 4px solid var(--accent);
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.meter-row.blue {
  border-left-color: var(--blue);
}

.meter-row.gold {
  border-left-color: var(--gold);
}

.meter-row span,
.meter-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meter-row strong {
  font-size: 22px;
}

.set-map {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.set-node,
.set-branch {
  background: #050708;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.set-node.active {
  border-color: var(--accent);
}

.set-node span,
.set-branch span {
  color: var(--accent);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.set-node strong,
.set-branch strong {
  display: block;
  font-size: 19px;
  margin-top: 6px;
}

.set-branch {
  background: rgba(245, 212, 108, 0.08);
  border-color: rgba(245, 212, 108, 0.28);
  margin-left: 34px;
}

.set-branch span {
  color: var(--gold);
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin-top: 12px;
}

.faq-section {
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}

.faq-section .faq-list {
  text-align: left;
}

.cta-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}

.cta-section .button {
  margin-top: 26px;
}

.site-footer {
  border-top: 1px solid var(--line);
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 28px 22px 38px;
  text-align: center;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hero,
  .workflow-section,
  .feature-band,
  .set-section,
  .proof-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

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

  .feature-band {
    margin-left: 16px;
    margin-right: 16px;
    padding: 24px;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-top: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .review-panel,
  .meter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone-shell {
    min-height: 620px;
    padding: 24px;
  }
}

@keyframes tapPulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.36);
  }

  42% {
    opacity: 1;
    transform: translateX(-50%) scale(0.54);
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25);
  }
}

@keyframes pointerTap {
  0% {
    opacity: 0;
    transform: translate(-80px, -82px) scale(0.92);
  }

  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.74);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateX(-42%) scaleX(0.2);
  }

  50% {
    transform: translateX(42%) scaleX(0.56);
  }

  100% {
    transform: translateX(-42%) scaleX(0.2);
  }
}

@keyframes branchSlide {
  0% {
    transform: translateX(-10px);
  }

  45%,
  68% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-10px);
  }
}

@keyframes settleIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes setCardIn {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes orbitPulse {
  0% {
    opacity: 0.15;
    transform: scale(0.74);
  }

  52% {
    opacity: 0.72;
    transform: scale(1);
  }

  100% {
    opacity: 0.15;
    transform: scale(1.16);
  }
}

@keyframes demoDotPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.78);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes phoneGlow {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-panel,
  .showcase-body > *,
  .motion-progress span::after,
  .phone-stage::before,
  .demo-status-dot,
  .demo-pointer,
  .processing-orbit span,
  .tap-ring,
  .scan-line,
  .mini-branch {
    animation-duration: 1ms;
    transition-duration: 1ms;
  }
}
