/* ==========================================================================
   KAHIO — ANIMATED COMING SOON WEBSITE STYLESHEET
   Brand: KAHIO (Imagine. Create. Explore.)
   Pure CSS3, Responsive, Accessible, Premium Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary Colors */
  --color-blue: #2B6CB0;
  --color-blue-dark: #1E5088;
  --color-blue-light: #4299E1;
  --color-yellow: #FFC837;
  --color-yellow-dark: #E5A500;
  --color-yellow-light: #FFE082;
  --color-coral: #FF6B6B;
  --color-coral-dark: #E84A5F;
  --color-teal: #2EC4B6;
  --color-teal-dark: #1B9E92;
  --color-purple: #845EC2;
  --color-purple-dark: #6C3FA8;

  /* Supporting Pastel Tones */
  --color-sky: #EBF4FF;
  --color-mint: #E6FAF5;
  --color-lavender: #F3E8FF;
  --color-peach: #FFF0E5;
  --color-cream: #FAF7F2;
  --color-cream-light: #FFFDF9;
  --color-white: #FFFFFF;

  /* Neutral Shades */
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-card: rgba(255, 255, 255, 0.9);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(30, 41, 59, 0.07), 0 8px 10px -6px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(30, 41, 59, 0.09), 0 12px 16px -8px rgba(30, 41, 59, 0.05);
  --shadow-glow-blue: 0 12px 30px rgba(43, 108, 176, 0.25);
  --shadow-glow-yellow: 0 12px 30px rgba(255, 200, 55, 0.35);
  --shadow-glow-coral: 0 12px 30px rgba(255, 107, 107, 0.3);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. ACCESSIBILITY FOCUS STATES
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   5. AMBIENT BACKGROUND & CANVAS
   -------------------------------------------------------------------------- */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.glow-1 {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(255, 200, 55, 0.4) 0%, rgba(255, 235, 179, 0.1) 70%, transparent 100%);
  animation: floatAmbient 22s ease-in-out infinite alternate;
}

.glow-2 {
  top: 25%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.25) 0%, rgba(255, 224, 230, 0.1) 70%, transparent 100%);
  animation: floatAmbient 26s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  bottom: -20%;
  left: 20%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.2) 0%, rgba(224, 247, 245, 0.1) 70%, transparent 100%);
  animation: floatAmbient 30s ease-in-out infinite alternate;
}

/* Subtle Organic Dot Pattern */
.ambient-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(71, 85, 105, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* Drifting Background Clouds */
.bg-shape.shape-cloud {
  position: absolute;
  color: rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 8px 16px rgba(43, 108, 176, 0.04));
  pointer-events: none;
}

.cloud-1 {
  top: 12%;
  left: 4%;
  width: 130px;
  animation: driftCloud 45s linear infinite;
}

.cloud-2 {
  top: 38%;
  right: 6%;
  width: 160px;
  animation: driftCloudRev 55s linear infinite;
}

.cloud-3 {
  top: 75%;
  left: 8%;
  width: 140px;
  animation: driftCloud 50s linear infinite;
}

/* --------------------------------------------------------------------------
   6. FLOATING VECTOR PIP ELEMENTS
   -------------------------------------------------------------------------- */
.pip-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.pip-item {
  position: absolute;
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 6px 12px rgba(30, 41, 59, 0.08));
}

.pip-svg {
  width: 100%;
  height: 100%;
}

.pip-tl-star {
  top: 90px;
  left: 3%;
  width: 36px;
  height: 36px;
  animation: pipFloat 6s ease-in-out infinite, pipRotate 18s linear infinite;
}

.pip-tr-rainbow {
  top: 100px;
  right: 4%;
  width: 58px;
  height: 36px;
  animation: pipFloat 7s ease-in-out infinite 1s, pipGentleSway 8s ease-in-out infinite;
}

.pip-ml-crayon {
  top: 48%;
  left: 2.5%;
  width: 32px;
  height: 52px;
  transform: rotate(-15deg);
  animation: pipFloat 8s ease-in-out infinite 0.5s;
}

.pip-mr-sparkle {
  top: 52%;
  right: 3%;
  width: 36px;
  height: 36px;
  animation: pipPulse 4s ease-in-out infinite, pipRotateRev 15s linear infinite;
}

