/* Video hero background styles (MP4) */
.hero-viewport{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  background-color:#0c222f; /* brand dark blue fallback */
}

.hero-viewport .hero-video{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  min-width:100%;
  min-height:100%;
  width:auto;
  height:auto;
  object-fit:cover;
  filter: saturate(0.85) contrast(0.95) brightness(0.62);
}

/* Ensure app content sits above the hero */
.app-bg, .topbar, .page, .site-footer, .main-content{
  position: relative;
  z-index: 1;
}

/* Reduced motion and smaller screens: use poster/static image and stop autoplay for perf */
@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .hero-viewport .hero-video{ display:none; }
  .hero-viewport{ background-image: url('/static/img/hero.jpg'); background-size:cover; background-position:center center; }
}

/* Hero content styles */
.hero-section{
  position:relative;
  z-index:2;
  min-height: calc(100vh - 72px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:72px 24px;
  color: #fff;
}
.hero-inner{
  max-width:980px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.hero-eyebrow{letter-spacing:4px;color:rgba(255,255,255,0.9);font-weight:700;margin:0;font-family:"Roboto Mono",monospace}
.hero-title{font-size:132px;line-height:1.02;margin:2px 0 4px 0;font-weight:700;letter-spacing:1.2px;text-shadow:0 6px 18px rgba(12,34,47,0.28);color:#fff;background:linear-gradient(90deg,#fafafa,var(--nav-bright));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-family:"Roboto Condensed",sans-serif;text-transform:uppercase}
.hero-logo{width:132px;height:132px;margin:8px auto 8px;display:block;border-radius:999px;background:linear-gradient(90deg,var(--nav-bright),var(--nav-mid));padding:16px}
.hero-sub{font-size:20px;opacity:0.95;margin:6px 0 8px;color:rgba(255,255,255,0.92);max-width:820px;font-family:"Roboto Mono",monospace}

/* Small credit below the product name */
.hero-by{font-size:15px;color:rgba(255,255,255,0.85);margin-top:4px;font-weight:600;letter-spacing:0.6px}

/* CTA spacing: keep CTA tight under subheading */
.hero-cta{margin-top:6px}
.hero-cta{padding:8px 16px;border-radius:999px;font-size:15px}

@media (max-width: 900px){
  .hero-title{font-size:48px}
  .hero-logo{width:88px;height:88px;padding:12px}
  .hero-sub{font-size:16px}
  .hero-by{font-size:14px}
  .hero-section{padding:48px 18px}
}

/* Auth / Login improvements */
.auth-wrapper{
  max-width:520px;
  margin:40px auto;
  padding:0 18px;
}
.auth-card{border-radius:20px;overflow:hidden;background:var(--surface)}
.auth-card .card-body{display:flex;flex-direction:column;align-items:center;gap:12px}
.auth-form{width:100%;max-width:420px}

/* Narrow and center the logo/card inside the auth card to keep it visually aligned
   with the "Sign in to RAISE" text and avoid the wide floating card look. */
.auth-card .center-logo-card{
  max-width:260px;
  margin:0 auto 6px auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.auth-form .form-label{display:block;margin-bottom:6px;font-weight:700;color:var(--text);font-family:"Roboto Mono",monospace}
.auth-form .form-control{width:100%;padding:10px 12px;border-radius:8px;border:1px solid rgba(12,34,47,0.08);font-family:"Roboto Mono",monospace}
.auth-links .link-plain{color:var(--primary);text-decoration:none;font-weight:700}
.auth-links .link-plain:hover{opacity:0.9;text-decoration:underline}

@media (max-width:600px){
  .auth-wrapper{margin:24px auto}
  .auth-card .card-body{padding:18px}
  .auth-form{max-width:100%}
}
