:root {
  --bg-warm: #FAF7F5;
  --bg-deep: #1a1128;
  --text-primary: #5D4E4E;
  --text-light: #9B8E8E;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --sakura: #FFCAD4;
  --sunset-orange: #FEC89A;
  --sunset-red: #FF6B6B;
  --ocean-blue: #00B4D8;
  --forest-green: #6BCB77;
  --cosmic-purple: #7400B8;
  --cozy-brown: #D4A373;
  --amber: #F5A623;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-warm);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ===== FLOATING PIXELS BACKGROUND ===== */
.pixel-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-pixel {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-20vh) rotate(180deg); opacity: 0; }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 247, 245, 0.8);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(102, 126, 234, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 2px;
}

.nav-logo-grid span {
  border-radius: 2px;
  animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.nav-logo-grid span:nth-child(1) { background: var(--sunset-red); animation-delay: 0s; }
.nav-logo-grid span:nth-child(2) { background: var(--sunset-orange); animation-delay: 0.2s; }
.nav-logo-grid span:nth-child(3) { background: var(--forest-green); animation-delay: 0.4s; }
.nav-logo-grid span:nth-child(4) { background: var(--ocean-blue); animation-delay: 0.1s; }
.nav-logo-grid span:nth-child(5) { background: var(--gradient-start); animation-delay: 0.3s; }
.nav-logo-grid span:nth-child(6) { background: var(--cosmic-purple); animation-delay: 0.5s; }
.nav-logo-grid span:nth-child(7) { background: var(--sakura); animation-delay: 0.15s; }
.nav-logo-grid span:nth-child(8) { background: var(--cozy-brown); animation-delay: 0.35s; }
.nav-logo-grid span:nth-child(9) { background: var(--gradient-end); animation-delay: 0.25s; }

.nav-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gradient-start); }

.nav-cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gradient-start);
  margin-bottom: 20px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--cosmic-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-deep);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 17, 40, 0.3);
  border-color: var(--gradient-start);
}

.store-btn svg { flex-shrink: 0; }

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn-text small {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 600;
}

.store-btn-text strong {
  font-size: 16px;
  font-weight: 800;
}

/* Phone Mockup */
.hero-phone-area {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(102, 126, 234, 0.25),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover { transform: rotate(0deg) scale(1.02); }

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #f8f5f2 0%, #fff 100%);
}

/* Simulated App Screen Inside Phone */
.app-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.app-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 40px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-title {
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.app-header-badges {
  display: flex;
  gap: 6px;
}

.app-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  color: white;
  font-weight: 700;
}

.app-content {
  padding: 12px;
}

.app-daily {
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  color: white;
}

.app-daily-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.app-daily-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-grid-item {
  border-radius: 12px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.app-grid-item.item-1 {
  background: linear-gradient(135deg, var(--sakura), #F4ACB7);
}

.app-grid-item.item-2 {
  background: linear-gradient(135deg, var(--ocean-blue), #48CAE4);
}

.app-grid-item.item-3 {
  background: linear-gradient(135deg, var(--forest-green), #A4BE7B);
}

.app-grid-item.item-4 {
  background: linear-gradient(135deg, var(--cosmic-purple), #5E60CE);
}

/* Pixel grid inside the grid items */
.mini-pixels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  width: 100%;
  height: 100%;
  padding: 8px;
  gap: 2px;
}

.mini-pixels span {
  border-radius: 2px;
  opacity: 0.6;
  animation: pixelFadeIn 3s ease-in-out infinite alternate;
}

@keyframes pixelFadeIn {
  from { opacity: 0.3; }
  to { opacity: 0.9; }
}

.app-nav {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 700;
  color: var(--text-light);
}

.app-nav-item.active { color: var(--gradient-start); }

.app-nav-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.3;
}

.app-nav-item.active .app-nav-dot { opacity: 1; }

/* Floating accent shapes */
.hero-accent {
  position: absolute;
  border-radius: 16px;
  z-index: -1;
}

.hero-accent-1 {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--sakura), transparent);
  top: 10%; right: 5%;
  animation: float 6s ease-in-out infinite;
}

.hero-accent-2 {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--ocean-blue), transparent);
  bottom: 20%; left: 45%;
  animation: float 5s ease-in-out infinite 1s;
}

.hero-accent-3 {
  width: 35px; height: 35px;
  background: linear-gradient(135deg, var(--sunset-orange), transparent);
  top: 30%; left: 55%;
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gradient-start);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.6;
}

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

.feature-card {
  background: white;
  border-radius: 24px;
  padding: 36px 28px;
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--sunset-red), var(--sunset-orange)); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gradient-start), var(--cosmic-purple)); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--ocean-blue), var(--forest-green)); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--sakura), #F4ACB7); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, var(--cosmic-purple), var(--gradient-start)); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, var(--cozy-brown), var(--sunset-orange)); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(254,200,154,0.12)); }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(116,75,162,0.12)); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(107,203,119,0.12)); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, rgba(255,202,212,0.15), rgba(244,172,183,0.15)); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, rgba(116,0,184,0.12), rgba(94,96,206,0.12)); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, rgba(212,163,115,0.12), rgba(254,200,154,0.12)); }

.feature-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.65;
}

