/* Style system for Lalira Mobile App Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(0, 0, 0, 0.16);
  
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  
  --accent-red: #c0392b;
  --accent-crimson: #962d22;
  --accent-gold: #f39c12;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-crimson) 100%);
  --gradient-gold: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout constraints */
  --max-width: 1200px;
  --header-height: 80px;
}

/* CSS Reset & General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(192, 57, 43, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(192, 57, 43, 0.01) 0%, transparent 45%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

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

.section {
  padding: 6rem 0;
  position: relative;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--gradient-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-crimson);
  filter: drop-shadow(0 0 8px rgba(192, 57, 43, 0.4));
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.header-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-socials .social-icon {
  fill: var(--text-secondary);
}

.header-socials .social-icon:hover {
  fill: var(--text-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: var(--accent-red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-store:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #1a1a1a;
}

.btn-store-light {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn-store-light:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-store-light .btn-store-text span:first-child {
  color: var(--text-secondary);
}

.btn-store-light .btn-store-text span:last-child {
  color: var(--text-primary);
}

.btn-store-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-store-text span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-store-text span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-mockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

/* Features Section */
.features {
  background: linear-gradient(180deg, transparent, var(--bg-secondary) 15%, var(--bg-secondary) 85%, transparent);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--accent-red);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(231, 76, 60, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.feature-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-red);
}

.feature-card:nth-child(even) .feature-icon-wrapper {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.2);
}

.feature-card:nth-child(even) .feature-icon {
  fill: var(--accent-crimson);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-desc {
  color: var(--text-secondary);
}

/* Call to Action Section */
.cta-section {
  padding: 4rem 0 8rem;
}

.cta-box {
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.12) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

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

.cta-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 3rem;
}

.cta-downloads {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Legal Pages Style styling */
.legal-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
}

.legal-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 2rem;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.legal-back-btn:hover {
  color: var(--text-primary);
  transform: translateX(-4px);
}

.legal-back-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.legal-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.legal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-crimson);
  padding-left: 1rem;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-section ul {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.legal-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.legal-section li::before {
  content: "•";
  color: var(--accent-red);
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
  position: absolute;
}

/* Interactive chords preview styling matching app */
.chord {
  color: var(--accent-red);
  font-weight: 700;
  transition: color 0.2s ease;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 3rem;
  background-color: #fcfcfc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-legal-col {
  justify-self: end;
  text-align: right;
}

.footer-legal-col .footer-links-list {
  align-items: flex-end;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  fill: var(--text-primary);
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-grid > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    align-items: center;
    transition: all 0.4s ease;
    z-index: 999;
  }
  .nav-menu.open {
    left: 0;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  .feature-card {
    padding: 2rem;
  }
  .cta-box {
    padding: 3.5rem 2rem;
  }
  .cta-title {
    font-size: 2.25rem;
  }
  .legal-title {
    font-size: 2.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > * {
    grid-column: span 1 !important;
  }
  .footer-legal-col {
    justify-self: start;
    text-align: left;
  }
  .footer-legal-col .footer-links-list {
    align-items: flex-start;
  }
  .legal-back-btn {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .legal-back-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Language Selector */
.lang-selector-container {
  display: flex;
  align-items: center;
}

.lang-selector {
  display: inline-flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.lang-btn.active {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .lang-selector-container {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
}

/* Phone Mockup & Carousel styling */
.phone-container {
  position: relative;
  width: 290px;
  margin: 0 auto;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 580px;
  background: #121212;
  border: 12px solid #1e1e1e;
  border-radius: 40px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
}

/* Phone notch/camera cutout */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #1e1e1e;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #f5f5f5;
}

.carousel-track {
  display: flex;
  width: 700%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  width: 14.285%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

.carousel-img,
.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation buttons (inside frame) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.carousel-btn:hover {
  background: #ffffff;
  color: var(--accent-red);
  transform: translateY(-50%) scale(1.08);
}

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

.prev-btn {
  left: 12px;
}

.next-btn {
  right: 12px;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background: rgba(0, 0, 0, 0.3);
}

.indicator.active {
  background: var(--accent-red);
  width: 24px;
  border-radius: 4px;
}
