:root {
  --ink: #f6f1e8;
  --muted: #aaa89f;
  --dim: #6e706c;
  --black: #050506;
  --panel: #0f1114;
  --line: #2b3036;
  --orange: #ff7918;
  --violet: #9b7cff;
  --violet-soft: #d8cef7;
  --paper: #e7ded1;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #050506 0%, #111318 46%, #070708 100%);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 10px, 10px 100%;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(5, 5, 6, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.site-header nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.site-header .nav-action {
  color: var(--ink);
  border: 1px solid rgba(216, 206, 247, 0.55);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  overflow: hidden;
  padding: 140px clamp(18px, 5vw, 72px) 96px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 82% 36%, rgba(155, 124, 255, 0.22), transparent 32%),
    radial-gradient(circle at 12% 70%, rgba(255, 121, 24, 0.13), transparent 28%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 900;
  line-height: 0.98;
}

h1 {
  max-width: 860px;
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
}

h1 span {
  display: block;
}

h2 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.hero-copy,
.section-copy p,
.cta-section p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--paper);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-action {
  color: #180d05;
  background: var(--orange);
  box-shadow: 0 14px 38px rgba(255, 121, 24, 0.22);
}

.secondary-action {
  color: var(--violet-soft);
  border: 1px solid rgba(155, 124, 255, 0.55);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ff8b37;
  box-shadow: 0 20px 48px rgba(255, 121, 24, 0.32);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--ink);
  border-color: rgba(216, 206, 247, 0.9);
  background: rgba(155, 124, 255, 0.12);
}

.hero-setup-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(15, 17, 20, 0.74);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.hero-setup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 34%),
    rgba(18, 20, 25, 0.86);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.5), 0 0 46px rgba(155, 124, 255, 0.12);
}

.setup-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 73% 45%, rgba(155, 124, 255, 0.24), transparent 36%),
    linear-gradient(180deg, #07080a, #050506);
}

.setup-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
}

.setup-tablet {
  position: absolute;
  left: 8%;
  bottom: 14%;
  width: 44%;
  height: 36%;
  padding: 22px;
  color: var(--ink);
  background: #050506;
  border: 2px solid rgba(155, 124, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(155, 124, 255, 0.16);
  transform: perspective(900px) rotateX(56deg) rotateZ(-6deg);
}

.setup-tablet span {
  display: block;
  margin: 8px 0;
  font-size: clamp(0.9rem, 1.7vw, 1.45rem);
  font-weight: 900;
  transform: scaleX(-1);
  opacity: 0.9;
}

.setup-glass {
  position: absolute;
  left: 42%;
  top: 13%;
  width: 22%;
  height: 72%;
  border: 2px solid rgba(216, 206, 247, 0.88);
  background: linear-gradient(115deg, rgba(216, 206, 247, 0.24), rgba(255, 255, 255, 0.03));
  transform: skewX(-12deg);
  box-shadow: 0 0 42px rgba(155, 124, 255, 0.16);
}

.setup-camera {
  position: absolute;
  right: 8%;
  top: 34%;
  width: 25%;
  height: 24%;
  border-radius: 10px;
  background: var(--paper);
}

.setup-camera::after {
  position: absolute;
  right: -8%;
  top: 24%;
  width: 24%;
  height: 52%;
  border-radius: 8px;
  background: var(--paper);
  content: "";
}

.setup-camera span {
  position: absolute;
  left: 12%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  border: 12px solid #0a0c10;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: inset 0 0 0 10px #322653;
  transform: translateY(-50%);
}

.setup-ray {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.68;
}

.setup-ray-a {
  left: 31%;
  top: 58%;
  width: 28%;
  transform: rotate(-23deg);
}

.setup-ray-b {
  left: 52%;
  top: 47%;
  width: 28%;
  transform: rotate(12deg);
}

.hero-setup-card p {
  margin: 14px 4px 0;
  color: var(--muted);
  font-weight: 800;
}

.setup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: start;
  gap: clamp(36px, 6vw, 82px);
}

.setup-copy {
  position: sticky;
  top: 116px;
}

.setup-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.setup-steps {
  display: grid;
  gap: 1px;
}