.pip-bl-puzzle {
  bottom: 80px;
  left: 4%;
  width: 40px;
  height: 40px;
  transform: rotate(12deg);
  animation: pipFloat 7.5s ease-in-out infinite 1.5s;
}

.pip-br-rocket {
  bottom: 90px;
  right: 3.5%;
  width: 40px;
  height: 50px;
  animation: pipRocketDrift 9s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   7. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  padding: 24px 0;
  z-index: 10;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: inline-block;
  text-decoration: none;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(43, 108, 176, 0.1));
  transition: transform var(--transition-bounce);
}

.brand-logo-img:hover {
  transform: scale(1.04);
}

/* Logo Fallback */
.logo-fallback {
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-blue);
}

.fallback-dot {
  color: var(--color-coral);
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: var(--color-teal);
  opacity: 0.5;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.btn-header-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-blue);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-header-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(43, 108, 176, 0.35);
}

.icon-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.btn-header-notify:hover .icon-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 40px 0 60px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 48px;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: -0.2px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background-color: var(--color-yellow-light);
  color: #8C5B00;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 18px;
}

.text-highlight {
  background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-yellow-dark) 50%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   9. COUNTDOWN TIMER
   -------------------------------------------------------------------------- */
.countdown-wrapper {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.countdown-header {
  margin-bottom: 12px;
}

.countdown-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-subtle);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.countdown-card {
  flex: 1;
  background: var(--color-cream-light);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(30, 41, 59, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.countdown-card.pulse {
  animation: cardPulse 0.4s ease-out;
}

.card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-blue);
  letter-spacing: -0.5px;
}

.card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.countdown-divider {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-yellow-dark);
  user-select: none;
  animation: blinkDivider 1.5s ease-in-out infinite;
}

.countdown-live-state {
  text-align: center;
  padding: 10px 0;
}

.live-badge {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-coral);
  margin-bottom: 12px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   10. EMAIL NOTIFICATION FORM
   -------------------------------------------------------------------------- */
.notify-form-wrapper {
  width: 100%;
  max-width: 520px;
}

