/* ═══════════════════════════════════════════════════════════
   Blox Labs — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Fredoka:wght@400;500;600;700&display=swap');

/* ═══════════════════ RESET & VARIABLES ═══════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow: #F5C518;
  --yellow-light: #FFE066;
  --yellow-dark: #C99E00;
  --purple: #7B2FBE;
  --purple-light: #A855F7;
  --purple-dark: #5B1D94;
  --red: #E63946;
  --red-light: #FF6B6B;
  --red-dark: #B82A36;
  --pink: #FF6B9D;
  --pink-light: #FF8FB8;
  --pink-dark: #D05079;
  --teal: #4ECDC4;
  --teal-light: #7EDDD6;
  --teal-dark: #38A89D;
  --orange: #FF8C42;
  --orange-light: #FFB07A;
  --orange-dark: #D06F32;
  --blue: #4A90D9;
  --blue-light: #74B3F0;
  --blue-dark: #3570B0;
  --dark: #0A0A0F;
  --dark2: #12121A;
  --dark3: #1A1A25;
  --light: #F0F0F5;
  --gray: #8888AA;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* ═══════════════ CONTENT CONTAINER ═══════════════ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══════════════════ NAVBAR ═══════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 60px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}
nav.scrolled { padding: 12px 60px; background: rgba(10,10,15,0.95); }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.logo span:nth-child(1) { color: var(--yellow); }
.logo span:nth-child(2) { color: var(--purple); }
.logo span:nth-child(3) { color: var(--red); }
.logo span:nth-child(4) { color: var(--pink); }
.logo span:nth-child(5) { color: var(--light); }
.logo-img { height: 44px; width: auto; transition: all 0.3s; }
nav .logo-img { height: 38px; }
footer .logo-img { height: 30px; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--light); }
.nav-cta { background: linear-gradient(135deg, var(--purple), var(--pink)); color: white !important; padding: 10px 24px; border-radius: 8px; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 100vh;
  padding: 120px 60px 80px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-inner {
  display: flex; align-items: center; gap: 40px;
}
.hero-bg-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(150px); opacity: 0.15; pointer-events: none; }
.glow1 { top: -100px; right: -100px; background: var(--purple); }
.glow2 { bottom: -200px; left: -100px; background: var(--pink); }
.glow3 { top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--yellow); opacity: 0.05; }

.hero-content { flex: 1; max-width: 600px; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(123,47,190,0.15); border: 1px solid rgba(123,47,190,0.3);
  padding: 6px 16px; border-radius: 50px; font-size: 13px;
  color: var(--purple); font-weight: 500; margin-bottom: 24px;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s 0.3s forwards;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); animation: pulse 2s infinite; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px; font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
  opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.5s forwards;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--yellow), var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; line-height: 1.7; color: var(--gray); margin-bottom: 40px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.7s forwards; }
.hero-buttons { display: flex; gap: 16px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.9s forwards; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; padding: 16px 32px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: all 0.3s; border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--pink), var(--purple)); opacity: 0; transition: opacity 0.3s; }
.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
  background: rgba(255,255,255,0.05); color: var(--light);
  padding: 16px 32px; border-radius: 12px; font-weight: 600;
  font-size: 16px; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ═══════════════════ HERO ENGINE — CANVAS ORBIT ═══════════════════ */
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
  z-index: 2; min-height: 650px;
  position: relative;
}
#heroEngine {
  width: 100%; height: 100%;
  min-height: 650px;
  cursor: grab;
}

/* ═══════════════ PARTICLES ═══════════════ */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particle {
  position: absolute; width: 4px; height: 4px;
  border-radius: 50%; opacity: 0;
  animation: particleFloat 8s infinite;
}

/* ═══════════════════ SECTIONS ═══════════════════ */
section { padding: 120px 60px; position: relative; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.1; }
.section-sub { font-size: 18px; color: var(--gray); max-width: 600px; line-height: 1.6; margin-bottom: 60px; }

/* ═══════════════ SOLUTIONS GRID ═══════════════ */
.solutions { background: var(--dark2); }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 36px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0; transform: translateY(40px);
  position: relative; overflow: visible; cursor: default;
}
.solution-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0; transition: opacity 0.5s; border-radius: 16px 16px 0 0;
}
.solution-card:hover { transform: translateY(-4px) !important; border-color: rgba(123,47,190,0.3); }
.solution-card:hover::before { opacity: 1; }

