/* ── Glowmory — neon memory puzzle ──────────────────────────────────────── */

:root {
  --bg: #12141c;
  --bg-raise: #191c27;
  --bg-card: #1c1f2c;
  --line: #2a2e3f;
  --cyan: #33e0ff;
  --magenta: #ff4fd8;
  --amber: #ffc247;
  --ink: #f4f5fb;
  --muted: #9aa0b5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); }
a:hover { color: var(--ink); }

::selection { background: #ff4fd855; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: #12141cdd;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.08rem;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line), 0 0 14px -2px #33e0ff66;
}

.brand .glow-o { color: var(--cyan); }

.topnav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.topnav a:hover { color: var(--cyan); }

/* ── Hero (landing) ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 6.5rem) 1.25rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 22% 8%,  #33e0ff17 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 80% 14%, #ff4fd814 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 55% 92%, #ffc2470f 0%, transparent 70%),
    var(--bg);
}

.hero-icon {
  width: clamp(96px, 18vw, 132px);
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 24%;
  box-shadow:
    0 0 0 1px #33e0ff44,
    0 0 40px -6px #33e0ff55,
    0 0 90px -12px #ff4fd844,
    0 18px 45px -18px #000;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero h1 .glow-o {
  color: var(--cyan);
  text-shadow: 0 0 24px #33e0ff88;
}

.tagline {
  margin-top: 0.7rem;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 56ch;
  margin: 1.3rem auto 0;
  color: var(--muted);
}

/* store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(160deg, #46e6ff 0%, var(--cyan) 45%, #14a8c8 100%);
  color: #06222b;
  border: 1px solid #7deeff;
  box-shadow: 0 6px 26px -8px #33e0ff99, inset 0 1px 0 #ffffff55;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
  transform: translateY(-2px);
  color: #06222b;
  box-shadow: 0 10px 34px -8px #33e0ffcc, inset 0 1px 0 #ffffff55;
}

.btn-play svg { width: 28px; height: 28px; flex-shrink: 0; }

.btn-play .lines {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-play .lines small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.btn-play .lines strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  border: 1px dashed #ff4fd866;
  color: var(--magenta);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: #ff4fd80d;
}

.badge-soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px 1px #ff4fd8aa;
}

/* ── Screenshots ────────────────────────────────────────────────────────── */

.shots {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
}

.shots-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  justify-items: center;
}

.phone {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(165deg, #232739, #14161f);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px -20px #000, 0 0 32px -14px #33e0ff44;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone:nth-child(2) { box-shadow: 0 22px 50px -20px #000, 0 0 32px -14px #ff4fd844; }
.phone:nth-child(3) { box-shadow: 0 22px 50px -20px #000, 0 0 32px -14px #ffc24744; }

.phone:hover { transform: translateY(-6px); }

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2400;
  object-fit: cover;
  border-radius: 21px;
}

.phone figcaption {
  padding: 0.7rem 0.3rem 0.35rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 2.2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}

.feature {
  padding: 1.4rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover { transform: translateY(-3px); }

.feature h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-grid .feature:nth-child(3n+1):hover { border-color: #33e0ff66; }
.feature-grid .feature:nth-child(3n+2):hover { border-color: #ff4fd866; }
.feature-grid .feature:nth-child(3n):hover   { border-color: #ffc24766; }

.feature .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.5rem;
  transform: translateY(-1px);
}

.dot--cyan    { background: var(--cyan);    box-shadow: 0 0 10px #33e0ff88; }
.dot--magenta { background: var(--magenta); box-shadow: 0 0 10px #ff4fd888; }
.dot--amber   { background: var(--amber);   box-shadow: 0 0 10px #ffc24788; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.4rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-bottom: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

footer .copy a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: #9aa0b555;
}

footer .copy a:hover { color: var(--amber); }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.legal .effective {
  margin: 0.6rem 0 2.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
}

.legal h2:target { color: var(--amber); }

.legal p { margin-bottom: 0.9rem; }

.legal ul {
  margin: 0 0 1rem 1.3rem;
}

.legal li { margin-bottom: 0.4rem; }

.legal strong { color: var(--ink); }

.legal .note {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  font-size: 0.95rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .shots-row { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
  .topnav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .feature, .btn-play { transition: none; }
}
