/* ===== DESIGN TOKENS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core palette */
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f24;
  --bg-card: rgba(20, 20, 48, 0.65);
  --bg-card-hover: rgba(30, 30, 60, 0.8);
  --bg-elevated: rgba(25, 25, 55, 0.85);

  /* Text */
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c8;
  --text-muted: #6e6e96;

  /* Accents */
  --accent-start: #8b5cf6;
  --accent-mid: #a855f7;
  --accent-end: #ec4899;
  --gradient-accent: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --gradient-accent-h: linear-gradient(90deg, var(--accent-start), var(--accent-end));

  /* Borders */
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-card: rgba(139, 92, 246, 0.18);
  --border-hover: rgba(139, 92, 246, 0.35);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
  --shadow-glow-strong: 0 0 80px rgba(139, 92, 246, 0.25);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  /* Spacing */
  --section-gap: 120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Animated background blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  top: -200px;
  left: -100px;
  animation: blobFloat1 20s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: blobFloat2 25s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.05); }
  66% { transform: translate(50px, -40px) scale(0.9); }
}

/* ===== LAYOUT ===== */
.container {
  width: min(1140px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.6);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 26, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.85; }

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

nav a:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

nav a.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
}

/* Mobile hamburger (CSS-only) */
.nav-toggle { display: none; }

@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(15, 15, 36, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 2rem;
    transition: right 0.35s var(--ease-out);
    border-left: 1px solid var(--border-subtle);
  }
  nav.open { right: 0; }
  nav a {
    font-size: 1.1rem;
    padding: 12px 20px;
    width: 100%;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.gradient-text {
  background: var(--gradient-accent-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 56ch;
  line-height: 1.75;
}

small, .muted { color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Legacy compat */
a.button { 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  filter: brightness(1.08);
}

a.button.secondary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: none;
}

a.button.secondary:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--border-hover);
}

button.button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: var(--gradient-accent);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  transition: all 0.3s var(--ease-out);
}

button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  filter: brightness(1.08);
}

button.button-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: none;
}

button.button-secondary:hover {
  background: rgba(139, 92, 246, 0.18);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ===== STORE BADGES ===== */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 28px 14px 20px;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.store-badge-big {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
  box-shadow: 0 0 8px var(--accent-mid);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-split {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero-panel {
  text-align: left;
  max-width: 580px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  animation: heroFadeIn 1s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #e0d0ff 40%, #c084fc 70%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-panel .subtitle {
  margin-bottom: 24px;
}

/* Feature pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.feature-pills span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #d4d0f0;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.25s ease;
}

.feature-pills span:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

/* CTA row */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Trust row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.trust-item {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.trust-item:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-3px);
}

.trust-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-accent-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Hero visual - phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  animation: heroFadeIn 1s 0.3s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.iphone-frame {
  width: 270px;
  height: 560px;
  border-radius: 44px;
  border: 4px solid rgba(139, 92, 246, 0.25);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(139, 92, 246, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.5);
  background: #000;
  position: relative;
  overflow: hidden;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 2;
}

.iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
  .hero-panel {
    text-align: center;
    max-width: 100%;
  }
  .feature-pills { justify-content: center; }
  .hero-cta-row { justify-content: center; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .trust-row {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTIONS ===== */
.section-block {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head .muted {
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* separator line */
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 100px;
  margin: 0 auto 56px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s var(--ease-out);
}

.feature-card:hover .feature-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== SCREENSHOT SHOWCASE ===== */
.showcase {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 15, 36, 0.8), rgba(10, 10, 26, 0.9));
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06), transparent 70%);
  pointer-events: none;
}

.showcase img {
  width: 100%;
  max-width: 340px;
  max-height: 620px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.showcase img.fading {
  opacity: 0.4;
  transform: scale(0.97);
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--border-hover);
  transform: scale(1.08);
}

.shot-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ===== MINI SUDOKU ===== */
.mini-sudoku-wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px;
}

.mini-sudoku-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-sudoku-meta .status {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 8px;
  line-height: 1.5;
}

.mini-sudoku-board {
  --cell-size: clamp(28px, 3.5vw, 46px);
  display: grid;
  grid-template-columns: repeat(9, var(--cell-size));
  gap: 3px;
  justify-content: center;
}

.mini-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  background: rgba(20, 20, 48, 0.85);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.mini-cell:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 16px rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.06);
}

.mini-cell.given {
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
  font-weight: 800;
}

.mini-cell.wrong {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
  background: rgba(248, 113, 113, 0.06);
}

/* 3×3 box dividers — thick colored borders */
.mini-cell.block-right {
  border-right: 3px solid rgba(139, 92, 246, 0.55);
  margin-right: 6px;
}

.mini-cell.block-bottom {
  border-bottom: 3px solid rgba(139, 92, 246, 0.55);
  margin-bottom: 6px;
}

/* Difficulty selector */
.difficulty-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.difficulty-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.3px;
}

.difficulty-btn:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.difficulty-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35);
}

@media (max-width: 820px) {
  .mini-sudoku-wrap {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .mini-sudoku-board {
    --cell-size: clamp(22px, 8vw, 36px);
    gap: 2px;
  }

  .mini-cell {
    font-size: 0.9rem;
  }

  .mini-cell.block-right {
    border-right-width: 2.5px;
    margin-right: 4px;
  }

  .mini-cell.block-bottom {
    border-bottom-width: 2.5px;
    margin-bottom: 4px;
  }
}

/* ===== CTA PANEL ===== */
.cta-panel {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-panel h2 {
  margin-bottom: 14px;
  position: relative;
}

.cta-panel p {
  position: relative;
}

.cta-panel .hero-cta-row {
  justify-content: center;
  position: relative;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 36ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== PAGE STYLE (Privacy, Terms, Support) ===== */
section.page,
main.page {
  padding: 130px 0 80px;
}

main.page h1 {
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main.page .subtitle {
  margin-bottom: 32px;
}

main.page .card {
  margin-bottom: 20px;
}

main.page .card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

main.page .card p,
main.page .card li {
  color: var(--text-secondary);
  line-height: 1.75;
}

main.page .card a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

main.page .card a:hover {
  color: #e0b0ff;
}

/* ===== LISTS ===== */
ul, ol {
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

li {
  color: var(--text-secondary);
}

li strong {
  color: var(--text-primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }

.ok {
  color: #4ade80;
}

code.inline {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-card);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
}

/* Prevent layout shift from fixed header */
body {
  padding-top: 0;
}

/* Selection color */
::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Smooth number input hide arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
