/* =========================================
   TOMOCHI — Global Styles
   ========================================= */

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

:root {
  --pink:       #ff6b9d;
  --lavender:   #c084fc;
  --sky:        #67e8f9;
  --mint:       #6ee7b7;
  --peach:      #fca5a5;
  --cream:      #fff5fe;
  --dark:       #0f0a1a;
  --dark-2:     #1a1028;
  --dark-3:     #251640;
  --text:       #1a0a2e;
  --text-light: #6b5b8a;
  --white:      #ffffff;

  --grad-hero:   linear-gradient(135deg, #fff0f8 0%, #f0e6ff 45%, #e8f4ff 100%);
  --grad-glow:   linear-gradient(135deg, #ff6b9d, #c084fc, #67e8f9);
  --grad-dark:   linear-gradient(160deg, #0f0a1a 0%, #1a1028 50%, #251640 100%);
  --grad-candy:  linear-gradient(135deg, #fff0fb, #f5e8ff, #e8f5ff);

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  48px;

  --shadow-sm:  0 4px 24px rgba(192, 132, 252, 0.15);
  --shadow-md:  0 8px 48px rgba(192, 132, 252, 0.2);
  --shadow-lg:  0 16px 80px rgba(192, 132, 252, 0.25);
  --shadow-glow: 0 0 60px rgba(255, 107, 157, 0.3), 0 0 120px rgba(192, 132, 252, 0.2);

  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* =========================================
   TYPOGRAPHY
   ========================================= */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(255, 107, 157, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 157, 0.2);
}
.section-tag.light {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-headline em {
  font-style: italic;
  background: var(--grad-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-headline.light { color: var(--white); }
.section-headline.light em {
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-glow);
  color: white;
  box-shadow: 0 4px 24px rgba(255, 107, 157, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255, 107, 157, 0.5);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(192, 132, 252, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--lavender);
  background: rgba(192, 132, 252, 0.08);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 36px; font-size: 16px; }

/* =========================================
   SCROLL REVEAL
   ========================================= */

.reveal, .reveal-up {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal { transform: translateY(30px); }
.reveal-up { transform: translateY(60px); }

.reveal.visible, .reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2), .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3), .reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4), .reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* =========================================
   ORB BACKGROUNDS
   ========================================= */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,107,157,0.35) 0%, transparent 70%); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(192,132,252,0.3) 0%, transparent 70%); bottom: -50px; left: -50px; animation-delay: 2s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(103,232,249,0.25) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }
.orb-4 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,107,157,0.2) 0%, transparent 70%); top: -200px; left: -200px; }
.orb-5 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(103,232,249,0.15) 0%, transparent 70%); bottom: -100px; right: -100px; animation-delay: 3s; }
.orb-7 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,107,157,0.3) 0%, transparent 70%); top: -100px; right: -100px; }
.orb-8 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(103,232,249,0.2) 0%, transparent 70%); bottom: 0; left: 0; animation-delay: 2s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
  box-shadow: 0 4px 32px rgba(192, 132, 252, 0.1);
  padding: 12px 40px;
}

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

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(192, 132, 252, 0.3));
  transition: filter 0.3s;
}
.nav-logo-img:hover {
  filter: drop-shadow(0 4px 16px rgba(255, 107, 157, 0.4));
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  background: var(--grad-glow);
  color: white;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 107, 157, 0.45); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

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

.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 140px 80px 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 157, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  background: var(--grad-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }

.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

.card-back {
  position: absolute;
  top: -20px; right: -20px;
  width: 60%;
  opacity: 0.6;
  transform: rotate(6deg);
  z-index: 1;
  border-radius: var(--radius-lg);
}
.card-front {
  position: relative;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}
.card-glow {
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.08;
  border-radius: inherit;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(-1deg); }
  66% { transform: translateY(-6px) rotate(1deg); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--lavender), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* =========================================
   PROBLEM
   ========================================= */

.problem {
  padding: 120px 0;
  background: var(--white);
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-body {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.problem-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--pink);
  padding-left: 20px;
  margin-top: 32px;
  line-height: 1.4;
}

.problem-visual {
  position: relative;
}

.problem-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.problem-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(192,132,252,0.2) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

/* =========================================
   SOLUTION
   ========================================= */

.solution {
  padding: 120px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.solution-bg { position: absolute; inset: 0; pointer-events: none; }

.solution-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-top: 20px;
}

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
/* 5th pillar — centre it on its own row */
.solution-pillars .pillar:last-child:nth-child(5) {
  grid-column: 2 / 4;
}