/* Mini 3D block icon — isometric style matching hero canvas blocks */
.card-block-icon {
  width: 62px; height: 62px; margin-bottom: 20px;
  position: relative;
  transition: transform 0.4s;
}
.solution-card:hover .card-block-icon { transform: scale(1.1); }
.cbi-face {
  position: absolute;
  border: none;
}
/* Right face — parallelogram, drawn first (behind front) */
.cbi-right {
  width: 10px; height: 50px;
  left: 50px; top: 10px;
  transform: skewY(-45deg);
  transform-origin: top left;
  opacity: 0.85;
  z-index: 1;
}
/* Top face — parallelogram, drawn second */
.cbi-top {
  width: 50px; height: 10px;
  left: 0; top: 0;
  transform: skewX(-45deg);
  transform-origin: bottom left;
  opacity: 0.45;
  z-index: 1;
}
/* Front face — square, drawn last (on top, covers all seams) */
.cbi-front {
  width: 50px; height: 50px;
  left: 0; top: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12), inset 4px 4px 0 rgba(255,255,255,0.05);
}

.solution-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.solution-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.card-tag {
  display: inline-block; margin-top: 16px; font-size: 11px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(123,47,190,0.1); color: var(--purple);
}

/* ═══════════════ BLOCK PHILOSOPHY ═══════════════ */
.philosophy { background: var(--dark); overflow: hidden; position: relative; }
.philosophy-content { display: flex; align-items: center; gap: 80px; position: relative; transition: opacity 0.5s, filter 0.5s; }
.philosophy-content.dimmed { opacity: 0.15; filter: blur(4px); pointer-events: none; }
.philosophy-text { flex: 1; }
.philosophy-visual { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 550px; perspective: 800px; }

/* ═══ BLOCK HINT ═══ */
.block-hint {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 20px; padding: 10px 20px;
  font-size: 13px; color: var(--gray); font-weight: 500;
  background: rgba(123,47,190,0.08); border: 1px solid rgba(123,47,190,0.15);
  border-radius: 50px; animation: hintPulse 3s ease-in-out infinite;
}
.block-hint-icon { font-size: 16px; animation: hintBounce 2s ease-in-out infinite; }
@keyframes hintPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ═══ BLOCK DETAIL OVERLAY ═══ */
.block-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.block-overlay.active { opacity: 1; pointer-events: auto; }

/* Flying block — always 160x160, uses transform for position & scale */
.flying-block {
  position: fixed;
  width: 160px; height: 160px;
  z-index: 101;
  pointer-events: none;
  perspective: 600px;
  display: none;
  will-change: transform;
}
.flying-block .fb-scene {
  width: 160px; height: 160px;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(-15deg);
}
.flying-block.landed .fb-scene {
  animation: overlayBlockSpin 4s ease-in-out infinite;
}
@keyframes overlayBlockSpin {
  0%, 100% { transform: rotateX(-10deg) rotateY(-15deg); }
  50% { transform: rotateX(-10deg) rotateY(-25deg) translateY(-6px); }
}

/* Text panel — slides in after block arrives */
.overlay-text-panel {
  position: fixed;
  z-index: 101;
  top: 50%; left: 42%;
  max-width: 420px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(30px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.overlay-text-panel.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.overlay-text-panel h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; margin-bottom: 14px; color: var(--light);
}
.overlay-text-panel p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }
.overlay-close {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--purple); cursor: pointer; transition: color 0.3s;
  background: none; border: 1px solid rgba(123,47,190,0.3);
  padding: 8px 20px; border-radius: 8px;
}
.overlay-close:hover { color: var(--pink); border-color: rgba(255,107,157,0.3); }

/* ═══════════════ TOY BLOCK GRID ═══════════════ */
.toy-block-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  transform-style: preserve-3d;
  transform: translateX(20px) rotateX(-8deg) rotateY(-12deg);
  animation: gridFloat 5s ease-in-out infinite;
}

