/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-raise: #131315;
  --fg: #f5f5f5;
  --fg-muted: rgba(245, 245, 245, 0.6);
  --fg-faint: rgba(245, 245, 245, 0.35);
  --border: rgba(245, 245, 245, 0.12);
  --border-strong: rgba(245, 245, 245, 0.22);
  --max-width: 1200px;
  --content-width: 620px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-gap: clamp(4rem, 12vh, 7rem);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global page shell ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* subtle off-black texture: soft vignette + faint grain, keeps the video frame the brightest thing on screen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(255, 255, 255, 0.035), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

p {
  margin: 0 0 1em;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--fg);
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--fg);
}

/* ---------- Layout shell ---------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
}

.brand img {
  height: 22px;
  width: auto;
  opacity: 0.95;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--fg);
  border-color: var(--border-strong);
}

.nav-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

.header-nav.desktop-only {
  display: none;
}

/* ---------- Two-column hero layout (index) ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.stage-inner {
  width: 100%;
  max-width: 340px;
}

.content-col {
  display: flex;
  flex-direction: column;
}

.hero {
  padding-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5em 1em;
  margin-top: 0.5rem;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 3px var(--border);
}

.section {
  padding: var(--section-gap) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ---------- Video frame ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-raise);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 90px -20px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}

.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1024;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Three steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
  background: rgba(245, 245, 245, 0.02);
}

.step-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}

.step p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--gutter) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fg-faint);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Privacy page ---------- */
.doc {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 0 var(--section-gap);
}

.doc .eyebrow {
  margin-top: 1rem;
}

.updated {
  color: var(--fg-faint);
  font-size: 0.85rem;
  margin-top: 2.5rem;
}

/* ---------- Desktop layout ---------- */
@media (min-width: 1000px) {
  .header-nav.desktop-only {
    display: inline-flex;
  }

  .layout {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .stage {
    position: sticky;
    top: 3rem;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .stage-inner {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 999px) {
  .stage-inner {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .video-frame {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
