/* ─────────────────────────────────────────────────────────────
   Puzzle Alarm — Landing Page
   "Midnight Sunrise Glass UI"
   ───────────────────────────────────────────────────────────── */

:root {
  --bg-deep: #07111f;
  --bg-mid: #0d1b2e;
  --bg-card: #112036;
  --bg-surface: #152540;
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-fill: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --text-muted: #6e8ba0;

  --cyan: #00e5ff;
  --gold: #ffb703;
  --peach: #ff6b35;
  --mint: #00ffb2;
  --purple: #7c4dff;
  --blue: #0066ff;
  --red: #ff6b6b;

  --grad-cyan: linear-gradient(135deg, #00e5ff, #0066ff);
  --grad-gold: linear-gradient(135deg, #ffb703, #ff6b35);
  --grad-purple: linear-gradient(135deg, #7c4dff, #3d00bf);
  --grad-text: linear-gradient(100deg, #00e5ff 0%, #7c4dff 45%, #ffb703 100%);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font-display: "Sora", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px -8px rgba(0, 229, 255, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 229, 255, 0.3); }

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1160px, 92%); margin-inline: auto; }
.container-narrow { width: min(760px, 92%); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-cyan);
  z-index: 1000;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ───────────────────────────────────────────
   NAVBAR
   ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 18px 0;
  transition: padding 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(0, 229, 255, 0.5);
  display: grid; place-items: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-text span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-download { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-primary {
  background: var(--grad-cyan);
  color: #04101d;
  box-shadow: 0 12px 34px -10px rgba(0, 229, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(0, 229, 255, 0.7); }

.btn-ghost {
  background: var(--glass-fill);
  border-color: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); }

/* ───────────────────────────────────────────
   HERO
   ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 16s ease-in-out infinite;
}
.blob-a { width: 560px; height: 560px; background: rgba(0, 229, 255, 0.22); top: -180px; left: -140px; }
.blob-b { width: 480px; height: 480px; background: rgba(124, 77, 255, 0.28); bottom: -160px; right: -100px; animation-delay: -5s; }
.blob-c { width: 380px; height: 380px; background: rgba(255, 183, 3, 0.16); top: 34%; right: 30%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  font-size: 1.13rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 34px;
}
.typed { color: var(--cyan); font-weight: 600; }
.caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* ── Phone mockup ── */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }

.phone {
  position: relative;
  width: 280px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-card), 0 0 60px -12px rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(10px);
}
.phone-lg { width: 300px; }
.phone-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0a1424;
  aspect-ratio: 9 / 19;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3;
}
.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 42%, transparent 54%);
  z-index: 2;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit-1 { width: 430px; height: 430px; }
.orbit-2 { width: 540px; height: 540px; animation-direction: reverse; animation-duration: 40s; border-color: rgba(255, 183, 3, 0.16); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(13, 27, 46, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.8);
  animation: bob 5s ease-in-out infinite;
  font-size: 0.82rem;
  white-space: nowrap;
}
.float-chip .chip-icon { font-size: 1.25rem; }
.float-chip strong { display: block; font-size: 0.86rem; }
.float-chip small { color: var(--text-muted); }
.chip-a { top: 16%; left: 2%; animation-delay: -1.2s; }
.chip-b { bottom: 18%; right: 0; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 0; top: 8px; }
  30% { opacity: 1; }
  100% { opacity: 0; top: 26px; }
}

/* ───────────────────────────────────────────
   MARQUEE
   ─────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.marquee-group {
  display: flex;
  gap: 46px;
  padding-right: 46px;
  align-items: center;
  flex-shrink: 0;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.marquee-track i { color: var(--cyan); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ───────────────────────────────────────────
   SECTIONS
   ─────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: rgba(255, 255, 255, 0.02); border-block: 1px solid rgba(255, 255, 255, 0.06); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 220px at var(--mx, 50%) 0%, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.3); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--c) 55%, transparent);
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── How it works ── */
.steps { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 240px;
  max-width: 330px;
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.step:hover { transform: translateY(-8px); border-color: rgba(0, 229, 255, 0.4); box-shadow: var(--shadow-glow); }
.step-num {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cyan);
  opacity: 0.7;
}
.step-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.16), rgba(124, 77, 255, 0.14));
  border: 1px solid rgba(0, 229, 255, 0.3);
  animation: bob 5s ease-in-out infinite;
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 0.94rem; }
.step-arrow { font-size: 1.8rem; color: var(--cyan); font-weight: 700; flex-shrink: 0; animation: pulse-x 1.6s ease-in-out infinite; }
@keyframes pulse-x {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ── Puzzles ── */
.puzzles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.puzzle-card {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  overflow: hidden;
  color: #fff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}
.puzzle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 80% -10%, rgba(255, 255, 255, 0.28), transparent 55%);
}
.puzzle-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.7); }
.puzzle-symbol { font-size: 2.6rem; font-weight: 800; opacity: 0.9; line-height: 1; }
.puzzle-card h3 { font-family: var(--font-display); font-size: 1.25rem; position: relative; z-index: 1; }
.puzzle-card p { font-size: 0.92rem; opacity: 0.85; position: relative; z-index: 1; }
.puzzle-tag {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Showcase ── */
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.showcase-phone { display: grid; place-items: center; }
.showcase-side h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 12px;
  transition: opacity 0.25s;
}
.showcase-side > p { color: var(--text-secondary); margin-bottom: 28px; min-height: 4.4em; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  aspect-ratio: 9 / 14;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shot span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 8px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.shot:hover { transform: translateY(-5px); border-color: rgba(0, 229, 255, 0.5); }
.shot:hover img { transform: scale(1.06); }
.shot.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.4), 0 14px 34px -12px rgba(0, 229, 255, 0.5);
}

