/* 🍭 Fillico Landing Page - CSS */

/* ═══════════════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════════════ */

:root {
  /* Colors - Candy Shop Palette */
  --bubblegum-pink: #f472b6;
  --magic-berry: #a78bfa;
  --fizz-cyan: #60a5fa;
  --yuzu-sorbet: #fbbf24;
  --minty-fresh: #34d399;
  --cotton-cloud: #fdf2f8;
  --deep-grape: #4c1d95;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--bubblegum-pink),
    var(--magic-berry)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--fizz-cyan),
    var(--minty-fresh)
  );
  --gradient-hero: linear-gradient(
    180deg,
    #fdf2f8 0%,
    #fce7f3 50%,
    #fbd5e8 100%
  );

  /* Typography */
  --font-display: "Fredoka One", cursive;
  --font-body: "Nunito", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(244, 114, 182, 0.2);
  --shadow-medium: 0 8px 30px rgba(244, 114, 182, 0.3);
  --shadow-glow: 0 0 30px rgba(244, 114, 182, 0.4);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cotton-cloud);
  color: var(--deep-grape);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 242, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(244, 114, 182, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--deep-grape);
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--deep-grape);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--bubblegum-pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--deep-grape);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: white;
  color: var(--deep-grape);
  border: 2px solid var(--bubblegum-pink);
}

.btn-secondary:hover {
  background: var(--cotton-cloud);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--bubblegum-pink);
  border: 2px solid var(--bubblegum-pink);
  padding: 0.5rem 1rem;
}

.btn-outline:hover {
  background: var(--bubblegum-pink);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-download {
  background: var(--gradient-primary);
  color: white;
  margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: 80px;
  overflow: hidden;
}

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

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.bubble-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.3), transparent);
  top: 10%;
  left: -100px;
  animation-delay: 0s;
}

.bubble-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent);
  top: 60%;
  right: -50px;
  animation-delay: 2s;
}

.bubble-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3), transparent);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.sparkle {
  position: absolute;
  font-size: 2rem;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 20%;
  right: 20%;
  animation-delay: 0s;
}
.sparkle-2 {
  top: 40%;
  left: 15%;
  animation-delay: 0.7s;
}
.sparkle-3 {
  bottom: 30%;
  right: 30%;
  animation-delay: 1.4s;
}

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

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.badge {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.hero-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 3s ease-in-out infinite;
}

.mascot-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(244, 114, 182, 0.3));
}

.mascot-speech {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-soft);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

.hero-wave path {
  fill: white;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════ */

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════ */

.features {
  padding: var(--space-xl) 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--cotton-cloud);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════════
   MASCOT SECTION
═══════════════════════════════════════════════════════════════ */

.mascot-section {
  padding: var(--space-xl) 0;
  background: var(--gradient-hero);
}

.mascot-states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.mascot-state {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.mascot-state:hover {
  transform: scale(1.05);
}

.state-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.state-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.state-name {
  font-family: var(--font-display);
  color: var(--bubblegum-pink);
}

.state-kaomoji {
  font-size: 1.5rem;
}

.state-desc {
  opacity: 0.7;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   DEMO
═══════════════════════════════════════════════════════════════ */

.demo {
  padding: var(--space-xl) 0;
  background: white;
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.demo-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--cotton-cloud);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD
═══════════════════════════════════════════════════════════════ */

.download {
  padding: var(--space-xl) 0;
  background: var(--gradient-hero);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.download-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  color: var(--deep-grape);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.download-icon {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.download-format {
  opacity: 0.7;
  font-size: 0.875rem;
}

.download-note {
  text-align: center;
  opacity: 0.8;
}

.download-note code {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--deep-grape);
  color: white;
  padding: var(--space-lg) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  opacity: 0.7;
}

.footer-copy a {
  color: var(--bubblegum-pink);
  text-decoration: none;
}

.footer-tagline {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-medium);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
  }

  .mascot-img {
    max-width: 250px;
  }
}
