/* ========================================
   SongSweep Landing Page — styles.css
   Dark theme, mobile-first, no frameworks
   Colors from SweepDesign.swift
   ======================================== */

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

:root {
  /* SweepDesign Colors */
  --bg: #0A0A10;
  --surface: #131320;
  --surface-light: #1B1B2E;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --accent: #6ED413;          /* Green Accent */
  --accent-glow: rgba(110, 212, 19, 0.25);
  --midtone: #44CD83;         /* Midtone Teal */
  --keep: #42C2FB;            /* Blue Primary */
  --discard: #FF4D58;         /* Discard Red */
  --bookmark: #FCCB33;        /* Bookmark Gold */
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --nav-height: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-logo:hover {
  opacity: 1;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

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

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1.125rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--keep);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 40px rgba(110, 212, 19, 0.3);
}

.hero h1 {
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.hero-brand {
  display: block;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), var(--midtone), var(--keep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-store-badge-img {
  height: 54px;
  width: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.app-store-badge-img:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

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

/* --- Screenshots Gallery --- */
.screenshots {
  background: var(--bg);
  position: relative;
}

.screenshots-carousel {
  position: relative;
  margin-top: 56px;
}

.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 calc(50vw - 120px) 32px;
}

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

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  transition: transform var(--transition), opacity var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.04);
}

.screenshot-item img {
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Carousel arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(19, 19, 32, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: rgba(110, 212, 19, 0.15);
  border-color: var(--accent);
}

.carousel-btn--prev {
  left: 16px;
}

.carousel-btn--next {
  right: 16px;
}

/* Scroll indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

.carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active::after {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.3);
}

@media (min-width: 768px) {
  .screenshots-scroll {
    padding: 0 calc(50vw - 380px) 32px;
    gap: 20px;
  }

  .screenshot-item img {
    width: 260px;
  }
}

@media (min-width: 1200px) {
  .screenshots-scroll {
    padding: 0 calc(50vw - 500px) 32px;
    gap: 24px;
  }

  .screenshot-item img {
    width: 280px;
  }
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

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

.feature-icon--swipe {
  background: rgba(110, 212, 19, 0.12);
}

.feature-icon--month {
  background: rgba(68, 205, 131, 0.12);
}

.feature-icon--filter {
  background: rgba(66, 194, 251, 0.12);
}

.feature-icon--watch {
  background: rgba(252, 203, 51, 0.12);
}

.feature-icon--stats {
  background: rgba(255, 77, 88, 0.12);
}

.feature-icon--privacy {
  background: rgba(66, 194, 251, 0.12);
}

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

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

/* --- How It Works --- */
.how-it-works {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--midtone));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Connector lines between steps (desktop) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, rgba(110, 212, 19, 0.3), rgba(68, 205, 131, 0.3));
  }
}