.pillar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(12px);
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(192, 132, 252, 0.15);
}

.pillar-icon { font-size: 36px; margin-bottom: 16px; }
.pillar h3 { color: var(--white); font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.pillar p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.65; }

.solution-devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.device-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.device-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.device-showcase:hover .device-img { transform: scale(1.06); }

.device-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,10,26,0.9) 0%, transparent 100%);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.device-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
}
.device-name { font-size: 16px; font-weight: 600; color: white; }

/* =========================================
   THE WORLD
   ========================================= */

.world {
  padding: 120px 0;
  background: var(--grad-candy);
}

.world-intro {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 20px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.world-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}
.world-card-large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.world-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.world-card:hover img { transform: scale(1.06); }

.world-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,26,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s;
}
.world-card:hover .world-card-overlay { opacity: 1; }
.world-card-overlay h3 { color: white; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.world-card-overlay p { color: rgba(255,255,255,0.75); font-size: 14px; }

/* =========================================
   PRODUCTS
   ========================================= */

.products {
  padding: 120px 0;
  background: var(--white);
}

/* ── Products intro ─────────────────────────── */
.products { padding-bottom: 0; }
.products-intro {
  font-size: 17px;
  color: var(--text-light);
  margin-top: 16px;
}

/* ── Tab navigation ─────────────────────────── */
.tab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 36px 0 40px;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 100px;
  border: 2px solid rgba(192, 132, 252, 0.2);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.tab-btn:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  background: rgba(192, 132, 252, 0.06);
}
.tab-btn.active {
  background: var(--grad-glow);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
}

/* ── Product grids ───────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}
.product-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}


.product-card {
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(192, 132, 252, 0.12);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(255, 107, 157, 0.25);
  border-color: rgba(192, 132, 252, 0.3);
}

.product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0fb, #f0ebff);
  position: relative;
  user-select: none;
}

.img-watermark {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 27px;
  background: url('logo.png') center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-info { padding: 20px; }
.product-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  display: block;
  margin-bottom: 6px;
}
.product-info h4 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }



/* =========================================
   FINAL CTA
   ========================================= */

.final-cta {
  padding: 160px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }

.cta-inner { max-width: 700px; margin: 0 auto; }

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.cta-headline em {
  font-style: italic;
  background: linear-gradient(135deg, #ff6b9d, #c084fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 48px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 20px;
}

.cta-input {
  flex: 1;
  padding: 16px 22px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: white;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-input:focus { border-color: var(--pink); background: rgba(255,255,255,0.12); }

.cta-footnote {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 40px;
}

.cta-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s var(--ease-out);
}
.social-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.social-link:hover {
  color: white;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.cta-email-link {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cta-email-link:hover { color: var(--pink); }

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

.footer {
  padding: 48px 0;
  background: #0a061a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px rgba(192, 132, 252, 0.4));
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.35); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }

.footer-copy p { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.8; text-align: right; }

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

/* =========================================
   A DAY WITH TOMOCHI
   ========================================= */

.day-section {
  padding: 120px 0;
  background: var(--grad-candy);
}

.day-intro {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 20px;
}

.day-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
}

.day-step {
  flex: 1;
  text-align: center;
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease-out);
  position: relative;
  z-index: 1;
}
.day-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192, 132, 252, 0.35);
}

.day-step-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.day-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
  display: block;
}

.day-step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

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

.day-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(to right, rgba(192,132,252,0.3), rgba(255,107,157,0.3));
  align-self: center;
  margin-top: -20px;
  position: relative;
}
.day-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0.6;
}

/* =========================================
   MARKET / INVESTOR
   ========================================= */

.market {
  padding: 120px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.market-bg { position: absolute; inset: 0; pointer-events: none; }

.market-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-top: 20px;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.market-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(12px);
}
.market-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(192, 132, 252, 0.15);
}

.market-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  background: var(--grad-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.market-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.market-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 64px;
  font-style: italic;
}

