/* ============================================
   BOUNCEFLOWATELIER — ENERGY SHIELD CORE UI
   Purple + Green Futuristic Design System
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-layer: #111827;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-blur: 20px;
  --glass-border: rgba(168,85,247,0.25);
  --purple-start: #a855f7;
  --purple-end: #7c3aed;
  --green-start: #22c55e;
  --green-end: #4ade80;
  --purple-grad: linear-gradient(135deg, #a855f7, #7c3aed);
  --green-grad: linear-gradient(135deg, #22c55e, #4ade80);
  --purple-glow: rgba(168,85,247,0.45);
  --green-glow: rgba(34,197,94,0.45);
  --purple-glow-soft: rgba(168,85,247,0.15);
  --green-glow-soft: rgba(34,197,94,0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Orbitron', 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Exo 2', sans-serif;
  --container-max: 1280px;
  --section-pad: clamp(50px, 10vw, 100px);
  --container-pad: clamp(16px, 5vw, 40px);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 35px;
  --radius-btn: 22px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.gradient-text {
  background: var(--purple-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- CURSOR RIPPLE --- */
.cursor-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--purple-start);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.3s, transform 0.3s;
}

.cursor-ripple.active {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(2);
  animation: rippleFade 0.6s ease-out forwards;
}

@keyframes rippleFade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}

/* ============================================
   HEADER — ENERGY SHIELD NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px var(--container-pad);
  transition: var(--transition);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1), inset 0 0 30px rgba(168, 85, 247, 0.03);
  position: relative;
  overflow: hidden;
}

.header-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.06), transparent);
  animation: headerScan 4s linear infinite;
}

@keyframes headerScan {
  to { left: 200%; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--purple-start);
  opacity: 0;
  animation: logoPulse 2s ease-out infinite;
}

@keyframes logoPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-accent {
  color: var(--purple-start);
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  position: relative;
  z-index: 2;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-grad);
  transition: var(--transition);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--purple-glow);
}

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

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

/* Header CTA */
.header-cta {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 8px 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--purple-start);
}

.mobile-nav-cta {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
  border-radius: var(--radius-btn) var(--radius-btn) 0 0;
  pointer-events: none;
}

.btn-primary {
  background: var(--purple-grad);
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-cta {
  background: var(--green-grad);
  color: #020617;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--green-glow-soft);
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px var(--green-glow);
}

.btn-cta:active {
  transform: translateY(1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--purple-start);
  box-shadow: 0 0 20px var(--purple-glow-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   HERO — ENERGY CORE ACTIVATION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  background: radial-gradient(circle, var(--purple-start), transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: clamp(150px, 30vw, 350px);
  height: clamp(150px, 30vw, 350px);
  background: radial-gradient(circle, var(--green-start), transparent 70%);
  bottom: 20%;
  right: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: clamp(100px, 20vw, 250px);
  height: clamp(100px, 20vw, 250px);
  background: radial-gradient(circle, var(--purple-end), transparent 70%);
  top: 60%;
  left: 5%;
  animation: orbFloat 7s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 20px); }
}

.hero-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.1);
  animation: waveExpand 4s ease-out infinite;
}

.hero-wave-1 {
  width: 300px;
  height: 300px;
}

.hero-wave-2 {
  width: 300px;
  height: 300px;
  animation-delay: 2s;
}

@keyframes waveExpand {
  0% { width: 100px; height: 100px; opacity: 0.5; }
  100% { width: 800px; height: 800px; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 500;
  color: var(--purple-start);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-start);
  animation: dotPulse 1.5s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  background: var(--green-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-dot {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--purple-start);
  animation: scrollDot 1.5s ease-in-out infinite;
}

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

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  font-weight: 500;
  color: var(--purple-start);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   GAME SECTION
   ============================================ */
.game-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.game-page-section {
  padding-top: 120px;
}

.game-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.game-wrapper-full {
  max-width: 1100px;
}

.game-frame-border {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, var(--purple-start), var(--green-start), var(--purple-end));
  box-shadow: 0 0 40px var(--purple-glow-soft), 0 0 80px rgba(168, 85, 247, 0.08);
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 40px var(--purple-glow-soft), 0 0 80px rgba(168, 85, 247, 0.08); }
  50% { box-shadow: 0 0 60px var(--purple-glow), 0 0 100px rgba(168, 85, 247, 0.15); }
}

.game-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 3px);
  overflow: hidden;
  background: var(--bg-primary);
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Game Info Grid */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 6vw, 60px);
}

.game-info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game-info-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  margin-bottom: 12px;
}

.game-info-card p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.7;
}

.game-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-feature-list li {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  padding-left: 20px;
  position: relative;
}

.game-feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--green-start);
  font-size: 0.7em;
}

@media (max-width: 768px) {
  .game-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FEATURES — SYSTEM MODULES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-start);
  box-shadow: 0 12px 40px var(--purple-glow-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.feature-icon-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
}

.feature-desc {
  font-size: clamp(0.85rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

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

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.cta-orb-1 {
  width: 200px;
  height: 200px;
  background: var(--purple-start);
  top: -50px;
  right: -50px;
}

.cta-orb-2 {
  width: 150px;
  height: 150px;
  background: var(--green-start);
  bottom: -40px;
  left: -40px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ============================================
   LEGAL BANNER
   ============================================ */
.legal-banner {
  background: rgba(168, 85, 247, 0.05);
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  padding: 16px 0;
}

.legal-text {
  text-align: center;
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  padding: clamp(40px, 6vw, 70px) 0 clamp(20px, 3vw, 30px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(30px, 4vw, 50px);
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--purple-start);
  transform: translateX(4px);
}

.footer-info {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: clamp(16px, 3vw, 24px);
  text-align: center;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE HERO (INNER PAGES)
   ============================================ */
.page-hero-section {
  padding-top: 140px;
  padding-bottom: 0;
}

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

/* ============================================
   CONTENT CARDS (INNER PAGES)
   ============================================ */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.content-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 16px;
}

.content-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin-bottom: 8px;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.value-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-sm);
}

.value-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.value-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  margin-bottom: 6px;
}

.value-item p {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech Badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tech-badge {
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-start);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple-start);
  box-shadow: 0 0 20px var(--purple-glow-soft);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394a3b8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-layer);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--green-start);
}

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

.inline-link {
  color: var(--purple-start);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.inline-link:hover {
  color: var(--green-start);
}

/* ============================================
   LEGAL CONTENT (Terms, Privacy, Responsible)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.responsible-highlight {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 32px;
}

.responsible-highlight h2 {
  margin-top: 0;
  color: var(--purple-start);
}

.responsible-highlight p {
  margin-bottom: 0;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-layer);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-start);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal-step-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--purple-start);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-step strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

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

/* ============================================
   ANIMATIONS — FADE IN
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: white;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 480px) {
  .hero-stat-divider {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}