/* ===========================
   LittleClicks Design System
   =========================== */

:root {
  --bg: #FFFBF5;
  --bg-alt: #FEF6EC;
  --fg: #1C1917;
  --fg-muted: #78716C;
  --fg-subtle: #A8A29E;
  --accent: #FF6B6B;
  --accent-light: #FFF0F0;
  --accent-warm: #F97316;
  --accent-coral: #F472B6;
  --accent-blue: #4F6EF7;
  --accent-green: #22C55E;
  --accent-yellow: #F59E0B;
  --accent-purple: #A78BFA;
  --border: #E7E5E4;
  --shadow: rgba(28, 25, 23, 0.06);
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.shape-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #FFE4E1 0%, transparent 70%);
  top: -120px; right: -80px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #E0F2FE 0%, transparent 70%);
  bottom: 80px; left: -60px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #F0FFF4 0%, transparent 70%);
  top: 30%; right: 20%;
}
.shape-4 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, #FFF7ED 0%, transparent 70%);
  bottom: 20%; right: 10%;
}
.shape-5 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, #F5F3FF 0%, transparent 70%);
  top: 15%; left: 30%;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.headline-main {
  color: var(--fg);
}
.headline-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

/* Card Stack */
.card-stack {
  position: relative;
  height: 360px;
  width: 100%;
  max-width: 400px;
}

.preview-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 32px var(--shadow), 0 2px 8px var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  width: 320px;
  transition: transform 0.4s ease;
}

.card-1 { top: 0; left: 40px; z-index: 3; transform: rotate(-2deg); }
.card-2 { top: 80px; left: 0; z-index: 2; transform: rotate(1.5deg); }
.card-3 { top: 160px; left: 60px; z-index: 1; transform: rotate(-0.5deg); }

.card-art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.card-art-1 {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #A7F3D0 100%);
  position: relative;
  overflow: hidden;
}
.card-art-1::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 36px;
  background: #34D399;
  border-radius: 50% 50% 40% 40%;
  opacity: 0.5;
}
.card-art-1::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 16px;
  background: #10B981;
  border-radius: 50% 50% 0 0;
}
.card-art-2 {
  background: linear-gradient(135deg, #F0F9FF 0%, #BAE6FD 50%, #7DD3FC 100%);
  position: relative;
  overflow: hidden;
}
.card-art-2::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 24px;
  background: #0EA5E9;
  border-radius: 50%;
}
.card-art-2::before {
  content: '';
  position: absolute;
  top: 10px; right: 12px;
  width: 14px; height: 10px;
  background: #38BDF8;
  border-radius: 50%;
}
.card-art-3 {
  background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 50%, #C4B5FD 100%);
  position: relative;
}
.card-art-3::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background: #8B5CF6;
  border-radius: 50%;
}
.card-art-3::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
}

.card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.card-author {
  font-size: 12px;
  color: var(--fg-subtle);
}
.card-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-green);
}

/* Stats Row */
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}
.stat-label {
  font-size: 13px;
  color: var(--fg-subtle);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */

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

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 48px;
}

/* ===========================
   HOW IT WORKS
   =========================== */

.how-it-works {
  padding: 80px 24px;
  background: white;
  text-align: center;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  max-width: 240px;
  padding: 0 32px;
}

.step-icon {
  margin: 0 auto 16px;
  width: fit-content;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-arrow {
  padding-top: 16px;
  opacity: 0.4;
}

/* ===========================
   DIFFERENTIATORS
   =========================== */

.differentiators {
  padding: 80px 24px;
  background: var(--bg);
}

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

.diff-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.diff-card-social::before { background: var(--accent-coral); }
.diff-card-edit::before { background: var(--accent-purple); }
.diff-card-cute::before { background: var(--accent-yellow); }
.diff-card-speed::before { background: var(--accent-warm); }

.diff-icon {
  margin-bottom: 16px;
}

.diff-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.diff-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.diff-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ===========================
   BROWSE BY THEME
   =========================== */

.browse {
  padding: 80px 24px;
  background: white;
}

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

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

.theme-card {
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.theme-spring { background: #ECFDF5; }
.theme-ocean { background: #F0F9FF; }
.theme-space { background: #1E1B4B; }
.theme-farm { background: #FEF9C3; }
.theme-bugs { background: #FFF7ED; }
.theme-holiday { background: #FFF1F2; }

.theme-art { margin-bottom: 4px; }

.theme-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.theme-space .theme-name { color: white; }

.theme-count {
  font-size: 13px;
  color: var(--fg-muted);
}

.theme-space .theme-count { color: rgba(255,255,255,0.6); }

/* ===========================
   CLOSING
   =========================== */

.closing {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.closing-shape {
  position: absolute;
  border-radius: 50%;
}
.cs-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FFE4E1 0%, transparent 70%);
  top: -100px; left: -100px;
}
.cs-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #E0F2FE 0%, transparent 70%);
  bottom: -80px; right: -80px;
}
.cs-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #F5F3FF 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

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

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-creator {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  text-align: left;
}

.creator-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.creator-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.creator-sub {
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--fg);
  color: white;
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: white; }

.footer-bottom {
  max-width: 960px;
  margin: 32px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-headline { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { display: none; }
  .card-stack { display: none; }
  
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .step-arrow { display: none; }
  
  .diff-grid {
    grid-template-columns: 1fr;
  }
  
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .theme-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stat-row {
    gap: 16px;
  }
  .stat-num { font-size: 18px; }
}