.market-model {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(12px);
}
.market-model h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--white);
  margin-bottom: 16px;
}
.market-model p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* =========================================
   NAV MOBILE LOGO SIZE
   ========================================= */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 120px 40px 80px; gap: 60px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-scroll-hint { display: none; }
  .card-back { display: none; }

  .problem-inner { grid-template-columns: 1fr; gap: 48px; }
  .solution-pillars { grid-template-columns: 1fr 1fr; }
  .solution-pillars .pillar:last-child:nth-child(5) { grid-column: 1 / 3; }
  .solution-devices { grid-template-columns: 1fr 1fr; }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-card-large { grid-column: span 2; }
  .market-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-logo-img { height: 40px; }
  .companion-hero { grid-template-columns: 1fr 1fr; }
  .device-layout { grid-template-columns: 1fr 1fr; }
  .hexions-layout { grid-template-columns: 1fr 1fr; }
  .pcat-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.mobile-open { background: white; border-bottom: 1px solid rgba(192,132,252,0.15); }
  .nav.mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(192,132,252,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav.mobile-open .nav-cta { display: block; text-align: center; margin: 0 24px 24px; }

  .hero { padding: 100px 24px 60px; }
  .hero-headline { font-size: clamp(38px, 9vw, 56px); }

  .solution-pillars { grid-template-columns: 1fr; }
  .solution-pillars .pillar:last-child:nth-child(5) { grid-column: 1; }
  .solution-devices { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: 1fr; }
  .world-card-large { grid-column: span 1; aspect-ratio: 4/3; }
  .world-card-overlay { opacity: 1; }
  .product-tabs { gap: 6px; }
  .tab-btn { font-size: 12px; padding: 8px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .day-steps { flex-direction: column; gap: 0; }
  .day-connector { width: 2px; height: 32px; flex: 0 0 32px; align-self: center; margin-top: 0; }
  .day-connector::after { right: 50%; top: auto; bottom: -5px; transform: translateX(50%); }
  .market-stats { grid-template-columns: 1fr; }
  .market-model { padding: 32px 24px; }
  .nav-logo-img { height: 34px; }
  .cta-form { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy p { text-align: center; }
  .footer-logo-img { margin: 0 auto 10px; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-btn { font-size: 13px; padding: 9px 18px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0 !important; }
  .hero { padding: 100px 20px 60px; }
  .container { padding: 0 16px; }
  .market-stats { grid-template-columns: 1fr; }
}


/* =========================================
   VISUAL OVERHAUL — KID-FRIENDLY JELLY WORLD
   ========================================= */

/* ── Palette upgrade ─────────────────────── */
:root {
  --pink:     #ff4d8d;
  --lavender: #b96eff;
  --sky:      #38d9f5;
  --mint:     #4eedb4;
  --cream:    #fff4fd;
  --grad-hero:   linear-gradient(135deg, #fff0f9 0%, #efe5ff 45%, #e4f8ff 100%);
  --grad-candy:  linear-gradient(135deg, #fff0fc 0%, #f0e5ff 50%, #e4f8ff 100%);
  --grad-glow:   linear-gradient(135deg, #ff4d8d, #b96eff, #38d9f5);
  --shadow-glow: 0 0 60px rgba(255,77,141,0.35), 0 0 120px rgba(185,110,255,0.2);
}

/* ── Hide default cursor (desktop only) ──── */
@media (pointer: fine) {
  * { cursor: none !important; }
}

/* ── Jelly cursor ────────────────────────── */
#cursor-blob {
  position: fixed;
  width: 44px; height: 44px;
  background: rgba(255, 77, 141, 0.15);
  border: 2px solid rgba(255, 77, 141, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  top: 0; left: 0;
  will-change: transform;
  transition:
    width 0.35s var(--ease-bounce),
    height 0.35s var(--ease-bounce),
    background 0.3s,
    border-color 0.3s,
    border-radius 0.5s;
  animation: blobMorphCursor 4s ease-in-out infinite;
}
#cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  margin: -3.5px 0 0 -3.5px;
  will-change: transform;
}
#cursor-blob.hovered {
  width: 64px; height: 64px;
  background: rgba(185, 110, 255, 0.18);
  border-color: var(--lavender);
  border-radius: 42% 58% 55% 45% / 45% 52% 48% 55%;
}
#cursor-blob.clicked {
  width: 28px; height: 28px;
  background: rgba(255, 77, 141, 0.45);
  border-radius: 50% !important;
  animation: none;
}
@keyframes blobMorphCursor {
  0%,100% { border-radius: 50%; }
  25%  { border-radius: 62% 38% 68% 32% / 42% 58% 42% 58%; }
  50%  { border-radius: 33% 67% 40% 60% / 60% 40% 60% 40%; }
  75%  { border-radius: 68% 32% 58% 42% / 35% 65% 35% 65%; }
}

/* ── Sparkle canvas ──────────────────────── */
#sparkle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ── Jelly blob ambient decorations ─────── */
.jelly-blob {
  position: absolute;
  pointer-events: none;
  filter: blur(72px);
  animation: jellyPulse 9s ease-in-out infinite;
}
.jelly-1 {
  width: 520px; height: 420px;
  background: radial-gradient(ellipse, rgba(255,77,141,0.3) 0%, transparent 70%);
  top: 10%; left: 5%;
  animation-delay: 0s;
}
.jelly-2 {
  width: 380px; height: 480px;
  background: radial-gradient(ellipse, rgba(185,110,255,0.24) 0%, transparent 70%);
  bottom: 5%; right: 8%;
  animation-delay: 3s;
}
.jelly-3 {
  width: 440px; height: 360px;
  background: radial-gradient(ellipse, rgba(56,217,245,0.22) 0%, transparent 70%);
  top: 25%; right: 15%;
  animation-delay: 6s;
}
@keyframes jellyPulse {
  0%,100% { transform: scale(1) rotate(0deg); border-radius: 50%; }
  30%  { transform: scale(1.09, 0.93) rotate(5deg);  border-radius: 55% 45% 62% 38% / 45% 62% 38% 55%; }
  60%  { transform: scale(0.93, 1.09) rotate(-4deg); border-radius: 40% 60% 45% 55% / 62% 38% 55% 45%; }
}

/* ── SVG wave dividers ───────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  margin: 0; padding: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Section background textures ─────────── */
.problem {
  position: relative;
  background-image: radial-gradient(rgba(255,77,141,0.04) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.products {
  background-image: radial-gradient(rgba(185,110,255,0.05) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.solution {
  background: linear-gradient(160deg, #120830 0%, #1e1040 45%, #2a1860 100%);
}

/* ── Pillar cards — jelly upgrade ────────── */
.pillar {
  border-radius: var(--radius-xl) !important;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease-out) !important;
}
.pillar:nth-child(odd)  { transform: rotate(-0.8deg); }
.pillar:nth-child(even) { transform: rotate(0.8deg); }
.pillar:hover { transform: translateY(-10px) rotate(0deg) !important; box-shadow: 0 16px 56px rgba(185,110,255,0.2) !important; }

.pillar-icon {
  font-size: 3.8rem !important;
  width: 80px !important; height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, rgba(255,77,141,0.12), rgba(185,110,255,0.14)) !important;
  border-radius: 50% !important;
  margin: 0 auto 18px !important;
  box-shadow: 0 4px 20px rgba(185,110,255,0.15) !important;
}

/* ── Card wobble ─────────────────────────── */
.product-card { transition: box-shadow 0.3s, border-color 0.3s !important; }
.product-card:hover {
  transform: none !important;  /* wobble handles movement */
  box-shadow: 0 12px 48px rgba(255,77,141,0.22) !important;
  border-color: rgba(185,110,255,0.35) !important;
}
@keyframes cardWobble {
  0%   { transform: translateY(0)    rotate(0deg)    scale(1); }
  18%  { transform: translateY(-11px) rotate(-1.8deg) scale(1.022); }
  36%  { transform: translateY(-9px)  rotate(1.4deg)  scale(1.022); }
  54%  { transform: translateY(-11px) rotate(-0.9deg) scale(1.022); }
  72%  { transform: translateY(-10px) rotate(0.6deg)  scale(1.022); }
  88%  { transform: translateY(-10px) rotate(-0.2deg) scale(1.022); }
  100% { transform: translateY(-9px)  rotate(0deg)    scale(1.022); }
}
.product-card.wobble { animation: cardWobble 0.6s var(--ease-bounce) forwards; }

/* ── Game-like tab buttons ───────────────── */
.tab-btn {
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12), 0 3px 10px rgba(185,110,255,0.12) !important;
  transition: all 0.22s var(--ease-bounce) !important;
}
.tab-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12), 0 6px 20px rgba(185,110,255,0.2) !important;
}
.tab-btn:active {
  transform: scale(0.96) translateY(2px) !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1), 0 1px 4px rgba(185,110,255,0.1) !important;
}
.tab-btn.active {
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18), 0 6px 24px rgba(255,77,141,0.38) !important;
  transform: none !important;
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.32);
  font-size: 10px;
  font-weight: 700;
  width: 19px; height: 19px;
  border-radius: 100px;
  margin-left: 5px;
  vertical-align: middle;
  color: inherit;
}

