/* ==========================================================================
   AstroWorld - Modern Landing Page Styles System
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --primary: #EB4A13;
  --primary-hover: #FF6B35;
  --primary-gradient: linear-gradient(135deg, #EB4A13 0%, #FFA726 100%);
  --primary-glow: rgba(235, 74, 19, 0.4);
  --primary-light: rgba(235, 74, 19, 0.15);

  --bg-dark: #0A0B10;
  --bg-surface: #12141D;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-light: rgba(255, 255, 255, 0.2);

  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.5);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-glow: 0 10px 40px rgba(235, 74, 19, 0.25);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Dynamic Ambient Mesh Background --- */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(235, 74, 19, 0.25) 0%, transparent 45%),
              radial-gradient(circle at 85% 60%, rgba(255, 167, 38, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
  filter: blur(40px);
}

/* Particles Background Overlay */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* --- Layout Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: var(--transition-fast);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.logo-container:hover .logo-icon {
  transform: scale(1.05) rotate(5deg);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

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

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

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
#lang-switcher {
  display: flex;
  gap: 8px;
  background: var(--bg-glass);
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lang-btn .fi {
  display: block;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background-size: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

html[lang="en"] .lang-btn[data-lang="en"],
html[lang="es"] .lang-btn[data-lang="es"],
html[lang="pt"] .lang-btn[data-lang="pt"] {
  opacity: 1;
  transform: scale(1.1);
}

html[lang="en"] .lang-btn[data-lang="en"] {
  box-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
}
html[lang="es"] .lang-btn[data-lang="es"] {
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}
html[lang="pt"] .lang-btn[data-lang="pt"] {
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.8);
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 100px 0;
  position: relative;
  text-align: center;
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(235, 74, 19, 0.12);
  border: 1px solid rgba(235, 74, 19, 0.3);
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseGlow 2s infinite;
}

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

.hero-badge-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFA726;
  letter-spacing: 0.3px;
}

/* Commented Social Proof Pill Styling (Ready for future use) */
.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-main);
  animation: slideInUp 0.8s ease-out;
}

.hero h1 .text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-weight: 400;
  animation: slideInUp 0.8s ease-out 0.15s both;
}

/* --- Hero Phone Showcase & Interactive Mockup --- */
.hero-showcase {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating Glass Event Badges (Desktop decoration) */
.floating-badge {
  position: absolute;
  padding: 12px 20px;
  background: rgba(18, 20, 29, 0.75);
  border: 1px solid var(--border-glass-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.floating-badge-1 {
  top: 15%;
  left: 2%;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 20%;
  right: 2%;
  animation-delay: 3s;
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-badge-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-badge-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Realistic Phone Mockup Chassis */
.phone-mockup-wrapper {
  position: relative;
  z-index: 10;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.phone-chassis {
  width: 310px;
  height: 630px;
  background: #181A24;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
              0 0 0 2px rgba(255, 255, 255, 0.15) inset,
              0 0 20px rgba(235, 74, 19, 0.15);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-chassis:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Dynamic Island / Speaker Notch */
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.phone-notch-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  border: 1px solid #222;
}

/* Phone Screen Container */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(1.03);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 25;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.carousel-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary);
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--primary);
}

/* --- Download Section (Desktop & Mobile) --- */
.download-section {
  margin-top: 50px;
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-glass);
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.download-btn:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: #FFF;
}

.download-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Desktop QR Code Card */
.qr-section {
  margin-top: 40px;
  text-align: center;
  display: none;
}

.qr-container {
  background: rgba(255, 255, 255, 0.04);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: inline-block;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-light);
  box-shadow: var(--shadow-card);
  max-width: 360px;
}

.qr-title {
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.qr-code {
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.qr-instruction {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.5;
}

.qr-stores {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
}

.store-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Features Section --- */
.features {
  padding: 120px 0;
  position: relative;
}

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

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
}

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

.feature-card {
  background: var(--bg-glass);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-light);
  box-shadow: var(--shadow-card), 0 0 30px rgba(235, 74, 19, 0.15);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid rgba(235, 74, 19, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #FFA726;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(4deg);
}

.feature-card h3 {
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.feature-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

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

/* --- Mobile Sticky Bottom CTA Bar --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(18, 20, 29, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass-light);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.5s ease-out;
}

.mobile-cta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.mobile-cta-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-cta-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-cta-btn {
  padding: 10px 20px;
  background: var(--primary-gradient);
  color: #FFF;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px 0;
  background: rgba(10, 11, 16, 0.9);
  border-top: 1px solid var(--border-glass);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 360px;
  margin-bottom: 24px;
}

.footer-section h4 {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* --- Scroll Animations --- */
.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);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .floating-badge {
    display: none; /* Hide floating pills on tablet to avoid clutter */
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .nav-links {
    display: none; /* Mobile menu navigation */
  }

  .hero {
    padding: 40px 0 60px 0;
  }

  .phone-chassis {
    width: 270px;
    height: 550px;
    border-radius: 40px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .download-btn {
    justify-content: center;
  }

  .mobile-sticky-cta {
    display: flex; /* Show sticky CTA on mobile screens */
  }

  .footer {
    padding: 60px 0 120px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto 20px auto;
  }

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

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

