/* ===== 3D DEPTH LAYER (matches the Makos HQ app). Loaded last on the main pages. ===== */
:root {
  --d-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --d-lift-dark: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.45),
    0 2px 3px rgba(0,0,0,0.35), 0 14px 28px -10px rgba(0,0,0,0.7), 0 34px 60px -28px rgba(0,0,0,0.8);
  --d-lift-light: inset 0 1px 0 #ffffff, 0 1px 2px rgba(12,35,64,0.08),
    0 12px 24px -10px rgba(12,35,64,0.22), 0 32px 56px -28px rgba(12,35,64,0.35);
}

/* Hero banners: a cyan floor grid running into the distance */
.home-hero, .about-hero, .price-hero, .tryout-hero { position: relative; overflow: hidden; isolation: isolate; }
.home-hero::after, .about-hero::after, .price-hero::after, .tryout-hero::after {
  content: ''; position: absolute; left: -40%; right: -40%; bottom: 0; height: 75%; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,190,220,0.6) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(0deg, rgba(0,190,220,0.6) 0 2px, transparent 2px 70px);
  transform: perspective(600px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0.85), transparent 85%); mask-image: linear-gradient(0deg, rgba(0,0,0,0.85), transparent 85%);
}

/* Headlines with an extruded edge */
.home-hero h1, .about-hero h1, .price-hero h1, .tryout-hero h1 {
  text-shadow: 0 1px 0 #cfd8e6, 0 2px 0 #a9b8cf, 0 3px 0 #8396b4, 0 4px 0 #627796, 0 5px 0 #46597a,
    0 10px 18px rgba(0,0,0,0.55), 0 0 40px rgba(0,190,220,0.25);
}
.stats-strip .stat .number, .stat .number, .price-big {
  text-shadow: 0 1px 0 #b9c7dd, 0 2px 0 #8fa3c2, 0 3px 0 #6b80a3, 0 6px 12px rgba(0,0,0,0.5);
}

/* Logo floats on a lit stage and turns toward the cursor */
.hero-logo-wrap { perspective: 900px; }
.hero-logo-wrap::after {
  content: ''; position: absolute; left: 15%; right: 15%; bottom: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,190,220,0.6), rgba(0,190,220,0.12) 60%, transparent);
  filter: blur(5px); animation: dShadow 6s ease-in-out infinite;
}
.hero-logo { filter: brightness(1.1) drop-shadow(0 2px 0 rgba(0,0,0,0.6)) drop-shadow(0 18px 22px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(0,190,220,0.4));
  animation: dSway 6s ease-in-out infinite; }
@keyframes dSway { 0%,100% { transform: rotateY(-10deg) rotateX(4deg); } 50% { transform: rotateY(10deg) rotateX(-2deg); } }
@keyframes dShadow { 0%,100% { transform: scaleX(1); opacity: 0.9; } 50% { transform: scaleX(0.8); opacity: 0.55; } }

/* Stats strip: a raised slab */
.stats-strip { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.4), 0 20px 40px -20px rgba(0,0,0,0.6); }

/* Buttons with thickness that press down */
.btn, .cta-button, .pups-button { position: relative; transition: transform 0.15s var(--d-ease), box-shadow 0.15s var(--d-ease), background 0.2s; }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 5px 0 #a8441c, 0 8px 2px rgba(0,0,0,0.25), 0 18px 30px -12px rgba(255,107,53,0.6); }
.btn-primary-dark, .btn-primary-light, .btn-preregister, .cta-button {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 5px 0 #007d96, 0 8px 2px rgba(0,0,0,0.25), 0 18px 30px -12px rgba(0,190,220,0.6); }
.btn-secondary, .btn-secondary-dark { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 5px 0 rgba(0,0,0,0.45), 0 16px 26px -12px rgba(0,0,0,0.6); }
.btn:hover, .cta-button:hover { transform: translateY(-2px); }
.btn:active, .cta-button:active, .pups-button:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 1px 0 rgba(0,0,0,0.4), 0 6px 12px -6px rgba(0,0,0,0.5); }

/* Cards lift off the page, lit from above */
.feature-card, .program-card, .pricing-card, .founder-card, .tryout-detail-card, .contact-card, .payment-card,
.compare-col, .phase-item, .included-item, .coach-reveal-card, .logo-tile, .addr-card, .news-item, .faq-item, .tryout-form-side {
  box-shadow: var(--d-lift-light);
  border-color: rgba(12,35,64,0.08);
}
.dark-content .feature-card, .dark-content .program-card, .dark-content .pricing-card, .dark-content .compare-col, .dark-content .phase-item,
.home-hero .phase-item, .stats-strip .stat, .coach-reveal-card, .logo-tile, .addr-card {
  box-shadow: var(--d-lift-dark);
}
.photo-stack img, .split-right img { box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 24px 40px -16px rgba(0,0,0,0.55); }

/* Tilt + glare (depth.js) */
.d-tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; position: relative; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift, 0px));
  transition: transform 0.5s var(--d-ease), box-shadow 0.3s var(--d-ease); will-change: transform; }
.d-tilt.is-tilting { --lift: -4px; transition: transform 0.08s linear, box-shadow 0.2s; }
.d-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.28), transparent 55%); mix-blend-mode: soft-light; }
.d-tilt.is-tilting .d-glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-logo-wrap::after { animation: none; } .d-tilt { transform: none !important; } }