/* ── Day step connector upgrade ──────────── */
.day-connector {
  background: linear-gradient(to right,
    rgba(255,77,141,0.35),
    rgba(185,110,255,0.35)) !important;
}

/* ── Btn glow upgrade ────────────────────── */
.btn-primary {
  box-shadow: 0 4px 28px rgba(255,77,141,0.45) !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 44px rgba(255,77,141,0.55) !important;
}

/* ── Nav CTA upgrade ─────────────────────── */
.nav-cta {
  box-shadow: 0 4px 20px rgba(255,77,141,0.4) !important;
}

/* ── World card upgrade ──────────────────── */
.world-card { border-radius: var(--radius-xl) !important; }

/* ── Hero card upgrade ───────────────────── */
.card-front { border-radius: var(--radius-xl) !important; }

/* ── Responsive: hide cursor elements on touch ── */
@media (pointer: coarse) {
  #cursor-blob, #cursor-dot { display: none; }
}

/* =========================================
   SECTION-SPECIFIC EFFECTS
   ========================================= */

/* ── HERO: shimmer sweep on gradient headline ── */
.hero-headline em {
  background: linear-gradient(90deg,
    #ff4d8d 0%, #b96eff 20%, #38d9f5 40%,
    #ff4d8d 60%, #b96eff 80%, #38d9f5 100%) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shimmerSweep 4s linear infinite !important;
}
@keyframes shimmerSweep {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

/* ── HERO: floating emoji decorations ────── */
.hero-deco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.8rem;
  pointer-events: none;
  user-select: none;
  animation: heroDeco var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(255,77,141,0.3));
}
@keyframes heroDeco {
  0%, 100% { transform: translateY(0)   rotate(0deg)  scale(1); }
  33%       { transform: translateY(-20px) rotate(12deg) scale(1.1); }
  66%       { transform: translateY(-8px)  rotate(-8deg) scale(0.95); }
}

