/* ============ Base ============ */
:root {
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --text: #f2f2f7;
  --text-dim: #9a9aad;
  --accent: #2b6cf0;
  --accent-2: #35d6f5;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 20px;
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Media placeholders (replace with real assets) ============ */
.media-slot {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.02) 12px 24px),
    linear-gradient(160deg, #1e1e2e, #12121a);
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: .78rem;
  overflow: hidden;
}
.media-slot::after {
  content: "▶ " attr(data-label);
  padding: .4em .9em;
  background: rgba(0,0,0,.45);
  border-radius: 99px;
  white-space: nowrap;
}
.media-slot.alt { background: linear-gradient(160deg, #24203a, #161225); }
.nav-icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }
.slot-video { width: 100%; height: 100%; border-radius: 0; }
.slot-photo { position: absolute; inset: 0; border-radius: 0; }
.slot-card { aspect-ratio: 4 / 3; margin-bottom: 1rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10,10,15,.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 99px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(43,108,240,.45); }
.btn-small { padding: .5em 1.2em; font-size: .9rem; }
.btn-big { padding: .85em 2.2em; font-size: 1.1rem; }

.appstore-badge { color: #fff; display: inline-block; line-height: 0; }
.appstore-badge .badge-bg { fill: #fff; }
.appstore-badge .badge-fg { fill: #000; }
.appstore-badge:hover { opacity: .85; }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero .sub { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34rem; margin-bottom: 2rem; }

.cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.rating { display: flex; flex-direction: column; gap: .1rem; }
.stars { color: #ffd60a; font-size: 1.1rem; letter-spacing: .1em; }
.star-dim { opacity: .35; }
.rating-text { color: var(--text-dim); font-size: .85rem; }

/* Phone frame */
.hero-media { display: flex; justify-content: center; }
.phone {
  width: min(268px, 70vw);
  aspect-ratio: 472 / 960; /* hero-demo.mp4 content area — its 34px side bars get cropped by object-fit: cover */
  border-radius: 44px;
  border: 10px solid #26262f;
  background: #000;
  padding-top: 16px; /* keeps the app's top buttons clear of the corner rounding */
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(53,214,245,.15);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vh, 5.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: .6rem; }

/* ============ Before / After ============ */
.compare {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1072 / 1067;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.compare-before, .compare-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}
.compare-after-wrap .compare-after { position: absolute; inset: 0; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-handle span {
  position: absolute;
  background: #fff;
  color: #111;
  font-size: .8rem;
  font-weight: 700;
  padding: .45em .6em;
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  white-space: nowrap;
}

/* ============ Features grid ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(43,108,240,.6); }
.card video, .card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: block;
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--text-dim); font-size: .93rem; }

/* ============ How it works ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps p { color: var(--text-dim); font-size: .92rem; }

/* ============ Reviews ============ */
.review { display: flex; flex-direction: column; gap: .6rem; }
.review .stars { font-size: .95rem; }
.review blockquote { font-size: .95rem; color: var(--text); }
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review figcaption { color: var(--text-dim); font-size: .82rem; margin-top: auto; }
.review cite { font-style: normal; font-weight: 600; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 1rem 1.3rem;
}
.faq-list details[open] { border-color: rgba(43,108,240,.6); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--text-dim); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-dim); font-size: .95rem; padding-top: .7rem; }

/* ============ Final CTA ============ */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(43,108,240,.3), transparent);
  border-radius: var(--radius);
}
.final-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.final-cta p { color: var(--text-dim); margin: .8rem 0 2rem; }

/* ============ Footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--text-dim);
  font-size: .9rem;
}
.footer nav { display: flex; gap: 1.4rem; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
}