/* ── Stats band ── */
.stats-band {
  background: linear-gradient(120deg, rgba(124, 77, 255, 0.12), rgba(0, 229, 255, 0.12), rgba(255, 183, 3, 0.1));
  border-block: 1px solid var(--glass-border);
  padding: 64px 0;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat span { color: var(--text-secondary); font-size: 0.92rem; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq {
  border-radius: var(--radius-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq[open] { border-color: rgba(0, 229, 255, 0.45); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.35s, background 0.3s, border-color 0.3s;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.35s;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq[open] .faq-icon { transform: rotate(180deg); background: rgba(0, 229, 255, 0.15); border-color: var(--cyan); }
.faq[open] .faq-icon::after { transform: scaleY(0); }
.faq p { padding: 0 26px 22px; color: var(--text-secondary); font-size: 0.96rem; }

/* ── CTA ── */
.cta { position: relative; padding: 110px 0; overflow: hidden; }
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 20% 60%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(700px 340px at 80% 40%, rgba(124, 77, 255, 0.2), transparent 60%),
    radial-gradient(500px 300px at 55% 90%, rgba(255, 183, 3, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.cta-copy > p { color: var(--text-secondary); font-size: 1.08rem; margin-bottom: 34px; max-width: 34rem; }

.store-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}
.store-badge:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.6); box-shadow: 0 16px 40px -14px rgba(0, 229, 255, 0.5); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge small { font-size: 0.68rem; color: var(--text-muted); }
.store-badge strong { font-size: 1.05rem; font-weight: 700; }

.cta-art { display: grid; place-items: center; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 56px 0 40px;
  background: rgba(0, 0, 0, 0.25);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-tagline { color: var(--text-secondary); font-size: 0.95rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--cyan); }
.footer-note { color: var(--text-muted); font-size: 0.8rem; }

/* ── Legal pages (privacy) ── */
.legal-hero { padding: 170px 0 20px; text-align: center; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.legal-intro { color: var(--text-secondary); font-size: 1.08rem; max-width: 40rem; margin: 0 auto; }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

.legal { padding: 46px 0 110px; }
.legal-section {
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  padding: 32px 34px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}
.legal-section:hover { border-color: rgba(0, 229, 255, 0.3); }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.legal-section p, .legal-section li { color: var(--text-secondary); font-size: 0.97rem; margin-bottom: 10px; line-height: 1.75; }
.legal-section p:last-child, .legal-section li:last-child { margin-bottom: 0; }
.legal-section ul { padding-left: 22px; }
.legal-section strong { color: var(--text-primary); }
.legal-mail { color: var(--cyan); font-weight: 600; border-bottom: 1px dashed rgba(0, 229, 255, 0.4); transition: border-color 0.25s; }
.legal-mail:hover { border-bottom-color: var(--cyan); }
.legal-note { text-align: center; margin-top: 34px; }
.legal-note a { color: var(--text-secondary); font-size: 0.95rem; transition: color 0.25s; }
.legal-note a:hover { color: var(--cyan); }

/* ── Back to top ── */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 800;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(13, 27, 46, 0.9);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, box-shadow 0.3s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { box-shadow: 0 0 26px -4px rgba(0, 229, 255, 0.6); }

/* ───────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .puzzles-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 44px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-copy { display: flex; flex-direction: column; align-items: center; }
  .store-badges { justify-content: center; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(7, 17, 31, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 890;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; }
  .nav-download {
    display: inline-block;
    margin-top: 10px;
    padding: 13px 40px;
    border-radius: 999px;
    background: var(--grad-cyan);
    color: #04101d;
    font-weight: 700;
    font-size: 1rem !important;
  }
  .nav-burger { display: flex; z-index: 900; }
  .nav-actions .btn-ghost { display: none; }

  .hero { padding-top: 130px; }
  .hero-visual { min-height: 420px; }
  .phone { width: 240px; }
  .phone-lg { width: 250px; }
  .orbit-1 { width: 330px; height: 330px; }
  .orbit-2 { width: 400px; height: 400px; }
  .chip-a { left: -4px; }
  .chip-b { right: -4px; }

  .section { padding: 84px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .puzzles-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); animation: pulse-y 1.6s ease-in-out infinite; }
  @keyframes pulse-y {
    0%, 100% { transform: rotate(90deg); opacity: 0.6; }
    50% { transform: rotate(90deg) translateY(6px); opacity: 1; }
  }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 26px; }
}
