/* ============================================
   VELAFRIENDAXIS — COSMIC NEON ORBIT DESIGN
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg-primary: #040406;
  --bg-secondary: #0b0f1a;
  --bg-tertiary: #111827;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: 18px;
  --purple-start: #7c3aed;
  --purple-end: #a855f7;
  --green-start: #22c55e;
  --green-end: #4ade80;
  --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --gradient-green: linear-gradient(135deg, #22c55e, #4ade80);
  --gradient-galaxy: linear-gradient(135deg, #7c3aed, #22c55e);
  --glow-purple: rgba(124,58,237,0.45);
  --glow-green: rgba(34,197,94,0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --container-max: 1280px;
  --container-narrow: 800px;
  --section-desktop: 120px;
  --section-tablet: 80px;
  --section-mobile: 60px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

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

@media (max-width: 1024px) {
  .section { padding: var(--section-tablet) 0; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-mobile) 0; }
}

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  display: none;
}

@media (hover: hover) {
  .cursor-glow { display: block; }
}

/* ---------- FLOATING PARTICLES ---------- */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled,
.header-solid {
  background: rgba(4,4,6,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

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

.logo-orbit {
  position: relative;
  width: 36px;
  height: 36px;
}

.logo-orbit-sm {
  width: 28px;
  height: 28px;
}

.logo-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-galaxy);
  box-shadow: 0 0 15px var(--glow-purple), 0 0 30px rgba(124,58,237,0.2);
}

.logo-orbit-sm .logo-orbit-core {
  width: 9px;
  height: 9px;
}

.logo-orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(124,58,237,0.4);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.logo-orbit-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-start);
  box-shadow: 0 0 8px var(--glow-green);
}

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

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-galaxy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-cta {
  font-size: 14px;
  padding: 8px 20px;
}

/* ---------- SIDE NAV ---------- */
.side-nav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.side-nav-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(11,15,26,0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3), inset 0 0 30px rgba(124,58,237,0.03);
}

.side-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.side-nav-item:hover {
  color: var(--text-primary);
  background: rgba(124,58,237,0.15);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(124,58,237,0.2);
}

.side-nav-item.active {
  color: var(--text-primary);
  background: rgba(124,58,237,0.2);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
}

.side-nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.side-nav-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
  .side-nav { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  border: none;
}

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

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

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 40px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.2); }
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(34,197,94,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(168,85,247,0.1) 0%, transparent 50%);
}

.hero-stars {
  position: absolute;
  inset: 0;
}

.hero-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: starTwinkle ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.hero-orbit-lines {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-line {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.08);
  animation: orbitSpin linear infinite;
}

.orbit-line-1 {
  width: 500px;
  height: 500px;
  animation-duration: 30s;
}

.orbit-line-2 {
  width: 750px;
  height: 750px;
  animation-duration: 45s;
  animation-direction: reverse;
  border-color: rgba(34,197,94,0.06);
}

.orbit-line-3 {
  width: 1000px;
  height: 1000px;
  animation-duration: 60s;
  border-color: rgba(124,58,237,0.04);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4,4,6,0.3) 60%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--glow-green); }
  50% { box-shadow: 0 0 16px var(--glow-green), 0 0 30px rgba(34,197,94,0.2); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

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

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--purple-start), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-end);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- GAME SECTION ---------- */
.section-game {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.game-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-galaxy);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShift 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes borderShift {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.game-card-inner {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.game-card:hover .game-card-border {
  opacity: 1;
  box-shadow: 0 0 40px var(--glow-purple), 0 0 80px rgba(34,197,94,0.15);
}

.game-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.game-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-purple);
  color: #fff;
}

.game-title {
  font-size: 16px;
  font-weight: 700;
}

.game-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.game-actions {
  display: flex;
  gap: 8px;
}

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

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

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(124,58,237,0.1);
}

.feature-card-lg {
  grid-column: span 2;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-icon-purple {
  background: rgba(124,58,237,0.15);
  color: var(--purple-end);
}

.feature-icon-green {
  background: rgba(34,197,94,0.15);
  color: var(--green-end);
}

.feature-icon-galaxy {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,197,94,0.2));
  color: var(--purple-end);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 15px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.about-stat {
  display: flex;
  flex-direction: column;
}

.about-stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-galaxy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-card {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-planet {
  position: relative;
  width: 120px;
  height: 120px;
}

.about-planet-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--purple-end), var(--purple-start), #2d1b69);
  box-shadow: 0 0 40px var(--glow-purple), inset 0 0 30px rgba(0,0,0,0.3);
}

.about-planet-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(65deg);
  width: 200px;
  height: 200px;
  border: 3px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  animation: orbitSpin 12s linear infinite;
}

.about-planet-ring::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-start);
  box-shadow: 0 0 12px var(--glow-green);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    order: -1;
  }
  .about-visual-card {
    width: 220px;
    height: 220px;
  }
  .about-planet {
    width: 80px;
    height: 80px;
  }
  .about-planet-ring {
    width: 140px;
    height: 140px;
  }
  .about-stats {
    gap: 24px;
  }
}

/* ---------- CONTACT ---------- */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition);
}

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

.form-input:focus {
  border-color: var(--purple-start);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  background: rgba(255,255,255,0.06);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 20px;
  }
}

/* ---------- RESPONSIBLE GAMING ---------- */
.section-responsible {
  border-top: 1px solid var(--glass-border);
}

.responsible-card,
.responsible-card-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.responsible-card-page {
  margin-bottom: 48px;
}

.responsible-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(34,197,94,0.12);
  color: var(--green-start);
  margin-bottom: 24px;
}

.responsible-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.responsible-text {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.responsible-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.responsible-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--purple-end);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4,4,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  border-radius: 12px;
}

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

.mobile-nav-item.active {
  background: rgba(124,58,237,0.1);
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: rgba(255,255,255,0.06);
}

.modal-body {
  padding: 0 28px 12px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.modal-step:last-child {
  border-bottom: none;
}

.modal-step-num {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-galaxy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 40px;
}

.modal-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.modal-disclaimer {
  padding: 16px 28px 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124,58,237,0.1) 0%, transparent 60%);
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- PROSE (LEGAL PAGES) ---------- */
.prose {
  color: var(--text-secondary);
  line-height: 1.8;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

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

.prose p {
  margin-bottom: 16px;
  font-size: 15px;
}

.prose ul,
.prose ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
  font-size: 15px;
  list-style: disc;
  color: var(--text-secondary);
}

.prose a {
  color: var(--purple-end);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--green-start);
}

/* ---------- ANIMATIONS ---------- */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.8s ease 0.15s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.8s ease 0.45s forwards;
  opacity: 0;
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glass shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.5);
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(124,58,237,0.3);
  color: #fff;
}

/* ---------- FULLSCREEN GAME ---------- */
.game-iframe-container.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding-top: 0;
  background: #000;
}

.game-iframe-container.fullscreen .game-iframe {
  width: 100%;
  height: 100%;
}
/* ENDFILE */