/* CSS Variables for Playful Cosmic Theme */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Quicksand:wght@300..700&display=swap');

:root {
  --bg-deep: #0b071e;
  --bg-card: rgba(22, 17, 47, 0.7);
  --bg-card-hover: rgba(35, 27, 73, 0.85);
  
  --primary-pink: #ff7ebb;
  --primary-cyan: #00f0ff;
  --primary-yellow: #ffdf00;
  --accent-purple: #9b5de5;
  --text-light: #f3f0ff;
  --text-muted: #bdaeff;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  
  --shadow-glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
  --shadow-glow-pink: 0 0 15px rgba(255, 126, 187, 0.4);
  --shadow-glow-yellow: 0 0 15px rgba(255, 223, 0, 0.4);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

body.has-overlay-open {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(155, 93, 229, 0.3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 93, 229, 0.6);
}

/* Typography styling */
h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

/* Background floating decorations */
.background-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.decor-star {
  position: absolute;
  background: radial-gradient(circle, #fff 10%, transparent 80%);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-star 3s infinite alternate;
}

.decor-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 50%, rgba(255, 126, 187, 0.05) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
  animation: float-bubble 12s infinite linear;
}

/* Navigation bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 7, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-navigation {
  display: block;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 2rem;
  display: inline-block;
  transition: transform 220ms ease;
}

.brand:hover .brand-icon,
.brand:focus-visible .brand-icon {
  transform: rotate(-10deg) scale(1.08);
}

.brand-logo {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 126, 187, 0.2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Button styles */
.btn-nav-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 50px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
}

.btn-nav-cart:hover {
  background: rgba(255, 126, 187, 0.15);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
}

.cart-badge {
  background: var(--primary-pink);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 126, 187, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow-cyan);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 126, 187, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

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

.hero-format-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  max-width: 560px;
}

.hero-format-note span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-graphic {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pulse-slow 8s infinite alternate;
}

.hero-card {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 10px;
  transform: rotate(2deg);
  transition: var(--transition-smooth);
  animation: float-slow 6s ease-in-out infinite;
  position: relative; /* needed for the color-sweep overlay */
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.03);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: none;
}


/* Features Grid */
.features-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--primary-pink);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-card);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: rgba(255, 126, 187, 0.08);
  border-color: rgba(255, 126, 187, 0.2);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background: rgba(255, 223, 0, 0.08);
  border-color: rgba(255, 223, 0, 0.2);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
}

/* Personalized connected-experience flagship */
.experience-section {
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.11), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(255, 126, 187, 0.13), transparent 36%),
    linear-gradient(145deg, #10092e, #08051e 68%);
}

.experience-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.experience-copy h2 {
  max-width: 720px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.experience-lead {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.experience-checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.experience-checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
}

.experience-checklist li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 0.78rem;
  color: var(--primary-cyan);
  font-weight: 900;
}

.experience-checklist strong {
  color: var(--text-light);
}

.experience-status {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-yellow);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.experience-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 30px;
  background: rgba(8, 5, 30, 0.72);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.experience-center {
  grid-column: 1 / -1;
  display: grid;
  justify-self: center;
  place-items: center;
  min-width: 170px;
  min-height: 86px;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 223, 0, 0.38);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 126, 187, 0.18), rgba(255, 223, 0, 0.1));
  box-shadow: var(--shadow-glow-yellow);
  text-align: center;
}

