:root {
  --bg: #fbf7f0;
  --surface: rgba(255, 253, 248, 0.82);
  --surface-strong: #fffdf8;
  --surface-soft: #f1ece2;
  --line: rgba(74, 68, 88, 0.12);
  --text: #2f2a3a;
  --muted: #7b7588;
  --coral: #e07a5f;
  --coral-light: #ffb5a7;
  --coral-pale: #ffd8b5;
  --mint: #c4eccb;
  --lavender: #d8cfef;
  --cyan: #a8dadc;
  --yellow: #ffe066;
  --shadow: 0 24px 80px rgba(72, 58, 37, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 122, 95, 0.24), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 224, 102, 0.18), transparent 18%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 24%, #fffaf1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 68, 88, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 68, 88, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
  z-index: -1;
}

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

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

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1100px);
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(71, 57, 47, 0.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topbar.scrolled {
  transform: translateY(4px);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 36px rgba(71, 57, 47, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--coral);
  flex: 0 0 auto;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #d86c4f 0%, var(--coral) 50%, #ef9377 100%);
  box-shadow: 0 16px 30px rgba(224, 122, 95, 0.28);
}

.button.secondary,
.button.ghost {
  color: var(--text);
  border-color: rgba(74, 68, 88, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.section {
  padding: 84px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 216, 181, 0.55);
  border: 1px solid rgba(224, 122, 95, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 8vw, 6.5rem);
}

.lead,
.section-heading p,
.cta-panel p,
.showcase-copy p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero .lead {
  max-width: 58ch;
  margin: 24px 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 620px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-weight: 700;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(224, 122, 95, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.9;
}

.aura-coral {
  width: 280px;
  height: 280px;
  top: 40px;
  left: 30px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.55), rgba(224, 122, 95, 0));
}

.aura-yellow {
  width: 220px;
  height: 220px;
  right: 26px;
  bottom: 110px;
  background: radial-gradient(circle, rgba(255, 224, 102, 0.45), rgba(255, 224, 102, 0));
}

.device-card {
  position: absolute;
  inset: 0;
}

.phone-frame {
  position: absolute;
  top: 34px;
  left: 50%;
  width: min(78%, 390px);
  padding: 14px;
  border-radius: 40px;
  background: linear-gradient(180deg, #2f2a3a 0%, #1e1a26 100%);
  box-shadow: var(--shadow);
  transform: translateX(-42%) rotate(-7deg);
}

.phone-notch {
  width: 38%;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 0 0 18px 18px;
  background: #131019;
}

.phone-screen {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe5 100%);
}

.status-row,
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 18px 12px;
}

.status-pill,
.mini-chip,
.photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-pill.coral,
.photo-chip {
  color: var(--coral);
  background: rgba(255, 216, 181, 0.76);
}

.status-pill.mint {
  color: #3d7254;
  background: rgba(196, 236, 203, 0.9);
}

.photo-panel {
  position: relative;
  margin: 0 18px;
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe0fb 0%, #eaf4ff 42%, #f3ddbb 100%);
}

.photo-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.sky-glow {
  position: absolute;
  inset: auto auto 30px 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.sun {
  position: absolute;
  top: 48px;
  right: 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 240, 180, 0.95);
  box-shadow: 0 0 30px rgba(255, 224, 102, 0.6);
}

.building {
  position: absolute;
  bottom: 46px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #b76d53 0%, #9d5843 100%);
}

.building::after {
  content: "";
  position: absolute;
  inset: 18px 14px 22px;
  background-image: linear-gradient(rgba(255, 244, 229, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 244, 229, 0.55) 1px, transparent 1px);
  background-size: 22px 26px;
  opacity: 0.55;
}

.building-left {
  left: 30px;
  width: 126px;
  height: 136px;
}

.building-right {
  right: 26px;
  width: 156px;
  height: 166px;
}

.road {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 72%;
  height: 92px;
  transform: translateX(-50%);
  clip-path: polygon(46% 0, 54% 0, 78% 100%, 22% 100%);
  background: linear-gradient(180deg, #655f67 0%, #48424d 100%);
}

.road::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #fff6d7 0 14px, transparent 14px 28px);
}

.map-panel {
  position: relative;
  margin: 16px 18px 10px;
  height: 160px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(168, 218, 220, 0.52), rgba(196, 236, 203, 0.5));
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(47, 42, 58, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 42, 58, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fffdf8;
}

.pin-guess {
  top: 58px;
  left: 94px;
  background: var(--coral);
}

.pin-target {
  right: 88px;
  bottom: 26px;
  background: #4c8a65;
}

