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

/* === Custom Properties === */
:root {
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --border: #2D2D2D;
  --accent: #F97316;
  --accent-dim: #EA580C;
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --radius: 12px;
  --radius-sm: 8px;
  --border-hover: #404040;
}

/* === Body === */
body {
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* === Typography Utilities === */
.section-header {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
}

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

/* === Hero Section === */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  position: relative;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.6s;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero .logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0s;
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.15s;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.3s;
}

.badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.45s;
}

.badge:hover {
  background-color: var(--accent-dim);
}

/* === Features Section === */
.features {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* === Screenshots Section === */
.screenshots {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshots-row {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.phone-frame {
  width: 220px;
  flex-shrink: 0;
  text-align: center;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid var(--border);
  display: block;
}

.phone-frame .caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Desktop: clickable screenshots */
@media (min-width: 769px) {
  .phone-frame img {
    cursor: zoom-in;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  .phone-frame img:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  border-radius: 28px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.open img {
  transform: scale(1);
}

/* === Privacy Page === */
.privacy-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  position: relative;
}

.privacy-hero .back-link {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-dim);
}

.privacy-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.privacy-app-name {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.privacy-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.privacy-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.privacy-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.privacy-effective {
  margin-top: 2rem;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  text-align: center;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

footer .footer-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

footer p {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-dim);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.0625rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-row {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .phone-frame {
    scroll-snap-align: center;
  }

  .privacy-hero .back-link {
    position: static;
    margin-bottom: 1.5rem;
  }

  .privacy-app-name {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .logo,
  .hero h1,
  .hero .tagline,
  .badge {
    animation: none;
  }
}
