/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --bg-dark: #090d16;
  --bg-dark-card: #111827;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-secondary: #cbd5e1;
  
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #3b82f6; /* Blue */
  --accent-purple: #8b5cf6; /* Violet */
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(99, 102, 241, 0.25);
  --border-dark: rgba(255, 255, 255, 0.08);
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.08), 0 1px 5px 0 rgba(99, 102, 241, 0.04);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BACKGROUND DESIGN SKELETON
   ========================================================================== */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 60%, transparent 100%);
}

.bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: glowFloat 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  top: 600px;
  left: -200px;
  animation: glowFloat 20s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border: 1px solid transparent;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.shadow-glow {
  position: relative;
}

.shadow-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity var(--transition-fast);
}

.shadow-glow:hover::after {
  opacity: 0.4;
}

.shadow-glow-light {
  position: relative;
}

.shadow-glow-light::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: #ffffff;
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity var(--transition-fast);
}

.shadow-glow-light:hover::after {
  opacity: 0.3;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(250, 251, 252, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  user-select: none;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width var(--transition-fast);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.burger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Burger Animation states */
.burger-menu.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  background-color: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-tag span {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-description {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}

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

/* Visual Container and 3D Scene */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.orbit-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateX(60deg) rotateY(-20deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, 0.28); /* Solid thin light-violet line instead of dashed */
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.orbit::after,
.orbit::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  will-change: opacity;
}

.orbit-1 {
  width: 260px;
  height: 260px;
  animation: spin 25s linear infinite;
}
.orbit-1::after {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffffff 15%, #a78bfa 45%, #7c3aed 100%);
  box-shadow: 0 0 12px 2px rgba(139, 92, 246, 0.85), inset 0 0 3px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 3s ease-in-out infinite;
}
.orbit-1::before {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffffff 15%, #c7d2fe 45%, #6366f1 100%);
  box-shadow: 0 0 10px 1.5px rgba(99, 102, 241, 0.7), inset 0 0 2px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 4.5s ease-in-out infinite -1s;
}

.orbit-2 {
  width: 340px;
  height: 340px;
  animation: spin 38s linear infinite reverse;
}
.orbit-2::after {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #ffffff 15%, #93c5fd 45%, #2563eb 100%);
  box-shadow: 0 0 14px 2.5px rgba(59, 130, 246, 0.9), inset 0 0 4px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 3.5s ease-in-out infinite -0.5s;
}
.orbit-2::before {
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #ffffff 15%, #bae6fd 45%, #0284c7 100%);
  box-shadow: 0 0 8px 1px rgba(14, 165, 233, 0.6), inset 0 0 2px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 5s ease-in-out infinite -2s;
}

.orbit-3 {
  width: 420px;
  height: 420px;
  animation: spin 50s linear infinite;
}
.orbit-3::after {
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  background: radial-gradient(circle, #ffffff 15%, #f472b6 45%, #c084fc 100%);
  box-shadow: 0 0 11px 2px rgba(168, 85, 247, 0.8), inset 0 0 3px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 4s ease-in-out infinite -1.5s;
}
.orbit-3::before {
  bottom: 25%;
  right: 25%;
  transform: translate(50%, 50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffffff 15%, #ddd6fe 45%, #8b5cf6 100%);
  box-shadow: 0 0 12px 2px rgba(139, 92, 246, 0.75), inset 0 0 3px rgba(255, 255, 255, 0.8);
  animation: sphereTwinkle 3.2s ease-in-out infinite -0.7s;
}

@keyframes sphereTwinkle {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.object-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.05) 40%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* 3D Cube Elements */
.cube-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  -webkit-perspective: 800px;
  perspective: 800px;
  z-index: 2;
  cursor: grab;
  /* Floating / Hovering vertical animation */
  animation: cubeFloat 6s ease-in-out infinite alternate;
  will-change: transform;
}

.cube-wrapper:active {
  cursor: grabbing;
}

@keyframes cubeFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

.cube {
  width: 100%;
  height: 100%;
  position: absolute;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  animation: autoRotateCube 22s linear infinite;
  will-change: transform;
}

@keyframes autoRotateCube {
  0% { transform: rotateX(25deg) rotateY(45deg); }
  50% { transform: rotateX(-15deg) rotateY(225deg); }
  100% { transform: rotateX(25deg) rotateY(405deg); }
}

/* Volumetric Glowing Core Cube */
.cube-core {
  position: absolute;
  width: 60px;
  height: 60px;
  left: 30px;
  top: 30px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transform: translateZ(0); /* Center in 3D space */
  animation: corePulse 4s ease-in-out infinite alternate;
  z-index: 1;
  will-change: transform;
}

.core-face {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(255, 255, 255, 0.9); /* Sharp bright borders for clear readability */
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.5),   /* Glassy inner reflection highlight */
    inset 0 0 16px rgba(168, 85, 247, 0.8),   /* Saturated inner purple volume */
    0 0 8px rgba(168, 85, 247, 0.4);          /* Controlled, tight outer glow */
}

.core-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, transparent 60%);
  pointer-events: none;
}