.experience-center span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-center strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.experience-part {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.experience-part > span {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(0, 240, 255, 0.09);
  font-size: 1.55rem;
}

.experience-part strong,
.experience-part small {
  display: block;
}

.experience-part strong {
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.experience-part small {
  color: var(--text-muted);
  line-height: 1.35;
}

.experience-part-find > span,
.experience-part-keep > span {
  background: rgba(255, 126, 187, 0.1);
}

.experience-part-color > span {
  background: rgba(255, 223, 0, 0.1);
}

.experience-personalization {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.experience-personalization span {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Interactive Playground Section */
.playground-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #110930 50%, var(--bg-deep) 100%);
  position: relative;
}

.playground-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.playground-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 7, 30, 0.5);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.playground-title-box h3 {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playground-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 50px;
  gap: 5px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.5);
}

/* Playgrounds panels */
.playground-content {
  padding: 2.5rem;
  min-height: 520px;
}

.playground-panel {
  display: none;
  animation: fade-in 0.4s ease forwards;
}

.playground-panel.active {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* Playground Coloring Book */
.coloring-workspace {
  display: flex;
  flex: 1.5;
  background: #fff;
  border-radius: 16px;
  border: 4px solid var(--accent-purple);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.coloring-workspace canvas {
  background: white;
  cursor: crosshair;
  display: block;
}

.coloring-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

/* Playground Handprint Crafts */
.handprint-workspace {
  flex: 1.5;
  background: var(--dark-bg);
  border-radius: 16px;
  border: 4px solid var(--accent-orange);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
  padding: 20px;
}

.handprint-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

.handprint-workspace[hidden],
.handprint-controls[hidden] {
  display: none !important;
}

.creative-collection-hold {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 126, 187, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(24, 17, 54, 0.96), rgba(11, 7, 32, 0.98));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.creative-collection-hold h3 {
  max-width: 650px;
  margin: 1rem auto 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.creative-collection-hold > p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

.creative-collection-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 1.6rem auto;
}

.creative-collection-facts span {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-light);
  font-weight: 700;
}

.creative-collection-hold .creative-collection-note {
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

.creative-collection-hold .btn-secondary {
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 520px) {
  .creative-collection-facts {
    grid-template-columns: 1fr;
  }

  .creative-collection-hold .btn-secondary {
    width: 100%;
  }
}

.control-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-cyan);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  transition: var(--transition-smooth);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tool-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-cyan);
}

.tool-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.canvas-outline-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outline-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.outline-thumb {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.outline-thumb:hover {
  transform: translateY(-2px);
}

.outline-thumb.active {
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
}

.outline-thumb svg {
  max-width: 100%;
  max-height: 100%;
}

/* Storybook Workspace */
.storybook-viewer {
  flex: 1.5;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.book-container {
  width: min(540px, 100%);
  aspect-ratio: 54 / 38;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
}

.book-page {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-style: preserve-3d;
  transform-origin: left center;
}

.book-page-left {
  left: 0;
  background: #fbf9f4;
  color: #3c2a21;
  border-radius: 12px 0 0 12px;
  box-shadow: -10px 10px 20px rgba(0,0,0,0.3);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.book-page-right {
  left: 50%;
  background: #f1ebd9;
  color: #3c2a21;
  border-radius: 0 12px 12px 0;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 4;
}

.book-page-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
  text-align: center;
}

.story-paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
}

.storybook-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-input, .form-select {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-cyan);
}

.theme-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Invitation Workspace */
.invitation-preview-container {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.invite-card {
  width: 320px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  position: relative;
  background-size: cover;
  background-position: center;
}

.invite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  color: #3b281f;
  text-align: center;
  box-sizing: border-box;
}

.invite-overlay-space {
  color: #f7f3ff !important;
}

