/* =================================================
   AnaFlow Keys — Main Stylesheet
   Dark Purple Theme · Nunito Font · Mobile-First
   ================================================= */

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

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --clr-purple:       #9333EA;
  --clr-purple-light: #C084FC;
  --clr-purple-dark:  #7C3AED;
  --clr-bg:           #0D0620;
  --clr-bg-2:         #1A0B2E;
  --clr-bg-3:         #2D1B4E;
  --clr-card:         rgba(45, 27, 78, 0.6);
  --clr-card-border:  rgba(147, 51, 234, 0.25);
  --clr-white:        #FFFFFF;
  --clr-text:         #E9D5FF;
  --clr-muted:        #A78BCA;
  --clr-green:        #22C55E;
  --clr-red:          #EF4444;
  --clr-yellow:       #F59E0B;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #9333EA 0%, #C084FC 100%);
  --grad-hero:    linear-gradient(180deg, #0D0620 0%, #1A0B2E 60%, #2D1B4E 100%);
  --grad-card:    linear-gradient(135deg, rgba(45,27,78,0.8) 0%, rgba(29,16,55,0.8) 100%);

  /* Typography */
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', system-ui, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;

  /* Border Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-purple: 0 0 40px rgba(147,51,234,0.4);

  /* Transitions */
  --transition:      all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;

  /* Layout */
  --container:   1200px;
  --nav-height:  72px;
}

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

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

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

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }

:focus-visible {
  outline: 2px solid var(--clr-purple-light);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb { background: var(--clr-purple); border-radius: var(--r-full); }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) { .container { padding: 0 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--fs-base);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(147,51,234,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147,51,234,0.7);
  filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--clr-purple-light);
  border: 2px solid var(--clr-purple);
}
.btn-secondary:hover {
  background: rgba(147,51,234,0.15);
  border-color: var(--clr-purple-light);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: var(--fs-lg); }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }

.btn-app-store {
  background: #000;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.btn-app-store:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.btn-app-store .btn-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-app-store .btn-icon img { width: 100%; height: 100%; object-fit: cover; }
.btn-app-store .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-app-store .btn-text small { font-size: var(--fs-xs); font-weight: 500; opacity: 0.8; }
.btn-app-store .btn-text span  { font-size: var(--fs-base); font-weight: 800; }

/* ---- Section Labels & Titles ---- */
.section-label {
  display: inline-block;
  background: rgba(147,51,234,0.2);
  color: var(--clr-purple-light);
  padding: 0.25rem 1rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(147,51,234,0.4);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--clr-white);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 4rem; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(13,6,32,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-card-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: var(--fs-xl);
  color: white;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-purple);
  overflow: hidden;
}

.nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.nav-logo-text span { color: var(--clr-purple-light); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--clr-text);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--clr-purple-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-menu-btn { display: none; } }

.nav-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: var(--r-full);
  transition: var(--transition);
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(13,6,32,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-card-border);
  padding: 1.5rem;
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--clr-text);
  border-bottom: 1px solid rgba(147,51,234,0.1);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--clr-purple-light); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--grad-hero);
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #9333EA 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C084FC 0%, transparent 70%);
  top: 30%; right: -50px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -6s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-30px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}

/* Music notes */
.music-notes {
  position: absolute; inset: 0;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.note {
  position: absolute;
  color: var(--clr-purple-light);
  font-size: 1.5rem;
  opacity: 0;
  animation: floatNote linear infinite;
}
@keyframes floatNote {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-100vh) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-content { text-align: center; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(147,51,234,0.15);
  border: 1px solid rgba(147,51,234,0.4);
  color: var(--clr-purple-light);
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--clr-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: white;
}
.hero-title-app {
  display: block;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-2xl));
  color: var(--clr-muted);
  margin-bottom: 2rem;
  font-weight: 600;
}
.hero-tagline strong { color: var(--clr-purple-light); }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-stats { justify-content: flex-start; } }

.hero-stat-number {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.phone-mockup-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0; /* space for floating badges */
}

