:root {
  --bg: #f8f7f9;
  --text: #1a1e24;
  --subtle-text: #555;
  --accent-gradient: linear-gradient(135deg, #8E44AD, #3FA8E0);
  --card-bg: #fff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1e24;
    --text: #f5f0f6;
    --subtle-text: #aaa;
    --card-bg: #242832;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  .logo {
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  }
}

.logo:hover {
  transform: scale(1.04);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}

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

.hero-subtitle {
  color: var(--subtle-text);
  max-width: 600px;
  margin: 1.5rem auto 2rem;
  font-size: 1.15rem;
}

.app-store-button img {
  width: 180px;
  transition: transform 0.2s ease;
}

.app-store-button:hover img {
  transform: scale(1.05);
}

.hero-mockup {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-frame img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* FEATURES */
.features {
  text-align: center;
  padding: 4rem 1rem;
}

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

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

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* GALLERY */
.screenshots {
  padding: 5rem 1rem;
  text-align: center;
}

.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.screenshot-gallery .iphone-frame {
  width: 240px;
  height: 500px;
}

/* CTA */
.cta {
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.app-store-button.large {
  background: white;
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-store-button.large:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--subtle-text);
  font-size: 0.9rem;
}

.footer-nav {
  margin-top: 1rem;
}

.footer-nav a {
  color: var(--subtle-text);
  margin: 0 0.75rem;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}