:root {
  --bg-top: #1c1a1c;
  --bg-mid: #381a38;
  --bg-bottom: #2b053d;
  --magenta: #f226b5;
  --yellow: #d9e00d;
  --lime: #66d621;
  --highlight: #21d13e;
  --do-it: #00ff12;
  --timer-pill: #162a18;
  --dropped: #d10f0f;
  --card-fill: rgba(255, 255, 255, 0.21);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --radius: 28px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(
    135deg,
    var(--bg-top) 0%,
    var(--bg-mid) 50%,
    var(--bg-bottom) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card-fill);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--yellow) 40%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
}

.cta-row {
  margin-top: 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  background: var(--highlight);
  padding: 14px 22px;
  border-radius: 999px;
}

/* Phone mock */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -18%;
  background: linear-gradient(135deg, var(--magenta), var(--lime));
  opacity: 0.28;
  filter: blur(48px);
  border-radius: 50%;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 280px;
}

.phone-bezel {
  background: #0a0a0a;
  border-radius: 40px;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-screen {
  position: relative;
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #30512b 0%, #318324 50%, #0fd615 100%);
}

.island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 3;
}

.feed-header {
  padding: 42px 12px 10px;
  background: rgba(20, 20, 22, 0.55);
  backdrop-filter: blur(16px);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatars {
  display: flex;
  padding-right: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #d9d9d9;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.avatar-overlap {
  margin-left: -10px;
}

.avatar-sm {
  width: 22px;
  height: 22px;
  border-width: 0;
}

.timer-pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--timer-pill);
  padding: 4px 10px;
  border-radius: 999px;
}

.close {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.85;
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.feed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 12px 10px;
  min-height: 0;
  overflow: hidden;
}

.catch-msg {
  width: 85%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.catch-msg .avatar {
  width: 36px;
  height: 36px;
  border: 0;
}

.catch-msg p {
  margin: 0;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.pass-card {
  width: 85%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px;
  border: 3px solid var(--do-it);
}

.pass-card.done {
  background: rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.pass-who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pass-photo {
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3eee6;
}

.pass-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pass-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.pass-clock {
  font-variant-numeric: tabular-nums;
}

.status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #33c747;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.emoji-row {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.emoji-row.outgoing {
  justify-content: flex-end;
  padding-left: 40px;
}

.emoji-row.incoming {
  justify-content: flex-start;
  padding-right: 40px;
}

.emoji-bubble {
  font-size: 32px;
  line-height: 1;
}

.avatar-msg {
  width: 28px;
  height: 28px;
  border: 0;
}

.turn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 16px;
  background: rgba(0, 0, 0, 0.45);
}

.turn-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.turn-info strong {
  font-size: 0.85rem;
}

.turn-info span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.do-it {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  background: var(--do-it);
  padding: 8px 14px;
  border-radius: 999px;
}

/* How it works */

.how,
.game {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 88px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--yellow) 40%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lede {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  background: var(--card-fill);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  color: #000;
  background: var(--highlight);
}

.steps h3,
.card h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.steps p,
.card p:not(.card-emoji) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Game cards */

.cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--card-fill);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.card-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.closer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 88px;
  text-align: center;
}

.closer-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 22em;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--yellow) 40%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer .brand span {
  font-size: 1rem;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Responsive */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 28px;
    padding-bottom: 64px;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .steps,
  .cards {
    grid-template-columns: 1fr;
  }

  .how,
  .game,
  .closer {
    text-align: center;
  }

  .steps li,
  .card {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .nav {
    padding-inline: 16px;
  }

  .hero,
  .how,
  .game,
  .closer,
  .footer {
    padding-inline: 16px;
  }

  .phone {
    width: 250px;
  }

  .phone-screen {
    height: 520px;
  }

  .pass-photo {
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
