/* ============================================================
   GameSweet — landing page
   Design system: deep navy, light text, teal + warm yellow accents.
   Display: Baloo 2 (rounded, heavy — echoes the wordmark)
   Body: Hanken Grotesk
   Mobile-first; restrained motion.
   ============================================================ */

:root {
  /* surface */
  --bg:        #0b0a18;
  --bg-deep:   #07060f;
  --bg-raise:  #131127;
  --line:      rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);

  /* ink */
  --ink:       #f4f3fa;
  --ink-soft:  #c5c3d6;
  --ink-mute:  #8d8ba6;

  /* accents — used sparingly */
  --teal:      #34e7c5;
  --teal-dim:  rgba(52,231,197,0.14);
  --yellow:    #ffce45;
  --yellow-dim:rgba(255,206,69,0.14);

  /* type */
  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  /* rhythm */
  --pad: clamp(20px, 6vw, 40px);
  --section-y: clamp(80px, 14vw, 168px);
  --maxw: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric base glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 78% -6%, rgba(52,231,197,0.10), transparent 60%),
    radial-gradient(800px 620px at 10% 18%, rgba(120,80,255,0.10), transparent 62%),
    radial-gradient(1000px 800px at 50% 120%, rgba(255,206,69,0.06), transparent 60%),
    var(--bg);
}

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--section-y); position: relative; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--teal);
}
.kicker--yellow { color: var(--yellow); }
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 9vw, 76px); letter-spacing: -0.02em; }
h2 { font-size: clamp(31px, 6.2vw, 54px); }
h3 { font-size: clamp(21px, 3vw, 27px); }

.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.body-copy {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.teal { color: var(--teal); }
.yellow { color: var(--yellow); }

/* ---------- App Store badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 12px 20px 12px 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}
.badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 16px 44px rgba(0,0,0,0.6), 0 0 0 4px rgba(52,231,197,0.12);
}
.badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.badge__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge__txt small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: #d8d8df; white-space: nowrap; }
.badge__txt strong { font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; letter-spacing: 0.01em; white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,10,24,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8,7,18,0.82);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.005em;
}
.wordmark__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #c08cff, #5fb4ff);
  display: grid; place-items: center;
  flex: none;
}
.wordmark__logo svg { width: 18px; height: 18px; fill: #1a1430; }
.nav .badge { padding: 8px 14px; border-radius: 11px; }
.nav .badge svg { width: 19px; height: 19px; }
.nav .badge__txt small { font-size: 9px; }
.nav .badge__txt strong { font-size: 15px; }
@media (max-width: 560px) {
  .nav .badge__txt small { display: none; }
}

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 2532;
  border-radius: 14% / 6.6%;
  padding: 2.6%;
  background:
    linear-gradient(150deg, #2a2740, #0d0c18 38%, #14121f 70%, #2a2740);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 40px 80px -28px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.5);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11.5% / 6%;
  overflow: hidden;
  background: #08070f;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* soft ambient glow halo behind a featured phone */
.phone-glow { position: relative; }
.phone-glow::before {
  content: "";
  position: absolute;
  inset: -14% -8% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow, rgba(52,231,197,0.22)), transparent 72%);
  filter: blur(8px);
}

/* status chip over/under a phone */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink-soft);
}
.chip svg { width: 15px; height: 15px; }
.chip--teal { color: var(--teal); border-color: rgba(52,231,197,0.35); background: var(--teal-dim); }
.chip--yellow { color: var(--yellow); border-color: rgba(255,206,69,0.35); background: var(--yellow-dim); }

/* ============================================================
   SECTIONS
   ============================================================ */

/* hero */
.hero { padding-top: clamp(48px, 8vw, 92px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 8vw, 72px);
  align-items: center;
}
.hero__cta { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__note { font-size: 14px; color: var(--ink-mute); }
.hero__phone { width: min(300px, 74vw); margin-inline: auto; --glow: rgba(120,90,255,0.30); }

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__phone { width: min(330px, 36vw); margin-inline: 0; margin-left: auto; }
  .hero__copy { max-width: none; }
}

/* moat / offline */
.moat { background: linear-gradient(180deg, transparent, rgba(7,6,15,0.6) 40%, transparent); }
.moat__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 8vw, 72px);
  align-items: center;
}
.moat__phone { width: min(290px, 72vw); margin-inline: auto; --glow: rgba(255,206,69,0.16); }
.moat__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (min-width: 860px) {
  .moat__grid { grid-template-columns: 0.92fr 1.08fr; }
  .moat__visual { order: -1; }
  .moat__phone { margin-inline: 0; width: min(300px, 32vw); }
}

/* two situations */
.situations__head { max-width: 30ch; }
.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 760px) { .panels { grid-template-columns: 1fr 1fr; gap: 26px; } }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.panel h3 { font-size: clamp(28px, 4.4vw, 40px); }
.panel p { color: var(--ink-soft); margin: 12px 0 0; max-width: 30ch; }
.panel .phone { width: min(248px, 60vw); margin-top: 30px; }
.panel__tag { margin-top: 18px; }

/* suite */
.suite__head { max-width: 30ch; }
.suite__copy { max-width: 52ch; }
.gallery {
  margin-top: clamp(44px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 30px);
}
.gallery .game { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gallery .phone { width: 100%; }
.game__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.game__label span { color: var(--ink-mute); font-family: var(--body); font-weight: 500; font-size: 13px; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px) clamp(20px,3vw,36px); }
  .gallery .game:nth-child(even) { transform: translateY(38px); }
}

/* people */
.people { background: linear-gradient(180deg, transparent, rgba(7,6,15,0.55), transparent); }
.people__inner {
  display: flex;
  justify-content: center;
  text-align: center;
}
.people__copy { max-width: 640px; }
.people__copy .kicker { justify-content: center; }
.people__copy h2 { font-size: clamp(34px, 6.6vw, 60px); max-width: 14ch; margin-inline: auto; }
.people__copy .body-copy {
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(17px, 2.3vw, 21px);
}

/* faq + closing */
.faq__head { max-width: 24ch; }
.faq__list { margin-top: clamp(34px, 5vw, 52px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 24px);
  text-align: left;
  padding: 26px 44px 26px 0;
  position: relative;
  cursor: pointer;
  display: block;
  letter-spacing: -0.005em;
}
.faq__q:hover { color: var(--teal); }
.faq__icon {
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.faq__icon::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq__icon::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.faq__item.open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.faq__a p {
  color: var(--ink-soft);
  margin: 0;
  padding: 0 48px 28px 0;
  max-width: 64ch;
  font-size: 16.5px;
}

.closing {
  text-align: center;
  margin-top: clamp(70px, 11vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.closing h2 { max-width: 18ch; }
.closing .badge { transform: scale(1.06); }

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  margin-top: var(--section-y);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot__made { color: var(--ink-mute); font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; }
.foot__made .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.foot__links { display: flex; gap: 24px; }
.foot__links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; transition: color .2s ease; }
.foot__links a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
