/* ==========================================================================
   Odyz — self-hosted static site
   Design tokens first: change these and the whole site follows.
   ========================================================================== */

:root {
  /* Brand */
  --bg:            #121212;
  --bg-deep:       #000000;
  --surface:       #171717;
  --surface-2:     #1d1d1d;
  --line:          rgba(255, 255, 255, 0.08);

  --text:          #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.62);
  --text-faint:    rgba(255, 255, 255, 0.38);

  --accent:        #bb73ff;
  --accent-deep:   #9f1fc2;
  --accent-soft:   rgba(187, 115, 255, 0.16);
  --highlight:     #f1f58c;

  /* Type */
  --font: "Satoshi", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --radius: 28px;
  --radius-sm: 18px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #000; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #12061f;
  font-weight: 700; font-size: 15px; letter-spacing: -0.2px;
  padding: 13px 30px; border-radius: 999px; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 8px 30px -10px rgba(187, 115, 255, 0.8);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(187, 115, 255, 0.95); }
.btn-sm  { padding: 9px 22px; font-size: 14px; }
.btn-lg  { padding: 17px 44px; font-size: 18px; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }

.eyebrow {
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700; letter-spacing: -1px;
  max-width: 30ch;
  margin-bottom: 56px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 26px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(187, 115, 255, 0.28);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 0 40px -12px rgba(187, 115, 255, 0.55);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nav-wrap.is-scrolled .nav { box-shadow: 0 0 22px -14px rgba(187, 115, 255, 0.5); }

.nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.5px; color: var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: block; padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: #12061f; background: var(--accent); font-weight: 700; }
.nav-links-cta { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 38px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--accent); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { width: 100%; justify-content: space-between; padding: 10px 10px 10px 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #151515;
    border: 1px solid var(--line); border-radius: 22px; padding: 10px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 16px; text-align: center; }
  .nav-links-cta { display: block; margin-top: 6px; }
  .nav-links-cta a {
    background: var(--accent); color: #12061f; font-weight: 700;
  }
  .nav-links-cta a:hover { color: #12061f; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 170px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(187, 115, 255, 0.16), transparent 62%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-stamp { width: clamp(110px, 13vw, 160px); filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.hero-wordmark {
  font-size: clamp(38px, 5vw, 62px); font-weight: 900;
  letter-spacing: -2px; color: var(--accent);
  margin: 18px 0 clamp(60px, 9vw, 130px);
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 86px);
  font-weight: 900; letter-spacing: -2.4px; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 40px;
}
.hero .btn { transition-delay: .1s; }

/* Row of phones on the shelf */
.hero-shelf {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin-top: clamp(50px, 7vw, 90px);
  padding-inline: var(--gutter);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-shelf .phone { flex: 0 0 auto; }
.phone--sm { width: clamp(90px, 12vw, 178px); opacity: .55; }
.phone--md { width: clamp(105px, 14vw, 205px); opacity: .8; }
.phone--lg { width: clamp(125px, 16.5vw, 240px); }

/* Shared phone chrome */
.phone {
  position: relative; border-radius: 12%/5.6%;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.1), 0 26px 60px -22px rgba(0,0,0,.9);
}
.phone img { width: 100%; }

/* ==========================================================================
   3D story section
   ========================================================================== */
.story { padding: clamp(90px, 13vw, 170px) 0 0; }
.story-title {
  font-size: clamp(24px, 3vw, 40px); font-weight: 700;
  letter-spacing: -0.8px; max-width: 24ch;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.story-visual { position: sticky; top: 130px; display: flex; justify-content: center; }
/* The phone-in-hand render. Images are pre-composited (tools/build-assets.py),
   so there is no CSS device frame here — just a crossfade between the three. */
.story-hand {
  position: relative; width: min(440px, 92%);
  aspect-ratio: 744 / 1008;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .75));
}
.story-hand img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .6s var(--ease);
}
.story-hand img.is-active { opacity: 1; }

.story-steps { display: flex; flex-direction: column; }
.story-step {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 34ch;
  opacity: .28; transition: opacity .5s var(--ease);
}
.story-step.is-active { opacity: 1; }
.lede { font-size: clamp(18px, 1.5vw, 23px); font-weight: 500; line-height: 1.45; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { position: static; }
  .story-hand { width: min(380px, 86%); margin-inline: auto; }
  .story-steps { gap: 46px; margin-top: 44px; }
  .story-step { min-height: 0; opacity: 1; max-width: none; text-align: center; margin-inline: auto; }
}

/* ==========================================================================
   Features bento
   ========================================================================== */
.features { padding: clamp(90px, 13vw, 170px) 0; }
.bento {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 44px);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: rgba(187, 115, 255, 0.35); transform: translateY(-3px); }
.card--wide { grid-column: 1 / -1; }
.card h3 {
  font-size: clamp(18px, 1.55vw, 24px); font-weight: 500;
  line-height: 1.35; letter-spacing: -0.3px;
  max-width: 44ch;
}
.card h3 strong { font-weight: 700; }
.tint-light { color: var(--highlight); }
.tint-dark  { color: var(--accent); }

