/* DownloadDetox Splash Page Styles */

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

:root {
  --color-bg: #faf8f5;
  --color-text: #2d2a33;
  --color-text-light: #6b6577;
  --color-accent: #7c5cfc;
  --color-accent-hover: #6344e0;
  --color-pink: #f472b6;
  --color-teal: #2dd4bf;
  --color-orange: #fb923c;
  --color-blue: #60a5fa;
  --color-card-bg: #ffffff;
  --gradient-hero: linear-gradient(
    135deg,
    #e0e7ff 0%,
    #fce7f3 50%,
    #fef3c7 100%
  );
  --gradient-cta: linear-gradient(135deg, #fce7f3 0%, #e0e7ff 100%);
  --gradient-btn: linear-gradient(135deg, #7c5cfc 0%, #f472b6 100%);
  --gradient-btn-hover: linear-gradient(135deg, #6344e0 0%, #ec4899 100%);
  --shadow-soft: 0 4px 24px rgba(124, 92, 252, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lifted: 0 16px 48px rgba(124, 92, 252, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* ---------- Buy Button ---------- */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.01em;
}

.btn-buy:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lifted);
}

.btn-buy .price-tag {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  padding: 100px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(124, 92, 252, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(244, 114, 182, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

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

.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  object-fit: contain;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

.hero .tagline {
  font-size: 1.35rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-weight: 400;
}

/* ---------- Features ---------- */
.features {
  padding: 40px 24px;
}

.features .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.feature-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.feature-icon.scan {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.feature-icon.sort {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}
.feature-icon.buckets {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}
.feature-icon.cleanup {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

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

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

/* ---------- Screenshot ---------- */
.screenshot {
  padding: 60px 24px 100px;
  text-align: center;
}

.screenshot-frame {
  display: inline-block;
  position: relative;
  max-width: 780px;
  width: 100%;
  transform: rotate(-1.5deg);
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: var(--gradient-btn);
  border-radius: calc(var(--radius) + 8px);
  z-index: -1;
  opacity: 0.25;
  filter: blur(2px);
}

.demo-video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: block;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--gradient-cta);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(124, 92, 252, 0.08) 0%,
    transparent 70%
  );
}

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

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

.cta .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

.cta .no-sub {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ---------- Thanks Page ---------- */
.thanks-hero {
  min-height: calc(100vh - 121px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.btn-download {
  background: linear-gradient(135deg, #2dd4bf 0%, #60a5fa 100%);
}

.btn-download:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.footer a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s;
}

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

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

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

@media (max-width: 600px) {
  .hero {
    padding: 72px 20px 60px;
  }

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

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

  .app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

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

  .features {
    padding: 64px 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .btn-buy {
    font-size: 1.05rem;
    padding: 14px 32px;
  }

  .cta h2 {
    font-size: 1.7rem;
  }

  .screenshot-frame {
    transform: rotate(-0.8deg);
  }
}
