/* ───────────────────────────────────────────
   SimpleCast Slideshow — Marketing Site
   ─────────────────────────────────────────── */

:root {
  --bg:            #1A1A2E;
  --bg-warm:       #16102a;
  --bg-deep:       #0f0d17;
  --card-fill:     rgba(255, 255, 255, 0.05);
  --card-border:   rgba(255, 255, 255, 0.08);
  --card-hover:    rgba(255, 255, 255, 0.12);
  --magenta:       #E91E8C;
  --violet:        #8B5CF6;
  --lavender:      #C4B5FD;
  --steel:         #6B7AAD;
  --text-primary:  rgba(255, 255, 255, 0.90);
  --text-secondary:rgba(255, 255, 255, 0.60);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --gradient:      linear-gradient(135deg, #8B5CF6, #E91E8C);
  --gradient-soft: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(233,30,140,0.3));
  --font-stack:    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width:     1120px;
  --radius:        16px;
  --radius-sm:     10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Layout ────────────────────────────── */

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

section {
  padding: 100px 0;
  position: relative;
}

/* ── Typography ────────────────────────── */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.15rem; }

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

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

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Scroll Reveal ─────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-group .reveal:nth-child(8) { transition-delay: 0.56s; }
.reveal-group .reveal:nth-child(9) { transition-delay: 0.64s; }
.reveal-group .reveal:nth-child(10) { transition-delay: 0.72s; }

/* ── Nav ───────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ──────────────────────────────── */

.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, rgba(233,30,140,0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 60px rgba(139,92,246,0.35)) drop-shadow(0 0 120px rgba(233,30,140,0.15));
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-subtagline {
  font-size: 1.0625rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.store-badge img {
  height: 48px;
  transition: opacity 0.2s;
}

.store-badge:hover img {
  opacity: 0.85;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--card-fill);
  border: 1px solid var(--card-border);
  color: var(--lavender);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-screenshot {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 120px rgba(139,92,246,0.08);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Features ──────────────────────────── */

.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--card-fill);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--lavender);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ── How It Works ─────────────────────── */

.how-it-works {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 50%, var(--bg) 100%);
}

.how-it-works-showcase {
  max-width: 820px;
  margin: 0 auto 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 120px rgba(139,92,246,0.06);
}

.how-it-works-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

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

/* ── Use Cases ─────────────────────────── */

.use-cases {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.use-cases-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.use-case-card {
  padding: 24px 32px;
  border-radius: var(--radius);
  background: var(--card-fill);
  border: 1px solid var(--card-border);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
  min-width: 180px;
}

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

.use-case-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: block;
}

.use-case-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Pricing ───────────────────────────── */

.pricing {
  background: var(--bg-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(233,30,140,0.08) 0%, rgba(139,92,246,0.04) 50%, transparent 70%);
  pointer-events: none;
}

.pricing-amount {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}

.pricing-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-emphasis {
  font-size: 1.125rem;
  color: var(--lavender);
  font-weight: 600;
  margin-bottom: 40px;
}

.pricing .store-badge {
  display: inline-block;
  margin-bottom: 56px;
}

.specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.spec {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.spec svg {
  width: 16px;
  height: 16px;
  stroke: var(--violet);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────── */

footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  background: var(--bg-deep);
}

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

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

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

/* ── Privacy Page ──────────────────────── */

.privacy-page {
  padding: 160px 0 100px;
  min-height: 100vh;
}

.privacy-page .container {
  max-width: 680px;
}

.privacy-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.privacy-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.privacy-page p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.privacy-page a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s;
}

.privacy-page a:hover {
  color: var(--text-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lavender);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-primary);
}

/* ── Responsive ────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .hero {
    padding: 140px 0 72px;
  }

  .nav-links {
    gap: 20px;
  }

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

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

  .use-cases-grid {
    justify-content: stretch;
  }

  .use-case-card {
    min-width: unset;
    flex: 1 1 calc(50% - 8px);
  }

  .specs {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .use-case-card {
    flex: 1 1 100%;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }
}