.form-title-wrap {
  margin-bottom: 16px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notify-form {
  position: relative;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.15), var(--shadow-md);
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.input-icon {
  width: 20px;
  height: 20px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.email-input {
  width: 100%;
  font-size: 0.96rem;
  color: var(--text-main);
  background: transparent;
}

.email-input::placeholder {
  color: var(--text-subtle);
  font-weight: 400;
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-coral);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-notify:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(232, 74, 95, 0.4);
}

.btn-notify:active {
  transform: translateY(0) scale(0.98);
}

.btn-notify .btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-notify:hover .btn-icon {
  transform: translateX(3px);
}

/* Spinner during submit simulation */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-notify.is-loading .btn-text,
.btn-notify.is-loading .btn-icon {
  display: none;
}

.btn-notify.is-loading .btn-spinner {
  display: inline-block;
}

/* Feedback messages */
.form-feedback {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 0 8px;
  min-height: 22px;
  transition: opacity 0.3s ease;
}

.form-feedback.success {
  color: #0E7058;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: popIn 0.35s ease;
}

.form-feedback.error {
  color: #DC2626;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: shake 0.4s ease;
}

.micro-privacy {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. HERO ILLUSTRATION SCENE
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-scene-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow-ring {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 55, 0.25) 0%, rgba(255, 107, 107, 0.15) 50%, rgba(46, 196, 182, 0.05) 75%, transparent 100%);
  filter: blur(40px);
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.creative-world-art {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.vector-world-scene {
  width: 100%;
  height: 100%;
}

.hero-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Artwork Animations */
.art-beam {
  animation: beamGlow 4s ease-in-out infinite alternate;
}

.art-floating-sun {
  animation: sunGlow 7s ease-in-out infinite alternate;
  transform-origin: 300px 110px;
}

.art-rainbow {
  animation: rainbowSway 6s ease-in-out infinite alternate;
  transform-origin: 300px 250px;
}

.art-palette {
  animation: floatSubtle1 5s ease-in-out infinite alternate;
}

.art-brush {
  animation: floatSubtle2 6s ease-in-out infinite alternate;
}

.art-crayon {
  animation: floatSubtle3 5.5s ease-in-out infinite alternate;
}

.art-pencil {
  animation: floatSubtle1 6.5s ease-in-out infinite alternate;
}

.art-rocket {
  animation: rocketHover 4.5s ease-in-out infinite;
}

.art-cloud.cloud-left {
  animation: cloudDriftLeft 7s ease-in-out infinite alternate;
}

.art-cloud.cloud-right {
  animation: cloudDriftRight 8s ease-in-out infinite alternate;
}

.art-sparks {
  animation: sparksTwinkle 3s ease-in-out infinite alternate;
}

/* Micro Badges around Artwork */
.art-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 5;
  transition: transform var(--transition-bounce);
}

.art-badge:hover {
  transform: scale(1.08) translateY(-4px);
}

.badge-stories {
  top: 10%;
  left: -10px;
  animation: badgeFloat 5s ease-in-out infinite;
}

.badge-crafts {
  bottom: 25%;
  right: -15px;
  animation: badgeFloat 6s ease-in-out infinite 1s;
}

.badge-fun {
  bottom: 5%;
  left: 20px;
  animation: badgeFloat 5.5s ease-in-out infinite 0.5s;
}

/* --------------------------------------------------------------------------
   12. PRODUCT CATEGORY TEASER ("WHAT'S COMING?")
   -------------------------------------------------------------------------- */
.teaser-section {
  padding: 90px 0 80px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0.9) 100%);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  background-color: var(--color-sky);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 153, 225, 0.4);
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(30px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-card:hover .card-glow {
  opacity: 0.35;
}

/* Category Color Highlights */
.card-stories .card-glow { background-color: var(--color-blue); }
.card-coloring .card-glow { background-color: var(--color-yellow); }
.card-activities .card-glow { background-color: var(--color-teal); }
.card-crafts .card-glow { background-color: var(--color-coral); }
.card-learning .card-glow { background-color: var(--color-purple); }
.card-kits .card-glow { background-color: var(--color-yellow); }

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce);
}

