@import url('https://fonts.googleapis.com/css2?family=Baskervville+SC&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lexend:wght@100..900&family=Poppins:wght@300;400;600;700;800&display=swap');

:root { --nav-h: 70px; }

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Loader */
#loader {
  position: fixed; inset: 0;
  background: #000;
  z-index: 2000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  opacity: 1;
  transition: opacity .5s ease;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden; /* prevents invisible tap-blocks */
}
#loader-logo { width: 120px; margin-bottom: 18px; }
#loader-message { font-size: 1.2rem; font-weight: 500; margin-bottom: 12px; }
#loader-text { font-size: 1.5rem; color: #00f0ff; font-weight: 600; }

.loader-anim { width: 80px; height: 80px; margin: 6px 0 4px; }
.ring { width: 80px; height: 80px; display: block; animation: spin 1.6s linear infinite; filter: drop-shadow(0 0 10px rgba(0,240,255,.25)); }
.ring .track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 6; }
.ring .arc { fill: none; stroke: #00f0ff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 95 120; animation: dash 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: -65; } 100% { stroke-dashoffset: -190; } }
@media (prefers-reduced-motion: reduce) { .ring, .ring .arc { animation: none !important; } }

/* Background Video / Overlay */
#bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none; /* tapping never hits the video */
  transform: scale(1.1) translateX(-5%);
  transform-origin: center;
}
.video-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.11);
  z-index: 0;
  pointer-events: none;
}

/* Main content sits under a fixed nav; account for iOS safe-area */
main {
  position: relative;
  z-index: 10;
  margin-top: calc(var(--nav-h) + env(safe-area-inset-top));
}
main a { color: #fff; }

/* Hero */
.section-1 {
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
  padding: 0 24px;
  width: 100%;
}
.hero-fore {
  text-align: center;
  max-width: 1100px;
  width: min(92vw, 1100px);
  position: relative;
}
@media (min-width: 769px) { .hero-fore { transform: translateY(-8vh); } }
@media (max-width: 768px) { .hero-fore { transform: translateY(-4vh); } }

/* Aura behind hero text */
.hero-fore::before {
  content: "";
  position: absolute;
  inset: -10% -8% -12% -8%;
  background:
    radial-gradient(58% 42% at 50% 58%, rgba(0,0,0,0.52), transparent 72%),
    radial-gradient(30% 22% at 50% 42%, rgba(0,0,0,0.28), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: clamp(24px, 3.6vw, 44px);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 0 1px rgba(255,255,255,.35);
}
.mega-title {
  margin-top: 6px; line-height: .98; font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(32px, 6.8vw, 68px);
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #ffffff 0%, #e7faff 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 1px rgba(255,255,255,.45), 0 2px 22px rgba(0,0,0,.55), 0 12px 38px rgba(0,0,0,.45);
  animation: sheen 10s linear infinite;
  position: relative;
}
.mega-title::after {
  content: "";
  position: absolute; left: 15%; right: 15%; bottom: -12px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,240,255,.7) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: sweep 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0,240,255,.48));
}
.subtitle { margin-top: 24px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 700; text-shadow: 0 10px 28px rgba(0,0,0,.55); }
.bodycopy { margin-top: 10px; font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,.92); text-shadow: 0 10px 28px rgba(0,0,0,.55); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); filter: blur(6px); will-change: transform, opacity, filter; }
.page-ready .reveal { animation: revealUp .7s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes revealUp { to { opacity:1; transform:translateY(0); filter:blur(0); } }
@media (prefers-reduced-motion: reduce){ .reveal, .page-ready .reveal { animation:none !important; opacity:1 !important; transform:none !important; filter:none !important; } }

/* CTAs */
.section-2 { margin-top: 18px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
#uprighticon { transition: transform 0.3s ease; transform: rotate(45deg); margin-left: 10px; }
.letter-button {
  position: relative; background: transparent; border: 1px solid rgba(255,255,255,.40);
  color: #ffffff; border-radius: 14px; padding: 0 24px; display: inline-flex; gap: 2px;
  align-items: center; justify-content: center; height: 56px; font-size: 18px; font-weight: 600;
  transition: all .4s ease; overflow: hidden; z-index: 1; box-shadow: 0 4px 12px rgba(0, 240, 255, 0.20);
}
.letter-button::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.26), transparent 70%);
  transform: scale(0); transition: transform 0.4s ease; z-index: 0;
}
.letter-button span { position: relative; z-index: 1; display: inline-block; transform-origin: center; transition: transform 0.6s ease, color 0.3s ease; }
.letter-button:hover { color: #00f0ff; border-color: rgba(0,240,255,.85); box-shadow: 0 10px 28px rgba(0, 240, 255, 0.30); transform: translateY(-1px); }
.letter-button:hover::before { transform: scale(1.5); opacity: 1; }
.letter-button:hover span { animation: spinY 0.6s forwards; }
@keyframes spinY { 0% { transform: rotateY(0deg); opacity: 1; } 50% { transform: rotateY(90deg); opacity: 0.4; } 100% { transform: rotateY(0deg); opacity: 1; color: #00f0ff; } }

/* Misc anim */
@keyframes sheen { 0% {background-position: 200% 0;} 100% {background-position: -200% 0;} }
@keyframes sweep { 0% {background-position: 200% 0;} 100% {background-position: -200% 0;} }

/* Mobile tweaks */
@media (max-width: 768px) {
  .section-1 { min-height: calc(100svh - var(--nav-h)); padding: 0 16px; }
  .subtitle { margin-top: 18px; }
  .section-2 { gap: 12px; }
  .letter-button { width: 100%; height: 54px; font-size: 17px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-up { animation: none; opacity: 1; transform: none; }
  .mega-title { animation: none; }
  .mega-title::after { animation: none; }
  .letter-button:hover span { animation: none; }
}