/* ============================================================
   PAGE HERO ANIMATIONS
   Animated hero visuals for all non-homepage pages
   Uses brand colors: #8BC53F (green), #2C3E50 (dark), #F5F9F0 (light)
   ============================================================ */

/* ------------------------------------------------------------
   SHARED / BASE STYLES
   ------------------------------------------------------------ */

/* Common scene container */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 450px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: var(--color-bg-light);
  box-shadow: var(--shadow-card);
}

/* GPU acceleration for animated children */
.hero-scene * {
  will-change: transform, opacity;
}

/* Shared floating icon base */
.hero-scene__icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: heroFadeSlideIn 0.6s ease-out forwards;
}

.hero-scene__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Shared connection line */
.hero-scene__line {
  position: absolute;
  background: rgba(139, 197, 63, 0.4);
  border-radius: 2px;
  height: 2px;
}

/* Shared dot / particle */
.hero-scene__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

/* ============================================================
   SHARED KEYFRAMES
   ============================================================ */

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

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes heroFloatAlt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes heroBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes heroPulseDot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes heroSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 197, 63, 0.3); }
  50% { box-shadow: 0 0 20px rgba(139, 197, 63, 0.6); }
}

@keyframes heroSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes heroOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroTyping {
  0% { width: 0; }
  50% { width: 100%; }
  60% { width: 100%; }
  100% { width: 0; }
}

@keyframes heroBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroEnvelopeOpen {
  0%, 30% { transform: rotateX(0deg); }
  50% { transform: rotateX(-180deg); }
  100% { transform: rotateX(-180deg); }
}

@keyframes heroLetterRise {
  0%, 40% { transform: translateY(0); }
  70%, 100% { transform: translateY(-30px); }
}

@keyframes heroRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
}

@keyframes heroDrop {
  0% { transform: translateY(-60px); opacity: 0; }
  60% { transform: translateY(5px); opacity: 1; }
  80% { transform: translateY(-3px); }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes heroDrawLine {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

@keyframes heroPageFlip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(-15deg); }
}

@keyframes heroDataFlow {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(120px); opacity: 0; }
}

@keyframes heroFunnelFlow {
  0% { top: 20%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

@keyframes heroHeartbeat {
  0%, 40% { transform: scaleY(1); }
  5% { transform: scaleY(2.5); }
  10% { transform: scaleY(0.5); }
  15% { transform: scaleY(1.8); }
  20% { transform: scaleY(1); }
}

@keyframes heroGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroChartRise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes heroFlipAB {
  0%, 45% { transform: rotateY(0deg); }
  50%, 95% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

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

@keyframes heroStreamFlow {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

@keyframes heroSwatchPop {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes heroToggle {
  0%, 40% { transform: translateX(0); }
  50%, 90% { transform: translateX(24px); }
  100% { transform: translateX(0); }
}

@keyframes heroColorShift {
  0%, 25% { background: #8BC53F; }
  25.1%, 50% { background: #3B82F6; }
  50.1%, 75% { background: #A855F7; }
  75.1%, 100% { background: #F59E0B; }
}

@keyframes heroCursorMove {
  0% { left: 30%; top: 40%; }
  25% { left: 55%; top: 55%; }
  50% { left: 70%; top: 35%; }
  75% { left: 45%; top: 60%; }
  100% { left: 30%; top: 40%; }
}

@keyframes heroCursorClick {
  0%, 45%, 55%, 100% { transform: scale(1); }
  50% { transform: scale(0.85); }
}

@keyframes heroLiveIndicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes heroBubbleIn {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes heroAppFloat {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ============================================================
   ABOUT PAGE - "Team in Action" Scene
   ============================================================ */

/* ============ About - ShopifyChamps Expert Hub ============ */
.about-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 480px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #e8f5d8 50%, #F5F9F0 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* --- Connection Lines SVG --- */
.ab-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: heroFadeIn 1s ease-out 0.6s forwards;
}

/* --- Central Emblem --- */
.ab-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 3;
  opacity: 0;
  animation: heroScaleIn 0.6s ease-out 0.2s forwards;
}

.ab-emblem__glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,197,63,0.25) 0%, transparent 70%);
  animation: heroPulse 3s ease-in-out infinite;
}

.ab-emblem__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(139,197,63,0.4);
  animation: abSpin 20s linear infinite;
}

@keyframes abSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ab-emblem__core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2C3E50, #1a2636);
  border: 3px solid #8BC53F;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.3);
}

.ab-emblem__shopify {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
  line-height: 1;
}

.ab-emblem__champs {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #8BC53F;
  letter-spacing: 1.5px;
  line-height: 1;
}

/* --- Expertise Nodes --- */
.ab-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  z-index: 2;
}

.ab-node__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ab-node__icon svg {
  width: 22px;
  height: 22px;
}

.ab-node__label {
  font-size: 9px;
  font-weight: 700;
  color: #2C3E50;
  text-align: center;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  white-space: nowrap;
}

/* Node positions (hexagonal layout) */
.ab-node--1 {
  top: 40px; left: 18%;
  animation: heroScaleIn 0.5s ease-out 0.4s forwards, heroFloat 5s ease-in-out 0.9s infinite;
}
.ab-node--1 .ab-node__icon { border-color: #8BC53F; color: #8BC53F; }

.ab-node--2 {
  top: 40px; right: 18%;
  animation: heroScaleIn 0.5s ease-out 0.5s forwards, heroFloatAlt 4.5s ease-in-out 1s infinite;
}
.ab-node--2 .ab-node__icon { border-color: #3B82F6; color: #3B82F6; }

.ab-node--3 {
  top: 50%; left: 4%; transform: translateY(-50%);
  animation: heroScaleIn 0.5s ease-out 0.6s forwards, heroFloat 4s ease-in-out 1.1s infinite;
}
.ab-node--3 .ab-node__icon { border-color: #F59E0B; color: #F59E0B; }

.ab-node--4 {
  top: 50%; right: 4%; transform: translateY(-50%);
  animation: heroScaleIn 0.5s ease-out 0.7s forwards, heroFloatAlt 5.5s ease-in-out 1.2s infinite;
}
.ab-node--4 .ab-node__icon { border-color: #A855F7; color: #A855F7; }

.ab-node--5 {
  bottom: 45px; left: 18%;
  animation: heroScaleIn 0.5s ease-out 0.8s forwards, heroFloat 4.5s ease-in-out 1.3s infinite;
}
.ab-node--5 .ab-node__icon { border-color: #06B6D4; color: #06B6D4; }

.ab-node--6 {
  bottom: 45px; right: 18%;
  animation: heroScaleIn 0.5s ease-out 0.9s forwards, heroFloatAlt 5s ease-in-out 1.4s infinite;
}
.ab-node--6 .ab-node__icon { border-color: #EF4444; color: #EF4444; }

/* --- Achievement Badges --- */
.ab-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 4;
  opacity: 0;
}

.ab-badge__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ab-badge__info {
  display: flex;
  flex-direction: column;
}

.ab-badge__num {
  font-size: 14px;
  font-weight: 800;
  color: #2C3E50;
  line-height: 1.1;
}

.ab-badge__txt {
  font-size: 7px;
  color: #64748b;
  font-weight: 500;
}

.ab-badge--1 {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroFadeSlideIn 0.5s ease-out 1.1s forwards, heroBob 5s ease-in-out 1.6s infinite;
}

.ab-badge--2 {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroFadeSlideIn 0.5s ease-out 1.3s forwards, heroBob 4.5s ease-in-out 1.8s infinite;
}


/* ============================================================
   SERVICES PAGE - "Service Ecosystem" Scene
   ============================================================ */

/* ---- Services Hero: Network Graph ---- */
.services-hero-scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 420px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #eaf5e0 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* SVG connection lines */
.svc-network__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-network__line {
  stroke: rgba(139, 197, 63, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  stroke-dashoffset: 200;
  animation: svcLineDraw 1.2s ease-out forwards;
}

.svc-network__line--faint {
  stroke: rgba(139, 197, 63, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.svc-network__line:nth-child(1) { animation-delay: 0.3s; }
.svc-network__line:nth-child(2) { animation-delay: 0.45s; }
.svc-network__line:nth-child(3) { animation-delay: 0.6s; }
.svc-network__line:nth-child(4) { animation-delay: 0.75s; }
.svc-network__line:nth-child(5) { animation-delay: 0.9s; }
.svc-network__line:nth-child(6) { animation-delay: 1.05s; }
.svc-network__line:nth-child(7) { animation-delay: 1.2s; }
.svc-network__line:nth-child(8) { animation-delay: 1.3s; }
.svc-network__line:nth-child(9) { animation-delay: 1.4s; }
.svc-network__line:nth-child(10) { animation-delay: 1.5s; }
.svc-network__line:nth-child(11) { animation-delay: 1.6s; }
.svc-network__line:nth-child(12) { animation-delay: 1.7s; }

@keyframes svcLineDraw {
  to { stroke-dashoffset: 0; }
}

/* Center hub node */
.svc-network__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(139, 197, 63, 0.35);
  z-index: 3;
  opacity: 0;
  transform: scale(0);
  animation: svcCenterIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.svc-network__center svg {
  color: var(--color-white);
  stroke: var(--color-white);
}

.svc-network__center::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(139, 197, 63, 0.2);
  animation: svcPulseRing 3s ease-in-out 1s infinite;
}

@keyframes svcCenterIn {
  to { opacity: 1; transform: scale(1); }
}

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

/* Service nodes */
.svc-network__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  animation: svcNodeIn 0.4s ease-out forwards;
}

.svc-network__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-network__icon svg {
  stroke: var(--color-dark);
}

.svc-network__node:hover .svc-network__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(139, 197, 63, 0.3);
}

.svc-network__node:hover .svc-network__icon svg {
  stroke: var(--color-primary);
}

.svc-network__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Node positions: hexagonal layout around center */
/* Node 1: Design - top center */
.svc-network__node--1 { top: 24px; left: 50%; transform: translateX(-50%) translateY(12px); }
.svc-network__node--1 { animation-delay: 0.4s; }

/* Node 2: Develop - top right */
.svc-network__node--2 { top: 90px; right: 36px; }
.svc-network__node--2 { animation-delay: 0.55s; }

/* Node 3: Migrate - bottom right */
.svc-network__node--3 { bottom: 70px; right: 36px; }
.svc-network__node--3 { animation-delay: 0.7s; }

/* Node 4: Optimize - bottom center */
.svc-network__node--4 { bottom: 10px; left: 50%; transform: translateX(-50%) translateY(12px); }
.svc-network__node--4 { animation-delay: 0.85s; }

/* Node 5: Support - bottom left */
.svc-network__node--5 { bottom: 70px; left: 36px; }
.svc-network__node--5 { animation-delay: 1.0s; }

/* Node 6: SEO - top left */
.svc-network__node--6 { top: 90px; left: 36px; }
.svc-network__node--6 { animation-delay: 1.15s; }

@keyframes svcNodeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Special handling for centered nodes (transform-origin) */
.svc-network__node--1,
.svc-network__node--4 {
  animation-name: svcNodeInCenter;
}

@keyframes svcNodeInCenter {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Data particles that travel along the lines */
.svc-network__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  z-index: 4;
  top: 50%;
  left: 50%;
  margin: -3px 0 0 -3px;
}

/* Each particle travels from center toward a node */
.svc-network__particle--1 {
  animation: svcParticle1 3s ease-in-out 2s infinite;
}
.svc-network__particle--2 {
  animation: svcParticle2 3s ease-in-out 2.5s infinite;
}
.svc-network__particle--3 {
  animation: svcParticle3 3s ease-in-out 3s infinite;
}
.svc-network__particle--4 {
  animation: svcParticle4 3s ease-in-out 3.5s infinite;
}
.svc-network__particle--5 {
  animation: svcParticle5 3s ease-in-out 4s infinite;
}
.svc-network__particle--6 {
  animation: svcParticle6 3s ease-in-out 4.5s infinite;
}

/* Particle paths: center (50%, 50%) → node positions */
@keyframes svcParticle1 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(0, -150px); }
  100% { opacity: 0; transform: translate(0, -150px); }
}
@keyframes svcParticle2 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(150px, -80px); }
  100% { opacity: 0; transform: translate(150px, -80px); }
}
@keyframes svcParticle3 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(150px, 80px); }
  100% { opacity: 0; transform: translate(150px, 80px); }
}
@keyframes svcParticle4 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(0, 140px); }
  100% { opacity: 0; transform: translate(0, 140px); }
}
@keyframes svcParticle5 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(-150px, 80px); }
  100% { opacity: 0; transform: translate(-150px, 80px); }
}
@keyframes svcParticle6 {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.8; }
  80% { opacity: 0.8; transform: translate(-150px, -80px); }
  100% { opacity: 0; transform: translate(-150px, -80px); }
}

