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

:root {
  --color-bg: #263352;
  --color-text: #f5f5f5;
  --color-text-muted: #a8b4c9;
  --color-accent: #6366f1;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 10rem;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-text-muted);
  max-width: 32ch;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* App Store Button */
.app-store-button {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-button:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.app-store-button img {
  height: 54px;
  width: auto;
}

/* Main Section */
.main {
  padding: 6rem 2rem;
  min-height: 100vh;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Screenshots */
.screenshots {
  position: sticky;
  top: 6rem;
  height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-stack {
  position: relative;
  width: 280px;
  height: 560px;
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Screenshot stack positioning - will be animated with JS */
.screenshot[data-index="0"] { z-index: 5; }
.screenshot[data-index="1"] { z-index: 4; transform: translateY(20px) scale(0.95); opacity: 0.8; }
.screenshot[data-index="2"] { z-index: 3; transform: translateY(40px) scale(0.9); opacity: 0.6; }
.screenshot[data-index="3"] { z-index: 2; transform: translateY(60px) scale(0.85); opacity: 0.4; }
.screenshot[data-index="4"] { z-index: 1; transform: translateY(80px) scale(0.8); opacity: 0.2; }

/* Content Text */
.content {
  padding-top: 4rem;
}

.content-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

/* Footer */
footer {
  padding: 6rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

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

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

.footer-links .separator {
  color: var(--color-text-muted);
  opacity: 0.5;
}

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

/* Responsive */
@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .screenshots {
    position: relative;
    top: 0;
    height: auto;
    padding: 2rem 0;
  }

  .screenshot-stack {
    width: 240px;
    height: 480px;
  }

  .content {
    padding-top: 0;
  }

  .content-text p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .screenshot-stack {
    width: 200px;
    height: 400px;
  }

  .screenshot {
    border-radius: 30px;
  }
}