.phone-mockup { position: relative; width: 100%; max-width: 440px; }
.phone-mockup.main {
  width: 100%; max-width: 440px; z-index: 2;
  filter: drop-shadow(0 16px 48px rgba(147,51,234,0.5));
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.phone-mockup.secondary {
  display: block; /* always visible */
  width: 100%; max-width: 440px;
  opacity: 0.82;
  z-index: 1;
  animation: phoneFloat 4s ease-in-out infinite;
  animation-delay: -2s;
}

/* Landscape frame (19.5:9 = iPhone landscape) */
.phone-frame {
  background: #18102e;
  border-radius: 18px;
  padding: 8px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.6);
  aspect-ratio: 19.5 / 9;
  overflow: hidden;
}

.phone-screen {
  background: linear-gradient(180deg, #1A0B2E 0%, #0D0620 100%);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

/* Use actual screenshots when provided */
.phone-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.phone-screen-placeholder { text-align: center; padding: 1rem; }
.phone-screen-icon  { font-size: 3rem; margin-bottom: 0.75rem; }
.phone-screen-title { color: white; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 0.5rem; }
.phone-screen-sub   { color: var(--clr-muted); font-size: var(--fs-xs); line-height: 1.4; }

/* Floating badges */
.phone-badge {
  position: absolute;
  background: rgba(13,6,32,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-lg);
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: white;
  white-space: nowrap;
  z-index: 10;
  box-shadow: var(--shadow-md);
  animation: floatBadge 3s ease-in-out infinite;
}
/* Badges above/below the landscape frames */
.phone-badge-xp    { top: -14px;    right: 20px; animation-delay: 0s; }
.phone-badge-level { bottom: -14px; left:  20px; animation-delay: -1.5s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- GENERIC SECTION ---- */
.section { padding: 5rem 0; position: relative; }

/* ---- FEATURES GRID (How it works) ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(147,51,234,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(147,51,234,0.15);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 64px; height: 64px;
  background: rgba(147,51,234,0.15);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(147,51,234,0.25);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: rgba(147,51,234,0.25); transform: scale(1.1) rotate(5deg); }

.feature-title { font-size: var(--fs-lg); font-weight: 800; color: white; margin-bottom: 0.75rem; }
.feature-desc  { color: var(--clr-muted); font-size: var(--fs-sm); line-height: 1.7; }

/* ---- STATS SECTION ---- */
.stats-section {
  background: linear-gradient(135deg, rgba(147,51,234,0.07) 0%, rgba(109,40,217,0.04) 100%);
  border-top: 1px solid var(--clr-card-border);
  border-bottom: 1px solid var(--clr-card-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 768px)  { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }

.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: var(--fs-sm); color: var(--clr-muted); font-weight: 600; }

/* ---- DEMO SECTION ---- */
.demo-container { max-width: 800px; margin: 0 auto; }

.demo-video-wrapper {
  background: var(--clr-bg-3);
  border-radius: var(--r-xl);
  border: 1px solid var(--clr-card-border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-purple);
}
.demo-video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

.demo-placeholder { text-align: center; padding: 2rem; }
.demo-placeholder-icon { font-size: 4rem; margin-bottom: 1rem; }
.demo-placeholder-text { color: var(--clr-text); font-size: var(--fs-lg); font-weight: 600; }
.demo-placeholder-sub  { color: var(--clr-muted); font-size: var(--fs-sm); margin-top: 0.5rem; opacity: 0.7; }

.play-button {
  width: 80px; height: 80px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(147,51,234,0.5);
  animation: playPulse 2s ease-in-out infinite;
  margin: 0 auto 1rem;
  transition: var(--transition);
  border: none;
}
.play-button:hover { transform: scale(1.1); }
@keyframes playPulse {
  0%   { box-shadow: 0 0 0 0 rgba(147,51,234,0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(147,51,234,0); }
  100% { box-shadow: 0 0 0 0 rgba(147,51,234,0); }
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(147,51,234,0.4); }

.testimonial-placeholder { text-align: center; padding: 1rem; }
.testimonial-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.testimonial-placeholder-text { color: var(--clr-muted); font-size: var(--fs-sm); line-height: 1.6; }

.coming-soon-badge {
  display: inline-block;
  background: rgba(147,51,234,0.15);
  border: 1px dashed rgba(147,51,234,0.4);
  color: var(--clr-purple-light);
  padding: 0.25rem 1rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: rgba(147,51,234,0.5); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  color: white;
  font-weight: 700;
  font-size: var(--fs-base);
  transition: color 0.3s ease;
}
.faq-question:hover          { color: var(--clr-purple-light); }
.faq-item.open .faq-question { color: var(--clr-purple-light); }

.faq-icon {
  width: 28px; height: 28px;
  background: rgba(147,51,234,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(147,51,234,0.3);
  color: var(--clr-purple-light);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(147,51,234,0.3); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--clr-muted);
  line-height: 1.8;
  font-size: var(--fs-sm);
}
.faq-answer-content a { color: var(--clr-purple-light); text-decoration: underline; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(147,51,234,0.09) 0%, rgba(109,40,217,0.06) 100%);
  border-top: 1px solid var(--clr-card-border);
}
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- FOOTER ---- */
.footer {
  background: #080415;
  border-top: 1px solid var(--clr-card-border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-desc { color: var(--clr-muted); font-size: var(--fs-sm); line-height: 1.7; max-width: 300px; }

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--clr-muted); font-size: var(--fs-sm); font-weight: 500; }
.footer-links a:hover { color: var(--clr-purple-light); }

.footer-bottom {
  border-top: 1px solid rgba(147,51,234,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy  { color: var(--clr-muted); font-size: var(--fs-xs); }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--clr-muted); font-size: var(--fs-xs); font-weight: 500; }
.footer-legal a:hover { color: var(--clr-purple-light); }

/* ---- INNER PAGES ---- */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  background: linear-gradient(180deg, #0D0620 0%, #1A0B2E 100%);
  border-bottom: 1px solid var(--clr-card-border);
  text-align: center;
}
.page-hero-title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
}
.page-hero-subtitle {
  color: var(--clr-muted);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero-meta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.2);
  color: var(--clr-purple-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Prose Content */
.prose-section { padding: 4rem 0; }
.prose-container { max-width: 800px; margin: 0 auto; }

.prose-toc {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.prose-toc-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--clr-purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.prose-toc ol {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.prose-toc a { color: var(--clr-muted); font-size: var(--fs-sm); font-weight: 500; }
.prose-toc a:hover { color: var(--clr-purple-light); }

.prose-block {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}
.prose-block-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: white;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-card-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.block-number {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base);
  font-weight: 900;
  flex-shrink: 0;
  color: white;
}

.prose-text {
  color: var(--clr-muted);
  line-height: 1.9;
  font-size: var(--fs-base);
  margin-bottom: 1rem;
}
.prose-text strong { color: var(--clr-text); font-weight: 700; }
.prose-text a { color: var(--clr-purple-light); text-decoration: underline; }

.prose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.prose-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--clr-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.prose-list li::before { content: '▸'; color: var(--clr-purple-light); flex-shrink: 0; margin-top: 3px; font-size: var(--fs-sm); }
.prose-list.check li::before { content: '✓'; color: var(--clr-green); font-weight: 900; }
.prose-list.cross li::before { content: '✗'; color: var(--clr-red); font-weight: 900; }

.info-box {
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.25);
  border-left: 4px solid var(--clr-purple);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--clr-text);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.info-box.warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); border-left-color: var(--clr-yellow); }
.info-box.success { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.25);  border-left-color: var(--clr-green);  }