/* ── PROBLEM: glitch on "inside a screen" ─── */
.glitch-em {
  position: relative;
  display: inline;
  animation: glitchFlick 6s ease-in-out infinite !important;
}
@keyframes glitchFlick {
  0%, 85%, 100% {
    transform: skewX(0deg) translateX(0);
    filter: none;
  }
  86% {
    transform: skewX(-5deg) translateX(5px);
    filter: hue-rotate(80deg) brightness(1.4);
  }
  87% {
    transform: skewX(0deg) translateX(0);
    filter: none;
  }
  89% {
    transform: skewX(4deg) translateX(-4px);
    filter: hue-rotate(-70deg) brightness(1.3) saturate(2);
  }
  90% {
    transform: skewX(0);
    filter: none;
  }
  92% {
    transform: translateX(4px) skewX(-2deg);
    filter: hue-rotate(160deg);
    opacity: 0.85;
  }
  93% {
    transform: skewX(0);
    filter: none;
    opacity: 1;
  }
}

/* ── SOLUTION: moving nebula dot grid ────── */
.solution-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(185,110,255,0.14) 1.5px, transparent 1.5px),
    radial-gradient(rgba(56,217,245,0.09) 1.5px, transparent 1.5px);
  background-size: 44px 44px, 66px 66px;
  background-position: 0 0, 22px 22px;
  pointer-events: none;
  animation: nebulaMove 18s linear infinite;
  z-index: 0;
}
@keyframes nebulaMove {
  from { background-position: 0 0, 22px 22px; }
  to   { background-position: 44px 44px, 66px 66px; }
}
.solution .container { position: relative; z-index: 1; }

/* ── SOLUTION: pillar icon breathe ──────── */
.pillar-icon {
  animation: iconBreathe 3s ease-in-out infinite !important;
}
.pillar:nth-child(1) .pillar-icon { animation-delay: 0.0s !important; }
.pillar:nth-child(2) .pillar-icon { animation-delay: 0.6s !important; }
.pillar:nth-child(3) .pillar-icon { animation-delay: 1.2s !important; }
.pillar:nth-child(4) .pillar-icon { animation-delay: 1.8s !important; }
.pillar:nth-child(5) .pillar-icon { animation-delay: 2.4s !important; }
@keyframes iconBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(185,110,255,0.18) !important;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 36px rgba(255,77,141,0.3) !important;
  }
}