.card-stories .card-icon-wrap { background-color: var(--color-sky); }
.card-coloring .card-icon-wrap { background-color: #FFF5E6; }
.card-activities .card-icon-wrap { background-color: var(--color-mint); }
.card-crafts .card-icon-wrap { background-color: #FFEAEA; }
.card-learning .card-icon-wrap { background-color: var(--color-lavender); }
.card-kits .card-icon-wrap { background-color: #FFF9E6; }

.category-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.category-icon {
  width: 32px;
  height: 32px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  background-color: var(--color-cream);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   13. FEATURES & VALUE PILLARS
   -------------------------------------------------------------------------- */
.features-section {
  padding: 30px 0 70px 0;
}

.features-card-wrap {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.feature-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. SOCIAL SECTION ("FOLLOW THE ADVENTURE")
   -------------------------------------------------------------------------- */
.social-section {
  padding: 60px 0 80px 0;
}

.social-box {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: var(--shadow-md);
}

.social-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-coral);
  background-color: #FFEAEA;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.social-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.social-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.social-links-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background-color: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.social-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--color-white);
  border-color: transparent;
}

.btn-facebook:hover {
  background-color: #1877F2;
  color: var(--color-white);
  border-color: transparent;
}

.btn-youtube:hover {
  background-color: #FF0000;
  color: var(--color-white);
  border-color: transparent;
}

.btn-pinterest:hover {
  background-color: #E60023;
  color: var(--color-white);
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 40px 0 48px 0;
  border-top: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-fallback {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-blue);
}

.footer-tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-link-item:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.footer-links .sep {
  color: var(--border-light);
}

/* --------------------------------------------------------------------------
   16. ACCESSIBLE MODAL DIALOG
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  background: var(--color-white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-cream);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-coral);
  color: var(--color-white);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.modal-content-scroll {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-content-scroll p + p {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   17. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes driftCloud {
  0% { transform: translateX(-40px); }
  50% { transform: translateX(60px); }
  100% { transform: translateX(-40px); }
}

@keyframes driftCloudRev {
  0% { transform: translateX(40px); }
  50% { transform: translateX(-60px); }
  100% { transform: translateX(40px); }
}

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

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

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

@keyframes pipGentleSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes pipPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes pipRocketDrift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); background-color: var(--color-sky); }
  100% { transform: scale(1); }
}

@keyframes blinkDivider {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 1; }
}

@keyframes beamGlow {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

@keyframes sunGlow {
  0% { transform: scale(0.95) rotate(0deg); }
  100% { transform: scale(1.05) rotate(15deg); }
}

@keyframes rainbowSway {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-6px) scaleY(1.03); }
}

@keyframes rocketHover {
  0%, 100% { transform: translate(275px, 40px) translateY(0); }
  50% { transform: translate(275px, 40px) translateY(-12px); }
}

@keyframes floatSubtle1 {
  0% { transform: translate(130px, 160px) rotate(-12deg) translateY(0); }
  100% { transform: translate(130px, 160px) rotate(-8deg) translateY(-8px); }
}

@keyframes floatSubtle2 {
  0% { transform: translate(100px, 130px) rotate(35deg) translateY(0); }
  100% { transform: translate(100px, 130px) rotate(40deg) translateY(-10px); }
}

@keyframes floatSubtle3 {
  0% { transform: translate(430px, 150px) rotate(18deg) translateY(0); }
  100% { transform: translate(430px, 150px) rotate(14deg) translateY(-8px); }
}

@keyframes cloudDriftLeft {
  0% { transform: translate(130px, 260px) translateX(0); }
  100% { transform: translate(130px, 260px) translateX(-10px); }
}

@keyframes cloudDriftRight {
  0% { transform: translate(400px, 270px) translateX(0); }
  100% { transform: translate(400px, 270px) translateX(10px); }
}

@keyframes sparksTwinkle {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); }
}

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

/* Scroll Entrance Utility Classes */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 10px;
  }

  .visual-scene-wrapper {
    max-width: 440px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 18px 0;
  }

  .brand-logo-img {
    height: 48px;
  }

  .launch-pill {
    display: none; /* Keep header clean on tablet/mobile */
  }

  .hero-section {
    padding: 20px 0 50px 0;
  }

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

  .countdown-wrapper {
    padding: 16px;
  }

  .countdown-card {
    padding: 10px 4px;
  }

  .card-number {
    font-size: 1.6rem;
  }

  .input-group {
    flex-direction: column;
    padding: 10px;
    border-radius: var(--radius-lg);
    gap: 10px;
  }

  .input-icon-wrapper {
    width: 100%;
    padding: 4px 8px;
  }

  .btn-notify {
    width: 100%;
    padding: 14px;
  }

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

  .category-card {
    padding: 26px 22px;
  }

  .pip-ml-crayon,
  .pip-mr-sparkle {
    display: none; /* Reduce decoration density on small screens */
  }

  .badge-stories,
  .badge-crafts,
  .badge-fun {
    display: none;
  }

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

  .footer-meta {
    align-items: center;
  }
}

/* Mobile Screens (<= 480px / 375px / 320px) */
@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 2.15rem;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .countdown-wrapper {
    border-radius: var(--radius-md);
  }

  .countdown-divider {
    font-size: 1.1rem;
  }

  .card-number {
    font-size: 1.35rem;
  }

  .card-label {
    font-size: 0.65rem;
  }

  .features-card-wrap {
    padding: 26px 20px;
  }

  .social-box {
    padding: 36px 20px;
  }

  .social-links-grid {
    flex-direction: column;
    width: 100%;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .pip-container {
    display: none; /* Prevent any layout shifts or overlaps on smallest devices */
  }
}

/* --------------------------------------------------------------------------
   19. ACCESSIBILITY: PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ambient-glow,
  .bg-shape,
  .pip-item,
  .art-floating-sun,
  .art-rainbow,
  .art-palette,
  .art-brush,
  .art-crayon,
  .art-pencil,
  .art-rocket,
  .art-cloud,
  .art-sparks,
  .art-badge {
    animation: none !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  #sparkle-canvas {
    display: none !important;
  }
}