/* ===== SHOWCASE (Screenshots) ===== */
.showcase {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, #f0eaff 50%, var(--bg-warm) 100%);
}

.showcase-phones {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  perspective: 1200px;
}

.showcase-phone {
  width: 220px;
  height: 450px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.showcase-phone:nth-child(1) { transform: rotate(-8deg) translateY(20px); }
.showcase-phone:nth-child(2) { transform: scale(1.08); z-index: 2; box-shadow: 0 35px 80px rgba(102, 126, 234, 0.3); }
.showcase-phone:nth-child(3) { transform: rotate(8deg) translateY(20px); }

.showcase-phone:hover { transform: rotate(0deg) translateY(-10px) scale(1.05); z-index: 3; }

.showcase-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* Screen 1: Coloring in progress */
.screen-coloring {
  background: #f8f5f2;
  display: flex;
  flex-direction: column;
}

.screen-coloring-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 30px 14px 12px;
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-coloring-progress {
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #e8e2de;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 3px;
}

.pixel-grid-demo {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(14, 1fr);
  gap: 1px;
  padding: 10px;
  background: #f8f5f2;
}

.pixel-grid-demo span {
  border-radius: 2px;
  transition: all 0.2s;
}

.screen-palette {
  display: flex;
  gap: 4px;
  padding: 8px 10px 16px;
  justify-content: center;
}

.palette-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.palette-dot.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text-primary);
}

/* Screen 2: Books/Packs */
.screen-books {
  background: #f8f5f2;
  display: flex;
  flex-direction: column;
}

.screen-books-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 30px 14px 12px;
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.screen-books-tabs {
  display: flex;
  padding: 10px 10px 0;
  gap: 6px;
}

.book-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #ede7e3;
  color: var(--text-light);
}

.book-tab.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
}

.screen-books-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.book-card {
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 0.9;
  position: relative;
}

.book-card-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.book-card-title {
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.book-new-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--sunset-red);
  color: white;
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  animation: pulse 2s ease-in-out infinite;
}

/* Screen 3: AI Create */
.screen-ai {
  background: linear-gradient(180deg, #f8f5f2 0%, #ede7ff 100%);
  display: flex;
  flex-direction: column;
}

.screen-ai-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 30px 14px 12px;
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-ai-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.ai-sparkle {
  font-size: 48px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.ai-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ai-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
  padding: 0 10px;
}

.ai-prompt-box {
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.ai-prompt-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-light);
  text-align: left;
}

.ai-prompt-btn {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ai-examples {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-example-chip {
  background: rgba(102, 126, 234, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  color: var(--gradient-start);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 240px;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -24px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), transparent);
}

.step:last-child::after { display: none; }

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  position: relative;
}

.step:nth-child(1) .step-number { background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(254,200,154,0.1)); }
.step:nth-child(2) .step-number { background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(116,75,162,0.1)); }
.step:nth-child(3) .step-number { background: linear-gradient(135deg, rgba(107,203,119,0.1), rgba(0,180,216,0.1)); }

.step h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--cosmic-purple));
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--bg-deep);
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-store-btn svg { flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  color: white;
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 300px;
}

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

.footer-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 7px);
  grid-template-rows: repeat(3, 7px);
  gap: 2px;
}

.footer-logo-grid span { border-radius: 2px; }
.footer-logo-grid span:nth-child(1) { background: var(--sunset-red); }
.footer-logo-grid span:nth-child(2) { background: var(--sunset-orange); }
.footer-logo-grid span:nth-child(3) { background: var(--forest-green); }
.footer-logo-grid span:nth-child(4) { background: var(--ocean-blue); }
.footer-logo-grid span:nth-child(5) { background: var(--gradient-start); }
.footer-logo-grid span:nth-child(6) { background: var(--cosmic-purple); }
.footer-logo-grid span:nth-child(7) { background: var(--sakura); }
.footer-logo-grid span:nth-child(8) { background: var(--cozy-brown); }
.footer-logo-grid span:nth-child(9) { background: var(--gradient-end); }

.footer-logo-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.7;
}

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

.footer-col h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.8);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

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

.footer-bottom-left {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
}

.footer-mimic {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

.mimic-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  font-weight: 700;
}

.mimic-logo:hover { color: var(--amber); }

.mimic-chest {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mimic-chest-body {
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, var(--amber), #c77d1a);
  border-radius: 3px 3px 2px 2px;
  position: relative;
}

.mimic-chest-lid {
  position: absolute;
  top: -5px;
  left: 0;
  width: 18px;
  height: 7px;
  background: linear-gradient(180deg, #e8b84a, var(--amber));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.mimic-logo:hover .mimic-chest-lid {
  transform: rotate(-15deg);
}

.mimic-chest-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: #8b5e1a;
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }

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

  .showcase-phones {
    gap: 16px;
  }

  .showcase-phone {
    width: 170px;
    height: 350px;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step::after { display: none; }

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

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-phone:nth-child(1),
  .showcase-phone:nth-child(3) {
    display: none;
  }

  .showcase-phone:nth-child(2) {
    transform: none;
    width: 250px;
    height: 510px;
  }

  .hero-phone-area { margin-top: 20px; }

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