/* ================================================================
   GROOVE Landing Page - Design System
   Fonts: Space Grotesk (headings), Inter (body), JetBrains Mono (data)
   Theme: Dark mode with layered surfaces
   ================================================================ */

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

:root {
  /* Surfaces */
  --bg-base: #08080C;
  --bg-surface: #111118;
  --bg-card: #1A1A24;
  --bg-card-hover: #222230;
  --bg-elevated: #2A2A38;

  /* Text */
  --text-primary: #F0F0F5;
  --text-secondary: #9A9AAE;
  --text-muted: #5C5C6E;

  /* Accent */
  --accent: #7C6BF0;
  --accent-hover: #9584FF;
  --accent-muted: rgba(124, 107, 240, 0.12);
  --accent-glow: rgba(124, 107, 240, 0.15);
  --accent-dim: rgba(124, 107, 240, 0.06);

  /* Status */
  --success: #34D399;
  --warning: #FFB74D;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Rank colors */
  --bronze: #CD7F32;
  --silver: #C0C0C0;
  --gold: #FFD700;
  --platinum: #A8D8EA;
  --diamond: #B388FF;
  --champion: #7C6BF0;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124, 107, 240, 0.12);

  /* Fonts */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Button 3D */
  --btn-shadow-color: #5549C8;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* 4.1 Noise/Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ----------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #A78BFA, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 0 0 var(--btn-shadow-color);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 var(--btn-shadow-color), 0 8px 24px rgba(124, 107, 240, 0.25);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 var(--btn-shadow-color);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-dim);
}

.apple-icon {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(124, 107, 240, 0.08);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-links .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--text-primary);
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ----------------------------------------------------------------
   DECORATIVE BLOBS
   ---------------------------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
  contain: layout paint style;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -6px) scale(1.03); }
  66% { transform: translate(-6px, 4px) scale(0.97); }
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  opacity: 0.07;
  top: -10%;
  right: -10%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #C084FC;
  opacity: 0.06;
  bottom: 10%;
  left: -8%;
  animation-delay: -7s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  opacity: 0.08;
  top: 20%;
  left: -15%;
  animation-delay: -4s;
}

.blob-4 {
  width: 400px;
  height: 400px;
  background: #A78BFA;
  opacity: 0.06;
  bottom: -10%;
  right: -10%;
  animation-delay: -12s;
}

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 520px;
}

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

.hero-micro {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Phone Mockup - Premium CSS-only */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: var(--bg-surface);
  border-radius: 44px;
  border: 3px solid var(--bg-elevated);
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 120px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Glass reflection on phone body */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: var(--bg-base);
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  border-radius: 34px;
  padding: 48px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-greeting {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.mockup-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mockup-rank-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.mockup-rank-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 20px;
  border-radius: var(--radius-full);
}

.mockup-rank-badge.gold {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.mockup-rank-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--warning));
  border-radius: 3px;
}