/* ── DAY: time-coded card identities ────── */
/* Morning — golden warm */
.day-steps > *:nth-child(1) {
  border-top: 4px solid #ffb347 !important;
  background: linear-gradient(170deg, rgba(255,179,71,0.1) 0%, rgba(255,255,255,0.72) 100%) !important;
  box-shadow: 0 4px 32px rgba(255,160,50,0.12) !important;
}
.day-steps > *:nth-child(1) .day-step-num { color: #d97706 !important; }
.day-steps > *:nth-child(1) .day-step-icon { filter: drop-shadow(0 0 8px rgba(255,185,50,0.6)); }

/* On the Way — sky blue */
.day-steps > *:nth-child(3) {
  border-top: 4px solid #38d9f5 !important;
  background: linear-gradient(170deg, rgba(56,217,245,0.09) 0%, rgba(255,255,255,0.72) 100%) !important;
  box-shadow: 0 4px 32px rgba(56,217,245,0.12) !important;
}
.day-steps > *:nth-child(3) .day-step-num { color: #0e97b5 !important; }
.day-steps > *:nth-child(3) .day-step-icon { filter: drop-shadow(0 0 8px rgba(56,217,245,0.55)); }

/* Homework — sunset orange */
.day-steps > *:nth-child(5) {
  border-top: 4px solid #ff8c42 !important;
  background: linear-gradient(170deg, rgba(255,140,66,0.09) 0%, rgba(255,255,255,0.72) 100%) !important;
  box-shadow: 0 4px 32px rgba(255,140,66,0.12) !important;
}
.day-steps > *:nth-child(5) .day-step-num { color: #c2550e !important; }
.day-steps > *:nth-child(5) .day-step-icon { filter: drop-shadow(0 0 8px rgba(255,120,50,0.55)); }

/* Bedtime — deep purple */
.day-steps > *:nth-child(7) {
  border-top: 4px solid #b96eff !important;
  background: linear-gradient(170deg, rgba(185,110,255,0.11) 0%, rgba(255,242,255,0.75) 100%) !important;
  box-shadow: 0 4px 32px rgba(185,110,255,0.15) !important;
}
.day-steps > *:nth-child(7) .day-step-num { color: #8b2ee8 !important; }
.day-steps > *:nth-child(7) .day-step-icon { filter: drop-shadow(0 0 8px rgba(185,110,255,0.65)); }

/* Step number heartbeat */
.day-step-num {
  display: block !important;
  animation: stepHeartbeat 2.4s ease-in-out infinite !important;
}
@keyframes stepHeartbeat {
  0%, 100% { transform: scale(1); }
  8%  { transform: scale(1.25); }
  16% { transform: scale(1); }
  24% { transform: scale(1.12); }
  32% { transform: scale(1); }
}

/* Step icon size boost */
.day-step-icon { font-size: 48px !important; }

/* ── WORLD: shimmer sweep on card hover ─── */
.world-card { overflow: hidden; }
.world-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255,255,255,0.22) 50%,
    transparent 62%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  transition: none;
}
.world-card:hover::after {
  transition: background-position 0.65s ease;
  background-position: 200% 0;
}

/* World section floating creature decorations */
.world-deco {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  pointer-events: none;
  user-select: none;
  animation: worldDecoFloat var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(185,110,255,0.35));
}
@keyframes worldDecoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(10deg); }
}

/* ── PRODUCTS: tab grid slide-in ────────── */
@keyframes tabGridIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.product-grid.tab-enter {
  animation: tabGridIn 0.42s var(--ease-bounce) forwards;
}

/* ── MARKET: stat glow on count ──────────── */
.market-num {
  transition: color 0.3s, text-shadow 0.3s !important;
  display: block !important;
}
.market-stat.is-counting .market-num {
  color: var(--pink) !important;
  text-shadow: 0 0 32px rgba(255,77,141,0.45) !important;
}