/* --- Pricing --- */
.pricing {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(110, 212, 19, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Free Tier --- */
.pricing-free {
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.pricing-free-inner {
  background: var(--surface);
  border: 1px solid rgba(66, 194, 251, 0.2);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-free-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.pricing-free-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--keep);
  margin-bottom: 8px;
}

.pricing-free-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-free-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-free-price-block {
  text-align: right;
  flex-shrink: 0;
}

.pricing-free-price {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-free-period {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.pricing-free-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.pricing-free-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(66, 194, 251, 0.1);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2342C2FB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-free-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 10px;
  background: rgba(66, 194, 251, 0.12);
  border: 1px solid rgba(66, 194, 251, 0.25);
  color: var(--keep);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.pricing-free-cta:hover {
  background: rgba(66, 194, 251, 0.2);
  border-color: rgba(66, 194, 251, 0.4);
  transform: translateY(-2px);
  opacity: 1;
}

/* --- Divider --- */
.pricing-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.pricing-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.pricing-divider-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* --- Pro Subscription Grid (3 cards) --- */
.pricing-pro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .pricing-pro-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

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

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: 0 0 60px -10px var(--accent-glow);
  background: linear-gradient(180deg, rgba(110, 212, 19, 0.06) 0%, var(--surface) 40%);
}

@media (min-width: 768px) {
  .pricing-card--popular {
    transform: scale(1.06);
    z-index: 1;
  }

  .pricing-card--popular:hover {
    transform: scale(1.06) translateY(-4px);
  }
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--midtone));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-card--popular .pricing-tier {
  color: var(--accent);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-amount-old {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-badge--offer {
  background: linear-gradient(135deg, #F5A623, #E8751A);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-save {
  font-size: 0.8125rem;
  color: var(--keep);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(66, 194, 251, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2342C2FB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-trial {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.pricing-trial strong {
  color: var(--keep);
  font-weight: 600;
}

/* --- Lifetime Banner --- */
.pricing-lifetime {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.pricing-lifetime-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(252, 203, 51, 0.06) 0%, var(--surface) 60%);
  border: 1px solid rgba(252, 203, 51, 0.15);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.pricing-lifetime-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pricing-lifetime-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(252, 203, 51, 0.12);
  color: var(--bookmark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-lifetime-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-lifetime-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-lifetime-price-block {
  text-align: right;
  flex-shrink: 0;
}

.pricing-lifetime-price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bookmark);
}

.pricing-lifetime-period {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

/* --- Pricing Mobile --- */
@media (max-width: 767px) {
  .pricing-free-header {
    flex-direction: column;
    gap: 16px;
  }

  .pricing-free-price-block {
    text-align: left;
  }

  .pricing-free-features {
    flex-direction: column;
    gap: 10px;
  }

  .pricing-lifetime-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .pricing-lifetime-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pricing-lifetime-price-block {
    text-align: center;
  }
}

/* --- Privacy Section --- */
.privacy-section {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.privacy-section::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 194, 251, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.privacy-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(66, 194, 251, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 32px;
}

.privacy-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.privacy-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.privacy-badge {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacy-badge-icon {
  color: var(--keep);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

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

/* --- Legal Pages (Privacy Policy, Terms) --- */
.legal-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--accent);
}

.legal-summary {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-summary p {
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.legal-contact {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 48px;
}

.legal-contact p {
  margin-bottom: 0;
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grids */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.2s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: 0.15s; }
.steps .step:nth-child(3) { transition-delay: 0.3s; }

.pricing-pro-grid .pricing-card:nth-child(1) { transition-delay: 0s; }
.pricing-pro-grid .pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-pro-grid .pricing-card:nth-child(3) { transition-delay: 0.2s; }

/* --- Responsive Fine-Tuning --- */
@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 48px;
  }

  .hero-screenshot img {
    width: 220px;
  }

  .screenshot-item img {
    width: 220px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-btn--prev {
    left: 8px;
  }

  .carousel-btn--next {
    right: 8px;
  }

  .pricing-pro-grid {
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 48px;
  }
}

/* --- Language Switcher + Nav Right --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}


.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(19, 19, 32, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1001;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  opacity: 1;
}

.lang-item.active {
  color: var(--accent);
  font-weight: 600;
}

/* --- RTL Support --- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-badge {
  direction: rtl;
}

[dir="rtl"] .feature-card {
  text-align: right;
}

[dir="rtl"] .step {
  text-align: center;
}

[dir="rtl"] .pricing-free-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-free-price-block {
  text-align: left;
}

[dir="rtl"] .pricing-price {
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-lifetime-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-lifetime-price-block {
  text-align: left;
}

[dir="rtl"] .privacy-badges {
  direction: rtl;
}

[dir="rtl"] .footer-inner {
  flex-direction: column;
}

[dir="rtl"] .carousel-btn--prev {
  left: auto;
  right: 16px;
}

[dir="rtl"] .carousel-btn--next {
  right: auto;
  left: 16px;
}

[dir="rtl"] .pricing-free-feature {
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-features li {
  flex-direction: row-reverse;
}

[dir="rtl"] .privacy-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links {
    flex-direction: column;
    text-align: right;
  }

  [dir="rtl"] .pricing-free-header {
    flex-direction: column;
  }

  [dir="rtl"] .pricing-free-price-block {
    text-align: right;
  }

  [dir="rtl"] .pricing-lifetime-inner {
    flex-direction: column;
    text-align: center;
  }

  [dir="rtl"] .pricing-lifetime-price-block {
    text-align: center;
  }
}

@media (min-width: 768px) {
  [dir="rtl"] .footer-inner {
    flex-direction: row-reverse;
    text-align: right;
  }
}

/* --- FAQ Section --- */

.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--surface);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item[open] {
  border-color: rgba(110, 212, 19, 0.3);
  background: var(--surface-light);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
  color: var(--accent);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

[dir="rtl"] .faq-item summary {
  flex-direction: row-reverse;
  text-align: right;
}

/* --- Article Pages --- */

.article-page {
  padding-top: calc(var(--nav-height) + 20px);
}

.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--keep);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-tertiary);
}

.article-header {
  padding: 40px 0 32px;
  text-align: center;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.article-meta-sep {
  margin: 0 8px;
}

.article-body {
  padding: 0 0 60px;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-content p:first-of-type {
  font-size: 1.125rem;
  color: var(--text-primary);
}

.article-faq {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.article-faq details {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.article-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform var(--transition);
}

.article-faq details[open] summary::after {
  content: "-";
}

.article-faq details p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.related-articles {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.related-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
  display: block;
}

.related-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.related-card h3 {
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.article-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tips section on main page */
.tips-section {
  padding: 80px 0;
}

.tips-section .section-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.tips-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tip-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
  display: block;
}

.tip-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.tip-card h3 {
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

@media (max-width: 768px) {
  .article-header {
    padding: 24px 0 20px;
  }

  .article-content {
    font-size: 1rem;
  }

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

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