/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

:root {
  --bg:      #F5F4F2;
  --text:    #1A1A18;
  --muted:   #8C8A82;
  --accent:  #E97459;
  --surface: #E8E6E0;

  --border: color-mix(in srgb, var(--muted) 30%, transparent);
  --hairline: color-mix(in srgb, var(--text) 8%, transparent);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;

  --pad-y: clamp(64px, 8vw, 120px);
  --pad-x: clamp(20px, 4vw, 40px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow--inverse {
  color: rgba(245,244,242,0.85);
  border-color: rgba(245,244,242,0.25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
}
.nav__logo {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); border-radius: 50%;
  position: relative;
}
.nav__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.nav__name { font-style: italic; }
.nav__links {
  display: none;
  gap: 32px;
  font-size: 14px; color: var(--muted);
}
.nav__links a { transition: color .2s ease; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 18px; font-size: 14px; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--hairline);
}
.section--surface { background: var(--surface); border-top: 1px solid var(--border); }
.section--accent {
  background: var(--text); color: var(--bg);
  border-top: none;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.section__title em { font-style: italic; color: var(--accent); }
.section__title--inverse { color: var(--bg); }
.section__lede {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  margin: 0;
}
.section__lede--inverse { color: rgba(245,244,242,0.7); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--pad-y); }
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1080px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 24px;
}
.hero__title em { font-style: italic; color: var(--accent); font-weight: 700; }
.hero__lede {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px;
}
.hero__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 14px; color: var(--muted);
}
.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------- Phone mockup ---------- */
.hero__phone {
  margin: 0;
  display: flex; justify-content: center;
}
.phone {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19;
  background: var(--text);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 30px 80px -20px rgba(26,26,24,0.35),
    0 0 0 1px rgba(26,26,24,0.05);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: var(--text);
  border-radius: 0 0 16px 16px; z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #FFF8F2 0%, #F5F4F2 60%, #E8E6E0 100%);
  border-radius: 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px 18px 18px;
}
.board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}
.bonbon {
  border-radius: 30%;
  position: relative;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,0.12), inset 2px 3px 0 rgba(255,255,255,0.5);
  transform: rotate(var(--r, 0deg));
}
.bonbon::after {
  content: ""; position: absolute;
  top: 18%; left: 22%; width: 24%; height: 18%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  filter: blur(1px);
}
.b1 { background: #E97459; --r: -4deg; }
.b2 { background: #F2C14E; --r: 3deg; }
.b3 { background: #B9C7A4; --r: -2deg; }
.b4 { background: #E97459; --r: 5deg; }
.b5 { background: #C68FBE; --r: -3deg; }
.b6 { background: #F2C14E; --r: 1deg; }
.b7 { background: #B9C7A4; --r: 4deg; }
.b8 { background: #E97459; --r: -2deg; }
.b9 { background: #C68FBE; --r: 3deg; }

.phone__hud {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 4px 0;
}
.phone__score {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--text);
  font-style: italic;
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.strip__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
  padding: 22px 0;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .features { grid-template-columns: 1fr 1fr 1fr; } }

.feature {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  transition: background .3s ease;
}
.feature:hover { background: var(--surface); }
.feature__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Gameplay ---------- */
.gameplay {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) { .gameplay { grid-template-columns: 1fr 1fr; } }
.gameplay .section__title { margin-bottom: 16px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; }
.steps li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.gameplay__demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  aspect-ratio: 1;
  padding: 8px;
}
.dot {
  border-radius: 30%;
  position: relative;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,0.1), inset 2px 3px 0 rgba(255,255,255,0.45);
}
.dot::after {
  content: ""; position: absolute;
  top: 18%; left: 22%; width: 24%; height: 18%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
}
.dot--coral { background: var(--accent); animation: pop 1.6s ease-in-out infinite; }
.dot--coral:nth-child(3) { animation-delay: 0s; }
.dot--coral:nth-child(4) { animation-delay: .15s; }
.dot--coral:nth-child(5) { animation-delay: .3s; }
.dot--red    { background: #C44A3A; }
.dot--yellow { background: #F2C14E; }
.dot--green  { background: #B9C7A4; }
.dot--purple { background: #C68FBE; }

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.demo-caption {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .reviews { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .reviews { grid-template-columns: 1fr 1fr 1fr; } }

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 0;
}
.review blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.review figcaption {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; color: var(--muted);
}
.stars { color: var(--accent); letter-spacing: 0.08em; }
.review figcaption strong { color: var(--text); font-weight: 500; }

/* ---------- Download ---------- */
.download {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) { .download { grid-template-columns: 1fr auto; } }

.download__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.store {
  display: inline-flex; flex-direction: column;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(245,244,242,0.25);
  background: rgba(245,244,242,0.04);
  min-width: 180px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.store:hover { background: var(--accent); border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.store__small {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,244,242,0.6);
}
.store:hover .store__small { color: rgba(26,26,24,0.7); }
.store__big {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 22px;
  margin-top: 2px;
  color: var(--bg);
}
.store:hover .store__big { color: var(--text); }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 760px;
  margin: 40px auto 0;
}
.faq__item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--accent);
  transition: transform .25s ease;
  font-weight: 400;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 14px 0 0; color: var(--muted); font-size: 15px;
  max-width: 640px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic; font-weight: 500; color: var(--text);
}
.footer__links {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center;
}
.footer__links a { transition: color .2s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { margin: 0; }
@media (min-width: 768px) {
  .footer__copy { text-align: right; }
}