.card-media { margin-top: auto; padding-top: clamp(28px, 4vw, 52px); }
.card-media--row {
  display: flex; gap: clamp(12px, 2vw, 30px);
  justify-content: center; align-items: flex-end;
  flex-wrap: wrap;
}
.card-media--row .phone { width: clamp(120px, 15vw, 200px); }
.card-media .phone { margin-inline: auto; width: min(230px, 70%); }

/* Row of country flags, lifted straight out of the passport screen. */
.flag-strip {
  width: min(420px, 100%); margin-inline: auto; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.rating { text-align: left; }
.rating-score {
  font-size: clamp(48px, 5.5vw, 78px); font-weight: 700;
  letter-spacing: -2px; color: var(--accent); line-height: 1;
}
.rating-stars { color: var(--accent); font-size: 26px; letter-spacing: 6px; margin-top: 10px; }

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
}

/* ==========================================================================
   Stamps marquee
   ========================================================================== */
.stamps {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.stamps-marquee {
  position: absolute; inset: 0 0 auto 0;
  height: clamp(400px, 48vw, 640px);
  display: flex; gap: clamp(14px, 2vw, 30px); justify-content: center;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent 100%);
  pointer-events: none;
}
.stamps-col { flex: 0 0 clamp(88px, 11vw, 150px); }
.stamps-col-inner { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.stamps-col img { width: 100%; height: auto; border-radius: 3px; }
.stamps .container { position: relative; z-index: 1; padding-top: clamp(400px, 48vw, 640px); }
.stamps .section-title { margin-bottom: 0; }

@keyframes marquee-up   { from { transform: translateY(0); }     to { transform: translateY(-50%); } }
@keyframes marquee-down { from { transform: translateY(-50%); }  to { transform: translateY(0); } }

/* ==========================================================================
   Testimonials / stats / press
   ========================================================================== */
.social { padding: clamp(70px, 9vw, 120px) 0 clamp(90px, 13vw, 170px); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; margin-bottom: clamp(50px, 7vw, 90px);
}
.stats li { padding: 10px 6px; }
.stats li + li { border-left: 1px solid var(--line); }
.stat-num {
  display: block; font-size: clamp(34px, 4.6vw, 66px); font-weight: 700;
  letter-spacing: -2px; color: var(--accent); line-height: 1.05;
}
.stat-label { display: block; font-size: 14px; color: var(--text-muted); margin-top: 6px; }

.reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 8px 0 clamp(60px, 8vw, 100px);
}
.reviews-track { display: flex; gap: 22px; width: max-content; animation: marquee-x 42s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.review {
  flex: 0 0 min(420px, 78vw);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 28px;
}
.review p { font-size: 16px; color: rgba(255,255,255,.88); font-style: italic; }
.review-by { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review-by img { border-radius: 50%; }
.review-by span { color: var(--accent); font-weight: 700; font-size: 15px; }

.press {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3.4vw, 48px);
}
.press-body { border-left: 2px solid var(--accent); padding-left: clamp(18px, 2.4vw, 30px); }
.press h3 { font-size: clamp(18px, 1.6vw, 25px); font-weight: 500; letter-spacing: -0.3px; margin-bottom: 16px; }
.press blockquote { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.press-by { margin-top: 16px; font-size: 14px; color: var(--text-faint); }



/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 0 0 clamp(90px, 13vw, 170px); }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 500;
  transition: color .2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent); }
.acc-icon {
  flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.acc-item[open] .acc-icon { transform: rotate(-135deg) translate(-3px, -3px); }
.acc-body { padding: 0 4px 28px; max-width: 72ch; color: var(--text-muted); font-size: 16px; }

.faq-cta { margin-top: 44px; }

/* ==========================================================================
   Download
   ========================================================================== */
.download { padding: 0 0 clamp(90px, 13vw, 160px); }
.download-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 5vw, 70px);
  align-items: center; overflow: hidden;
}
.download-card::after {
  content: ""; position: absolute; right: -12%; top: -40%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(187,115,255,.22), transparent 66%);
  pointer-events: none;
}
.download-copy { position: relative; z-index: 1; }
.download-copy h2 {
  font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; letter-spacing: -1px;
  max-width: 16ch; margin: 26px 0 34px;
}
.qr { border-radius: 12px; background: #fff; padding: 10px; }
.download-visual .phone { width: clamp(180px, 22vw, 280px); }

@media (max-width: 800px) {
  .download-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .download-copy h2 { margin-inline: auto; }
  .qr { margin-inline: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--bg-deep); padding: clamp(50px, 7vw, 80px) 0 30px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .nav-brand { font-size: 24px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; max-width: 30ch; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Legal pages (privacy.html / terms.html)
   ========================================================================== */
.legal { padding: 160px 0 clamp(80px, 10vw, 130px); }
.legal h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -1.6px; margin-bottom: 10px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 48px; }
.legal-body { max-width: 74ch; color: var(--text-muted); font-size: 16px; }
.legal-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 40px 0 12px; letter-spacing: -0.4px; }
.legal-body p, .legal-body li { margin-bottom: 12px; line-height: 1.75; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body a { color: var(--accent); }
.legal-body .lead { margin-bottom: 28px; }
.legal-body h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 26px 0 8px; letter-spacing: -0.2px; line-height: 1.4; }
.legal-body ol { list-style: decimal; padding-left: 22px; margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; }