.toy-block {
  width: 140px; height: 140px;
  transform-style: preserve-3d;
  opacity: 0; transform: scale(0.3) rotateY(90deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, filter 0.3s ease;
  cursor: pointer;
  will-change: transform, opacity;
}
.toy-block.visible { opacity: 1; transform: scale(1) rotateY(0); }
.toy-block:hover { transform: translateZ(20px) scale(1) !important; filter: brightness(1.15); transition-duration: 0.3s !important; }

.tb-face {
  position: absolute;
  width: 140px; height: 140px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  border: none;
  backface-visibility: hidden;
}
.tb-face .tb-icon { font-size: 34px; margin-bottom: 6px; }
.tb-face .tb-letter { font-size: 24px; }
.tb-face .tb-label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.tb-face .tb-letter { font-size: 42px; font-weight: 700; text-shadow: 1px 2px 0 rgba(0,0,0,0.12); }

.tb-front {
  transform: translateZ(70px);
  border-radius: 0;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.1), inset 0 -5px 12px rgba(0,0,0,0.1), 0 0 6px 2px rgba(0,0,0,0.25);
}
.tb-right {
  transform: rotateY(90deg) translateZ(70px);
  border-radius: 0;
  box-shadow: inset 0 0 0 7px rgba(0,0,0,0.06), inset 5px 0 10px rgba(0,0,0,0.1), 0 0 6px 2px rgba(0,0,0,0.25);
}
.tb-top {
  transform: rotateX(90deg) translateZ(70px);
  border-radius: 0;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.15), 0 0 6px 2px rgba(0,0,0,0.25);
}