/* Mobile: Scale down the network */
@media (max-width: 767px) {
  .services-hero-scene {
    max-width: 340px;
    height: 300px;
  }

  .svc-network__center {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }

  .svc-network__center svg {
    width: 26px;
    height: 26px;
  }

  .svc-network__icon {
    width: 40px;
    height: 40px;
  }

  .svc-network__icon svg {
    width: 18px;
    height: 18px;
  }

  .svc-network__label {
    font-size: 9px;
  }

  .svc-network__node--1 { top: 12px; }
  .svc-network__node--2 { top: 58px; right: 12px; }
  .svc-network__node--3 { bottom: 46px; right: 12px; }
  .svc-network__node--4 { bottom: 2px; }
  .svc-network__node--5 { bottom: 46px; left: 12px; }
  .svc-network__node--6 { top: 58px; left: 12px; }

  .svc-network__particle {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
  }

  /* Scale particle travel distances for mobile */
  @keyframes svcParticle1 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(0, -100px); }
    100% { opacity: 0; transform: translate(0, -100px); }
  }
  @keyframes svcParticle2 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(90px, -55px); }
    100% { opacity: 0; transform: translate(90px, -55px); }
  }
  @keyframes svcParticle3 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(90px, 55px); }
    100% { opacity: 0; transform: translate(90px, 55px); }
  }
  @keyframes svcParticle4 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(0, 95px); }
    100% { opacity: 0; transform: translate(0, 95px); }
  }
  @keyframes svcParticle5 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(-90px, 55px); }
    100% { opacity: 0; transform: translate(-90px, 55px); }
  }
  @keyframes svcParticle6 {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; transform: translate(-90px, -55px); }
    100% { opacity: 0; transform: translate(-90px, -55px); }
  }
}


/* ============================================================
   PORTFOLIO PAGE - "Browser Windows Showcase" Scene
   ============================================================ */

.portfolio-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 400px;
  min-height: 380px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #f0f4eb 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* Browser window frame */
.portfolio-hero-scene .browser-window {
  position: absolute;
  width: 300px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  opacity: 0;
}

/* Browser chrome bar */
.portfolio-hero-scene .browser-chrome {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f1f5f9;
  gap: 6px;
}
.portfolio-hero-scene .browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.portfolio-hero-scene .browser-dot:nth-child(1) { background: #EF4444; }
.portfolio-hero-scene .browser-dot:nth-child(2) { background: #F59E0B; }
.portfolio-hero-scene .browser-dot:nth-child(3) { background: #22C55E; }
.portfolio-hero-scene .browser-url {
  flex: 1;
  height: 18px;
  background: var(--color-white);
  border-radius: 4px;
  margin-left: 8px;
}

/* Browser body / mockup preview content */
.portfolio-hero-scene .browser-body {
  padding: 12px;
  min-height: 140px;
}

/* Mockup header bar */
.portfolio-hero-scene .mockup-header {
  height: 20px;
  background: var(--color-dark);
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0;
  animation: heroSlideInDown 0.4s ease-out forwards;
}

/* Mockup hero banner */
.portfolio-hero-scene .mockup-banner {
  height: 40px;
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0;
  animation: heroFadeIn 0.5s ease-out forwards;
}

/* Mockup product grid */
.portfolio-hero-scene .mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0;
  animation: heroFadeIn 0.5s ease-out forwards;
}
.portfolio-hero-scene .mockup-item {
  height: 30px;
  border-radius: 3px;
  background: #e2e8f0;
}

/* Window 1 - Green theme */
.portfolio-hero-scene .browser-window:nth-child(1) {
  top: 20px;
  left: 20px;
  z-index: 1;
  animation: heroSlideInLeft 0.7s ease-out 0.2s forwards;
  transform: rotate(-3deg);
}
.portfolio-hero-scene .browser-window:nth-child(1) .mockup-banner { background: linear-gradient(135deg, #8BC53F, #5A7A2F); }
.portfolio-hero-scene .browser-window:nth-child(1) .mockup-header { animation-delay: 0.6s; }
.portfolio-hero-scene .browser-window:nth-child(1) .mockup-banner { animation-delay: 0.8s; }
.portfolio-hero-scene .browser-window:nth-child(1) .mockup-grid { animation-delay: 1.0s; }

/* Window 2 - Blue theme */
.portfolio-hero-scene .browser-window:nth-child(2) {
  top: 45px;
  left: 100px;
  z-index: 2;
  animation: heroFadeSlideIn 0.7s ease-out 0.5s forwards;
}
.portfolio-hero-scene .browser-window:nth-child(2) .mockup-banner { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.portfolio-hero-scene .browser-window:nth-child(2) .mockup-header { animation-delay: 0.9s; }
.portfolio-hero-scene .browser-window:nth-child(2) .mockup-banner { animation-delay: 1.1s; }
.portfolio-hero-scene .browser-window:nth-child(2) .mockup-grid { animation-delay: 1.3s; }

/* Window 3 - Purple theme */
.portfolio-hero-scene .browser-window:nth-child(3) {
  top: 70px;
  right: 20px;
  z-index: 3;
  animation: heroSlideInRight 0.7s ease-out 0.8s forwards;
  transform: rotate(2deg);
}
.portfolio-hero-scene .browser-window:nth-child(3) .mockup-banner { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.portfolio-hero-scene .browser-window:nth-child(3) .mockup-header { animation-delay: 1.2s; }
.portfolio-hero-scene .browser-window:nth-child(3) .mockup-banner { animation-delay: 1.4s; }
.portfolio-hero-scene .browser-window:nth-child(3) .mockup-grid { animation-delay: 1.6s; }

/* Animated cursor */
.portfolio-hero-scene .cursor {
  position: absolute;
  z-index: 10;
  width: 16px;
  height: 16px;
  opacity: 0;
  animation: heroFadeIn 0.3s ease-out 1.5s forwards, heroCursorMove 8s ease-in-out 1.8s infinite, heroCursorClick 8s ease-in-out 1.8s infinite;
}
.portfolio-hero-scene .cursor svg { width: 16px; height: 16px; }

/* Live indicator */
.portfolio-hero-scene .live-indicator {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: var(--font-semibold);
  color: var(--color-dark);
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out 2s forwards;
}
.portfolio-hero-scene .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: heroLiveIndicator 1.5s ease-in-out infinite;
}


/* ============================================================
   CONTACT PAGE - "Let's Connect" Scene
   GSAP-POWERED: CSS animations disabled, using GSAP instead
   ============================================================ */

.contact-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: auto;
  min-height: 380px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(107, 70, 30, 0.12);
  overflow: visible;
  background: transparent;
}

.contact-hero-scene .cafe-illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Gentle float on center coffee cup (the hero) */
.contact-hero-scene .cafe-center-cup {
  /* GSAP handles animation */
  /* animation: cafeCupFloat 5s ease-in-out infinite; */
  transform-origin: 280px 220px;
}

/* Small cups subtle life */
.contact-hero-scene .cafe-cup-small-1 {
  /* GSAP handles animation */
  /* animation: cafeCupFloat 6s ease-in-out 1s infinite; */
  transform-origin: 130px 225px;
}
.contact-hero-scene .cafe-cup-small-2 {
  /* GSAP handles animation */
  /* animation: cafeCupFloat 5.5s ease-in-out 2s infinite; */
  transform-origin: 416px 215px;
}

/* Speech bubble — prominent with coffee icon */
.contact-hero-scene .cafe-bubble {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  color: var(--color-dark);
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  /* GSAP handles animation and opacity */
  /* opacity: 0; */
  /* animation: heroBubbleIn 0.6s ease-out 0.5s forwards, heroFloat 4s ease-in-out 1.1s infinite; */
  z-index: 2;
  max-width: 90%;
  text-align: center;
}
.contact-hero-scene .cafe-bubble__icon {
  margin-right: 6px;
  font-size: 18px;
}
.contact-hero-scene .cafe-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--color-white);
}

/* Floating accent coffee beans */
.contact-hero-scene .cafe-accent {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  z-index: 2;
}
.contact-hero-scene .cafe-accent svg { width: 100%; height: 100%; }
.contact-hero-scene .cafe-accent--1 {
  top: 75px;
  left: 20px;
  animation: heroScaleIn 0.3s ease-out 1.2s forwards, heroFloat 5s ease-in-out 1.5s infinite;
}
.contact-hero-scene .cafe-accent--2 {
  bottom: 40px;
  right: 20px;
  animation: heroScaleIn 0.3s ease-out 1.6s forwards, heroFloat 4.5s ease-in-out 2s infinite;
}

/* ---- Contact hero animations ---- */
@keyframes cafeCupFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.006) translateY(-1px); }
}


/* ============================================================
   BLOG PAGE - "Ideas & Insights" Scene
   ============================================================ */

