:root {
  --bg: #000000;
  --bg-elevated: #0d0d0d;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #00c853;
  --accent-bright: #16c35b;
  --accent-dim: rgba(0, 200, 83, 0.14);
  --radius: 18px;
  --max: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 17px;
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-self: end;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-accent {
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
}

.nav-links .btn-accent,
.nav-links .btn-accent:hover,
.nav-links .btn-accent:focus-visible {
  color: #000;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
}

h1 .line2 {
  color: var(--muted);
}

.lede {
  margin-top: 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  height: 56px;
  padding: 0 16px 0 14px;
  min-width: 190px;
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1a1a1a;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 2px;
  color: #000;
}

.phones {
  position: relative;
  height: 620px;
}

.phone {
  position: absolute;
  width: 270px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  border: 1px solid #3a3a3a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone img {
  width: 100%;
  border-radius: 30px;
  background: #000;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.phone.left {
  left: 0;
  top: 70px;
  rotate: -8deg;
  z-index: 1;
}

.phone.right {
  right: 8px;
  top: 18px;
  rotate: 7deg;
  z-index: 2;
}

.glow {
  position: absolute;
  inset: 80px 40px auto;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.marketing-stack {
  position: relative;
}

.marketing-shot {
  position: absolute;
  width: min(280px, 42vw);
  margin: 0;
  background: transparent;
  overflow: visible;
}

.marketing-shot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.marketing-shot.left {
  left: 0;
  top: 70px;
  rotate: -7deg;
  z-index: 1;
}

.marketing-shot.right {
  right: 8px;
  top: 18px;
  rotate: 7deg;
  z-index: 2;
}

.marketing-feature {
  width: min(320px, 100%);
  margin-inline: auto;
  background: transparent;
  overflow: visible;
}

.marketing-feature img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.camera-ai-carousel {
  width: min(340px, 100%);
  overflow: visible;
}

.camera-ai-carousel-stage {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: visible;
  margin-inline: auto;
  width: 78%;
}

.camera-ai-carousel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(10%) scale(0.9);
  transition: opacity 0.85s ease, transform 0.85s ease;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  z-index: 0;
}

.camera-ai-carousel-stage img.is-prev {
  opacity: 0.34;
  transform: translateX(-28%) scale(0.78) rotate(-7deg);
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.28));
}

.camera-ai-carousel-stage img.is-active {
  opacity: 1;
  transform: translateX(8%) scale(1) rotate(0deg);
  z-index: 2;
}

.camera-ai-carousel-stage img.is-next {
  opacity: 0.2;
  transform: translateX(34%) scale(0.74) rotate(5deg);
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.22));
}

.camera-ai-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.camera-ai-carousel-dots [role="tab"] {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
}

.camera-ai-carousel-dots [role="tab"].is-active {
  background: var(--accent);
}

.camera-ai-carousel-dots [role="tab"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .camera-ai-carousel-stage img {
    transition: none;
  }

  .camera-ai-carousel-stage img.is-prev,
  .camera-ai-carousel-stage img.is-next {
    display: none;
  }
}

/* Features */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2,
.legal h1,
.cta-block h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: visible;
}

.split .marketing-feature,
.split .camera-ai-carousel {
  overflow: visible;
}

.split + .split {
  margin-top: 96px;
}

.split.reverse .copy {
  order: 2;
}

.split h3 {
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.split p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
}

.phone-static {
  position: relative;
  width: min(300px, 100%);
  margin-inline: auto;
}

.phone-static .phone {
  position: relative;
  inset: auto;
  rotate: 0;
}

/* Steps */
.steps {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  min-height: 240px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 760px;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 62ch;
}

/* Bottom CTA */
.cta-block {
  text-align: center;
  padding: 88px 0 40px;
}

.cta-block p {
  color: var(--muted);
  margin: 16px auto 28px;
  max-width: 460px;
}

.cta-block .store-row {
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

/* Legal pages */
.legal {
  padding: 72px 0 96px;
  max-width: 760px;
}

.legal .meta {
  color: var(--muted);
  margin: 12px 0 32px;
}

.legal h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split.reverse .copy,
  .step-grid,
  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-inner {
    min-height: 64px;
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .phones {
    height: 460px;
    margin-top: 12px;
  }

  .marketing-shot {
    width: min(240px, 44vw);
  }

  .marketing-shot.left {
    left: 8%;
    top: 48px;
  }

  .marketing-shot.right {
    right: 8%;
    top: 8px;
  }

  .phone {
    width: 210px;
  }

  .phone.left {
    left: 8%;
    top: 48px;
  }

  .phone.right {
    right: 8%;
    top: 8px;
  }

  .split.reverse .copy {
    order: 0;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .phones {
    height: 390px;
  }

  .marketing-shot.left {
    display: none;
  }

  .marketing-shot.right {
    left: 50%;
    right: auto;
    translate: -50% 0;
    rotate: 0;
    width: min(260px, 78vw);
  }

  .phone.left {
    display: none;
  }

  .phone.right {
    left: 50%;
    right: auto;
    translate: -50% 0;
    rotate: 0;
    width: 230px;
  }
}