.controls-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 18px;
}

.mini-chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.mini-chip.active {
  color: var(--text);
  background: rgba(196, 236, 203, 0.88);
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(68, 56, 39, 0.12);
}

.floating-card p,
.floating-card span,
.floating-card ol {
  margin: 0;
}

.score-card {
  top: 56px;
  right: 0;
  width: 190px;
}

.score-card strong,
.guess-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.28rem;
}

.score-card span,
.guess-card span,
.rank-card li em,
.board-note p,
.site-footer p,
.footer-copy {
  color: var(--muted);
}

.guess-card {
  left: 24px;
  bottom: 86px;
  width: 210px;
}

.rank-card {
  right: 24px;
  bottom: 24px;
  width: 224px;
}

.rank-card ol {
  list-style: none;
  padding: 12px 0 0;
}

.rank-card li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(74, 68, 88, 0.08);
}

.rank-card li:last-child {
  border-bottom: 0;
}

.rank-card li span,
.rank-card li em {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 0.84rem;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.metrics-strip > div,
.step-card,
.mode-card,
.quote-card,
.faq-list details,
.board-surface {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(68, 56, 39, 0.08);
}

.metrics-strip > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 24px;
}

.metric-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-label {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.steps-grid,
.modes-grid,
.quote-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

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

.step-card,
.mode-card,
.quote-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(224, 122, 95, 0.86);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.step-card h3,
.mode-card h3 {
  margin: 0 0 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.step-card p,
.mode-card p,
.quote-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.modes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 190px;
  border-radius: 50%;
  opacity: 0.45;
}

.tint-coral::before {
  background: radial-gradient(circle, rgba(224, 122, 95, 0.38), rgba(224, 122, 95, 0));
}

.tint-mint::before {
  background: radial-gradient(circle, rgba(196, 236, 203, 0.6), rgba(196, 236, 203, 0));
}

.tint-lavender::before {
  background: radial-gradient(circle, rgba(216, 207, 239, 0.6), rgba(216, 207, 239, 0));
}

.tint-yellow::before {
  background: radial-gradient(circle, rgba(255, 224, 102, 0.6), rgba(255, 224, 102, 0));
}

.mode-tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.showcase-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.showcase-points > div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.64);
  border: 1px solid rgba(74, 68, 88, 0.08);
}

.showcase-points strong {
  display: block;
  font-size: 1.36rem;
  color: var(--coral);
}

.showcase-points span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.showcase-board {
  display: flex;
}

.board-surface {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 102, 0.25), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(241, 236, 226, 0.92));
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duel-lanes {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.duel-player {
  display: grid;
  gap: 10px;
}

.duel-player strong {
  font-size: 1.1rem;
}

.duel-player em {
  font-style: normal;
  color: var(--text);
}

.duel-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(74, 68, 88, 0.1);
  overflow: hidden;
}

.duel-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0%, #ef9b82 100%);
}

.duel-bar.rival span {
  background: linear-gradient(90deg, #4c8a65 0%, #7ac489 100%);
}

.board-note {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
}

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

.quote-card p {
  margin: 0 0 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.42rem;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-list details {
  padding: 18px 22px;
  border-radius: 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-section {
  padding-bottom: 10px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 181, 0.48), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(241, 236, 226, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 44px rgba(68, 56, 39, 0.1);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: end;
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid rgba(74, 68, 88, 0.1);
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-links {
  display: inline-flex;
  gap: 18px;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  width: min(calc(100% - 40px), 920px);
  margin: 42px auto 0;
}

.legal-card {
  padding: 36px;
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 44px rgba(68, 56, 39, 0.1);
}

.legal-card h1,
.legal-card h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.legal-card h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-card ul {
  padding-left: 20px;
}

@media (max-width: 1080px) {
  .hero,
  .showcase-section,
  .cta-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-grid,
  .steps-grid,
  .showcase-points,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 720px;
  }

  .site-footer {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .legal-main {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    border-radius: 26px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-points,
  .modes-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 680px;
  }

  .phone-frame {
    width: min(90%, 370px);
    transform: translateX(-50%) rotate(-4deg);
  }

  .score-card {
    right: 8px;
    top: 12px;
  }

  .guess-card {
    left: 8px;
    bottom: 124px;
  }

  .rank-card {
    width: min(220px, calc(100% - 16px));
    right: 8px;
    bottom: 12px;
  }

  .step-card,
  .mode-card,
  .quote-card,
  .legal-card,
  .cta-panel,
  .board-surface {
    padding: 24px;
  }
}