.mockup-rank-pct {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mockup-stat {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mockup-stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.mockup-stat-label {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.mockup-cta-btn {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  box-shadow: 0 2px 0 0 var(--btn-shadow-color);
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-micro { text-align: center; }
  .phone-mockup {
    width: 240px;
    height: 490px;
  }
}

/* ----------------------------------------------------------------
   TRUST BAR
   ---------------------------------------------------------------- */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.trust-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.trust-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.trust-pill svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   PROBLEM / SOLUTION
   ---------------------------------------------------------------- */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.ps-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Card reflection */
.ps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ps-problem {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.ps-solution {
  background: linear-gradient(135deg, rgba(124, 107, 240, 0.08), rgba(124, 107, 240, 0.02));
  border: 1px solid rgba(124, 107, 240, 0.12);
}

.ps-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.ps-icon.accent {
  background: var(--accent-muted);
  color: var(--accent);
}

.ps-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ps-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .ps-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   FEATURES
   ---------------------------------------------------------------- */
.features {
  background: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.feature-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124, 107, 240, 0.08), var(--bg-card));
  border-color: rgba(124, 107, 240, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-highlight { grid-column: span 2; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-highlight { grid-column: span 1; }
}

/* ----------------------------------------------------------------
   RANK SYSTEM
   ---------------------------------------------------------------- */
.rank-tiers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.rank-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rank-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid;
  transition: box-shadow 0.3s ease;
}

.rank-badge.bronze {
  background: rgba(205, 127, 50, 0.12);
  border-color: rgba(205, 127, 50, 0.35);
  color: var(--bronze);
}
.rank-tier:hover .rank-badge.bronze {
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.rank-badge.silver {
  background: rgba(192, 192, 192, 0.12);
  border-color: rgba(192, 192, 192, 0.35);
  color: var(--silver);
}
.rank-tier:hover .rank-badge.silver {
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.rank-badge.gold {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--gold);
}
.rank-tier:hover .rank-badge.gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.rank-badge.platinum {
  background: rgba(168, 216, 234, 0.12);
  border-color: rgba(168, 216, 234, 0.35);
  color: var(--platinum);
}
.rank-tier:hover .rank-badge.platinum {
  box-shadow: 0 0 20px rgba(168, 216, 234, 0.2);
}

.rank-badge.diamond {
  background: rgba(179, 136, 255, 0.12);
  border-color: rgba(179, 136, 255, 0.35);
  color: var(--diamond);
}
.rank-tier:hover .rank-badge.diamond {
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.25);
}

.rank-badge.champion {
  background: rgba(124, 107, 240, 0.15);
  border-color: rgba(124, 107, 240, 0.45);
  color: var(--champion);
  box-shadow: 0 0 24px rgba(124, 107, 240, 0.2);
}
.rank-tier:hover .rank-badge.champion {
  box-shadow: 0 0 32px rgba(124, 107, 240, 0.35);
}

.rank-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rank-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rank-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.rank-detail-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.rank-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  margin: 0 auto 16px;
}

.rank-detail-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.rank-detail-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rank-tiers { gap: 12px; }
  .rank-badge {
    width: 52px;
    height: 52px;
    font-size: 0.85rem;
  }
  .rank-details { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   STATS SECTION
   ---------------------------------------------------------------- */
.stats-section {
  background: var(--bg-surface);
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #A78BFA, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   SHARE CARD SHOWCASE
   ---------------------------------------------------------------- */
.share-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.share-card-preview {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-card-preview:hover {
  transform: translateY(-8px) scale(1.02);
}

.share-card-inner {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Depth reflection for share cards */
.share-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.theme-purple .share-card-inner {
  background: linear-gradient(180deg, #2D1B69, #1A0F3C, #0D0820);
  box-shadow: 0 8px 32px rgba(124, 107, 240, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-blue .share-card-inner {
  background: linear-gradient(180deg, #0D1B3E, #0A1428, #060D1A);
  box-shadow: 0 8px 32px rgba(30, 60, 120, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-emerald .share-card-inner {
  background: linear-gradient(180deg, #0D3B2D, #082820, #041A14);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.share-card-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.share-card-rank {
  text-align: center;
}

.share-rank-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-card-stats {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.share-card-stats strong {
  color: #fff;
}

.share-card-footer {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.share-theme-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------------------------------------------------------
   COMING SOON
   ---------------------------------------------------------------- */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coming-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.coming-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.coming-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.coming-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  margin: 0 auto 16px;
}

.coming-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.coming-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .coming-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .coming-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   DIFFERENTIATORS
   ---------------------------------------------------------------- */
.differentiators {
  background: var(--bg-surface);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.diff-vs {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
}

.diff-line {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-free {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.cta-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   SCROLL REVEAL ANIMATION
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children within grid containers */
.stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger .reveal:nth-child(6) { transition-delay: 500ms; }
.stagger .reveal:nth-child(7) { transition-delay: 600ms; }
.stagger .reveal:nth-child(8) { transition-delay: 700ms; }
.stagger .reveal:nth-child(9) { transition-delay: 800ms; }
.stagger .reveal:nth-child(10) { transition-delay: 900ms; }
.stagger .reveal:nth-child(11) { transition-delay: 1000ms; }
.stagger .reveal:nth-child(12) { transition-delay: 1100ms; }

/* ----------------------------------------------------------------
   4.3 CARD INNER HIGHLIGHT LINES
   ---------------------------------------------------------------- */
.feature-card::after,
.coming-card::after,
.diff-card::after,
.ps-card::after,
.rank-detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  border-radius: 1px;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   4.4 GRADIENT MESH SECTION TRANSITIONS
   ---------------------------------------------------------------- */
.section-mesh {
  position: relative;
}

.section-mesh::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg-base), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(124, 107, 240, 0.04), transparent),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(167, 139, 250, 0.03), transparent);
  pointer-events: none;
}

/* ----------------------------------------------------------------
   4.5 TYPOGRAPHY GLOW EFFECTS
   ---------------------------------------------------------------- */
.text-glow {
  position: relative;
  display: inline;
}
.text-glow::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(30px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* ----------------------------------------------------------------
   4.6 PHONE MOCKUP AMBIENT GLOW
   ---------------------------------------------------------------- */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(124, 107, 240, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* ----------------------------------------------------------------
   5.3 STICKY MOBILE CTA BAR
   ---------------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}
.sticky-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-cta-text strong {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.sticky-cta-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sticky-cta-btn {
  background: var(--accent);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* ----------------------------------------------------------------
   5.4 APP STORE BADGE
   ---------------------------------------------------------------- */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ----------------------------------------------------------------
   5.1 & 5.2 MOBILE MOTION ADJUSTMENTS & SHARE CARD SCROLL
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  /* 5.1 Reduce blob visual weight */
  .blob { filter: blur(60px); opacity: 0.04; }
  .blob:nth-child(n+2) { display: none; }

  /* Disable 3D effects */
  .share-3d-enter { transform: none; }
  .share-3d-enter.visible { transform: none; }

  /* Simpler hero animation */
  .hero-anim-7 { transform: translateY(20px); }

  /* 5.2 Share Card Horizontal Scroll */
  .share-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  .share-cards::-webkit-scrollbar { display: none; }
  .share-cards { scrollbar-width: none; }
  .share-card-preview {
    flex: 0 0 240px;
    scroll-snap-align: center;
  }
}

/* ----------------------------------------------------------------
   SKIP NAVIGATION LINK
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ----------------------------------------------------------------
   HERO ORCHESTRATED ENTRANCE
   ---------------------------------------------------------------- */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroEntrance {
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim-1 { animation-delay: 0ms; }
.hero-anim-2 { animation-delay: 120ms; }
.hero-anim-3 { animation-delay: 240ms; }
.hero-anim-4 { animation-delay: 360ms; }
.hero-anim-5 { animation-delay: 480ms; }
.hero-anim-6 { animation-delay: 600ms; }
.hero-anim-7 { animation-delay: 720ms; transform: translateY(40px); }
.hero-anim-8 { animation-delay: 1000ms; }

/* ----------------------------------------------------------------
   PHONE MOCKUP FLOAT ANIMATION
   ---------------------------------------------------------------- */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.phone-mockup {
  animation: phoneFloat 6s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   RANK BADGE POP ANIMATION
   ---------------------------------------------------------------- */
.rank-pop {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rank-pop.visible {
  opacity: 1;
  transform: scale(1);
}

/* ----------------------------------------------------------------
   SHARE CARD 3D ENTRY
   ---------------------------------------------------------------- */
.share-3d-enter {
  opacity: 0;
  transform: perspective(800px) rotateY(-15deg) translateX(-30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.share-3d-enter.visible {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateX(0);
}

/* ----------------------------------------------------------------
   CTA BUTTON GLOW PULSE + PRESS EFFECT
   ---------------------------------------------------------------- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 0 0 var(--accent-dark, #5549C8), 0 0 20px rgba(124, 107, 240, 0.15); }
  50% { box-shadow: 0 4px 0 0 var(--accent-dark, #5549C8), 0 0 40px rgba(124, 107, 240, 0.3); }
}
.btn-primary {
  animation: glowPulse 3s ease-in-out infinite;
}
.btn-primary:active {
  transform: translateY(2px) scale(0.97);
  transition: transform 0.1s ease;
}

/* ----------------------------------------------------------------
   NAV LINK ANIMATED UNDERLINE
   ---------------------------------------------------------------- */
.nav-links a:not(.btn) {
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* ----------------------------------------------------------------
   INPUT FOCUS MICRO-ANIMATION
   ---------------------------------------------------------------- */
.calc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
  transform: translateY(-1px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------
   FAQ SPRING ACCORDION
   ---------------------------------------------------------------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}
.faq-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .blob {
    animation: none;
  }

  .phone-mockup {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  }

  .hero-anim { animation: none; opacity: 1; transform: none; }
  .phone-mockup { animation: none; }
  .rank-pop { opacity: 1; transform: none; transition: none; }
  .share-3d-enter { opacity: 1; transform: none; transition: none; }
  .btn-primary { animation: none; }
  [data-parallax] { transform: none !important; }

  body::before { display: none; }
  .phone-glow { animation: none; opacity: 0.6; }
  .sticky-cta { transition: none; }
}
