/* ================================
   CSS Variables & Design System
   ================================ */
:root {
  --background: hsl(215, 30%, 8%);
  --foreground: hsl(210, 20%, 98%);
  
  --card: hsl(215, 25%, 12%);
  --card-foreground: hsl(210, 20%, 98%);
  
  --primary: hsl(210, 100%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  
  --secondary: hsl(215, 20%, 18%);
  --secondary-foreground: hsl(210, 20%, 98%);
  
  --muted: hsl(215, 20%, 20%);
  --muted-foreground: hsl(210, 15%, 60%);
  
  --accent: hsl(145, 65%, 48%);
  --accent-foreground: hsl(0, 0%, 100%);
  
  --border: hsl(215, 20%, 18%);
  
  --radius: 1rem;
  
  --hero-gradient: linear-gradient(135deg, hsl(210, 100%, 45%) 0%, hsl(215, 80%, 20%) 100%);
  --card-shadow: 0 4px 24px -4px hsla(0, 0%, 0%, 0.3);
  --card-hover-shadow: 0 12px 40px -8px hsla(210, 100%, 50%, 0.3);
  --glow: 0 0 80px hsla(210, 100%, 50%, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================
   Layout
   ================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* ================================
   Animations
   ================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up-delayed {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blob-1 {
  top: 25%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  background: hsla(210, 100%, 50%, 0.1);
}

.hero-blob-2 {
  bottom: 25%;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: hsla(145, 65%, 48%, 0.1);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 5rem;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(210, 100%, 50%, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-icon {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-description {
    margin: 0 0 2rem;
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .stats {
    justify-content: flex-start;
  }
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.stat-star {
  font-size: 1.25rem;
}

.stat-value {
  font-weight: 600;
}

.stat-label {
  color: var(--muted-foreground);
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .store-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .store-buttons {
    justify-content: flex-start;
  }
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 220px;
}

.store-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: hsla(210, 100%, 50%, 0.3);
}

.store-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 0.75rem;
  opacity: 0.7;
}

.store-name {
  font-weight: 700;
}

.hero-image {
  flex-shrink: 0;
}

.app-icon-glow {
  position: absolute;
  inset: 0;
  background: hsla(210, 100%, 50%, 0.2);
  border-radius: 3rem;
  filter: blur(40px);
  transform: scale(1.1);
}

.hero-image {
  position: relative;
}

.app-icon {
  position: relative;
  width: 16rem;
  height: 16rem;
  border-radius: 3rem;
  box-shadow: var(--card-hover-shadow);
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 640px) {
  .app-icon {
    width: 20rem;
    height: 20rem;
  }
}

/* ================================
   Features Section
   ================================ */
.features {
  padding: 6rem 0;
  background: hsla(210, 20%, 10%, 0.5);
}

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

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(210, 100%, 50%, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: hsla(210, 100%, 50%, 0.2);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ================================
   Screenshots Section
   ================================ */
.screenshots {
  padding: 6rem 0;
  overflow: hidden;
}

.screenshots-wrapper {
  margin: 0 -1rem;
  padding: 0 1rem;
}

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot {
  flex-shrink: 0;
  height: 450px;
  width: auto;
  border-radius: 2rem;
  box-shadow: var(--card-shadow);
  scroll-snap-align: center;
  transition: all 0.3s ease;
}

.screenshot:first-child {
  margin-left: 1rem;
}

.screenshot:last-child {
  margin-right: 1rem;
}

@media (min-width: 640px) {
  .screenshot {
    height: 500px;
  }
}

.screenshot:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.screenshots-hint {
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .screenshots-hint {
    display: none;
  }
  
  .screenshots-scroll {
    justify-content: center;
  }
  
  .screenshot:first-child {
    margin-left: 0;
  }
  
  .screenshot:last-child {
    margin-right: 0;
  }
}

/* ================================
   CTA Section
   ================================ */
.cta {
  position: relative;
  padding: 6rem 0;
  background: var(--hero-gradient);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  background: hsla(0, 0%, 100%, 0.1);
}

.cta-blob-1 {
  top: 0;
  left: 25%;
  width: 16rem;
  height: 16rem;
}

.cta-blob-2 {
  bottom: 0;
  right: 25%;
  width: 16rem;
  height: 16rem;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.8);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .cta-description {
    font-size: 1.25rem;
  }
}

.cta-buttons {
  justify-content: center;
}

.store-btn-light {
  background: hsla(0, 0%, 100%, 0.1);
  border-color: hsla(0, 0%, 100%, 0.2);
  color: var(--primary-foreground);
}

.store-btn-light:hover {
  background: hsla(0, 0%, 100%, 0.2);
  border-color: hsla(0, 0%, 100%, 0.3);
}

/* ================================
   Footer
   ================================ */
.footer {
  padding: 3rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
}

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

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}