.core-front  { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); transform: rotateY(  0deg) translateZ(30px); }
.core-back   { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); transform: rotateY(180deg) translateZ(30px); }
.core-right  { background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%); transform: rotateY( 90deg) translateZ(30px); }
.core-left   { background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%); transform: rotateY(-90deg) translateZ(30px); }
.core-top    { background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 100%); transform: rotateX( 90deg) translateZ(30px); }
.core-bottom { background: linear-gradient(135deg, #581c87 0%, #1e1b4b 100%); transform: rotateX(-90deg) translateZ(30px); }

@keyframes corePulse {
  0% {
    transform: translateZ(0) scale(0.85) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: translateZ(0) scale(1.1) rotateX(180deg) rotateY(180deg);
  }
}

/* Middle Volumetric Layer Cube */
.cube-mid {
  position: absolute;
  width: 90px;
  height: 90px;
  left: 15px;
  top: 15px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transform: translateZ(0); /* Center in 3D space */
  animation: midPulse 4s ease-in-out infinite alternate;
  animation-delay: -1s;
  z-index: 2;
  will-change: transform;
}

.mid-face {
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(12, 24, 68, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.2);
}

.mid-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.mid-front  { transform: rotateY(  0deg) translateZ(45px); }
.mid-back   { transform: rotateY(180deg) translateZ(45px); }
.mid-right  { transform: rotateY( 90deg) translateZ(45px); }
.mid-left   { transform: rotateY(-90deg) translateZ(45px); }
.mid-top    { transform: rotateX( 90deg) translateZ(45px); }
.mid-bottom { transform: rotateX(-90deg) translateZ(45px); }

@keyframes midPulse {
  0% {
    transform: translateZ(0) scale(0.92);
  }
  100% {
    transform: translateZ(0) scale(1.04);
  }
}

/* Soft Ambient Shadow under the Cube */
.cube-shadow {
  position: absolute;
  width: 100px;
  height: 14px;
  bottom: -45px;
  left: 10px;
  background: radial-gradient(ellipse at center, rgba(9, 13, 22, 0.45) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
  animation: shadowPulse 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes shadowPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.65;
    filter: blur(7px);
  }
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(4, 6, 14, 0.45);
  border: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow: inset 0 0 15px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Diagonal glare on faces */
.cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cube-face::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

/* Positioning Cube Faces */
.cube-front  { transform: rotateY(  0deg) translateZ(60px); }
.cube-back   { transform: rotateY(180deg) translateZ(60px); }
.cube-right  { transform: rotateY( 90deg) translateZ(60px); }
.cube-left   { transform: rotateY(-90deg) translateZ(60px); }
.cube-top    { transform: rotateX( 90deg) translateZ(60px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(60px); }

/* Badges Container */
.badges-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 3;
  will-change: transform;
  contain: layout style;
}

.badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
  will-change: transform;
}

.floating-badge:hover .badge-inner {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(99, 102, 241, 0.06);
  transform: scale(1.05) translateY(-5px);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.badge-icon-svg {
  stroke: var(--accent-primary);
  filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.2));
}

.badge-text {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Desktop absolute coordinates to evenly space out all 6 badges */
.badge-1 { top: 12%; left: -15%; }
.badge-2 { top: 8%; right: -12%; }
.badge-3 { top: 45%; left: -20%; }
.badge-4 { top: 48%; right: -18%; }
.badge-5 { bottom: 15%; left: -10%; }
.badge-6 { bottom: 12%; right: -8%; }

/* Isolated, subtle keyframe animations applied to badge-inner */
.badge-1 .badge-inner { animation: floatVertical 5s ease-in-out infinite alternate; animation-delay: 0s; }
.badge-2 .badge-inner { animation: floatHorizontal 6s ease-in-out infinite alternate; animation-delay: 0.5s; }
.badge-3 .badge-inner { animation: floatDiagonal1 5.5s ease-in-out infinite alternate; animation-delay: 1s; }
.badge-4 .badge-inner { animation: floatDiagonal2 6.5s ease-in-out infinite alternate; animation-delay: 1.5s; }
.badge-5 .badge-inner { animation: floatVertical 5.8s ease-in-out infinite alternate; animation-delay: 2s; }
.badge-6 .badge-inner { animation: floatHorizontal 6.2s ease-in-out infinite alternate; animation-delay: 2.5s; }

@keyframes floatVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

@keyframes floatHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(5px); }
}