.invite-tag {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.invite-headline {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1.15;
}

.invite-party-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-child-info {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.invite-datetime {
  font-weight: 700;
  font-size: 0.95rem;
}

.invite-loc-rsvp {
  font-size: 0.85rem;
  font-weight: 600;
}

.invitation-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 250px;
}

/* Product Catalog Section */
.catalog-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.catalog-header .section-title-wrap {
  text-align: left;
  margin-bottom: 0;
}

.catalog-format-note {
  max-width: 650px;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-pills {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--primary-pink);
  color: #fff;
  box-shadow: var(--shadow-glow-pink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.catalog-state {
  grid-column: 1 / -1;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.catalog-state h3 {
  margin-bottom: 0.65rem;
  color: var(--text-light);
}

.catalog-state p,
.catalog-product-status {
  color: var(--text-muted);
}

.catalog-product-status {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  line-height: 1.5;
}

.catalog-order-control[hidden],
.catalog-product-status[hidden] {
  display: none;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.product-img-box {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #110a26;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-yellow);
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  min-width: 86px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.1);
}

/* Services section */
.services-section {
  padding: 6rem 2rem;
  background: rgba(11, 7, 30, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.service-badge {
  color: var(--primary-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✦';
  color: var(--primary-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.btn-book {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-pink);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: #0f0a28;
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 200;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0.4s;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cart-header {
  padding: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-cart:hover {
  color: #fff;
  transform: scale(1.1);
}

.btn-nav-cart:focus-visible,
.btn-close-cart:focus-visible,
.btn-checkout:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 3px;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 5rem;
  font-size: 1.1rem;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-price {
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qty-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
}

.qty-val {
  font-weight: 700;
  color: var(--text-light);
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--primary-pink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
}

.cart-footer {
  padding: 1.8rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.cart-total-box {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cart-total-val {
  color: var(--primary-yellow);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-checkout:hover {
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
}

/* Cart Overlay backdrop */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  display: none;
}

.cart-overlay.open {
  display: block;
}

/* Toast Notifications */
.toaster {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(22, 17, 47, 0.95);
  border: 1px solid var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: slide-in-toast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-success {
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 250;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-body {
  background: #120a2e;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal-body {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Success screen visual */
.success-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 126, 187, 0.1);
  border: 2px solid var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: pop-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Footer Section */
footer {
  background: #09051b;
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.footer-info {
  max-width: 320px;
}

.footer-desc {
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.footer-links-box {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-column ul a:hover {
  color: var(--primary-cyan);
}

.footer-newsletter {
  max-width: 320px;
}

.footer-newsletter p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 50px;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
}

.newsletter-form input:focus {
  border-color: var(--primary-cyan);
}

.btn-send {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow-cyan);
  transition: var(--transition-smooth);
}

.btn-send:hover {
  transform: scale(1.08);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
  100% { transform: translateY(0) rotate(2deg); }
}

@keyframes float-bubble {
  0% { transform: translateY(105vh) translateX(0) scale(0.8); }
  50% { transform: translateY(50vh) translateX(30px) scale(1.1); }
  100% { transform: translateY(-10vh) translateX(-20px) scale(0.9); opacity: 0; }
}

@keyframes pulse-slow {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulse-star {
  0% { opacity: 0.1; }
  100% { opacity: 0.6; }
}

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-toast {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pop-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  75% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-format-note {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }
  .hero-graphic {
    width: 100%;
  }
  .hero-card {
    width: min(420px, 88vw);
  }

  .experience-shell {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .experience-copy .section-tag,
  .experience-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .experience-status {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }
  
  .playground-panel.active {
    flex-direction: column;
    gap: 2rem;
  }
  .coloring-workspace, .storybook-viewer, .invitation-preview-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    gap: 0.75rem;
    padding: 1rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-navigation {
    display: none;
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(17, 10, 43, 0.98);
    box-shadow: var(--shadow-card);
  }

  .site-navigation.is-open {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-links a {
    display: block;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(0, 240, 255, 0.1);
  }

  .testimonials-slider-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    font-size: 1.65rem;
  }

  .brand-logo {
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .nav-actions {
    flex: 0 0 auto;
  }

  .nav-actions .btn-cta {
    display: none;
  }

  .btn-nav-cart {
    padding: 8px 12px;
  }

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

  .playground-header,
  .playground-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .playground-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    border-radius: 18px;
    scrollbar-width: thin;
  }

  .tab-btn {
    min-width: 0;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .storybook-book-layout,
  .book-container {
    width: 100%;
  }

  .book-page-left {
    padding: clamp(0.7rem, 4vw, 1.5rem);
  }

  .story-heading {
    font-size: clamp(1rem, 4.8vw, 1.45rem);
  }

  .story-paragraph {
    font-size: clamp(0.72rem, 3vw, 0.95rem);
    line-height: 1.35;
  }

  .playground-panel.active,
  .coloring-workspace,
  .storybook-viewer,
  .invitation-preview-container {
    min-width: 0;
    width: 100%;
  }

#coloring-canvas {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .catalog-header {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-header > * {
    min-width: 0;
    max-width: 100%;
  }

  .filter-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    border-radius: 22px;
  }

  .filter-btn {
    min-width: 0;
    padding: 9px 10px;
  }

  .cart-drawer {
    width: 100%;
  }
}

#coloring-canvas {
  touch-action: none;
}

.custom-color-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px dashed rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  overflow: hidden;
}

.custom-color-control span {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.custom-color-control input {
  position: absolute;
  inset: -8px;
  width: 58px;
  height: 58px;
  border: 0;
  cursor: pointer;
}

.tool-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.brush-size-control {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.brush-size-control input {
  width: 100%;
  accent-color: var(--accent-pink);
}

.brush-size-control output {
  min-width: 42px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.coloring-shortcuts {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.coloring-shortcuts kbd {
  padding: 0.12rem 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  font-family: inherit;
}

@media (max-width: 430px) {
  .hero,
  .features-section,
  .experience-section,
  .playground-section,
  .how-it-works-section,
  .catalog-section,
  .testimonials-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: auto;
    gap: 2.75rem;
    padding-top: 3rem;
  }

  .hero-content,
  .hero-graphic {
    min-width: 0;
    width: 100%;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-buttons .btn-cta {
    grid-column: auto;
  }

  .hero-buttons a {
    display: flex;
    min-width: 0;
    min-height: 52px;
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
  }

  .hero-card {
    width: min(100%, 340px);
  }

  .hero-format-note {
    gap: 0.4rem;
  }

  .experience-map {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }

  .experience-center,
  .experience-personalization {
    grid-column: 1;
  }

  .experience-part {
    min-height: 96px;
  }

  .playground-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .timeline-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .timeline-step {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.7rem);
  }

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

@media (max-width: 350px) {
  .navbar {
    gap: 0.45rem;
    padding: 0.8rem 0.75rem;
  }

  .brand {
    gap: 6px;
  }

  .brand-icon {
    font-size: 1.35rem;
  }

  .brand-logo {
    font-size: 1.18rem;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .btn-nav-cart {
    gap: 4px;
    padding: 8px 9px;
  }

  .nav-cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Page Navigation Arrow Buttons (Storybook) */
.storybook-book-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.book-nav-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-light);
  box-shadow: var(--shadow-glow-cyan);
}

.nav-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-arrow-btn:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  transform: scale(1.1);
}

/* How It Works Timeline */
.how-it-works-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-step:hover {
  transform: translateY(-5px);
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-glow-yellow), var(--shadow-card);
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary-yellow);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -55px auto 1.5rem auto;
  box-shadow: var(--shadow-glow-yellow);
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials Slider */
.testimonials-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #130a38 50%, var(--bg-deep) 100%);
}

.testimonials-slider-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
}

.slider-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  transform: scale(1.08);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2rem;
  text-align: left;
  flex-grow: 1;
  box-shadow: var(--shadow-card);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.testimonial-card h3 {
  margin: 0.9rem 0 0.6rem;
  font-size: 1.25rem;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 15px;
  background: rgba(0, 240, 255, 0.08);
  font-size: 1.35rem;
}

.testimonial-rating {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: normal;
}

.testimonial-author {
  font-size: 1.25rem;
  color: var(--primary-cyan);
}

.testimonial-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Rocket Launch Loader Modal */
.rocket-loader-icon {
  font-size: 4.5rem;
  animation: rocket-rumble 0.15s infinite alternate, rocket-launch-fly 3.5s infinite ease-in-out;
  display: inline-block;
  transform-origin: bottom center;
}

.rocket-sparks-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.spark {
  width: 8px;
  height: 15px;
  background: linear-gradient(to bottom, var(--primary-pink), var(--primary-yellow));
  border-radius: 50%;
  animation: spark-fade 0.5s infinite alternate;
}

.spark:nth-child(2) {
  animation-delay: 0.15s;
  height: 25px;
  width: 10px;
}

.spark:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rocket-rumble {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes rocket-launch-fly {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-15px); }
  85% { transform: scale(0.6) translateY(-120px); opacity: 0.2; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes spark-fade {
  0% { opacity: 0.3; transform: scaleY(0.7); }
  100% { opacity: 1; transform: scaleY(1.3); }
}



/* Private post-checkout order status */
.order-status-page {
  min-height: calc(100vh - 92px);
  padding: clamp(40px, 7vw, 90px) 20px;
  position: relative;
  z-index: 2;
}

.order-status-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  background: rgba(16, 8, 42, 0.92);
  box-shadow: var(--shadow-strong), 0 0 45px rgba(177, 90, 255, 0.16);
}

.order-status-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.order-status-summary,
.order-status-privacy {
  color: var(--text-muted);
  line-height: 1.7;
}

.order-status-meta {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  gap: 8px;
}

.order-status-item {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.order-status-item h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.order-status-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.order-download-button {
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-download-button:focus-visible,
.order-status-actions a:focus-visible,
.order-status-actions button:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 3px;
}

.order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

body.order-status-view > section,
body.order-status-view > .storefront-main,
body.order-status-view > footer,
body.order-status-view > .cart-overlay,
body.order-status-view > .cart-drawer,
body.order-status-view > .modal,
body.order-status-view header nav,
body.order-status-view header .nav-actions {
  display: none !important;
}

body.order-status-view #order-status-page {
  display: block;
}

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

@media (max-width: 600px) {
  .order-status-actions > * {
    width: 100%;
    text-align: center;
  }
}
