/* =========================================
   Base Variables & Theming 
   ========================================= */
:root {
  --bg-color: #0b0c10;
  --surface-color: rgba(22, 24, 34, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary-color: #8c52ff;
  --primary-hover: #7b42ea;
  --primary-glow: rgba(140, 82, 255, 0.4);
  --secondary-color: #ff52a2;
  --secondary-glow: rgba(255, 82, 162, 0.3);
  --tertiary-color: #2bc1ff;
  --tertiary-glow: rgba(43, 193, 255, 0.3);
  
  --text-primary: #f8f9fa;
  --text-secondary: #a0a3bd;
  
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* =========================================
   Background Glow Orbs
   ========================================= */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: pulseOrb 8s infinite alternate ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-glow);
  top: 20%;
  right: -200px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--tertiary-glow);
  bottom: 10%;
  left: 10%;
  animation-delay: -5s;
}

@keyframes pulseOrb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.1) translate(20px, 30px); opacity: 0.6; }
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;  
  gap: 8px;
  color: #fff;
}

.logo i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.95rem;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 32px;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  padding: 24px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: white;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 90vh;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(43, 193, 255, 0.15);
  color: var(--tertiary-color);
  border: 1px solid rgba(43, 193, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.store-badge img {
  height: 56px;
  transition: transform 0.3s;
}

.store-badge:hover img {
  transform: translateY(-3px);
}

.stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-value {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =========================================
   Hero Visuals (Mockups)
   ========================================= */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.phone-mockup {
  position: absolute;
  border-radius: 36px;
  padding: 8px;
  background: #2a2a35;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.2);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  overflow: hidden;
}

/* When the user places exactly a 400x800 image, it'll scale nicely */
.app-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background-color: var(--surface-color);
}

/* Placeholder specific styling just in case to show it clearly */
.app-screenshot.placeholder {
  opacity: 0.9;
}

.img-left {
  width: 200px;
  height: 433px;
  left: 0;
  top: 50%;
  transform: translateY(-40%) rotate(-10deg) scale(0.9);
  z-index: 1;
  opacity: 0.7;
}

.img-center {
  width: 240px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 40px 80px rgba(10, 10, 15, 0.8), 0 0 40px var(--primary-glow);
}

.img-right {
  width: 200px;
  height: 433px;
  right: 0;
  top: 50%;
  transform: translateY(-60%) rotate(10deg) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}

/* Floating animation for mockups */
@keyframes float1 { 0% { transform: translateY(-40%) rotate(-10deg) scale(0.9); } 50% { transform: translateY(-43%) rotate(-9deg) scale(0.9); } 100% { transform: translateY(-40%) rotate(-10deg) scale(0.9); } }
@keyframes float2 { 0% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -52%); } 100% { transform: translate(-50%, -50%); } }
@keyframes float3 { 0% { transform: translateY(-60%) rotate(10deg) scale(0.9); } 50% { transform: translateY(-57%) rotate(9deg) scale(0.9); } 100% { transform: translateY(-60%) rotate(10deg) scale(0.9); } }

.popup-anim-1 { animation: float1 6s ease-in-out infinite; }
.popup-anim-2 { animation: float2 5s ease-in-out infinite; }
.popup-anim-3 { animation: float3 7s ease-in-out infinite; }

/* Interactive Hover state for mockups */
.mockup-container:hover .img-left {
  transform: translateY(-40%) rotate(-15deg) scale(0.9) translateX(-20px);
  opacity: 1;
}
.mockup-container:hover .img-right {
  transform: translateY(-60%) rotate(15deg) scale(0.9) translateX(20px);
  opacity: 1;
}
.mockup-container:hover .img-center {
  transform: translate(-50%, -50%) scale(1.05);
}

/* =========================================
   Features Section
   ========================================= */
.features {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Adding a slight stagger to feature cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

.feature-card:hover {
  transform: translateY(-8px) !important; /* overrides visible class transform */
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: white;
}

.bg-purple { background: linear-gradient(135deg, #a67cfa, #8c52ff); box-shadow: 0 8px 16px rgba(140, 82, 255, 0.3); }
.bg-pink { background: linear-gradient(135deg, #ff8ebf, #ff52a2); box-shadow: 0 8px 16px rgba(255, 82, 162, 0.3); }
.bg-blue { background: linear-gradient(135deg, #74d6ff, #2bc1ff); box-shadow: 0 8px 16px rgba(43, 193, 255, 0.3); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  padding: 80px 24px;
  margin-bottom: 40px;
}

.cta-card {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(22, 24, 34, 0.8), rgba(28, 30, 42, 0.8));
  border: 1px solid rgba(140, 82, 255, 0.3);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.cta-card.visible {
  opacity: 1;
  transform: scale(1);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(140, 82, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--surface-border);
  background: var(--surface-color);
  padding-top: 64px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: white;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a, .footer-contact a, .footer-contact p {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* simple mobile styling for now */
  }
  
  .mockup-container {
    transform: scale(0.8);
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-visual {
    height: 400px;
  }
  
  .mockup-container {
    transform: scale(0.6);
  }
}