/* ── FOOTER: rainbow logo glow on hover ─── */
.footer-logo-img:hover {
  animation: rainbowLogo 1.8s ease-in-out infinite !important;
}
@keyframes rainbowLogo {
  0%   { filter: drop-shadow(0 0 10px #ff4d8d) drop-shadow(0 0 24px rgba(255,77,141,0.4)); }
  33%  { filter: drop-shadow(0 0 10px #b96eff) drop-shadow(0 0 24px rgba(185,110,255,0.4)); }
  66%  { filter: drop-shadow(0 0 10px #38d9f5) drop-shadow(0 0 24px rgba(56,217,245,0.4)); }
  100% { filter: drop-shadow(0 0 10px #ff4d8d) drop-shadow(0 0 24px rgba(255,77,141,0.4)); }
}

/* ── NAV logo shimmer on hover ───────────── */
.nav-logo-img:hover {
  animation: rainbowLogo 1.8s ease-in-out infinite !important;
}

/* ── Section tag pop on reveal ───────────── */
.section-tag.visible {
  animation: tagPop 0.55s var(--ease-bounce) !important;
}
@keyframes tagPop {
  0%   { transform: scale(0.6); opacity: 0; }
  65%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Product card top accent per tab ────── */
#tab-companions  .product-card { border-top: 3px solid rgba(255,77,141,0.4); }
#tab-device      .product-card { border-top: 3px solid rgba(185,110,255,0.5); }
#tab-collectibles .product-card { border-top: 3px solid rgba(56,217,245,0.5); }
#tab-lifestyle   .product-card { border-top: 3px solid rgba(78,237,180,0.5); }
#tab-home        .product-card { border-top: 3px solid rgba(255,179,71,0.5); }

/* =========================================
   FINAL POLISH
   ========================================= */

/* ── Scroll progress rainbow bar ────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff4d8d, #b96eff, #38d9f5, #4eedb4, #ff4d8d);
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
  z-index: 10001;
  pointer-events: none;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(255,77,141,0.55), 0 0 16px rgba(185,110,255,0.3);
  transition: width 0.08s linear;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ── Mouse sparkle trail ─────────────────── */
.m-spark {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%) scale(1);
  animation: sparkFade var(--sd, 0.55s) ease forwards;
}
@keyframes sparkFade {
  0%   { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--dx,0px), calc(-50% - 18px)) scale(0); opacity: 0; }
}

/* ── Button click ripple ─────────────────── */
.btn, .tab-btn, .nav-cta { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: translate(-50%,-50%) scale(0);
  animation: rippleExpand 0.65s ease forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes rippleExpand {
  to { transform: translate(-50%,-50%) scale(22); opacity: 0; }
}

/* ── Day connector: travelling star ─────── */
.day-connector {
  position: relative;
  overflow: visible !important;
  background: linear-gradient(to right,
    rgba(255,179,71,0.4),
    rgba(185,110,255,0.5),
    rgba(56,217,245,0.4)) !important;
  height: 3px !important;
}
.day-connector::after {
  content: "★";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #ffb347;
  text-shadow: 0 0 8px rgba(255,179,71,0.9), 0 0 16px rgba(255,77,141,0.6);
  animation: travelStar 2.4s ease-in-out infinite alternate;
  white-space: nowrap;
}
@keyframes travelStar {
  0%   { left: 0%; }
  100% { left: calc(100% - 14px); }
}

/* ── CTA section decoration ──────────────── */
.cta-deco {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  font-size: 1.6rem;
  pointer-events: none;
  user-select: none;
  animation: heroDeco var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
  z-index: 2;
  filter: drop-shadow(0 2px 10px rgba(255,77,141,0.4));
  opacity: 0.7;
}

/* ── CTA headline shimmer ────────────────── */
.cta-headline em {
  background: linear-gradient(90deg,
    #ff4d8d 0%, #b96eff 25%, #38d9f5 50%,
    #ff4d8d 75%, #b96eff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerSweep 3.5s linear infinite;
}

/* ── Pillar "tilt" reset on hover ────────── */
.solution-pillars { perspective: 800px; }
.pillar {
  transform-style: preserve-3d;
}

/* ── Product card image shine ────────────── */
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255,255,255,0.15) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  pointer-events: none;
  z-index: 2;
  transition: none;
  border-radius: inherit;
}
.product-card:hover .product-img-wrap::after {
  transition: background-position 0.7s ease;
  background-position: 200% 0;
}

/* ── Market stats: bigger + bolder on count ── */
.market-num {
  font-size: clamp(44px, 7vw, 72px) !important;
  font-family: var(--font-serif) !important;
  letter-spacing: -0.03em !important;
}

/* ── World section: deeper hover glow ───── */
.world-card:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 20px 60px rgba(185,110,255,0.35) !important;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out) !important;
}

/* ── Responsive: turn off sparkle trail on touch ── */
@media (pointer: coarse) {
  .m-spark { display: none; }
}
