/* Fill The Gaps — site styles, mirroring the in-game Theme.swift palette */

:root {
  --bg-top: #3D1C82;
  --bg-bottom: #0F0A29;
  --gold: #FFD166;
  --pink: #FF3D94;
  --teal: #29E5C7;
  --green: #2EE58C;
  --flame: #FF9440;
  --ink: #0F0A29;
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.65);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-bottom);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Viewport-fixed gradient layer — same look as background-attachment: fixed
   without its mobile-Safari and compositing problems. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 55%);
}

/* Drifting orbs, like Theme.addBackground */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb:nth-child(1) { width: 180px; height: 180px; top: 8%;  left: 6%;  background: rgba(255, 61, 148, 0.07); }
.orb:nth-child(2) { width: 240px; height: 240px; top: 30%; right: 4%; background: rgba(41, 229, 199, 0.06); animation-delay: -4s; }
.orb:nth-child(3) { width: 140px; height: 140px; top: 62%; left: 12%; background: rgba(255, 209, 102, 0.06); animation-delay: -8s; }
.orb:nth-child(4) { width: 200px; height: 200px; top: 82%; right: 14%; background: rgba(255, 61, 148, 0.05); animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(36px, -48px); }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .tile { animation: none !important; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-weight: 800; letter-spacing: 0.06em; }
nav .links { display: flex; gap: 26px; }
nav .links a {
  color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
nav .links a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
header.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding: 64px 0 88px;
}
.tile-row { display: flex; gap: 8px; margin-bottom: 6px; }
.tile {
  width: 58px; height: 66px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 2.1rem; font-weight: 800; color: var(--ink);
  background: var(--gold);
  animation: bob 3s ease-in-out infinite;
}
.tile.gap { background: var(--teal); }
.tile:nth-child(2) { animation-delay: 0.12s; }
.tile:nth-child(3) { animation-delay: 0.24s; }
.tile:nth-child(4) { animation-delay: 0.36s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero .the {
  color: var(--gold); font-weight: 800; letter-spacing: 0.35em;
  font-size: 1.05rem; margin: 14px 0;
}
.hero p.tagline { font-size: 1.25rem; color: var(--text-dim); margin: 22px 0 34px; max-width: 30rem; }
.hero p.tagline strong { color: var(--text); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: scale(1.04); }
.store-badge svg { width: 22px; height: 22px; }
.hero-note { display: block; margin-top: 14px; font-size: 0.85rem; color: var(--text-dim); }

.hero .shot { justify-self: center; }
.phone {
  width: min(300px, 78vw); border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(255, 61, 148, 0.18);
  transform: rotate(2.5deg);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
h2 {
  font-size: 2rem; font-weight: 800; text-align: center; letter-spacing: 0.02em;
}
h2 .accent-teal { color: var(--teal); }
h2 .accent-pink { color: var(--pink); }
h2 .accent-gold { color: var(--gold); }
.section-sub { text-align: center; color: var(--text-dim); margin: 12px auto 48px; max-width: 34rem; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 20px; padding: 26px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.icon.gold  { background: rgba(255, 209, 102, 0.16); }
.icon.teal  { background: rgba(41, 229, 199, 0.16); }
.icon.pink  { background: rgba(255, 61, 148, 0.16); }
.icon.green { background: rgba(46, 229, 140, 0.16); }
.icon.flame { background: rgba(255, 148, 64, 0.16); }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Screenshots ---------- */
.shots { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.shots figure { text-align: center; }
.shots img {
  width: 230px; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.shots figcaption { margin-top: 14px; color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }

/* ---------- Daily banner ---------- */
.daily {
  background: linear-gradient(120deg, rgba(255, 61, 148, 0.14), rgba(41, 229, 199, 0.12));
  border: 1.5px solid var(--card-border); border-radius: 26px;
  padding: 44px 40px; text-align: center;
}
.daily h2 { margin-bottom: 12px; }
.daily p { color: var(--text-dim); max-width: 36rem; margin: 0 auto 26px; }
.streak-flame { font-size: 2rem; }

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 11px 26px; border-radius: 999px; border: 1.5px solid;
  transition: transform 0.15s ease;
}
.pill:hover { transform: scale(1.05); }
.pill.teal { color: var(--teal); border-color: var(--teal); background: rgba(41, 229, 199, 0.12); }
.pill.gold { color: var(--gold); border-color: var(--gold); background: rgba(255, 209, 102, 0.12); }
.pill.pink { color: var(--pink); border-color: var(--pink); background: rgba(255, 61, 148, 0.12); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 26px; padding: 44px; text-align: center;
}
.contact-card .big-icon { font-size: 2.6rem; margin-bottom: 18px; }
.contact-card h1 { font-size: 1.8rem; margin-bottom: 12px; }
.contact-card p { color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.contact-card .email {
  display: inline-block; margin: 10px 0 26px; font-size: 1.15rem; font-weight: 700;
  color: var(--teal); text-decoration: none;
}
.contact-card .email:hover { text-decoration: underline; }
.contact-meta { margin-top: 40px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px; padding: 34px 0 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.9rem;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  header.hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .tile-row, .hero .the { justify-content: center; }
  .tile-row { display: inline-flex; }
  .hero p.tagline { margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  nav .links { gap: 16px; }
  .tile { width: 46px; height: 54px; font-size: 1.7rem; }
}