@keyframes floatDiagonal1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(4px, -4px); }
}

@keyframes floatDiagonal2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-4px, -4px); }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

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

.section-subtitle {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-description {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-secondary);
}

/* ==========================================================================
   SERVICES SECTION ("Что я делаю")
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.service-card:hover .card-icon {
  background-color: var(--accent-primary);
  color: var(--text-light);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-text {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Expandable Service Details Accordion */
.card-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  width: 100%;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-details.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.card-details-inner {
  overflow: hidden;
}

.details-list {
  list-style: none;
  padding: 8px 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.details-list li::before {
  content: '⚡';
  color: var(--accent-purple);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Toggle Accordion Button */
.btn-card-toggle {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 0 0;
  margin-top: auto;
  transition: color var(--transition-fast);
}

.btn-card-toggle:hover {
  color: var(--accent-purple);
}

.btn-card-toggle .icon-chevron {
  transition: transform var(--transition-normal);
  color: currentColor;
}

.btn-card-toggle.active .icon-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   CASES SECTION ("Примеры задач")
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-color-hover);
}

.case-card:hover::before {
  opacity: 1;
}

.case-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background-color: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.case-title {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.case-text {
  font-size: 0.938rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.case-result {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: background-color var(--transition-fast);
}

.case-card:hover .case-result {
  background-color: rgba(99, 102, 241, 0.02);
}

.result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.result-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ==========================================================================
   PROCESS SECTION ("Как проходит работа")
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-feature-settings: "tnum";
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Decorator lines connecting steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 80px;
  right: -20px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--accent-primary) 30%, transparent 30%);
  background-size: 8px 1px;
  opacity: 0.3;
  z-index: -1;
}

/* ==========================================================================
   ABOUT SECTION ("Обо мне")
   ========================================================================== */
.about-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 60px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-subtitle {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.about-title {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}

.about-text {
  font-size: 1.063rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-tags-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
}

.about-tags-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.section-cta {
  padding-bottom: 120px;
  padding-top: 40px;
}

.cta-card {
  background: radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 65%), #070a13;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 32px;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}

.cta-content {
  text-align: left;
  z-index: 2;
}

.cta-title {
  color: var(--text-light);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-text {
  color: var(--text-light-secondary);
  font-size: clamp(0.95rem, 1.1vw, 1.063rem);
  max-width: 520px;
  margin-bottom: 32px;
}

.cta-card .telegram-btn {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.cta-card .icon-tg {
  color: #ffffff;
}

/* CTA 3D Cube & Orbits Visual */
.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 260px;
  z-index: 2;
}

.cta-scene {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-orbit-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateX(65deg) rotateY(-15deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  pointer-events: none;
}

.cta-orbit {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cta-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-secondary) 100%);
  will-change: transform;
}

.cta-orbit-1 {
  width: 170px;
  height: 170px;
  animation: spin 20s linear infinite;
}
.cta-orbit-1::after {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #a78bfa, 0 0 18px #8b5cf6, 0 0 28px #6d28d9;
}

.cta-orbit-2 {
  width: 230px;
  height: 230px;
  animation: spin 28s linear infinite reverse;
}
.cta-orbit-2::after {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 8px #93c5fd, 0 0 18px #3b82f6, 0 0 28px #1d4ed8;
}

.cta-cube-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  -webkit-perspective: 600px;
  perspective: 600px;
  z-index: 2;
  animation: ctaCubeFloat 5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ctaCubeFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.cta-cube {
  width: 100%;
  height: 100%;
  position: absolute;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  animation: ctaAutoRotate 20s linear infinite;
  will-change: transform;
}

@keyframes ctaAutoRotate {
  0% { transform: rotateX(22deg) rotateY(45deg); }
  100% { transform: rotateX(22deg) rotateY(405deg); }
}

.cta-cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1.2px solid rgba(139, 92, 246, 0.4);
  box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.25), inset 0 0 3px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cta-cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-cube-front  { transform: rotateY(  0deg) translateZ(40px); }
