/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #030303; color: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: #030303;
  height: 56px;
}

.header-top { height: 56px; }

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { height: 30px; width: auto; }
.header-actions { display: flex; align-items: center; }

/* ===== SIGN UP BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 26px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-signup { background: #08DEED; color: #000; }
.btn-signup:hover {
  background: #00c4d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8,222,237,0.4);
}

/* ===== REGISTER BUTTON ===== */
.btn-register {
  display: inline-block;
  background: #FF00FF;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  padding: 24px 72px;
  border-radius: 8px;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.5s ease;
}

.btn-register:hover::before { left: 100%; }
.btn-register:hover {
  background: #e600e6;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,0,255,0.55), 0 0 60px rgba(255,0,255,0.2);
  animation: none;
}
.btn-register:active { transform: translateY(0) scale(0.98); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(255,0,255,0.45); }
  50%       { box-shadow: 0 0 42px rgba(255,0,255,0.75), 0 0 70px rgba(255,0,255,0.2); }
}
.btn-register { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ===== HERO — DESKTOP ===== */
main { margin-top: 56px; }
.hero { display: block; }

/* Clip to viewport height */
.hero-clip {
  width: 100%;
  height: calc(100vh - 56px);
  overflow: hidden;
  position: relative;
}

/* Image fills exactly the clip — object-fit:cover scales uniformly */
.hero-desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-mobile { display: none; }

/* Button — top set by JS in pixels, translateY(-50%) centers it on that point */
.hero-content {
  position: absolute;
  top: 75%; /* fallback CSS, overridden by JS */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.hero-content .btn-register { pointer-events: auto; }

/* ===== MOBILE ≤768px ===== */
@media (max-width: 768px) {
  body { overflow-y: auto; }

  .hero-clip {
    height: auto;
    overflow: visible;
  }

  .hero-desktop { display: none; }

  /* Natural aspect ratio — no cropping, no distortion */
  .hero-mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  /* hero-img-box wraps mobile img for relative positioning */
  .hero-img-box {
    position: relative;
    line-height: 0;
  }

  .hero-content {
    /* top set by JS — 31.5% of mobile image height */
    top: 31.5%;
  }

  .btn-register {
    font-size: 18px;
    padding: 22px 0;
    width: 80%;
    max-width: 300px;
    text-align: center;
  }

  .logo-svg { height: 27px; }
  .btn { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  .header-top .container { padding: 0 14px; }
  .logo-svg { height: 24px; }
  .btn { padding: 7px 14px; font-size: 12px; }
  .btn-register { font-size: 16px; width: 84%; }
}

@media (max-width: 360px) {
  .btn-register { font-size: 15px; width: 88%; }
}