.setup-steps article {
  min-height: 172px;
  padding: 26px 28px;
  background:
    linear-gradient(90deg, rgba(155, 124, 255, 0.1), transparent 40%),
    rgba(15, 17, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.setup-steps article:hover {
  transform: translateX(-4px);
  border-color: rgba(155, 124, 255, 0.48);
  background:
    linear-gradient(90deg, rgba(155, 124, 255, 0.15), transparent 42%),
    rgba(20, 22, 27, 0.92);
}

.setup-steps .feature-number {
  margin-bottom: 26px;
}

.setup-steps p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.narrative-section,
.sync-section,
.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
}

.section-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.phone-stack {
  position: relative;
  min-height: 620px;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.phone-stack:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
}

.phone {
  position: absolute;
  width: min(330px, 60%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111318;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.phone-stack:hover .phone {
  border-color: rgba(155, 124, 255, 0.42);
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.5), 0 0 34px rgba(155, 124, 255, 0.1);
}

.phone-front {
  right: 7%;
  top: 0;
  z-index: 2;
}

.phone-back {
  left: 2%;
  bottom: 0;
  z-index: 1;
  filter: saturate(0.9) brightness(0.82);
}

.wide-shot {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.wide-shot:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.46);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.48), 0 0 38px rgba(155, 124, 255, 0.1);
}

.demo-video,
.video-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.js-loop-video:not([src]),
.js-loop-video[src=""] {
  display: none;
}

.js-loop-video:not([src]) + .video-fallback,
.js-loop-video[src=""] + .video-fallback {
  display: block;
}

.js-loop-video + .video-fallback {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 42px;
}

.feature-grid article {
  min-height: 260px;
  padding: 28px;
  background: rgba(15, 17, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.5);
  background: rgba(20, 22, 27, 0.92);
}

.feature-number {
  display: inline-block;
  margin-bottom: 60px;
  color: var(--violet);
  font-weight: 900;
}

.feature-grid p {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.controls-shot {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.controls-shot:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.46);
  filter: saturate(1.06);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.5), 0 0 34px rgba(155, 124, 255, 0.1);
}

.cta-section {
  width: min(980px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 82px 0 106px;
  text-align: center;
}

.cta-section h2 {
  margin: 0 auto;
}

.cta-section p {
  max-width: 720px;
  margin: 26px auto 32px;
  font-size: 1.08rem;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(15, 17, 20, 0.78);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  color: var(--ink);
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(155, 124, 255, 0.86);
  background: #0d0f13;
  box-shadow: 0 0 0 3px rgba(155, 124, 255, 0.18);
}

.lead-form textarea {
  resize: vertical;
}

.lead-message,
.lead-form button,
.form-status {
  grid-column: 1 / -1;
}

.lead-form button {
  width: 100%;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.form-status.success {
  color: #a7f0c1;
}

.form-status.error {
  color: #ff8a8a;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  padding: 28px 18px 40px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 120px;
    grid-template-columns: 1fr;
  }

  .narrative-section,
  .setup-section,
  .sync-section,
  .proof-section {
    grid-template-columns: 1fr;
  }

  .sync-section .wide-shot {
    order: 2;
  }

  .phone-stack {
    min-height: 520px;
  }

  .hero-setup-card {
    width: min(760px, 100%);
  }

  .setup-copy {
    position: static;
  }

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

@media (max-width: 560px) {
  .brand span {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.8rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-setup-card {
    padding: 8px;
  }

  .setup-tablet {
    padding: 12px;
  }

  .setup-camera span {
    border-width: 8px;
    box-shadow: inset 0 0 0 7px #322653;
  }

  .section {
    padding: 74px 0;
  }

  .phone-stack {
    min-height: 460px;
  }

  .phone {
    width: 70%;
    border-radius: 22px;
  }

  .phone-front {
    right: 0;
  }

  .phone-back {
    left: 0;
  }

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

  .feature-grid article {
    min-height: 220px;
  }

  .setup-steps article {
    min-height: 0;
    padding: 24px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

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

  .js-loop-video {
    display: none;
  }

  .video-fallback {
    display: block;
  }

  .primary-action,
  .secondary-action,
  .feature-grid article,
  .setup-steps article,
  .phone,
  .phone-stack,
  .wide-shot,
  .controls-shot,
  .site-header nav a,
  .hero-setup-card {
    animation: none;
    transition: none;
  }
}
