/* Palette matches the app so the site and the product read as one thing:
   see index.html's boot-splash block and public/privacy.html. --surface and
   --border are the two tints the cards and callouts sit on; they exist as
   tokens so component styles never invent their own greys. */
:root {
  --bg: #0b0e14;
  --fg: #e8ecf4;
  --muted: #b7c0cf;
  --accent: #7c5cff;
  --link: #7ab8ff;
  --surface: #11151f;
  --surface-hi: #141926;
  --border: #1a1f2b;
  --border-hi: #2a3244;
  --fine: #7c8699;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  /* The screenshot strip breaks out of the content column with a negative
     inline margin measured in vw, which overshoots by the scrollbar width.
     Clipping here is cheaper than a scrollbar-width calculation, and nothing
     on this page is sticky. */
  overflow-x: hidden;
}

main { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Escapes the content column to the full viewport width. */
.bleed { margin-inline: calc(50% - 50vw); }

/* ---------- hero ---------------------------------------------------------
   Deliberately carries NO opacity animation. The <h1> is this page's Largest
   Contentful Paint element, and LCP does not count an element as painted
   while it is transparent — fading the headline in would degrade the exact
   metric this site exists to win. The ambient gradient does the moving. */

.hero {
  position: relative;
  text-align: center;
  padding: 76px 0 8px;
  isolation: isolate;
}

.hero > *:not(.glow) { position: relative; z-index: 1; }

.glow {
  position: absolute;
  z-index: 0;
  /* -20px, not a percentage: that exactly cancels main's gutter, so the glow
     reaches the viewport edges on a phone and stays inside the column on a
     desktop — without ever exceeding the viewport. A percentage inset here
     overflowed by 19px at 390px wide and made the whole page draggable
     sideways. */
  inset: -25% -20px auto;
  height: 560px;
  pointer-events: none;
  background:
    radial-gradient(38% 50% at 30% 42%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(34% 46% at 72% 28%, rgba(122, 184, 255, 0.2), transparent 70%);
  filter: blur(44px);
  /* transform-only, so it stays on the compositor and never triggers layout */
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.14); }
}

.hero .mark { border-radius: 22%; }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 1rem 0 0.75rem;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 auto;
}

.cta {
  display: inline-block;
  margin: 1.9rem 0 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45);
  filter: brightness(1.06);
}
.cta:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35); }

.fine { color: var(--fine); font-size: 0.85rem; }

/* ---------- promo clip ---------------------------------------------------
   No .phone frame around this one. The video already draws its own bezel and
   its own per-scene headline, so the frame the screenshots wear would put a
   second bezel around the first. 270px caps it at the source's 540px width on
   a 2x display, so it is never upscaled, and it sits in the same size family
   as the 240px screenshots below. */

.demo { margin: 40px 0 0; text-align: center; }

.clip {
  display: block;
  width: min(270px, 70vw);
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.demo .fine { margin-top: 12px; }

/* ---------- screenshot strip --------------------------------------------
   Full-bleed so it is never clipped by the content column, with the edges
   faded so the overflow reads as a scroller rather than as a mistake. */

.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  /* `safe` keeps the leftmost card reachable when the row is wider than the
     viewport; plain `center` would strand it in unscrollable overflow. */
  justify-content: safe center;
  padding: 48px 24px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shot {
  flex: 0 0 auto;
  width: 240px;
  margin: 0;
  scroll-snap-align: center;
}

.phone {
  border: 9px solid #1c2230;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.shot:hover .phone {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-hi);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.6);
}
.phone img { display: block; width: 100%; height: auto; }

.shot figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- content sections -------------------------------------------- */

section { margin: 76px 0; }
h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin-bottom: 1.25rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li { color: var(--muted); }
.steps .num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.steps strong { color: var(--fg); }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
}
.callout h2 { margin-top: 0; }
.callout p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- footer ------------------------------------------------------- */

.site-footer {
  margin-top: 88px;
  padding: 32px 20px 56px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--link); }
.site-footer p { color: var(--muted); font-size: 0.9rem; }

/* ---------- scroll reveals ----------------------------------------------
   The hidden start state is scoped to .js, which an inline script in <head>
   sets on first parse. Without JavaScript — or to a crawler that does not run
   it — every section renders normally. Hiding content behind script on a page
   whose whole purpose is being indexed would be self-defeating. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .glow { animation: none; }
}
