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

:root {
  --primary: #0058bc;
  --primary-dim: #004ca5;
  --secondary: #006851;
  --surface: #f4f6ff;
  --surface-container: #dee8ff;
  --text: #1a1c20;
  --text-secondary: #6b7280;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* Header */
.header {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
}

.header .icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.header .tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

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

.store-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.store-btn:hover {
  background: var(--primary-dim);
}

.store-btn.secondary {
  background: var(--secondary);
}

.store-btn.secondary:hover {
  background: #005b46;
}

/* Features */
.features {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

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

.feature {
  text-align: center;
  padding: 24px;
}

.feature .emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Screenshots */
.screenshots {
  padding: 80px 20px;
  background: var(--surface);
  text-align: center;
}

.screenshots h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.screenshots-sub {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 48px 32px;
  justify-content: center;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* Tablet: two per row */
@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 260px));
    max-width: 600px;
  }
}

/* Phone: single column, capped so it doesn't fill the screen */
@media (max-width: 560px) {
  .screenshots-grid {
    grid-template-columns: minmax(0, 280px);
    max-width: 280px;
  }
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--surface-container);
  box-shadow: 0 12px 32px rgba(26, 28, 32, 0.12);
}

.shot figcaption {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Footer */
.footer {
  padding: 48px 20px;
  text-align: center;
  border-top: 1px solid var(--surface-container);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

.footer .copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    padding: 60px 20px 40px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header .tagline {
    font-size: 1rem;
  }

  .features {
    padding: 48px 20px;
  }

  .features h2 {
    font-size: 1.5rem;
  }

  .screenshots {
    padding: 48px 20px;
  }

  .screenshots h2 {
    font-size: 1.5rem;
  }
}
