/* Reset-ish */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg: #0b0d10;
  --fg: #eef2f5;
  --muted: #cfd6dd;
  --accent: #ff3d5a;
  --accent-2: #ffd166;
}

html, body {
  height:100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
}

/* Background video fills screen */
#background{
  position:fixed; inset:0; overflow:hidden; z-index:0; /* keep the video above the page background */
}
.bg-video{
  width:100vw; height:100vh; object-fit:cover;
  filter: saturate(1.1) contrast(1.08) brightness(1.02);
  transition: filter 0.8s ease-out;
}
#fallback-image{
  width:100vw; height:100vh; object-fit:cover; position:absolute; top:0; left:0; z-index:1;
}
.overlay{
  position:absolute; inset:0;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(0,0,0,0.0), rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.8));
  z-index:1; /* overlay above video */
}

/* Center stage content */
.center-stage{
  position:relative;
  min-height:100dvh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:1.2rem; padding: 2rem;
  text-align:center;
  z-index:2; /* content above overlay */
}
.title{
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(2.8rem, 5.2vw + 1rem, 6.5rem);
  text-shadow: 0 8px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}
.subtitle{
  max-width: 72ch;
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw + 0.4rem, 1.5rem);
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Button */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  text-decoration:none;
  font-weight: 500;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.9s forwards;
}
.btn-primary{
  background: rgba(255,255,255,.08);
  color: var(--fg);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.btn-primary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.btn-primary:active{
  transform: translateY(0);
  transition-duration: 0.1s;
}

.cta-wrap{
  margin-top: 0.5rem;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Footer */
.credit{
  position:fixed; left:0; right:0; bottom:0; display:flex;
  justify-content:center; padding: .8rem 1rem;
  font-size:.8rem; color: rgba(255,255,255,.7);
  text-shadow: 0 4px 18px rgba(0,0,0,.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .title, .subtitle, .btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #background{ background: linear-gradient(180deg, #0b0d10, #12161a); }
}