/* ---- SUPPORT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(147,51,234,0.5); }
.contact-icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-title { font-size: var(--fs-lg); font-weight: 800; color: white; margin-bottom: 0.5rem; }
.contact-desc  { color: var(--clr-muted); font-size: var(--fs-sm); margin-bottom: 1rem; }
.contact-link  { color: var(--clr-purple-light); font-weight: 700; font-size: var(--fs-sm); }
.contact-link:hover { text-decoration: underline; }

/* Bug Report Form */
.bug-form {
  background: var(--grad-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.form-group   { margin-bottom: 1.25rem; }
.form-label   { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--clr-text); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(13,6,32,0.8);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  color: white;
  font-size: var(--fs-base);
  font-family: var(--font);
  transition: border-color 0.3s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px rgba(147,51,234,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--clr-bg-2); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--clr-muted); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--clr-green);
  font-weight: 700;
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .phone-badge { display: none; }
  .phone-mockup, .phone-mockup.main, .phone-mockup.secondary { max-width: 320px; }
}

/* ---- PRINT ---- */
@media print {
  .nav, .footer, .btn, .mobile-menu, .hero-orb, .music-notes { display: none !important; }
  body { background: white; color: #333; }
  .prose-text, .prose-list li { color: #333; }
  .page-hero { background: white; color: black; }
  .page-hero-title { color: #1a1a1a; }
}
