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

:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color System */
  --color-bg-dark: #0A0A0C;
  --color-bg-light: #F5F5F7;
  --color-card-dark: rgba(20, 20, 25, 0.7);
  --color-card-light: rgba(255, 255, 255, 0.8);
  --color-accent: #00E5FF;
  --color-accent-glow: rgba(0, 229, 255, 0.3);
  --color-text-dark: #FFFFFF;
  --color-text-light: #1D1D1F;
  --color-text-muted-dark: #A1A1A6;
  --color-text-muted-light: #6E6E73;
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.08);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
}

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

/* --- Helper Classes & Layout Sections --- */
.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.section-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
  padding: 100px 24px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

.tagline {
  font-family: var(--font-title);
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* --- Floating Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.0);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 12px 24px;
}

/* Use light text on navbar scrolled, since page hero is light but navbar overlay is dark on scroll */
.navbar.scrolled .nav-logo span {
  color: var(--color-text-dark);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-btn {
  background: var(--color-accent);
  color: #0A0A0C;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

/* --- Hero Section (Light Theme) --- */
.hero-section {
  padding: 160px 24px 80px;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08), transparent 45%), var(--color-bg-light);
}

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

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted-light);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  background: #000000;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-store svg {
  margin-right: 12px;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-store:hover {
  transform: translateY(-3px);
  background: #111;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.btn-learn {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-light);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
  background: rgba(255,255,255,0.5);
}

.btn-learn:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.2);
}

/* App Store Ratings */
.rating-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-stars {
  color: #FFB300;
  display: flex;
  font-size: 1.15rem;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--color-text-muted-light);
  font-weight: 500;
}

/* --- Sleek iPhone CSS Mockup --- */
.hero-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.iphone-frame {
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: #000;
  border: 11px solid #2d2d30;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 4px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Notches & Indicators */
.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #0A0A0C;
  overflow: hidden;
  position: relative;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Glowing background behind mockup */
.mockup-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(40px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Features Section (Dark Theme) --- */
.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted-dark);
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-light .section-subtitle {
  color: var(--color-text-muted-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card-dark);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 229, 255, 0.05);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-accent);
  color: #0A0A0C;
  box-shadow: 0 0 15px var(--color-accent-glow);
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.feature-card p {
  color: var(--color-text-muted-dark);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- Screenshots Section (Light Theme Carousel) --- */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-light);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: #FFFFFF;
  color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--color-text-light);
  width: 24px;
  border-radius: 4px;
}

/* --- Why Musicians Love It --- */
.love-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.love-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.love-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.love-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.love-card h3::before {
  content: '';
  width: 6px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 3px;
  display: block;
}

.love-card p {
  color: var(--color-text-muted-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- App Details / Specs (Dark Grid) --- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.detail-value {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

/* --- Interactive Accordion FAQs --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 8px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-light);
  transition: transform 0.3s ease;
}

/* Horizontal line */
.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-muted-light);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* --- Call To Action (CTA) --- */
.cta-section {
  padding: 120px 24px;
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.15), transparent 60%), #0A0A0C;
  color: var(--color-text-dark);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--color-text-muted-dark);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-title);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-btn:hover {
  background: var(--color-accent);
  color: #0A0A0C;
}

.lightbox-btn.prev {
  left: -80px;
}

.lightbox-btn.next {
  right: -80px;
}

/* --- Footer --- */
footer {
  background: #050507;
  color: var(--color-text-muted-dark);
  padding: 60px 24px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

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

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

.footer-copy {
  font-size: 0.9rem;
}

/* --- Scroll Animation Effects --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Adaptations --- */
@media(max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .rating-container {
    justify-content: center;
  }
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
}

@media(max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  .cta-title {
    font-size: 2.4rem;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
