:root {
  --bg: #0A0A0B;
  --bg2: #141416;
  --bg3: #1A1A1D;
  --bg4: #050505;
  --lime: #C6FF00;
  --red: #FF3D00;
  --text: #FFFFFF;
  --text-muted: #8A8A8E;
  --text-dim: #5A5A5E;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: #0a0a0b;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { box-shadow: 0 0 30px rgba(198,255,0,0.3); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
}
.logo-accent { color: var(--lime); }
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); transition: 0.3s; border-radius: 1px;
}

.mnav {
  display: none; position: fixed; top: 60px; left: 12px; right: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  flex-direction: column; gap: 12px; z-index: 90;
}
.mnav.open { display: flex; animation: fadeUp 0.3s ease; }
.mnav a { padding: 14px; border-radius: 10px; font-size: 15px; }
.mnav-overlay {
  position: fixed; inset: 0; z-index: 88;
  background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: 0.3s;
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
}

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

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
  background: transparent;
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(198,255,0,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 90%, rgba(255,61,0,0.04) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg4) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
  padding: 120px 0 80px;
}
.hero-line {
  width: 3px; height: 60px; background: var(--lime);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.accent { color: var(--lime); }
.hero p {
  font-size: 17px; color: var(--text-muted);
  max-width: 440px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 48px; }
.metric-value {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--text);
}
.metric-label { font-size: 13px; color: var(--text-muted); }

/* Hero Visual */
.hero-visual {
  position: relative; width: 100%; aspect-ratio: 4/5;
  max-width: 420px;
}
.silhouette {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(198,255,0,0.05) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative; overflow: hidden;
}
.silhouette::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.silhouette::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(0deg, var(--bg), transparent);
}
.rim-light {
  position: absolute; top: 10%; right: -10%;
  width: 120%; height: 80%;
  border-right: 2px solid rgba(198,255,0,0.3);
  transform: rotate(-5deg);
  filter: blur(1px);
}
.hero-bottom-mist {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(0deg, var(--bg), transparent);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; }
}

/* ========== GLOBAL COSMIC BACKGROUND ========== */
body {
  position: relative;
  overflow-x: hidden;
}

/* Fixed cosmic background */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Stars */
.cosmic-bg .star {
  position: absolute;
  border-radius: 50%;
  background: #C6FF00;
  box-shadow: 0 0 6px rgba(198,255,0,0.8), 0 0 12px rgba(198,255,0,0.4);
  animation: twinkle ease-in-out infinite;
  animation-duration: var(--d, 3s);
  animation-delay: var(--d-delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* Meteors */
.cosmic-bg .meteor {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(198,255,0,0.9), transparent);
  transform: rotate(45deg);
  opacity: 0;
  animation: meteorShoot var(--d, 4s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes meteorShoot {
  0% { opacity: 0; transform: rotate(45deg) translateX(0); }
  5% { opacity: 1; }
  30% { opacity: 0; transform: rotate(45deg) translateX(-300px); }
  100% { opacity: 0; }
}

/* Star bursts */
.cosmic-bg .star-burst {
  position: absolute;
  width: 4px; height: 4px;
  background: #C6FF00;
  border-radius: 50%;
  box-shadow: 0 0 15px 4px rgba(198,255,0,0.9), 0 0 30px 8px rgba(198,255,0,0.5);
  animation: starBurstPulse 3s ease-in-out infinite;
}
@keyframes starBurstPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2); opacity: 1; }
}

/* Comets */
.cosmic-bg .comet {
  position: absolute;
  width: 120px; height: 3px;
  background: linear-gradient(to right, transparent, #C6FF00, rgba(198,255,0,0.8));
  animation: cometShoot 7s linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  box-shadow: 0 0 10px rgba(198,255,0,0.6);
}
@keyframes cometShoot {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  2% { opacity: 1; }
  15% { transform: translateX(-600px) translateY(400px) rotate(-35deg); opacity: 0; }
  100% { opacity: 0; }
}

/* Asteroids */
.cosmic-bg .asteroid {
  position: absolute;
  width: 18px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #666, #222);
  border-radius: 40% 60% 50% 40%;
  animation: asteroidFloat 25s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 15px rgba(100, 100, 100, 0.6);
}
@keyframes asteroidFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(60px, -60px) rotate(90deg); }
  50% { transform: translate(120px, 0) rotate(180deg); }
  75% { transform: translate(60px, 60px) rotate(270deg); }
}

/* Content wrapper to push content above fixed background */
#page-wrapper {
  position: relative;
  z-index: 1;
}

/* ========== SECTION COMMON ========== */
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 12px;
  padding: 6px 14px; border: 1px solid rgba(198,255,0,0.2);
  border-radius: 999px;
}
section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 48px; max-width: 500px; }

