/* SnapDeck AI Landing Page Styles */

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

:root {
  --brand-indigo: #4F46E5;
  --brand-purple: #7C3AED;
  --brand-indigo-dark: #3730A3;
  --brand-purple-dark: #5B21B6;
  --brand-indigo-light: #EEF2FF;
  --brand-gold: #FBBF24;
  --brand-gold-light: #FDE68A;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-light: #fff;
  --bg-white: #fff;
  --bg-light: #F8F7FF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Fade-in animation -- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -- Navigation -- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(79, 70, 229, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* -- Hero Section -- */
.hero {
  background: linear-gradient(160deg, var(--brand-indigo-dark) 0%, var(--brand-indigo) 40%, var(--brand-purple) 100%);
  color: var(--text-light);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(251,191,36,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

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

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

/* -- CSS Phone Frame -- */
.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 0 0 2px #333, 0 0 0 4px #1a1a1a;
}

.phone-frame img {
  width: 100%;
  border-radius: 30px;
  display: block;
}

/* Dynamic Island */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 2;
}

.hero-screenshot {
  max-width: 280px;
  margin: 48px auto 0;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

/* -- Features Section -- */
.features {
  padding: 96px 24px;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s, transform 0.3s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-icon.snap {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-indigo);
}

.feature-icon.ai {
  background: rgba(251, 191, 36, 0.12);
  color: #D97706;
}

.feature-icon.privacy {
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
}

.feature-icon.study {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-indigo);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* -- Screenshots Section -- */
.screenshots {
  padding: 96px 0;
  background: var(--bg-light);
}

.screenshots .section-header {
  padding: 0 24px;
}

.screenshot-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

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

.screenshot-gallery {
  display: inline-flex;
  gap: 24px;
  padding: 0 24px;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: center;
}

.screenshot-item .phone-frame {
  border-radius: 36px;
  padding: 8px;
}

.screenshot-item .phone-frame img {
  border-radius: 28px;
}

.screenshot-item .phone-frame::before {
  top: 13px;
  width: 60px;
  height: 18px;
}

/* Center the gallery on desktop */
@media (min-width: 1400px) {
  .screenshot-scroll {
    display: flex;
    justify-content: center;
  }
}

/* -- How It Works Section -- */
.how-it-works {
  padding: 96px 24px;
  background: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-purple));
  color: var(--text-light);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -- Premium Section -- */
.premium {
  padding: 96px 24px;
  background: var(--bg-light);
}

.premium-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--brand-indigo-dark) 0%, var(--brand-indigo) 50%, var(--brand-purple) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--text-light);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.premium-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.premium-card .premium-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  margin-bottom: 32px;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.premium-feature .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(251, 191, 36, 0.3);
  color: var(--brand-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.premium-cta-text {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-top: 8px;
}

/* -- Download CTA -- */
.download-cta {
  padding: 96px 24px;
  background: var(--bg-white);
  text-align: center;
}

.download-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

.download-cta .requirements {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 16px;
}

/* -- Footer -- */
.footer {
  background: var(--brand-indigo-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 24px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer .copyright {
  font-size: 0.85rem;
}

/* -- Mobile Responsive -- */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(55, 48, 163, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 120px 20px 60px;
  }

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

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

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .hero-screenshot {
    max-width: 220px;
    margin-top: 36px;
  }

  .phone-frame {
    border-radius: 32px;
    padding: 8px;
  }

  .phone-frame img {
    border-radius: 24px;
  }

  .phone-frame::before {
    top: 13px;
    width: 56px;
    height: 18px;
  }

  .features {
    padding: 64px 20px;
  }

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .screenshots {
    padding: 64px 0;
  }

  .screenshot-item {
    width: 220px;
  }

  .screenshot-item .phone-frame {
    border-radius: 30px;
    padding: 6px;
  }

  .screenshot-item .phone-frame img {
    border-radius: 24px;
  }

  .screenshot-item .phone-frame::before {
    top: 10px;
    width: 50px;
    height: 15px;
  }

  .how-it-works {
    padding: 64px 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .premium {
    padding: 64px 20px;
  }

  .premium-card {
    padding: 32px 24px;
  }

  .premium-card h2 {
    font-size: 1.6rem;
  }

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

  .download-cta {
    padding: 64px 20px;
  }

  .download-cta h2 {
    font-size: 1.8rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

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

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

  .hero-screenshot {
    max-width: 180px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 7px;
  }

  .phone-frame img {
    border-radius: 21px;
  }

  .phone-frame::before {
    top: 11px;
    width: 48px;
    height: 15px;
  }

  .feature-card {
    padding: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* -- Tablet tweaks -- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .features-grid {
    gap: 24px;
  }

  .screenshot-item {
    width: 240px;
  }

  .steps-grid {
    gap: 32px;
  }
}