.cta-cube-back   { transform: rotateY(180deg) translateZ(40px); }
.cta-cube-right  { transform: rotateY( 90deg) translateZ(40px); }
.cta-cube-left   { transform: rotateY(-90deg) translateZ(40px); }
.cta-cube-top    { transform: rotateX( 90deg) translateZ(40px); }
.cta-cube-bottom { transform: rotateX(-90deg) translateZ(40px); }

.cta-cube-shadow {
  position: absolute;
  width: 70px;
  height: 8px;
  bottom: -28px;
  left: 5px;
  background: radial-gradient(ellipse at center, rgba(9, 13, 22, 0.5) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  animation: ctaShadowPulse 5s ease-in-out infinite alternate;
}

@keyframes ctaShadowPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.65; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  position: relative;
  z-index: 2;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-contact-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-tg-link svg {
  color: #229ED9;
}

.copyright {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ==========================================================================
   ANIMATIONS (ON-SCROLL & INTERACTIVE)
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  pointer-events: none;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 480px;
  }
  
  /* Space out badges slightly tighter on tablet */
  .badge-1 { left: -8%; }
  .badge-2 { right: -6%; }
  .badge-3 { left: -12%; }
  .badge-4 { right: -10%; }
  .badge-5 { left: -4%; }
  .badge-6 { right: -2%; }
  
  .about-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }

  .cta-card {
    padding: 60px 40px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .scene-container {
    contain: none !important;
  }

  .section {
    padding: 80px 0;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    text-align: center;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-right {
    align-items: center;
  }
  
  /* Responsive grid layout for badges below the cube on mobile/tablet */
  .hero-visual {
    height: 600px;
  }
  
  .badges-container {
    position: absolute;
    top: 390px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    pointer-events: auto;
    padding: 0 20px;
  }
  
  .floating-badge {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    transform: none !important; /* Disable mouse parallax transform */
  }
  
  .floating-badge .badge-inner {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-visual {
    height: 420px;
  }
  
  .scene-container {
    width: 280px;
    height: 280px;
    contain: none !important;
  }
  
  .orbit-1 { width: 170px; height: 170px; }
  .orbit-2 { width: 220px; height: 220px; }
  .orbit-3 { width: 280px; height: 280px; }
  
  .badges-container {
    top: 270px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .floating-badge {
    position: relative !important;
    width: 100%;
  }

  .badge-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    gap: 6px;
  }

  .badge-text {
    font-size: 0.75rem;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.25;
  }

  .badge-icon-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  
  .cube-wrapper {
    width: 90px;
    height: 90px;
    animation: cubeFloatMobile 6s ease-in-out infinite alternate;
  }
  
  @keyframes cubeFloatMobile {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
  }
  
  .cube-core {
    width: 35px;
    height: 35px;
    left: 27px;
    top: 27px;
    animation: corePulseMobile 3s ease-in-out infinite alternate;
  }
  
  @keyframes corePulseMobile {
    0% {
      transform: translateZ(0) scale(0.9);
      opacity: 0.7;
    }
    100% {
      transform: translateZ(0) scale(1.2);
      opacity: 1;
      box-shadow: 0 0 25px 10px rgba(168, 85, 247, 0.5), 0 0 45px 15px rgba(99, 102, 241, 0.3);
    }
  }

  .core-face {
    width: 35px;
    height: 35px;
  }
  .core-front  { transform: rotateY(  0deg) translateZ(17.5px); }
  .core-back   { transform: rotateY(180deg) translateZ(17.5px); }
  .core-right  { transform: rotateY( 90deg) translateZ(17.5px); }
  .core-left   { transform: rotateY(-90deg) translateZ(17.5px); }
  .core-top    { transform: rotateX( 90deg) translateZ(17.5px); }
  .core-bottom { transform: rotateX(-90deg) translateZ(17.5px); }

  .cube-mid {
    width: 60px;
    height: 60px;
    left: 15px;
    top: 15px;
  }
  .mid-face {
    width: 60px;
    height: 60px;
  }
  .mid-front  { transform: rotateY(  0deg) translateZ(30px); }
  .mid-back   { transform: rotateY(180deg) translateZ(30px); }
  .mid-right  { transform: rotateY( 90deg) translateZ(30px); }
  .mid-left   { transform: rotateY(-90deg) translateZ(30px); }
  .mid-top    { transform: rotateX( 90deg) translateZ(30px); }
  .mid-bottom { transform: rotateX(-90deg) translateZ(30px); }
  
  .cube-shadow {
    width: 75px;
    height: 10px;
    bottom: -35px;
    left: 7px;
    filter: blur(4px);
    animation: shadowPulseMobile 6s ease-in-out infinite alternate;
  }
  
  @keyframes shadowPulseMobile {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.65; }
  }
  
  .cube-face {
    width: 90px;
    height: 90px;
  }
  
  .cube-front  { transform: rotateY(  0deg) translateZ(45px); }
  .cube-back   { transform: rotateY(180deg) translateZ(45px); }
  .cube-right  { transform: rotateY( 90deg) translateZ(45px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(45px); }
  .cube-top    { transform: rotateX( 90deg) translateZ(45px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(45px); }
  
  .cta-card {
    padding: 40px 16px;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .cta-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .cta-text {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .cta-card .telegram-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 14px 20px;
    font-size: 0.938rem;
    box-sizing: border-box;
  }

  .cta-scene {
    width: 220px;
    height: 220px;
  }

  .cta-orbit-1 { width: 140px; height: 140px; }
  .cta-orbit-2 { width: 200px; height: 200px; }

  .cta-cube-wrapper {
    width: 60px;
    height: 60px;
  }

  .cta-cube-face {
    width: 60px;
    height: 60px;
  }

  .cta-cube-front  { transform: rotateY(  0deg) translateZ(30px); }
  .cta-cube-back   { transform: rotateY(180deg) translateZ(30px); }
  .cta-cube-right  { transform: rotateY( 90deg) translateZ(30px); }
  .cta-cube-left   { transform: rotateY(-90deg) translateZ(30px); }
  .cta-cube-top    { transform: rotateX( 90deg) translateZ(30px); }
  .cta-cube-bottom { transform: rotateX(-90deg) translateZ(30px); }
}

@media (max-width: 390px) {
  .badge-inner {
    padding: 7px 8px;
    gap: 4px;
  }

  .badge-text {
    font-size: 0.72rem;
  }

  .cta-card .telegram-btn {
    font-size: 0.875rem;
    padding: 12px 16px;
  }
}

@media (max-width: 360px) {
  .hero-visual {
    height: 380px;
  }
  
  .scene-container {
    width: 240px;
    height: 240px;
  }
  
  .orbit-1 { width: 140px; height: 140px; }
  .orbit-2 { width: 190px; height: 190px; }
  .orbit-3 { width: 240px; height: 240px; }
  
  .badges-container {
    top: 230px;
    max-width: 280px;
    gap: 6px;
    padding: 0 8px;
  }

  .badge-inner {
    padding: 6px 8px;
    gap: 4px;
  }

  .badge-text {
    font-size: 0.68rem;
  }

  .cta-scene {
    width: 180px;
    height: 180px;
  }

  .cta-orbit-1 { width: 110px; height: 110px; }
  .cta-orbit-2 { width: 160px; height: 160px; }

  .cta-cube-wrapper {
    width: 45px;
    height: 45px;
  }

  .cta-cube-face {
    width: 45px;
    height: 45px;
  }

  .cta-cube-front  { transform: rotateY(  0deg) translateZ(22.5px); }
  .cta-cube-back   { transform: rotateY(180deg) translateZ(22.5px); }
  .cta-cube-right  { transform: rotateY( 90deg) translateZ(22.5px); }
  .cta-cube-left   { transform: rotateY(-90deg) translateZ(22.5px); }
  .cta-cube-top    { transform: rotateX( 90deg) translateZ(22.5px); }
  .cta-cube-bottom { transform: rotateX(-90deg) translateZ(22.5px); }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .bg-glow-1, .bg-glow-2,
  .orbit-1, .orbit-2, .orbit-3,
  .cta-orbit-1, .cta-orbit-2,
  .cube-wrapper, .cube, .cube-core, .cube-mid, .cube-shadow,
  .cta-cube-wrapper, .cta-cube, .cta-cube-shadow,
  .badge-inner, .floating-badge:hover .badge-inner {
    animation: none !important;
    transition: none !important;
  }

  .cube {
    transform: rotateX(25deg) rotateY(45deg) !important;
  }

  .cube-core {
    transform: translateZ(0) scale(1) !important;
  }

  .cube-mid {
    transform: translateZ(0) scale(1) !important;
  }

  .cta-cube {
    transform: rotateX(22deg) rotateY(45deg) !important;
  }

  .cube-wrapper, .cta-cube-wrapper {
    transform: none !important;
  }

  .badge-inner {
    transform: none !important;
  }

  .floating-badge:hover .badge-inner {
    transform: none !important;
  }

  .fade-in-section {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