/* ========== SPACE BACKGROUND ========== */
/* Make EVERY section a containing block for stars */
.hero,
.programs,
.trainers,
.pricing,
.about,
.booking,
.dumbbell-3d-section {
  position: relative;
  overflow: hidden;
}
.space-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== STARS ===== */
.star {
  position: absolute;
  border-radius: 50%;
  background: #C6FF00;
  box-shadow: 0 0 4px rgba(198,255,0,0.6), 0 0 8px rgba(198,255,0,0.3);
  animation: twinkle ease-in-out infinite;
  animation-duration: var(--d, 3s);
  animation-delay: var(--d-delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ===== METEORS ===== */
.meteor {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(198,255,0,0.8), transparent);
  transform: rotate(45deg);
  opacity: 0;
  animation: meteorShoot var(--d, 4s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes meteorShoot {
  0% { opacity: 0; transform: rotate(45deg) translateX(0); }
  5% { opacity: 1; }
  30% { opacity: 0; transform: rotate(45deg) translateX(-300px); }
  100% { opacity: 0; }
}

/* ===== STAR BURSTS ===== */
.star-burst {
  position: absolute;
  width: 4px; height: 4px;
  background: #C6FF00;
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(198,255,0,0.8), 0 0 24px 6px rgba(198,255,0,0.4);
  animation: starBurstPulse 3s ease-in-out infinite;
}
@keyframes starBurstPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 1; }
}

/* ===== COMETS ===== */
.comet {
  position: absolute;
  width: 100px; height: 2px;
  background: linear-gradient(to right, transparent, #C6FF00, #C6FF00);
  animation: cometShoot 6s linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes cometShoot {
  0% { transform: translateX(0) translateY(0) rotate(-30deg); opacity: 0; }
  2% { opacity: 1; }
  15% { transform: translateX(-500px) translateY(300px) rotate(-30deg); opacity: 0; }
  100% { opacity: 0; }
}

/* ===== ASTEROIDS ===== */
.asteroid {
  position: absolute;
  width: 15px; height: 12px;
  background: radial-gradient(circle at 30% 30%, #888, #333);
  border-radius: 40% 60% 50% 40%;
  animation: asteroidFloat 20s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.5);
}
@keyframes asteroidFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(90deg); }
  50% { transform: translate(100px, 0) rotate(180deg); }
  75% { transform: translate(50px, 50px) rotate(270deg); }
}

/* ===== COSMIC DUST ===== */
.cosmic-dust {
  position: absolute; width: 100%; height: 100%; overflow: hidden;
}
.dust-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(198,255,0,0.3);
  border-radius: 50%;
  animation: dustFloat 15s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes dustFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  25% { opacity: 0.6; }
  50% { transform: translate(100px, -100px); opacity: 0.4; }
  75% { opacity: 0.6; }
}

/* ========== PROGRAMS ========== */
.programs { padding: 100px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: transparent; z-index: 1; }
.programs-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.program-card {
  position: relative; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s;
}
.program-card:hover { border-color: rgba(198,255,0,0.3); transform: translateY(-4px); }
.program-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: transform 0.5s;
}
.program-card:hover .program-bg { transform: scale(1.05); }
.program-content { position: relative; z-index: 1; padding: 28px; }
.program-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
  background: rgba(198,255,0,0.15); color: var(--lime);
}
.program-tag.accent-red { background: rgba(255,61,0,0.15); color: var(--red); }
.program-tag.calm { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.program-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.program-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.program-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); }

.program-card.large { grid-column: span 7; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.program-card:not(.large) { grid-column: span 5; min-height: 170px; }

@media (max-width: 900px) {
  .programs-grid { display: flex; flex-direction: column; }
  .program-card, .program-card.large { grid-column: span 1; min-height: auto; }
}

/* ========== TRAINERS ========== */
.trainers { padding: 100px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: transparent; z-index: 1; }
.trainers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trainer-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s;
}
.trainer-card:hover { border-color: rgba(198,255,0,0.3); transform: translateY(-4px); }
.trainer-img {
  position: relative; height: 280px; overflow: hidden;
}
.trainer-avatar { width: 100%; height: 100%; }
.trainer-rim {
  position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--lime), transparent);
}
.trainer-info { padding: 24px; }
.trainer-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.trainer-spec {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 12px;
}
.trainer-info p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

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

/* ========== PRICING ========== */
.pricing { padding: 100px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: transparent; z-index: 1; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column;
  transition: all 0.3s; position: relative;
}
.price-card:hover { transform: translateY(-4px); }
.price-card:hover .btn-outline { border-color: var(--lime); color: var(--lime); }
.price-card.selected { border-color: var(--lime); box-shadow: 0 0 30px rgba(198,255,0,0.2); }
.price-card.featured { border-color: var(--lime); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--bg);
  padding: 4px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.price-header { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-name { display: block; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.price-sub { font-size: 13px; color: var(--text-muted); }
.price-value {
  font-size: 36px; font-weight: 800; margin-bottom: 24px;
}
.price-value span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.price-features { list-style: none; flex: 1; margin-bottom: 28px; }
.price-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.price-features li::before { content: '✓ '; color: var(--lime); font-weight: 700; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ========== ABOUT ========== */
.about { padding: 100px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: transparent; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text > p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.about-list { list-style: none; }
.about-list li {
  padding: 10px 0; font-size: 15px; color: var(--text-muted);
  padding-left: 16px; border-left: 2px solid var(--lime);
}
.about-visual { height: 500px; }
.about-image {
  width: 100%; height: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { height: 300px; }
}

/* ========== BOOKING ========== */
.booking { padding: 100px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: transparent; z-index: 1; }
.booking-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.booking-content h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.booking-content > p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; line-height: 1.7; }
.booking-checklist { display: flex; flex-direction: column; gap: 10px; }
.check-item { font-size: 15px; color: var(--text-muted); padding-left: 8px; }
.check-item:first-child { color: var(--lime); }

.booking-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.booking-form input, .booking-form select {
  width: 100%; padding: 14px 16px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.booking-form input:focus, .booking-form select:focus { border-color: var(--lime); }
.form-note { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 12px; }

@media (max-width: 900px) {
  .booking-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== FOOTER ========== */
.footer { padding: 60px 0 40px; position: relative; overflow: hidden; background: transparent; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }
.footer-contact p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.footer-contact a { color: var(--lime); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-dim); }

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

/* ========== 3D DUMBBELL ========== */
.dumbbell-3d-section {
  position: relative; height: 60vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(198,255,0,0.03) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.dumbbell-canvas-wrapper {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.dumbbell-canvas-wrapper canvas {
  width: 100% !important; height: 100% !important;
}