.blog-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 460px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #f0f4eb 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* Article cards stack */
.blog-hero-scene .article-card {
  position: absolute;
  width: 230px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  opacity: 0;
}
.blog-hero-scene .article-card-img {
  height: 40px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.blog-hero-scene .article-card-line {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  margin-bottom: 5px;
}
.blog-hero-scene .article-card-line:last-child { width: 60%; margin-bottom: 0; }

.blog-hero-scene .article-card:nth-child(1) {
  top: 40px; left: 30px; transform: rotate(-2deg);
  animation: heroSlideInLeft 0.6s ease-out 0.3s forwards, heroBob 6s ease-in-out 0.9s infinite;
}
.blog-hero-scene .article-card:nth-child(1) .article-card-img { background: linear-gradient(135deg, #8BC53F, #5A7A2F); }

.blog-hero-scene .article-card:nth-child(2) {
  top: 80px; left: 140px; transform: rotate(1deg);
  animation: heroFadeSlideIn 0.6s ease-out 0.6s forwards, heroFloat 5s ease-in-out 1.2s infinite;
}
.blog-hero-scene .article-card:nth-child(2) .article-card-img { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }

.blog-hero-scene .article-card:nth-child(3) {
  top: 120px; right: 30px; transform: rotate(3deg);
  animation: heroSlideInRight 0.6s ease-out 0.9s forwards, heroFloatAlt 5.5s ease-in-out 1.5s infinite;
}
.blog-hero-scene .article-card:nth-child(3) .article-card-img { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* Lightbulb icon */
.blog-hero-scene .lightbulb {
  position: absolute;
  top: 15px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 1.2s forwards, heroGlow 2.5s ease-in-out 1.6s infinite;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
.blog-hero-scene .lightbulb svg { width: 26px; height: 26px; stroke: #F59E0B; }

/* Pencil drawing line */
.blog-hero-scene .pencil-line {
  position: absolute;
  bottom: 50px;
  left: 30px;
}
.blog-hero-scene .pencil-line svg {
  width: 200px;
  height: 30px;
}
.blog-hero-scene .pencil-line .draw-path {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  fill: none;
  animation: heroDrawLine 3s ease-in-out 1.5s infinite;
}

/* Typing text lines */
.blog-hero-scene .typing-line {
  position: absolute;
  bottom: 30px;
  left: 30px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  opacity: 0.4;
  width: 0;
  animation: heroTyping 4s ease-in-out infinite;
}
.blog-hero-scene .typing-line:nth-of-type(1) { animation-delay: 2s; }
.blog-hero-scene .typing-line:nth-of-type(2) { bottom: 22px; animation-delay: 2.5s; max-width: 80px; }

/* Cursor blink */
.blog-hero-scene .text-cursor {
  position: absolute;
  bottom: 28px;
  left: 30px;
  width: 2px;
  height: 12px;
  background: var(--color-primary);
  animation: heroBlink 0.8s step-end infinite;
}


/* ============================================================
   SERVICE: STORE DESIGN - "Assembling Store" Scene
   GSAP-POWERED: CSS animations disabled, using GSAP instead
   ============================================================ */

.store-design-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #e8f5d8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Store Design now uses shared .ct-laptop classes (see Custom Themes section) */
/* GSAP handles all animations for this scene - see gsap-hero-animations.js */


/* ============================================================
   SERVICE: SHOPIFY PLUS - "Enterprise Diamond" Scene
   ============================================================ */

.shopify-plus-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2C3E50 0%, #1E293B 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* Diamond icon */
.shopify-plus-hero-scene .diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: heroScaleIn 0.6s ease-out 0.3s forwards;
}
.shopify-plus-hero-scene .diamond svg {
  width: 130px;
  height: 130px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 20px rgba(139, 197, 63, 0.5));
}

/* Sparkle particles */
.shopify-plus-hero-scene .sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
}
.shopify-plus-hero-scene .sparkle::before,
.shopify-plus-hero-scene .sparkle::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  border-radius: 1px;
}
.shopify-plus-hero-scene .sparkle::before { width: 100%; height: 2px; top: 5px; left: 0; }
.shopify-plus-hero-scene .sparkle::after { width: 2px; height: 100%; top: 0; left: 5px; }

.shopify-plus-hero-scene .sparkle:nth-child(2) { top: 25%; left: 20%; animation: heroSparkle 2s ease-in-out 0.5s infinite; }
.shopify-plus-hero-scene .sparkle:nth-child(3) { top: 20%; right: 25%; animation: heroSparkle 2.5s ease-in-out 1s infinite; }
.shopify-plus-hero-scene .sparkle:nth-child(4) { bottom: 30%; left: 15%; animation: heroSparkle 2s ease-in-out 1.5s infinite; }
.shopify-plus-hero-scene .sparkle:nth-child(5) { bottom: 25%; right: 20%; animation: heroSparkle 2.5s ease-in-out 0.8s infinite; }
.shopify-plus-hero-scene .sparkle:nth-child(6) { top: 35%; left: 35%; animation: heroSparkle 3s ease-in-out 1.2s infinite; }
.shopify-plus-hero-scene .sparkle:nth-child(7) { top: 30%; right: 35%; animation: heroSparkle 2s ease-in-out 0.3s infinite; }

/* Enterprise dashboard mini screens */
.shopify-plus-hero-scene .mini-screen {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(139, 197, 63, 0.2);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
}
.shopify-plus-hero-scene .mini-screen:nth-child(8) {
  top: 30px; left: 20px; width: 140px; height: 90px;
  animation: heroSlideInLeft 0.5s ease-out 0.8s forwards, heroFloat 5s ease-in-out 1.3s infinite;
}
.shopify-plus-hero-scene .mini-screen:nth-child(9) {
  top: 30px; right: 20px; width: 140px; height: 90px;
  animation: heroSlideInRight 0.5s ease-out 1s forwards, heroFloatAlt 4.5s ease-in-out 1.5s infinite;
}
.shopify-plus-hero-scene .mini-screen:nth-child(10) {
  bottom: 30px; left: 50%; margin-left: -75px; width: 150px; height: 70px;
  animation: heroFadeSlideIn 0.5s ease-out 1.2s forwards, heroFloat 5.5s ease-in-out 1.7s infinite;
}

.shopify-plus-hero-scene .screen-bar {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 5px;
  background: rgba(139, 197, 63, 0.4);
}
.shopify-plus-hero-scene .screen-bar:nth-child(1) { width: 80%; }
.shopify-plus-hero-scene .screen-bar:nth-child(2) { width: 60%; background: rgba(139, 197, 63, 0.25); }
.shopify-plus-hero-scene .screen-bar:nth-child(3) { width: 90%; background: rgba(59, 130, 246, 0.3); }


/* ============================================================
   SERVICE: CUSTOM THEMES - "Paintbrush Canvas" Scene
   ============================================================ */

/* ============ Custom Themes - Laptop + Phone Mockup ============ */
.custom-themes-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #E8F5D8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
  padding: 30px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Custom Themes: Devices Container --- */
.ctd-devices {
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* --- Custom Themes: Laptop --- */
.ctd-laptop {
  position: relative;
  flex: 1;
  max-width: 340px;
  z-index: 1;
}

.ctd-laptop__screen {
  background: #1e2a3a;
  border-radius: 10px 10px 0 0;
  padding: 14px 8px 8px;
  position: relative;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
}

.ctd-laptop__cam {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a4a5c;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.ctd-laptop__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #e5e7eb;
  border-radius: 5px 5px 0 0;
}

.ctd-dots {
  display: flex;
  gap: 3px;
}

.ctd-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.ctd-dots span:nth-child(1) { background: #FF5F57; }
.ctd-dots span:nth-child(2) { background: #FFBD2E; }
.ctd-dots span:nth-child(3) { background: #28C840; }

.ctd-url {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
}

.ctd-laptop__content {
  background: #f8fafc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}

.ctd-laptop__base {
  width: 110%;
  height: 10px;
  background: linear-gradient(to bottom, #253547, #1e2a3a);
  border-radius: 0 0 6px 6px;
  margin-left: -5%;
  position: relative;
}

.ctd-laptop__hinge {
  width: 50px;
  height: 3px;
  background: #3a4a5c;
  border-radius: 0 0 3px 3px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Desktop store content inside laptop */
.ctd-desk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: white;
  border-radius: 3px;
  color: #2C3E50;
}

.ctd-desk-nav__logo {
  font-weight: 800;
  font-size: 9px;
  color: #2C3E50;
  letter-spacing: 1px;
}

.ctd-desk-nav__links {
  display: flex;
  gap: 8px;
  font-size: 6px;
  color: #64748b;
}

.ctd-desk-nav__cart {
  color: #2C3E50;
  display: flex;
  align-items: center;
}

.ctd-desk-hero {
  background: linear-gradient(135deg, #8BC53F 0%, #5A7A2F 100%);
  color: white;
  padding: 14px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.ctd-desk-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.ctd-desk-product {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ctd-desk-product__img {
  height: 36px;
  background: linear-gradient(135deg, #e8e0d4 0%, #d4c9bb 100%);
}

.ctd-desk-product__name {
  display: block;
  font-size: 6px;
  font-weight: 600;
  color: #2C3E50;
  padding: 3px 4px 0;
}

.ctd-desk-product__price {
  display: block;
  font-size: 6px;
  color: #8BC53F;
  font-weight: 700;
  padding: 1px 4px 3px;
}

/* --- Custom Themes: Phone --- */
.ctd-phone {
  position: relative;
  width: 120px;
  flex-shrink: 0;
  margin-left: -20px;
  margin-bottom: 15px;
  z-index: 2;
}

.ctd-phone__frame {
  background: #1e2a3a;
  border-radius: 18px;
  padding: 22px 6px 14px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.ctd-phone__notch {
  width: 32px;
  height: 4px;
  background: #3a4a5c;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.ctd-phone__content {
  background: #f8fafc;
  border-radius: 4px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 170px;
}

/* Mobile store content inside phone */
.ctd-mob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px;
  background: white;
  border-radius: 3px;
}

.ctd-mob-nav__logo {
  font-weight: 800;
  font-size: 8px;
  color: #2C3E50;
  letter-spacing: 1px;
}

.ctd-mob-hero {
  background: linear-gradient(135deg, #8BC53F, #5A7A2F);
  color: white;
  padding: 10px 4px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.ctd-mob-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ctd-mob-product {
  background: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ctd-mob-product__img {
  height: 28px;
  background: linear-gradient(135deg, #e8e0d4, #d4c9bb);
}

.ctd-mob-product__name {
  display: block;
  font-size: 5px;
  font-weight: 600;
  color: #2C3E50;
  padding: 2px 3px 0;
}

.ctd-mob-product__price {
  display: block;
  font-size: 5px;
  color: #8BC53F;
  font-weight: 700;
  padding: 1px 3px 2px;
}

/* Typography floating card */
.ct-float--typo {
  bottom: 3%;
  left: 2%;
  background: white;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.ctd-typo-aa {
  font-size: 14px;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1;
}

.ctd-typo-font {
  font-size: 6px;
  color: #64748b;
  font-weight: 500;
}

/* Custom Themes float position overrides (laptop+phone layout) */
.custom-themes-hero-scene .ct-float--code {
  top: 3%;
  right: 1%;
  bottom: auto;
}

.custom-themes-hero-scene .ct-float--palette {
  bottom: 5%;
  left: auto;
  right: 1%;
}

.custom-themes-hero-scene .ct-float--typo {
  bottom: 5%;
  left: 1%;
}

/* --- Laptop Frame (shared with Store Design) --- */
.ct-laptop {
  position: relative;
  width: 100%;
  max-width: 400px;
  opacity: 0;
  transform: scale(0.95);
  animation: heroScaleIn 0.6s ease-out 0.2s forwards;
}

.ct-screen {
  background: #1e2a3a;
  border-radius: 14px 14px 0 0;
  padding: 16px 10px 10px;
  position: relative;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
}

.ct-camera {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a4a5c;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Browser Chrome --- */
.ct-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #e5e7eb;
  border-radius: 6px 6px 0 0;
}

.ct-dots {
  display: flex;
  gap: 4px;
}

.ct-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.ct-dots span:nth-child(1) { background: #FF5F57; }
.ct-dots span:nth-child(2) { background: #FFBD2E; }
.ct-dots span:nth-child(3) { background: #28C840; }

.ct-url {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
}

/* --- Store Content --- */
.ct-store {
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

/* Nav bar */
.ct-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2C3E50;
  border-radius: 4px;
  padding: 7px 10px;
  color: white;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.ct-nav__logo {
  font-size: 9px;
  font-weight: 700;
}

.ct-nav__links {
  display: flex;
  gap: 8px;
}

.ct-nav__links span {
  font-size: 7px;
  opacity: 0.85;
}

.ct-nav__cart {
  font-size: 7px;
  opacity: 0.85;
}

/* Hero banner */
.ct-banner {
  background: linear-gradient(135deg, #8BC53F 0%, #5A7A2F 100%);
  color: white;
  padding: 14px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

/* Product grid */
.ct-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ct-product-card {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ct-product-card__img {
  height: 48px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  position: relative;
}

.ct-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 6px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  background: #8BC53F;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ct-badge--new { background: #3B82F6; }
.ct-badge--sale { background: #EF4444; }

.ct-product-card__info {
  padding: 5px 6px;
}

.ct-product-card__name {
  display: block;
  font-size: 7px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-product-card__price {
  font-size: 7px;
  color: #8BC53F;
  font-weight: 700;
}

/* --- Laptop Base --- */
.ct-base {
  width: 110%;
  height: 12px;
  background: linear-gradient(to bottom, #253547, #1e2a3a);
  border-radius: 0 0 8px 8px;
  margin-left: -5%;
  position: relative;
}

.ct-notch {
  width: 60px;
  height: 4px;
  background: #3a4a5c;
  border-radius: 0 0 4px 4px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Floating Design Elements --- */
.ct-float {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ct-float--filters {
  top: 5%;
  right: 2%;
  background: white;
  padding: 10px 14px;
  min-width: 80px;
  z-index: 2;
}

.ct-float__title {
  font-size: 9px;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.ct-float__item {
  font-size: 8px;
  color: #64748b;
  padding: 3px 0;
}

.ct-float--palette {
  bottom: 18%;
  left: 1%;
  background: white;
  padding: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.ct-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.ct-float--code {
  bottom: 6%;
  right: 3%;
  background: #1e293b;
  color: #8BC53F;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 8px;
  padding: 6px 10px;
  font-weight: 600;
  z-index: 2;
}

/* --- Custom Themes Animations --- */
.custom-themes-hero-scene .theme-block {
  opacity: 0;
}

/* Laptop slides up */
.custom-themes-hero-scene .header-block {
  transform: translateY(30px);
  animation: heroSlideUp 0.6s ease-out 0.3s forwards;
}

/* Phone slides in from right */
.custom-themes-hero-scene .hero-block {
  transform: translateX(40px);
  animation: heroSlideInRight 0.6s ease-out 0.7s forwards;
}

/* Floating elements animation */
.custom-themes-hero-scene .code-float {
  opacity: 0;
  animation: heroCodeFloat 0.8s ease-out forwards;
}

.custom-themes-hero-scene .code-float-1 {
  animation: heroCodeFloat 0.8s ease-out 1.1s forwards, heroFloatGentle 4s ease-in-out 1.9s infinite;
}

.custom-themes-hero-scene .code-float-2 {
  animation: heroCodeFloat 0.8s ease-out 1.4s forwards, heroFloatGentle 5s ease-in-out 2.2s infinite;
}

.custom-themes-hero-scene .code-float-3 {
  animation: heroCodeFloat 0.8s ease-out 1.7s forwards, heroFloatGentle 4.5s ease-in-out 2.5s infinite;
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCodeFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroFloatGentle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}


/* ============================================================
   SERVICE: THEME CUSTOMIZATION - "Sliders & Toggles" Scene
   ============================================================ */

.theme-custom-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #e8f5d8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-custom-hero-scene .settings-panel {
  width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 28px;
  opacity: 0;
  animation: heroScaleIn 0.5s ease-out 0.2s forwards;
}

.theme-custom-hero-scene .settings-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-custom-hero-scene .settings-title svg { width: 16px; height: 16px; stroke: var(--color-primary); }

/* Slider rows */
.theme-custom-hero-scene .slider-row {
  margin-bottom: 16px;
}
.theme-custom-hero-scene .slider-label {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 6px;
  display: block;
}
.theme-custom-hero-scene .slider-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  position: relative;
}
.theme-custom-hero-scene .slider-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--color-primary);
  transition: width 1s ease;
}
.theme-custom-hero-scene .slider-thumb {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.theme-custom-hero-scene .slider-row:nth-child(2) .slider-fill { width: 65%; animation: heroSliderMove1 6s ease-in-out 0.8s infinite; }
.theme-custom-hero-scene .slider-row:nth-child(2) .slider-thumb { left: 62%; animation: heroSliderThumb1 6s ease-in-out 0.8s infinite; }
.theme-custom-hero-scene .slider-row:nth-child(3) .slider-fill { width: 40%; animation: heroSliderMove2 8s ease-in-out 1s infinite; }
.theme-custom-hero-scene .slider-row:nth-child(3) .slider-thumb { left: 37%; animation: heroSliderThumb2 8s ease-in-out 1s infinite; }

@keyframes heroSliderMove1 {
  0%, 100% { width: 65%; }
  50% { width: 85%; }
}
@keyframes heroSliderThumb1 {
  0%, 100% { left: 62%; }
  50% { left: 82%; }
}
@keyframes heroSliderMove2 {
  0%, 100% { width: 40%; }
  50% { width: 70%; }
}
@keyframes heroSliderThumb2 {
  0%, 100% { left: 37%; }
  50% { left: 67%; }
}

/* Toggle row */
.theme-custom-hero-scene .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.theme-custom-hero-scene .toggle-label {
  font-size: 14px;
  color: var(--color-gray);
}
.theme-custom-hero-scene .toggle-switch {
  width: 40px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 10px;
  position: relative;
}
.theme-custom-hero-scene .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  animation: heroToggle 5s ease-in-out 1.2s infinite;
}

/* Color swatches */
.theme-custom-hero-scene .color-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.theme-custom-hero-scene .color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.theme-custom-hero-scene .color-swatch:nth-child(1) { background: #8BC53F; border-color: var(--color-primary); }
.theme-custom-hero-scene .color-swatch:nth-child(2) { background: #3B82F6; }
.theme-custom-hero-scene .color-swatch:nth-child(3) { background: #EF4444; }
.theme-custom-hero-scene .color-swatch:nth-child(4) { background: #2C3E50; }
.theme-custom-hero-scene .color-swatch--active {
  animation: heroColorShift 8s ease-in-out infinite;
  border: 2px solid rgba(44, 62, 80, 0.3);
}


/* ============================================================
   SERVICE: APP DEVELOPMENT - "Phone + App Icons" Scene
   ============================================================ */

.app-dev-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #e8f5d8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone mockup */
.app-dev-hero-scene .phone-frame {
  width: 180px;
  height: 310px;
  background: var(--color-dark);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  animation: heroScaleIn 0.5s ease-out 0.2s forwards;
}
.app-dev-hero-scene .phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-white);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}
.app-dev-hero-scene .phone-status-bar {
  height: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.app-dev-hero-scene .phone-notch {
  width: 40px;
  height: 8px;
  background: var(--color-dark);
  border-radius: 4px;
}

/* App icon grid inside phone */
.app-dev-hero-scene .app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.app-dev-hero-scene .app-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  opacity: 0;
}
.app-dev-hero-scene .app-icon:nth-child(1) { background: #8BC53F; animation: heroAppFloat 0.5s ease-out 0.6s forwards; }
.app-dev-hero-scene .app-icon:nth-child(2) { background: #3B82F6; animation: heroAppFloat 0.5s ease-out 0.8s forwards; }
.app-dev-hero-scene .app-icon:nth-child(3) { background: #EF4444; animation: heroAppFloat 0.5s ease-out 1.0s forwards; }
.app-dev-hero-scene .app-icon:nth-child(4) { background: #F59E0B; animation: heroAppFloat 0.5s ease-out 1.2s forwards; }
.app-dev-hero-scene .app-icon:nth-child(5) { background: #A855F7; animation: heroAppFloat 0.5s ease-out 1.4s forwards; }
.app-dev-hero-scene .app-icon:nth-child(6) { background: #14B8A6; animation: heroAppFloat 0.5s ease-out 1.6s forwards; }

/* Floating code lines next to phone */
.app-dev-hero-scene .code-float {
  position: absolute;
  background: var(--color-dark);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-card);
  opacity: 0;
}
.app-dev-hero-scene .code-float span {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}
.app-dev-hero-scene .code-float .cf-green { color: #8BC53F; }
.app-dev-hero-scene .code-float .cf-blue { color: #60A5FA; }
.app-dev-hero-scene .code-float .cf-gray { color: #94A3B8; }
.app-dev-hero-scene .code-float .cf-white { color: #E2E8F0; }

.app-dev-hero-scene .code-float:nth-child(3) {
  top: 60px; right: 20px;
  animation: heroSlideInRight 0.5s ease-out 1.2s forwards, heroBob 5s ease-in-out 1.7s infinite;
}
.app-dev-hero-scene .code-float:nth-child(4) {
  bottom: 60px; left: 20px;
  animation: heroSlideInLeft 0.5s ease-out 1.5s forwards, heroFloat 4.5s ease-in-out 2s infinite;
}


/* ============================================================
   SERVICE: STORE MIGRATION - "Data Transfer" Scene
   ============================================================ */

.migration-hero-scene {
  position: relative;
  width: 100%;
  max-width: 800px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  padding: 40px 20px;
}

/* Migration Cards Animation */
.migration-hero-scene .migration-card {
  opacity: 0;
  transform: scale(0.95);
}

.migration-hero-scene .old-platform {
  animation: heroScaleIn 0.6s ease-out 0.3s forwards;
}

.migration-hero-scene .new-platform {
  animation: heroScaleIn 0.6s ease-out 0.6s forwards;
}

/* Data Items Slide In */
.migration-hero-scene .data-item {
  opacity: 0;
  transform: translateX(-20px);
}

.migration-hero-scene .old-platform .data-item:nth-child(1) {
  animation: heroSlideInLeft 0.5s ease-out 0.9s forwards;
}

.migration-hero-scene .old-platform .data-item:nth-child(2) {
  animation: heroSlideInLeft 0.5s ease-out 1.1s forwards;
}

.migration-hero-scene .old-platform .data-item:nth-child(3) {
  animation: heroSlideInLeft 0.5s ease-out 1.3s forwards;
}

.migration-hero-scene .new-platform .data-item {
  opacity: 0;
  transform: translateX(20px);
}

.migration-hero-scene .new-platform .data-item:nth-child(1) {
  animation: heroSlideInRight 0.5s ease-out 1.5s forwards;
}

.migration-hero-scene .new-platform .data-item:nth-child(2) {
  animation: heroSlideInRight 0.5s ease-out 1.7s forwards;
}

.migration-hero-scene .new-platform .data-item:nth-child(3) {
  animation: heroSlideInRight 0.5s ease-out 1.9s forwards;
}

/* Transfer Arrow Animation */
.migration-hero-scene .transfer-arrow {
  opacity: 0;
  animation: heroFadeIn 0.6s ease-out 0.5s forwards;
}

/* Data Packets Floating */
.migration-hero-scene .data-packet {
  animation: heroPacketPulse 2s ease-in-out infinite;
}

.migration-hero-scene .data-packet:nth-child(1) {
  animation-delay: 0s;
}

.migration-hero-scene .data-packet:nth-child(2) {
  animation-delay: 0.3s;
}

.migration-hero-scene .data-packet:nth-child(3) {
  animation-delay: 0.6s;
}

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

/* Migration Flow Diagram (Benefits Section) */
.migration-flow-diagram .platform-source {
  opacity: 0;
  transform: translateX(-30px);
  animation: heroSlideInLeft 0.8s ease-out 0.3s forwards;
}

.migration-flow-diagram .migration-flow-arrow {
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out 0.6s forwards;
}

.migration-flow-diagram .platform-target {
  opacity: 0;
  transform: translateX(30px);
  animation: heroSlideInRight 0.8s ease-out 0.9s forwards;
}

/* Conversion Funnel Diagram */
.conversion-funnel-diagram .funnel-stage {
  opacity: 0;
  transform: translateY(20px);
}

.conversion-funnel-diagram .funnel-stage:nth-child(1) {
  animation: heroSlideUp 0.6s ease-out 0.3s forwards;
}

.conversion-funnel-diagram .funnel-stage:nth-child(2) {
  animation: heroSlideUp 0.6s ease-out 0.5s forwards;
}

.conversion-funnel-diagram .funnel-stage:nth-child(3) {
  animation: heroSlideUp 0.6s ease-out 0.7s forwards;
}

.conversion-funnel-diagram .funnel-stage:nth-child(4) {
  animation: heroSlideUp 0.6s ease-out 0.9s forwards;
}


/* ============================================================
   SERVICE: CONVERSION OPTIMIZATION - "Funnel + A/B" Scene
   ============================================================ */

/* ---- CRO Dashboard Scene ---- */
.cro-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1a2535 0%, #243447 50%, #1e2d3d 100%);
  box-shadow: 0 20px 60px rgba(26, 37, 53, 0.35);
  overflow: hidden;
}

/* -- Conversion Funnel (top-left) -- */
.cro-funnel {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 195px;
  opacity: 0;
  animation: heroScaleIn 0.5s ease-out 0.2s forwards;
}
.cro-funnel__stage {
  margin: 0 auto 3px;
  height: 52px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  position: relative;
}
.cro-funnel__stage--1 { width: 100%; background: linear-gradient(135deg, #334155 0%, #475569 100%); }
.cro-funnel__stage--2 { width: 82%; background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%); }
.cro-funnel__stage--3 { width: 64%; background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%); }
.cro-funnel__stage--4 { width: 46%; background: linear-gradient(135deg, #5A7A2F 0%, #8BC53F 100%); }
.cro-funnel__label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cro-funnel__value {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* Funnel flowing dots */
.cro-funnel__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  left: 50%;
  opacity: 0;
}
.cro-funnel__dot:nth-child(5) { animation: heroFunnelFlow 3s ease-in 0.6s infinite; }
.cro-funnel__dot:nth-child(6) { animation: heroFunnelFlow 3s ease-in 1.2s infinite; margin-left: 8px; }
.cro-funnel__dot:nth-child(7) { animation: heroFunnelFlow 3s ease-in 1.8s infinite; margin-left: -8px; }

/* -- A/B Test Cards (top-right) -- */
.cro-ab {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 170px;
  opacity: 0;
  animation: heroSlideInRight 0.5s ease-out 0.6s forwards;
}
.cro-ab__card {
  width: 100%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px;
  text-align: center;
}
.cro-ab__card--a {
  border-left: 3px solid rgba(255,255,255,0.25);
}
.cro-ab__card--b {
  border-left: 3px solid #8BC53F;
}
.cro-ab__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.cro-ab__rate {
  display: block;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 26px;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
}
.cro-ab__card--b .cro-ab__rate {
  color: #8BC53F;
}
.cro-ab__winner {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  background: rgba(139, 197, 63, 0.15);
  color: #8BC53F;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* -- Heatmap Phone (bottom-left) -- */
.cro-heatmap {
  position: absolute;
  bottom: 20px;
  left: 25px;
  width: 110px;
  height: 175px;
  background: #0f1923;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  padding: 3px;
  opacity: 0;
  animation: heroSlideUp 0.5s ease-out 1.0s forwards;
}
.cro-heatmap__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  z-index: 2;
}
.cro-heatmap__screen {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}
.cro-heatmap__nav {
  height: 16px;
  background: #2c3e50;
}
.cro-heatmap__hero {
  height: 36px;
  margin: 4px 6px;
  background: #e2e8f0;
  border-radius: 3px;
}
.cro-heatmap__btn {
  width: 40px;
  height: 10px;
  margin: 0 auto 4px;
  background: #8BC53F;
  border-radius: 2px;
}
.cro-heatmap__rows {
  padding: 0 6px;
}
.cro-heatmap__row {
  height: 6px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 4px;
}
.cro-heatmap__row:last-child { width: 70%; }

/* Heat spots - radial gradient overlays */
.cro-heat {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: croPulseHeat 2.5s ease-in-out infinite alternate;
}
.cro-heat--1 {
  width: 50px;
  height: 50px;
  top: 50px;
  left: 25px;
  background: radial-gradient(circle, rgba(239,68,68,0.7) 0%, rgba(239,68,68,0.3) 40%, transparent 70%);
  animation-delay: 0s;
}
.cro-heat--2 {
  width: 35px;
  height: 35px;
  top: 75px;
  left: 30px;
  background: radial-gradient(circle, rgba(249,115,22,0.6) 0%, rgba(249,115,22,0.2) 40%, transparent 70%);
  animation-delay: 0.8s;
}
.cro-heat--3 {
  width: 28px;
  height: 28px;
  top: 105px;
  left: 15px;
  background: radial-gradient(circle, rgba(234,179,8,0.5) 0%, rgba(234,179,8,0.15) 40%, transparent 70%);
  animation-delay: 1.5s;
}
.cro-heatmap__tag {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes croPulseHeat {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* -- Revenue Impact Card (center) -- */
.cro-revenue {
  position: absolute;
  bottom: 95px;
  left: 165px;
  width: 140px;
  background: rgba(139, 197, 63, 0.08);
  border: 1px solid rgba(139, 197, 63, 0.2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 1.4s forwards;
}
.cro-revenue__icon {
  display: block;
  margin: 0 auto 4px;
}
.cro-revenue__label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.cro-revenue__value {
  display: block;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 800;
  font-size: 28px;
  color: #8BC53F;
  line-height: 1.1;
}
.cro-revenue__period {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* -- Floating Metric Badges -- */
.cro-metric {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 12px;
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out forwards;
}
.cro-metric--1 {
  top: 240px;
  left: 20px;
  animation-delay: 1.8s;
}
.cro-metric--2 {
  bottom: 30px;
  left: 170px;
  animation-delay: 2.0s;
}
.cro-metric--3 {
  top: 200px;
  right: 18px;
  animation-delay: 2.2s;
}
.cro-metric__arrow {
  font-size: 8px;
  line-height: 1;
}
.cro-metric__arrow--up { color: #8BC53F; }
.cro-metric__arrow--down { color: #ef4444; }
.cro-metric__text {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.cro-metric--1 .cro-metric__text { color: #ef4444; }

/* -- Growth Chart (bottom-right) -- */
.cro-chart {
  position: absolute;
  bottom: 20px;
  right: 18px;
  width: 200px;
  height: 130px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out 1.2s forwards;
}
.cro-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding-top: 5px;
}
.cro-chart__bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(139, 197, 63, 0.5);
  transform-origin: bottom;
  opacity: 0;
}
.cro-chart__bar--1 { height: 20px; animation: heroChartRise 0.35s ease-out 1.5s forwards; }
.cro-chart__bar--2 { height: 30px; background: rgba(139,197,63,0.65); animation: heroChartRise 0.35s ease-out 1.6s forwards; }
.cro-chart__bar--3 { height: 25px; animation: heroChartRise 0.35s ease-out 1.7s forwards; }
.cro-chart__bar--4 { height: 40px; background: rgba(139,197,63,0.65); animation: heroChartRise 0.35s ease-out 1.8s forwards; }
.cro-chart__bar--5 { height: 35px; animation: heroChartRise 0.35s ease-out 1.9s forwards; }
.cro-chart__bar--6 { height: 50px; background: rgba(139,197,63,0.65); animation: heroChartRise 0.35s ease-out 2.0s forwards; }
.cro-chart__bar--7 { height: 55px; animation: heroChartRise 0.35s ease-out 2.1s forwards; }
.cro-chart__bar--8 { height: 70px; background: #8BC53F; animation: heroChartRise 0.35s ease-out 2.2s forwards; }
.cro-chart__trend {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 180px;
  height: 55px;
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out 2.5s forwards;
}
.cro-chart__label {
  display: block;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}


/* ============================================================
   SERVICE: SUPPORT & MAINTENANCE - "Shield + Heartbeat" Scene
   ============================================================ */

/* ---- Support & Maintenance Dashboard Scene ---- */
.support-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1a2535 0%, #243447 50%, #1e2d3d 100%);
  box-shadow: 0 20px 60px rgba(26, 37, 53, 0.35);
  overflow: hidden;
}

/* -- Dashboard Header Bar -- */
.sup-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
  z-index: 2;
}
.sup-header__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  margin-right: 8px;
  animation: heroLiveIndicator 1.5s ease-in-out infinite;
}
.sup-header__title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sup-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #8BC53F;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.sup-badge__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: heroLiveIndicator 1.5s ease-in-out infinite;
}

/* -- Heartbeat Line (below header) -- */
.sup-heartbeat {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 45px;
  opacity: 0;
  animation: heroFadeIn 0.5s ease-out 0.3s forwards;
  overflow: hidden;
}
.sup-heartbeat svg {
  width: 100%;
  height: 45px;
}
.sup-heartbeat__line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: heroDrawLine 2.5s ease-in-out 0.8s infinite;
}

/* -- System Monitor Panel (left) -- */
.sup-monitor {
  position: absolute;
  top: 95px;
  left: 15px;
  width: 175px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  opacity: 0;
  animation: heroSlideInLeft 0.5s ease-out 0.2s forwards;
}
.sup-monitor__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.sup-monitor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}
.sup-monitor__title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sup-monitor__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 9px;
  color: rgba(255,255,255,0.55);
}
.sup-monitor__label { min-width: 45px; }
.sup-monitor__val {
  min-width: 24px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  font-size: 9px;
}
.sup-monitor__bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.sup-monitor__fill {
  height: 100%;
  background: #8BC53F;
  border-radius: 2px;
}
.sup-monitor__fill--warn { background: #F59E0B; }

/* -- Uptime Card (right) -- */
.sup-uptime {
  position: absolute;
  top: 95px;
  right: 15px;
  width: 165px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  opacity: 0;
  animation: heroSlideInRight 0.5s ease-out 0.4s forwards;
}
.sup-uptime__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.sup-uptime__value {
  display: block;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: #8BC53F;
  line-height: 1.1;
}
.sup-uptime__chart {
  display: flex;
  gap: 2px;
  margin: 8px 0 4px;
}
.sup-uptime__day {
  flex: 1;
  height: 10px;
  background: rgba(139, 197, 63, 0.4);
  border-radius: 2px;
}
.sup-uptime__day--warn {
  background: rgba(245, 158, 11, 0.6);
}
.sup-uptime__sub {
  display: block;
  font-size: 8px;
  color: rgba(255,255,255,0.3);
}

/* -- Activity Log (bottom-left) -- */
.sup-log {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 170px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out 1.0s forwards;
}
.sup-log__head {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sup-log__entry {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  padding: 2px 0;
  line-height: 1.4;
}
.sup-log__time {
  color: #8BC53F;
  font-weight: 600;
  font-family: monospace;
  margin-right: 4px;
  font-size: 8px;
}

/* -- Response Time (bottom-center) -- */
.sup-response {
  position: absolute;
  bottom: 15px;
  left: 210px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 1.4s forwards;
}
.sup-response__value {
  display: block;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
}
.sup-response__label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* -- Security Card (bottom-right) -- */
.sup-security {
  position: absolute;
  bottom: 70px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  opacity: 0;
  animation: heroFadeIn 0.4s ease-out 1.6s forwards;
}
.sup-security__text {
  font-size: 10px;
  font-weight: 700;
  color: #22C55E;
  white-space: nowrap;
}

/* -- Status Pills -- */
.sup-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  opacity: 0;
}
.sup-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22C55E;
}
.sup-pill--1 {
  bottom: 15px;
  right: 15px;
  animation: heroFadeIn 0.4s ease-out 1.8s forwards;
}
.sup-pill--2 {
  top: 220px;
  right: 15px;
  animation: heroFadeIn 0.4s ease-out 2.0s forwards;
}


/* ============================================================
   SERVICE: SEO & MARKETING - "Search + Chart" Scene
   ============================================================ */

.seo-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F5F9F0 0%, #e8f5d8 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* Search bar */
.seo-hero-scene .search-bar {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 48px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 0.2s forwards;
}
.seo-hero-scene .search-bar svg { width: 18px; height: 18px; stroke: var(--color-gray); flex-shrink: 0; }
.seo-hero-scene .search-typing {
  flex: 1;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  width: 0;
  animation: heroTyping 5s ease-in-out 0.8s infinite;
}
.seo-hero-scene .search-cursor {
  width: 2px;
  height: 16px;
  background: var(--color-primary);
  animation: heroBlink 0.8s step-end 0.8s infinite;
}

/* Search results appearing */
.seo-hero-scene .search-bar--wide {
  width: 420px;
}
.seo-hero-scene .search-bar .search-text {
  flex: 1;
  font-size: 14px;
  color: var(--color-dark);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
}

.seo-hero-scene .search-results {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
}
.seo-hero-scene .search-result {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  opacity: 0;
}
.seo-hero-scene .search-result .sr-title {
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  width: 60%;
  margin-bottom: 6px;
}
.seo-hero-scene .search-result .sr-url {
  height: 3px;
  background: #22C55E;
  border-radius: 2px;
  width: 40%;
  margin-bottom: 4px;
}
.seo-hero-scene .search-result .sr-desc {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 3px;
}
.seo-hero-scene .search-result .sr-desc:last-child { width: 70%; margin-bottom: 0; }

.seo-hero-scene .search-result:nth-child(1) { animation: heroFadeSlideIn 0.4s ease-out 1.5s forwards; }
.seo-hero-scene .search-result:nth-child(2) { animation: heroFadeSlideIn 0.4s ease-out 1.8s forwards; }
.seo-hero-scene .search-result:nth-child(3) { animation: heroFadeSlideIn 0.4s ease-out 2.1s forwards; }

/* Rising chart in corner */
.seo-hero-scene .seo-chart {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  animation: heroSlideInRight 0.5s ease-out 2.3s forwards;
}
.seo-hero-scene .seo-chart svg {
  width: 80px;
  height: 50px;
}
.seo-hero-scene .seo-chart-line {
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: heroDrawLine 2s ease-in-out 2.5s forwards;
}
.seo-hero-scene .seo-chart-fill {
  fill: rgba(139, 197, 63, 0.15);
  opacity: 0;
  animation: heroFadeIn 0.5s ease-out 3.5s forwards;
}

/* Search result enhancements */
.seo-hero-scene .search-result--featured {
  border-left: 3px solid var(--color-primary);
  background: rgba(139, 197, 63, 0.04);
}
.seo-hero-scene .search-result--faded {
  opacity: 0.6;
}
.seo-hero-scene .search-result__content {
  flex: 1;
}
.seo-hero-scene .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: var(--font-bold);
  margin-right: 10px;
  flex-shrink: 0;
}
.seo-hero-scene .search-result .sr-title {
  font-size: 13px;
  font-weight: var(--font-semibold);
  color: var(--color-primary-dark);
  height: auto;
  background: none;
  width: auto;
  margin-bottom: 2px;
}
.seo-hero-scene .search-result .sr-url {
  font-size: 10px;
  color: #22C55E;
  height: auto;
  background: none;
  width: auto;
  margin-bottom: 3px;
}
.seo-hero-scene .search-result .sr-desc {
  font-size: 10px;
  color: var(--color-gray);
  height: auto;
  background: none;
  line-height: 1.3;
}

/* SEO Chart Panel */
.seo-hero-scene .seo-chart-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 180px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px;
  opacity: 0;
  animation: heroSlideInRight 0.5s ease-out 2.3s forwards;
}
.seo-hero-scene .seo-chart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--color-dark);
}
.seo-hero-scene .seo-chart-panel__badge {
  font-size: 10px;
  font-weight: var(--font-bold);
  color: var(--color-primary-dark);
  background: rgba(139, 197, 63, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.seo-hero-scene .seo-chart-panel__chart {
  width: 100%;
  height: auto;
}

/* Floating keyword tags */
.seo-hero-scene .keyword-tag {
  position: absolute;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--font-bold);
  opacity: 0;
  box-shadow: var(--shadow-sm);
}
.seo-hero-scene .keyword-tag--green {
  bottom: 30px;
  left: 20px;
  background: rgba(139, 197, 63, 0.15);
  color: var(--color-primary-dark);
  animation: heroScaleIn 0.4s ease-out 2s forwards, heroFloat 4.5s ease-in-out 2.4s infinite;
}
.seo-hero-scene .keyword-tag--star {
  top: 20px;
  right: 20px;
  background: #FEF3C7;
  color: #B45309;
  animation: heroScaleIn 0.4s ease-out 2.5s forwards, heroFloatAlt 5s ease-in-out 3s infinite;
}


/* ============================================================
   SERVICE: HEADLESS COMMERCE - "API Flow" Scene
   ============================================================ */

.headless-hero-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 470px;
  min-height: 450px;
  margin: var(--space-8) auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2C3E50 0%, #1E293B 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* Cloud icon */
.headless-hero-scene .cloud-icon {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: heroScaleIn 0.5s ease-out 0.3s forwards, heroCloudPulse 4s ease-in-out 0.8s infinite;
}
.headless-hero-scene .cloud-icon svg {
  width: 80px;
  height: 50px;
  stroke: var(--color-primary);
  fill: none;
}
.headless-hero-scene .cloud-icon text {
  fill: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--font-bold);
}

/* API boxes */
.headless-hero-scene .api-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 197, 63, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  opacity: 0;
}
.headless-hero-scene .api-box-label {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: block;
}
.headless-hero-scene .api-box-line {
  height: 3px;
  background: rgba(139, 197, 63, 0.3);
  border-radius: 2px;
  margin-bottom: 4px;
}
.headless-hero-scene .api-box-line:last-child { margin-bottom: 0; width: 70%; }

.headless-hero-scene .api-box:nth-child(2) { bottom: 50px; left: 20px; width: 130px; animation: heroSlideInLeft 0.5s ease-out 0.6s forwards, heroFloat 5s ease-in-out 1.1s infinite; }
.headless-hero-scene .api-box:nth-child(3) { bottom: 50px; right: 20px; width: 130px; animation: heroSlideInRight 0.5s ease-out 0.8s forwards, heroFloatAlt 4.5s ease-in-out 1.3s infinite; }
.headless-hero-scene .api-box:nth-child(4) { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 140px; animation: heroFadeSlideIn 0.5s ease-out 1.0s forwards; }

/* Data stream lines from cloud to boxes */
.headless-hero-scene .stream-line {
  position: absolute;
  width: 2px;
  left: 50%;
  top: 75px;
  height: 60px;
  overflow: hidden;
  opacity: 0;
  animation: heroFadeIn 0.3s ease-out 1.2s forwards;
}
.headless-hero-scene .stream-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  left: -1px;
}
.headless-hero-scene .stream-dot:nth-child(1) { animation: heroStreamFlow 2s ease-in-out 1.5s infinite; }
.headless-hero-scene .stream-dot:nth-child(2) { animation: heroStreamFlow 2s ease-in-out 2s infinite; }
.headless-hero-scene .stream-dot:nth-child(3) { animation: heroStreamFlow 2s ease-in-out 2.5s infinite; }

/* Endpoint icons at bottom */
.headless-hero-scene .endpoint {
  position: absolute;
  bottom: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 197, 63, 0.15);
  border: 1px solid rgba(139, 197, 63, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.headless-hero-scene .endpoint svg { width: 16px; height: 16px; stroke: var(--color-primary); }
.headless-hero-scene .endpoint__label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  font-weight: var(--font-medium);
}
.headless-hero-scene .endpoint:nth-child(n+7) { left: 30%; animation: heroScaleIn 0.4s ease-out 1.4s forwards, heroPulse 3s ease-in-out 1.8s infinite; }
.headless-hero-scene .endpoint:nth-child(n+8) { left: 50%; transform: translateX(-50%); animation: heroScaleIn 0.4s ease-out 1.6s forwards, heroPulse 3s ease-in-out 2s infinite; }
.headless-hero-scene .endpoint:nth-child(n+9) { right: 30%; left: auto; animation: heroScaleIn 0.4s ease-out 1.8s forwards, heroPulse 3s ease-in-out 2.2s infinite; }

/* API box metrics */
.headless-hero-scene .api-box__metric {
  display: inline-block;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(139, 197, 63, 0.15);
  color: var(--color-primary);
  margin-top: 4px;
  margin-right: 4px;
  font-family: 'Fira Code', monospace;
}

/* Cloud label */
.headless-hero-scene .cloud-icon__label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: var(--color-dark);
  font-weight: var(--font-bold);
  white-space: nowrap;
}

/* API box text lines (overrides bar style) */
.headless-hero-scene .api-box-line--text {
  height: auto;
  background: none;
  font-size: 5px;
  color: #64748b;
  display: flex;
  align-items: center;
  padding-left: 3px;
  margin-bottom: 2px;
}
.headless-hero-scene .api-box-line--accent {
  height: auto;
  background: none;
  font-size: 5px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  padding-left: 3px;
  font-weight: var(--font-semibold);
}

/* Speed metric floating badge */
.headless-hero-scene .speed-metric {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-white);
  border: 1px solid rgba(139, 197, 63, 0.3);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--color-primary-dark);
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 2s forwards, heroFloat 4s ease-in-out 2.4s infinite;
}
.headless-hero-scene .speed-metric svg {
  width: 14px;
  height: 14px;
  stroke: #22C55E;
}

/* Performance badge */
.headless-hero-scene .perf-badge {
  position: absolute;
  bottom: 15px;
  right: 20px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--font-bold);
  opacity: 0;
  animation: heroScaleIn 0.4s ease-out 2.5s forwards;
}


/* ============================================================
   RESOURCES & FAQ - Simple floating icons treatment
   ============================================================ */

.resources-hero-scene,
.faq-hero-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 200px;
  margin: var(--space-6) auto 0;
  overflow: hidden;
}

.resources-hero-scene .simple-float,
.faq-hero-scene .simple-float {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.resources-hero-scene .simple-float svg,
.faq-hero-scene .simple-float svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.resources-hero-scene .simple-float:nth-child(1) { top: 20px; left: 15%; animation: heroScaleIn 0.4s ease-out 0.2s forwards, heroFloat 4s ease-in-out 0.6s infinite; }
.resources-hero-scene .simple-float:nth-child(2) { top: 60px; left: 45%; animation: heroScaleIn 0.4s ease-out 0.4s forwards, heroFloatAlt 5s ease-in-out 0.8s infinite; }
.resources-hero-scene .simple-float:nth-child(3) { top: 30px; right: 15%; animation: heroScaleIn 0.4s ease-out 0.6s forwards, heroBob 4.5s ease-in-out 1.0s infinite; }
.resources-hero-scene .simple-float:nth-child(4) { bottom: 30px; left: 30%; animation: heroScaleIn 0.4s ease-out 0.8s forwards, heroFloat 5.5s ease-in-out 1.2s infinite; }
.resources-hero-scene .simple-float:nth-child(5) { bottom: 20px; right: 25%; animation: heroScaleIn 0.4s ease-out 1.0s forwards, heroFloatAlt 4s ease-in-out 1.4s infinite; }

.faq-hero-scene .simple-float:nth-child(1) { top: 20px; left: 20%; animation: heroScaleIn 0.4s ease-out 0.2s forwards, heroFloat 4s ease-in-out 0.6s infinite; }
.faq-hero-scene .simple-float:nth-child(2) { top: 50px; left: 50%; animation: heroScaleIn 0.4s ease-out 0.4s forwards, heroFloatAlt 5s ease-in-out 0.8s infinite; }
.faq-hero-scene .simple-float:nth-child(3) { top: 20px; right: 20%; animation: heroScaleIn 0.4s ease-out 0.6s forwards, heroBob 4.5s ease-in-out 1.0s infinite; }
.faq-hero-scene .simple-float:nth-child(4) { bottom: 30px; left: 35%; animation: heroScaleIn 0.4s ease-out 0.8s forwards, heroFloat 5.5s ease-in-out 1.2s infinite; }


/* ============================================================
   RESPONSIVE - Mobile simplification
   ============================================================ */

@media (max-width: 767px) {
  .hero-scene,
  .homepage-hero-scene,
  .about-hero-scene,
  .services-hero-scene,
  .portfolio-hero-scene,
  .contact-hero-scene,
  .blog-hero-scene,
  .faq-hero-scene,
  .resources-hero-scene,
  .store-design-hero-scene,
  .shopify-plus-hero-scene,
  .custom-themes-hero-scene,
  .theme-custom-hero-scene,
  .app-dev-hero-scene,
  .migration-hero-scene,
  .cro-hero-scene,
  .support-hero-scene,
  .seo-hero-scene,
  .headless-hero-scene {
    max-width: 100%;
    margin-top: var(--space-4);
  }

  .hero-scene,
  .homepage-hero-scene,
  .about-hero-scene,
  .portfolio-hero-scene,
  .contact-hero-scene,
  .blog-hero-scene,
  .store-design-hero-scene,
  .shopify-plus-hero-scene,
  .custom-themes-hero-scene,
  .theme-custom-hero-scene,
  .app-dev-hero-scene,
  .migration-hero-scene,
  .cro-hero-scene,
  .support-hero-scene,
  .seo-hero-scene,
  .headless-hero-scene {
    height: 320px;
    min-height: 300px;
  }

  .services-hero-scene {
    height: 340px;
  }

  .resources-hero-scene,
  .faq-hero-scene {
    height: 160px;
  }

  /* About Hero - mobile responsive */
  .about-hero-scene {
    height: 380px;
    min-height: 350px;
  }

  .ab-emblem {
    width: 90px;
    height: 90px;
  }

  .ab-emblem__shopify {
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .ab-emblem__champs {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .ab-emblem__glow {
    inset: -10px;
  }

  .ab-emblem__ring {
    inset: -4px;
  }

  .ab-node__icon {
    width: 40px;
    height: 40px;
  }

  .ab-node__icon svg {
    width: 16px;
    height: 16px;
  }

  .ab-node__label {
    font-size: 7px;
  }

  /* Tighter hexagonal positions on mobile */
  .ab-node--1 { top: 30px; left: 12%; }
  .ab-node--2 { top: 30px; right: 12%; }
  .ab-node--3 { left: 2%; }
  .ab-node--4 { right: 2%; }
  .ab-node--5 { bottom: 30px; left: 12%; }
  .ab-node--6 { bottom: 30px; right: 12%; }

  .ab-badge {
    padding: 5px 10px;
    gap: 6px;
    border-radius: 8px;
  }

  .ab-badge__icon {
    width: 16px;
    height: 16px;
  }

  .ab-badge__num {
    font-size: 11px;
  }

  .ab-badge__txt {
    font-size: 6px;
  }

  .ab-badge--1 { top: 8px; }
  .ab-badge--2 { bottom: 8px; }

  /* Services orbit smaller */
  .services-hero-scene .orbit-ring {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
  }
  .services-hero-scene .center-icon {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }
  .services-hero-scene .center-icon svg {
    width: 28px;
    height: 28px;
  }
  .services-hero-scene .orbit-icon {
    width: 44px;
    height: 44px;
  }
  .services-hero-scene .orbit-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .services-hero-scene .orbit-icon span {
    font-size: 7px !important;
  }
  .services-hero-scene .pulse-line {
    width: 90px;
  }

  /* Portfolio - fewer windows */
  .portfolio-hero-scene .browser-window {
    width: 220px;
  }
  .portfolio-hero-scene .browser-window:nth-child(3) {
    display: none;
  }

  /* Contact - scale down on mobile */
  .contact-hero-scene {
    min-height: 240px;
  }
  .contact-hero-scene .cafe-bubble {
    font-size: 12px;
    padding: 10px 16px;
    top: 5%;
  }
  .contact-hero-scene .cafe-bubble__icon {
    font-size: 14px;
  }

  /* Blog - fewer cards */
  .blog-hero-scene .article-card:nth-child(3) {
    display: none;
  }
  .blog-hero-scene .article-card {
    width: 180px;
  }

  /* Store design - laptop uses shared ct- mobile styles above */

  /* Migration - smaller platforms */
  .migration-hero-scene {
    min-height: 550px;
    padding: 20px 10px;
    flex-direction: column;
    gap: 1rem;
  }

  .migration-hero-scene .migration-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Make data items more visible on mobile */
  .migration-hero-scene .data-item {
    padding: 8px !important;
    margin-bottom: 8px !important;
  }

  .migration-hero-scene .data-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  .migration-hero-scene .data-item > div > div:first-child {
    font-size: 9px !important;
  }

  .migration-hero-scene .data-item > div > div:last-child {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  /* Checkmark icons on mobile */
  .migration-hero-scene .new-platform .data-item > svg:last-child {
    width: 14px !important;
    height: 14px !important;
  }

  /* Platform labels */
  .migration-hero-scene .migration-card > div:nth-child(2) > div {
    font-size: 10px !important;
    padding: 8px !important;
  }

  /* Browser address bar */
  .migration-hero-scene .migration-card > div:first-child > div:last-child {
    font-size: 8px !important;
  }

  /* Transfer arrow */
  .migration-hero-scene .transfer-arrow svg {
    width: 40px;
    height: 30px;
    transform: rotate(90deg);
  }

  .migration-hero-scene .transfer-arrow > div:last-child {
    font-size: 9px !important;
    padding: 5px 10px !important;
  }

  .migration-hero-scene .data-packets {
    flex-direction: column;
    gap: 3px;
  }

  .migration-hero-scene .data-packet {
    width: 5px !important;
    height: 5px !important;
  }

  /* Migration Flow Diagram - Mobile Responsive */
  .migration-flow-diagram {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 1rem !important;
  }

  .migration-flow-diagram .platform-source,
  .migration-flow-diagram .platform-target {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .migration-flow-diagram .migration-flow-arrow {
    min-width: 100% !important;
  }

  .migration-flow-diagram .migration-flow-arrow svg {
    width: 120px !important;
    height: 80px !important;
    transform: rotate(90deg) !important;
  }

  /* Conversion Funnel Diagram - Mobile Responsive */
  .conversion-funnel-diagram {
    padding: 0.5rem !important;
  }

  /* Hide optimize label on mobile */
  .conversion-funnel-diagram > div:first-child {
    display: none !important;
  }

  .conversion-funnel-diagram .funnel-stage {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding-left: 0 !important;
    align-items: stretch !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .conversion-funnel-diagram .funnel-stage > div:first-child {
    padding: 1.25rem !important;
  }

  .conversion-funnel-diagram .funnel-stage > div:last-child {
    text-align: center !important;
    min-width: 100% !important;
  }

  .conversion-funnel-diagram .funnel-stage > div:last-child > div:first-child {
    font-size: 1.25rem !important;
  }

  /* CRO Dashboard - tablet */
  .cro-funnel { left: 12px; top: 16px; width: 155px; }
  .cro-funnel__stage { height: 42px; padding: 0 8px; }
  .cro-funnel__label { font-size: 7px; }
  .cro-funnel__value { font-size: 10px; }
  .cro-ab { right: 12px; top: 16px; width: 140px; }
  .cro-ab__card { padding: 9px; }
  .cro-ab__rate { font-size: 20px; }
  .cro-ab__label { font-size: 8px; }
  .cro-ab__winner { font-size: 7px; padding: 2px 7px; }
  .cro-heatmap { left: 15px; bottom: 14px; width: 90px; height: 145px; }
  .cro-heatmap__hero { height: 28px; }
  .cro-heat--1 { width: 38px; height: 38px; top: 42px; left: 20px; }
  .cro-heat--2 { width: 28px; height: 28px; top: 62px; left: 22px; }
  .cro-heat--3 { width: 22px; height: 22px; top: 86px; left: 12px; }
  .cro-heatmap__tag { font-size: 7px; }
  .cro-revenue { left: 125px; bottom: 80px; width: 120px; padding: 10px; }
  .cro-revenue__value { font-size: 22px; }
  .cro-metric { padding: 4px 9px; }
  .cro-metric--1 { top: 195px; left: 12px; }
  .cro-metric--2 { bottom: 22px; left: 130px; }
  .cro-metric--3 { top: 165px; right: 12px; }
  .cro-metric__text { font-size: 8px; }
  .cro-chart { right: 12px; bottom: 14px; width: 160px; height: 110px; padding: 8px 10px; }
  .cro-chart__bars { height: 55px; }
  .cro-chart__trend { width: 145px; height: 45px; }
  .cro-chart__bar--7 { height: 45px; }
  .cro-chart__bar--8 { height: 55px; }

  /* Support Dashboard - tablet: 3-row grid layout */
  /* Header */
  .sup-header { height: 28px; padding: 0 10px; }
  .sup-header__title { font-size: 8px; }
  .sup-badge { font-size: 8px; padding: 3px 9px; }
  /* Heartbeat */
  .sup-heartbeat { top: 30px; height: 35px; }
  /* Row 1: Monitor (left) + Uptime (right) */
  .sup-monitor {
    top: 70px; left: 8px; width: calc(50% - 12px); padding: 10px;
  }
  .sup-monitor__title { font-size: 8px; }
  .sup-monitor__row { font-size: 8px; }
  .sup-monitor__label { min-width: 38px; }
  .sup-uptime {
    top: 70px; right: 8px; width: calc(50% - 12px); padding: 10px;
  }
  .sup-uptime__value { font-size: 20px; }
  .sup-uptime__day { height: 6px; }
  /* Hide security + last backup pill on mobile */
  .sup-security { display: none; }
  .sup-pill--2 { display: none; }
  .sup-pill { font-size: 8px; padding: 4px 10px; }
  /* Row 3: Log (left) + Response + Pill (right) */
  .sup-log {
    bottom: 8px; left: 8px; width: calc(50% - 12px); padding: 8px;
  }
  .sup-log__head { font-size: 8px; }
  .sup-log__entry { font-size: 8px; }
  .sup-log__time { font-size: 7px; }
  .sup-response {
    bottom: 55px; left: auto; right: 8px;
    padding: 10px 14px;
    width: calc(50% - 12px);
  }
  .sup-response__value { font-size: 18px; }
  .sup-pill--1 { bottom: 8px; right: 8px; }

  /* SEO - smaller search bar + new elements */
  .seo-hero-scene .search-bar,
  .seo-hero-scene .search-bar--wide {
    width: 280px !important;
  }
  .seo-hero-scene .search-results {
    width: 260px;
  }
  .seo-hero-scene .rank-badge {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .seo-hero-scene .search-result .sr-title { font-size: 11px; }
  .seo-hero-scene .search-result .sr-url { font-size: 9px; }
  .seo-hero-scene .search-result .sr-desc { font-size: 9px; }
  .seo-hero-scene .seo-chart-panel {
    width: 140px;
    padding: 8px;
    bottom: 10px;
    right: 10px;
  }
  .seo-hero-scene .seo-chart-panel__header { font-size: 9px; }
  .seo-hero-scene .seo-chart-panel__badge { font-size: 8px; }
  .seo-hero-scene .keyword-tag { font-size: 9px; padding: 4px 10px; }

  /* Headless - scale new elements */
  .headless-hero-scene .speed-metric { font-size: 9px; padding: 4px 8px; top: 10px; right: 10px; }
  .headless-hero-scene .perf-badge { font-size: 8px; padding: 4px 10px; }
  .headless-hero-scene .api-box__metric { font-size: 8px; }
  .headless-hero-scene .endpoint__label { font-size: 7px; }
  .headless-hero-scene .cloud-icon__label { font-size: 5px; }
  .headless-hero-scene .api-box-line--text { font-size: 4px; }
  .headless-hero-scene .api-box-line--accent { font-size: 4px; }
  .headless-hero-scene .cloud-icon svg { width: 60px; height: 38px; }

  /* Settings panel */
  .theme-custom-hero-scene .settings-panel {
    width: 260px;
    padding: 18px;
  }
  .theme-custom-hero-scene .slider-label,
  .theme-custom-hero-scene .toggle-label {
    font-size: 12px;
  }

  /* App dev phone */
  .app-dev-hero-scene .phone-frame {
    width: 130px;
    height: 230px;
  }
  .app-dev-hero-scene .code-float:nth-child(4) {
    display: none;
  }
  .app-dev-hero-scene .app-icon {
    width: 28px;
    height: 28px;
  }

  /* Shopify Plus - smaller elements */
  .shopify-plus-hero-scene .diamond svg {
    width: 80px !important;
    height: 80px !important;
  }
  .shopify-plus-hero-scene .sparkle {
    width: 8px;
    height: 8px;
  }
  .shopify-plus-hero-scene .mini-screen {
    width: 90px !important;
    height: 60px !important;
    padding: 6px;
  }
  .shopify-plus-hero-scene .mini-screen:nth-child(10) {
    width: 100px !important;
    margin-left: -50px;
  }
  .shopify-plus-hero-scene .screen-bar {
    height: 4px;
  }

  /* Custom Themes - Laptop + Phone mobile responsive */
  .custom-themes-hero-scene {
    min-height: 300px;
    padding: 20px 10px;
  }

  .ctd-devices {
    max-width: 100%;
  }

  .ctd-laptop {
    max-width: 260px;
  }

  .ctd-laptop__screen {
    padding: 12px 6px 6px;
    border-radius: 8px 8px 0 0;
  }

  .ctd-laptop__chrome {
    padding: 4px 6px;
    gap: 3px;
  }

  .ctd-dots span {
    width: 5px;
    height: 5px;
  }

  .ctd-url {
    font-size: 6px;
    padding: 2px 4px;
  }

  .ctd-laptop__content {
    padding: 6px;
    gap: 4px;
    min-height: 120px;
  }

  .ctd-desk-nav {
    padding: 3px 5px;
  }

  .ctd-desk-nav__logo {
    font-size: 7px;
  }

  .ctd-desk-nav__links {
    font-size: 5px;
    gap: 5px;
  }

  .ctd-desk-nav__cart svg {
    width: 8px;
    height: 8px;
  }

  .ctd-desk-hero {
    padding: 8px 4px;
    font-size: 8px;
  }

  .ctd-desk-products {
    gap: 3px;
  }

  .ctd-desk-product__img {
    height: 26px;
  }

  .ctd-desk-product__name {
    font-size: 5px;
    padding: 2px 3px 0;
  }

  .ctd-desk-product__price {
    font-size: 5px;
    padding: 0 3px 2px;
  }

  .ctd-laptop__base {
    height: 8px;
  }

  .ctd-laptop__hinge {
    width: 35px;
    height: 2px;
  }

  /* Phone - smaller on mobile */
  .ctd-phone {
    width: 90px;
    margin-left: -15px;
    margin-bottom: 10px;
  }

  .ctd-phone__frame {
    border-radius: 14px;
    padding: 18px 5px 10px;
  }

  .ctd-phone__notch {
    width: 24px;
    height: 3px;
    top: 8px;
  }

  .ctd-phone__content {
    padding: 4px;
    gap: 3px;
    min-height: 130px;
  }

  .ctd-mob-nav {
    padding: 3px 4px;
  }

  .ctd-mob-nav svg {
    width: 7px;
    height: 7px;
  }

  .ctd-mob-nav__logo {
    font-size: 6px;
  }

  .ctd-mob-hero {
    padding: 6px 3px;
    font-size: 6px;
  }

  .ctd-mob-products {
    gap: 3px;
  }

  .ctd-mob-product__img {
    height: 20px;
  }

  .ctd-mob-product__name,
  .ctd-mob-product__price {
    font-size: 4px;
  }

  /* Floating elements - repositioned for laptop+phone layout */
  .custom-themes-hero-scene .ct-float--code {
    top: 3%;
    right: 2%;
    bottom: auto;
    font-size: 6px;
    padding: 4px 7px;
  }

  .custom-themes-hero-scene .ct-float--palette {
    bottom: 2%;
    left: auto;
    right: 2%;
    padding: 5px;
    gap: 3px;
  }

  .custom-themes-hero-scene .ct-swatch {
    width: 12px;
    height: 12px;
  }

  .custom-themes-hero-scene .ct-float--typo {
    bottom: 2%;
    left: 2%;
    padding: 5px 8px;
  }

  .ctd-typo-aa {
    font-size: 10px;
  }

  .ctd-typo-font {
    font-size: 5px;
  }

  /* Store Design - shared ct- laptop mobile styles */
  .store-design-hero-scene .ct-laptop {
    max-width: 340px;
  }

  .store-design-hero-scene .ct-screen {
    padding: 14px 7px 7px;
    border-radius: 10px 10px 0 0;
  }

  .store-design-hero-scene .ct-chrome {
    padding: 5px 8px;
    gap: 4px;
  }

  .store-design-hero-scene .ct-dots span {
    width: 6px;
    height: 6px;
  }

  .store-design-hero-scene .ct-url {
    font-size: 7px;
  }

  .store-design-hero-scene .ct-store {
    padding: 8px;
    gap: 6px;
    min-height: 160px;
  }

  .store-design-hero-scene .ct-nav {
    padding: 5px 8px;
  }

  .store-design-hero-scene .ct-nav__logo {
    font-size: 8px;
  }

  .store-design-hero-scene .ct-nav__links span,
  .store-design-hero-scene .ct-nav__cart {
    font-size: 6px;
  }

  .store-design-hero-scene .ct-banner {
    padding: 10px 8px;
    font-size: 9px;
  }

  .store-design-hero-scene .ct-product-card__img {
    height: 36px;
  }

  .store-design-hero-scene .ct-badge {
    font-size: 5px;
    padding: 1px 3px;
  }

  .store-design-hero-scene .ct-product-card__name,
  .store-design-hero-scene .ct-product-card__price {
    font-size: 6px;
  }

  .store-design-hero-scene .ct-base {
    height: 10px;
  }

  .store-design-hero-scene .ct-float--filters {
    top: 2%;
    right: -1%;
    padding: 7px 10px;
    min-width: 60px;
  }

  .store-design-hero-scene .ct-float__title {
    font-size: 7px;
  }

  .store-design-hero-scene .ct-float__item {
    font-size: 6px;
  }

  .store-design-hero-scene .ct-float--palette {
    bottom: 14%;
    left: -1%;
    padding: 5px;
    gap: 3px;
  }

  .store-design-hero-scene .ct-swatch {
    width: 14px;
    height: 14px;
  }

  .store-design-hero-scene .ct-float--code {
    bottom: 4%;
    right: 1%;
    font-size: 6px;
    padding: 4px 7px;
  }

  /* Headless */
  .headless-hero-scene .api-box {
    width: 100px !important;
    padding: 8px 10px;
  }
}

/* ============================================================
   ULTRA-SMALL MOBILE - 320px to 374px
   ============================================================ */

@media (max-width: 374px) {

  /* Portfolio - Browser Windows */
  .portfolio-hero-scene .browser-window {
    width: 170px;
  }

  /* Blog - Article Cards */
  .blog-hero-scene .article-card {
    width: 145px;
  }

  /* Store Design - uses shared ct- laptop styles */

  /* Services Orbit - Further tighten for 320px screens */
  .services-hero-scene .orbit-ring {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
  }

  .services-hero-scene .orbit-icon {
    width: 36px;
    height: 36px;
  }

  .services-hero-scene .center-icon {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }

  /* Headless Commerce - Tighter spacing */
  .headless-hero-scene .cloud-icon svg {
    width: 55px;
    height: 35px;
  }

  .headless-hero-scene .api-box {
    width: 90px !important;
    padding: 6px 8px;
  }

  .headless-hero-scene .api-box-label {
    font-size: 11px;
  }

  /* Contact - Coffee table scene reduction */
  .contact-hero-scene {
    min-height: 220px;
  }

  /* Migration - Tighter platforms */
  .migration-hero-scene .old-platform,
  .migration-hero-scene .new-platform {
    width: 120px;
  }

  /* CRO Dashboard - small mobile */
  .cro-funnel { left: 8px; top: 12px; width: 130px; }
  .cro-funnel__stage { height: 36px; padding: 0 6px; }
  .cro-funnel__label { font-size: 6px; }
  .cro-funnel__value { font-size: 9px; }
  .cro-ab { right: 8px; top: 12px; width: 120px; }
  .cro-ab__card { padding: 7px; margin-bottom: 5px; }
  .cro-ab__rate { font-size: 17px; }
  .cro-heatmap { left: 10px; bottom: 10px; width: 76px; height: 125px; border-radius: 10px; }
  .cro-heatmap__notch { width: 24px; height: 3px; }
  .cro-heatmap__nav { height: 12px; }
  .cro-heatmap__hero { height: 22px; margin: 3px 4px; }
  .cro-heatmap__btn { width: 30px; height: 7px; }
  .cro-heatmap__row { height: 4px; margin-bottom: 3px; }
  .cro-heatmap__rows { padding: 0 4px; }
  .cro-heat--1 { width: 30px; height: 30px; top: 35px; left: 15px; }
  .cro-heat--2 { width: 22px; height: 22px; top: 52px; left: 18px; }
  .cro-heat--3 { width: 18px; height: 18px; top: 72px; left: 10px; }
  .cro-revenue { left: 100px; bottom: 65px; width: 105px; padding: 8px; }
  .cro-revenue__value { font-size: 18px; }
  .cro-revenue__icon { width: 14px; height: 14px; }
  .cro-metric--1 { top: 168px; left: 8px; }
  .cro-metric--2 { bottom: 16px; left: 105px; }
  .cro-metric--3 { top: 148px; right: 8px; }
  .cro-metric { padding: 3px 7px; gap: 3px; }
  .cro-metric__text { font-size: 7px; }
  .cro-metric__arrow { font-size: 6px; }
  .cro-chart { right: 8px; bottom: 10px; width: 135px; height: 95px; padding: 6px 8px; }
  .cro-chart__bars { height: 45px; gap: 3px; }
  .cro-chart__trend { width: 120px; height: 38px; }
  .cro-chart__bar--7 { height: 38px; }
  .cro-chart__bar--8 { height: 45px; }

  /* Support Dashboard - small mobile: same 3-row approach */
  /* Header */
  .sup-header { height: 24px; padding: 0 6px; }
  .sup-header__title { font-size: 7px; }
  .sup-badge { font-size: 7px; padding: 2px 7px; }
  /* Heartbeat */
  .sup-heartbeat { top: 26px; height: 28px; }
  /* Row 1 */
  .sup-monitor {
    top: 58px; left: 6px; width: calc(50% - 10px); padding: 7px;
  }
  .sup-monitor__title { font-size: 7px; }
  .sup-monitor__row { font-size: 7px; margin-bottom: 4px; }
  .sup-monitor__val { font-size: 7px; }
  .sup-monitor__label { min-width: 30px; font-size: 7px; }
  .sup-monitor__bar { height: 3px; }
  .sup-uptime {
    top: 58px; right: 6px; width: calc(50% - 10px); padding: 7px;
  }
  .sup-uptime__value { font-size: 16px; }
  .sup-uptime__day { height: 4px; }
  .sup-uptime__sub { font-size: 6px; }
  .sup-uptime__label { font-size: 7px; }
  /* security + pill--2 already hidden from tablet breakpoint */
  .sup-pill { font-size: 7px; padding: 3px 7px; }
  /* Row 3 */
  .sup-log {
    bottom: 6px; left: 6px; width: calc(50% - 10px); padding: 6px;
  }
  .sup-log__head { font-size: 7px; margin-bottom: 3px; }
  .sup-log__entry { font-size: 7px; padding: 1px 0; }
  .sup-log__time { font-size: 6px; }
  .sup-response {
    bottom: 48px; left: auto; right: 6px;
    padding: 7px 10px; width: calc(50% - 10px);
  }
  .sup-response__value { font-size: 14px; }
  .sup-response__label { font-size: 6px; }
  .sup-pill--1 { bottom: 6px; right: 6px; }

  /* SEO - Reduce search bar */
  .seo-hero-scene .search-bar,
  .seo-hero-scene .search-bar--wide {
    width: 260px !important;
  }

  .seo-hero-scene .search-results {
    width: 240px;
  }

  .seo-hero-scene .seo-chart-panel {
    width: 120px;
  }

}

/* ============================================================
   TABLET - Larger scenes for better visual impact
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-scene,
  .about-hero-scene,
  .services-hero-scene,
  .portfolio-hero-scene,
  .contact-hero-scene,
  .blog-hero-scene,
  .store-design-hero-scene,
  .shopify-plus-hero-scene,
  .custom-themes-hero-scene,
  .theme-custom-hero-scene,
  .app-dev-hero-scene,
  .migration-hero-scene,
  .cro-hero-scene,
  .support-hero-scene,
  .seo-hero-scene,
  .headless-hero-scene {
    max-width: 520px;
    height: 420px;
    min-height: 350px;
    margin-top: var(--space-8);
  }

  .resources-hero-scene,
  .faq-hero-scene {
    max-width: 420px;
    height: 180px;
  }
}

/* ============================================================
   LARGE DESKTOP - Even larger hero scenes
   ============================================================ */
@media (min-width: 1200px) {
  .hero-scene,
  .about-hero-scene,
  .services-hero-scene,
  .portfolio-hero-scene,
  .contact-hero-scene,
  .blog-hero-scene,
  .store-design-hero-scene,
  .shopify-plus-hero-scene,
  .custom-themes-hero-scene,
  .theme-custom-hero-scene,
  .app-dev-hero-scene,
  .migration-hero-scene,
  .cro-hero-scene,
  .support-hero-scene,
  .seo-hero-scene,
  .headless-hero-scene {
    max-width: 600px;
    height: 500px;
    min-height: 450px;
  }
}

@media (min-width: 1440px) {
  .hero-scene,
  .about-hero-scene,
  .services-hero-scene,
  .portfolio-hero-scene,
  .contact-hero-scene,
  .blog-hero-scene,
  .store-design-hero-scene,
  .shopify-plus-hero-scene,
  .custom-themes-hero-scene,
  .theme-custom-hero-scene,
  .app-dev-hero-scene,
  .migration-hero-scene,
  .cro-hero-scene,
  .support-hero-scene,
  .seo-hero-scene,
  .headless-hero-scene {
    max-width: 640px;
    height: 520px;
    min-height: 450px;
  }
}

/* ============================================================
   REDUCED MOTION - Static arrangement, no animation
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .about-hero-scene *,
  .services-hero-scene *,
  .portfolio-hero-scene *,
  .contact-hero-scene *,
  .blog-hero-scene *,
  .store-design-hero-scene *,
  .shopify-plus-hero-scene *,
  .custom-themes-hero-scene *,
  .theme-custom-hero-scene *,
  .app-dev-hero-scene *,
  .migration-hero-scene *,
  .cro-hero-scene *,
  .support-hero-scene *,
  .seo-hero-scene *,
  .headless-hero-scene *,
  .resources-hero-scene *,
  .faq-hero-scene * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Reset specific transform-dependent positioning */
  .services-hero-scene .center-icon,
  .shopify-plus-hero-scene .diamond {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  .services-hero-scene .orbit-ring {
    animation: none;
  }

  .seo-hero-scene .search-bar,
  .headless-hero-scene .cloud-icon {
    transform: translateX(-50%);
    opacity: 1;
  }

  .seo-hero-scene .search-typing {
    width: 50%;
  }

  .theme-custom-hero-scene .slider-row:nth-child(2) .slider-fill { width: 65%; }
  .theme-custom-hero-scene .slider-row:nth-child(3) .slider-fill { width: 40%; }
  .theme-custom-hero-scene .toggle-knob { left: 22px; }
}