/* Toy block colors */
.tb-yellow .tb-front { background: linear-gradient(145deg, var(--yellow-light), var(--yellow)); color: #3a2e00; }
.tb-yellow .tb-right { background: linear-gradient(180deg, var(--yellow), var(--yellow-dark)); color: #3a2e00; }
.tb-yellow .tb-top { background: linear-gradient(145deg, #fff3b0, var(--yellow-light)); color: #3a2e00; }

.tb-purple .tb-front { background: linear-gradient(145deg, var(--purple-light), var(--purple)); color: #fff; }
.tb-purple .tb-right { background: linear-gradient(180deg, var(--purple), var(--purple-dark)); color: #fff; }
.tb-purple .tb-top { background: linear-gradient(145deg, #c084fc, var(--purple-light)); color: #fff; }

.tb-red .tb-front { background: linear-gradient(145deg, var(--red-light), var(--red)); color: #fff; }
.tb-red .tb-right { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; }
.tb-red .tb-top { background: linear-gradient(145deg, #ff9999, var(--red-light)); color: #fff; }

.tb-pink .tb-front { background: linear-gradient(145deg, var(--pink-light), var(--pink)); color: #fff; }
.tb-pink .tb-right { background: linear-gradient(180deg, var(--pink), var(--pink-dark)); color: #fff; }
.tb-pink .tb-top { background: linear-gradient(145deg, #ffc0d8, var(--pink-light)); color: #fff; }

.tb-teal .tb-front { background: linear-gradient(145deg, var(--teal-light), var(--teal)); color: #003; }
.tb-teal .tb-right { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); color: #003; }
.tb-teal .tb-top { background: linear-gradient(145deg, #b0f0ea, var(--teal-light)); color: #003; }

.tb-orange .tb-front { background: linear-gradient(145deg, var(--orange-light), var(--orange)); color: #3a1e00; }
.tb-orange .tb-right { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color: #3a1e00; }
.tb-orange .tb-top { background: linear-gradient(145deg, #ffd0a8, var(--orange-light)); color: #3a1e00; }

.tb-blue .tb-front { background: linear-gradient(145deg, var(--blue-light), var(--blue)); color: #fff; }
.tb-blue .tb-right { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); color: #fff; }
.tb-blue .tb-top { background: linear-gradient(145deg, #a8d4ff, var(--blue-light)); color: #fff; }

.tb-gradient .tb-front { background: linear-gradient(145deg, var(--yellow), var(--pink)); color: #fff; }
.tb-gradient .tb-right { background: linear-gradient(180deg, var(--pink), var(--pink-dark)); color: #fff; }
.tb-gradient .tb-top { background: linear-gradient(145deg, var(--yellow-light), var(--pink-light)); color: #fff; }

/* ═══════════════ HOW WE WORK ═══════════════ */
.packages { background: var(--dark2); }
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.package-card {
  background: var(--dark); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; padding: 40px 32px;
  opacity: 0; transform: translateY(40px);
  transition: all 0.5s; position: relative; overflow: hidden;
}
.package-card:hover { transform: translateY(-8px) !important; border-color: var(--purple); background: linear-gradient(180deg, rgba(123,47,190,0.08), var(--dark)); box-shadow: 0 0 30px rgba(123,47,190,0.15), 0 0 60px rgba(123,47,190,0.05); }
.package-icon { font-size: 36px; margin-bottom: 20px; }
.package-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.package-card .tagline { font-size: 14px; color: var(--gray); margin-bottom: 24px; line-height: 1.5; }
.package-features { list-style: none; margin-bottom: 32px; }
.package-features li {
  font-size: 14px; color: var(--light); padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex; align-items: center; gap: 10px;
}
.package-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.package-card:nth-child(1) .package-features li::before { background: var(--yellow); }
.package-card:nth-child(2) .package-features li::before { background: var(--purple); }
.package-card:nth-child(3) .package-features li::before { background: var(--pink); }
.package-btn {
  display: block; width: 100%; padding: 14px; text-align: center;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: all 0.3s; font-size: 14px;
  background: rgba(255,255,255,0.05); color: var(--light);
  border: 1px solid rgba(255,255,255,0.1);
}
/* Featured class kept for HTML compat but no longer styled differently */
.package-btn:hover { transform: scale(1.02); }
.step-number { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 800; background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 8px; opacity: 0.25; }
.step-outcome { font-size: 13px; color: var(--purple); border-top: 1px solid rgba(123,47,190,0.2); padding-top: 16px; margin-top: auto; line-height: 1.5; font-weight: 500; }

/* ═══════════════ WHY SECTION ═══════════════ */
.why-section { background: var(--dark); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 40px;
  opacity: 0; transform: translateY(30px); transition: all 0.5s;
}
.why-card:hover { border-color: rgba(255,255,255,0.1); }
.why-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 800; margin-bottom: 16px;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15); color: transparent;
}
.why-card:nth-child(1) .why-number { -webkit-text-stroke-color: var(--yellow); }
.why-card:nth-child(2) .why-number { -webkit-text-stroke-color: var(--purple); }
.why-card:nth-child(3) .why-number { -webkit-text-stroke-color: var(--red); }
.why-card:nth-child(4) .why-number { -webkit-text-stroke-color: var(--pink); }
.why-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.why-card p { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ═══════════════ CONTACT ═══════════════ */
.contact { background: var(--dark2); }
.contact-wrapper { display: flex; gap: 80px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-form-wrap { flex: 1; background: var(--dark3); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--dark); color: var(--light);
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.captcha-group { display: flex; align-items: center; gap: 12px; }
.captcha-group label { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; font-size: 14px; color: #fff; letter-spacing: 0; text-transform: none; }
.captcha-group input { max-width: 120px; text-align: center; }
.submit-btn {
  width: 100%; padding: 16px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; font-weight: 600; font-size: 16px;
  cursor: pointer; transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Phone row — country code + number inline */
.phone-row {
  display: flex;
  gap: 8px;
}
.country-code-select {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  flex: 0 0 110px;
  padding: 14px 8px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--light);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.3s;
}
.country-code-select:focus {
  outline: none;
  border-color: var(--purple);
}
.phone-row input {
  flex: 1;
  min-width: 0;
}

/* Form validation */
.form-group .error-msg {
  color: var(--red-light);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--red) !important;
}
.form-group.invalid .error-msg {
  display: block;
}
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: #4ECDC4 !important;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 60px;
}
footer .footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
footer .logo { font-size: 22px; }
footer p { color: var(--gray); font-size: 13px; }
footer a { color: var(--purple); text-decoration: none; }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes gridFloat {
  0%, 100% { transform: rotateX(-8deg) rotateY(-12deg) translateY(0); }
  50% { transform: rotateX(-8deg) rotateY(-12deg) translateY(-8px); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh); }
  10% { opacity: 0.6; } 90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100px); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ FORM SUCCESS ═══════════════ */
.form-success {
  text-align: center;
  padding: 48px 24px;
  animation: fadeInUp 0.5s ease forwards;
}
.form-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-success p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}
.submit-btn.sending {
  opacity: 0.7;
  pointer-events: none;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ RESPONSIVE — LARGE SCREENS ═══════════════ */
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
  .hero { padding: 140px 80px 100px; }
  .hero-visual { min-height: 750px; }
  #heroEngine { min-height: 750px; }
  .hero h1 { font-size: 72px; }
  .hero p { font-size: 20px; }
  section { padding: 140px 80px; }
  .section-title { font-size: 56px; }
  .toy-block { width: 160px; height: 160px; }
  .tb-face { width: 160px; height: 160px; }
  .tb-front { transform: translateZ(80px); }
  .tb-right { transform: rotateY(90deg) translateZ(80px); }
  .tb-top { transform: rotateX(90deg) translateZ(80px); }
  .tb-face .tb-letter { font-size: 48px; }
  .tb-face .tb-label { font-size: 14px; }
  .tb-face .tb-icon { font-size: 40px; }
}
@media (min-width: 2000px) {
  .container { max-width: 1600px; }
  .hero { padding: 160px 100px 120px; }
  .hero-visual { min-height: 850px; }
  #heroEngine { min-height: 850px; }
  .hero h1 { font-size: 80px; }
  .hero p { font-size: 22px; }
  .hero-content { max-width: 720px; }
  section { padding: 160px 100px; }
  .section-title { font-size: 64px; }
  .section-sub { font-size: 20px; max-width: 700px; }
  .solutions-grid { gap: 32px; }
  .solution-card { padding: 44px; }
  .solution-card h3 { font-size: 24px; }
  .solution-card p { font-size: 16px; }
  .why-card { padding: 48px; }
  .why-card h3 { font-size: 26px; }
  .why-card p { font-size: 17px; }
  .package-card { padding: 48px 40px; }
  .package-card h3 { font-size: 28px; }
  .toy-block { width: 180px; height: 180px; }
  .tb-face { width: 180px; height: 180px; }
  .tb-front { transform: translateZ(90px); }
  .tb-right { transform: rotateY(90deg) translateZ(90px); }
  .tb-top { transform: rotateX(90deg) translateZ(90px); }
  .tb-face .tb-letter { font-size: 56px; }
  .tb-face .tb-label { font-size: 16px; }
  .tb-face .tb-icon { font-size: 46px; }
}

/* ═══════════════ RESPONSIVE — SMALL SCREENS ═══════════════ */
@media (max-width: 1024px) {
  .hero { padding: 140px 30px 60px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .philosophy-content { flex-direction: column; text-align: center; }
  .philosophy-text .section-sub { margin-left: auto; margin-right: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-wrapper { flex-direction: column; }
  nav { padding: 16px 30px; }
  section { padding: 80px 30px; }
  .section-title { font-size: 36px; }
  footer .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 768px) {
  /* Overlay: stack block on top, text below */
  .overlay-text-panel {
    top: auto; left: 5%; right: 5%;
    bottom: 8%;
    max-width: none; width: 90%;
    max-height: 45vh;
    overflow-y: auto;
    transform: translateX(0) translateY(20px);
    padding: 24px;
    background: rgba(10, 10, 20, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(123,47,190,0.2);
  }
  .overlay-text-panel.visible {
    transform: translateX(0) translateY(0);
  }
  .overlay-text-panel h4 { font-size: 22px; margin-bottom: 10px; }
  .overlay-text-panel p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
  .overlay-close { width: 100%; justify-content: center; padding: 12px; }

  /* Flying block: scale down for mobile */
  .flying-block { transform-origin: center center; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 20px 40px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 15px; line-height: 1.6; }
  .hero-buttons { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 14px; width: 100%; text-align: center; }
  .solutions-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 15px; margin-bottom: 40px; }
  #heroEngine { min-height: 300px; }
  .hero-visual { min-height: 300px; }
  .toy-block { width: 100px; height: 100px; }
  .tb-face { width: 100px; height: 100px; }
  .tb-front { transform: translateZ(50px); }
  .tb-right { transform: rotateY(90deg) translateZ(50px); }
  .tb-top { transform: rotateX(90deg) translateZ(50px); }
  .tb-face .tb-icon { font-size: 24px; }
  .tb-face .tb-letter { font-size: 18px; }
  .tb-face .tb-label { font-size: 10px; }
  .block-hint { font-size: 11px; padding: 8px 14px; }
  .philosophy-visual { min-height: 400px; }
  .contact-form-wrap { padding: 28px 20px; }
  .package-card { padding: 28px 20px; }
  .why-card { padding: 28px 20px; }
  .why-card h3 { font-size: 18px; }
  .why-number { font-size: 36px; }
  footer { padding: 30px 20px; }
}

/* ═══════════════════ SKIP NAVIGATION ═══════════════════ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--purple);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 0;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ═══════════════════ FOCUS STATES ═══════════════════ */
*:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible { outline-color: var(--yellow); }
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible,
.submit-btn:focus-visible {
  outline-color: var(--yellow);
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 0;
  border-color: var(--purple-light);
}

/* ═══════════════════ FOOTER SOCIAL & LEGAL ═══════════════════ */
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
}
.footer-social a:hover {
  color: var(--purple-light);
  transform: translateY(-2px);
}
.footer-legal {
  margin-top: 8px;
  font-size: 13px;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: var(--purple-light);
}

/* ═══════════════════ LEGAL MODALS ═══════════════════ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.legal-modal-content {
  position: relative;
  background: #141418;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 40px;
  color: rgba(255,255,255,0.8);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.legal-modal-content::-webkit-scrollbar { width: 6px; }
.legal-modal-content::-webkit-scrollbar-track { background: transparent; }
.legal-modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.legal-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.legal-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.legal-modal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.legal-modal-content .legal-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
}
.legal-modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-modal-content p { margin-bottom: 12px; }
.legal-modal-content ul { margin: 0 0 14px 18px; padding: 0; }
.legal-modal-content li { margin-bottom: 6px; }
.legal-modal-content strong { color: rgba(255,255,255,0.95); font-weight: 600; }

@media (max-width: 600px) {
  .legal-modal-content { padding: 32px 24px; border-radius: 12px; }
  .legal-modal-content h2 { font-size: 24px; }
}

/* ═══════════════════ REDUCED MOTION ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg-glow { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card-reveal { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════ AI CHATBOT WIDGET ═══════════════════ */
#chatToggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(123, 47, 190, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
#chatToggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(123, 47, 190, 0.6); }
#chatToggle.hidden { opacity: 0; pointer-events: none; transform: scale(0.5); }

#chatPanel {
  position: fixed; bottom: 28px; right: 28px; z-index: 10000;
  width: 380px; max-height: 520px; height: 520px;
  background: var(--dark2); border: 1px solid rgba(123, 47, 190, 0.25);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(123, 47, 190, 0.1);
  transform: translateY(20px) scale(0.95); opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
#chatPanel.open {
  transform: translateY(0) scale(1); opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.15), rgba(255, 107, 157, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px; color: #fff;
}
.chat-header-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: #fff; }
.chat-header-status { font-size: 11px; color: var(--gray); }
#chatClose {
  background: none; border: none; color: var(--gray); font-size: 22px;
  cursor: pointer; padding: 4px 8px; transition: color 0.2s;
}
#chatClose:hover { color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(123, 47, 190, 0.3) transparent;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(123, 47, 190, 0.3); border-radius: 10px; }

.chat-bubble {
  max-width: 85%; padding: 10px 14px;
  border-radius: 14px; font-size: 14px; line-height: 1.5;
  word-wrap: break-word;
}
.chat-bubble.assistant {
  background: var(--dark3); color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px; align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; border-bottom-right-radius: 4px; align-self: flex-end;
}

.chat-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 0 16px 8px;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple-light); opacity: 0.5;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-input-row {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.chat-input-row input {
  flex: 1; background: var(--dark3); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 10px 14px; color: #fff; font-size: 14px;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.3s;
}
.chat-input-row input:focus { border-color: var(--purple); }
.chat-input-row input::placeholder { color: rgba(255, 255, 255, 0.3); }
#chatSend {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
#chatSend:hover { opacity: 0.9; transform: scale(1.05); }

/* Mobile responsive */
@media (max-width: 480px) {
  #chatPanel {
    width: calc(100vw - 24px); height: calc(100vh - 120px);
    max-height: none; bottom: 12px; right: 12px;
  }
  #chatToggle { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}
