/* ===== Base ===== */
:root{
  --bg: #050507;
  --text: #f3f3f6;
  --muted: rgba(243,243,246,.72);
  --card: rgba(8,8,10,.68);
  --stroke: rgba(255,255,255,.08);
  --accent: #b10012;
  --accent2:#6f000a;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 16px 18px;
  position:relative;
  overflow:hidden;
}

/* ===== Background ===== */
.bg{
  position:absolute; inset:0;
  background-image:
    radial-gradient(1200px 800px at 50% 30%, rgba(140,0,10,.22), transparent 60%),
    url("hero.webp");
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.08) contrast(1.06);
  transform: scale(1.08);
  opacity:.25;
}
.vignette{
  position:absolute; inset:-1px;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(0,0,0,.05), rgba(0,0,0,.75) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.82));
  pointer-events:none;
}

/* ===== Card ===== */
.card{
  width:min(860px, 96vw);
  padding:22px 22px 18px;
  border:1px solid var(--stroke);
  background:var(--card);
  backdrop-filter: blur(10px);
  border-radius:20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  text-align:center;
  position:relative;
}

.logo-wrap{
  width:min(720px, 92vw);
  margin:0 auto 18px;
  position:relative;
}

.logo{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
}

/* ===== Blood Drips ===== */
.drips{
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:160px;
  pointer-events:none;
  overflow:visible;
  mix-blend-mode: normal;
}

.drip{
  position:absolute;
  bottom:0;
  left:50%;
  width:10px;
  height:10px;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.55));
  opacity:.95;
  animation: dripFall var(--dur, 2.8s) ease-in-out var(--delay, 0s) infinite;
}

.drip::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:8px;
  width:2px;
  height:var(--trail, 46px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(177,0,18,.0), rgba(177,0,18,.75), rgba(111,0,10,.95));
  border-radius:999px;
}

.drip::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:var(--dropw, 12px);
  height:var(--droph, 18px);
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, rgba(255,120,120,.32), rgba(177,0,18,.92) 45%, rgba(111,0,10,1));
  border-radius: 50% 50% 55% 55%;
}

@keyframes dripFall{
  0%   { transform: translateX(-50%) translateY(0) scale(0.9); opacity:0; }
  10%  { opacity:1; }
  60%  { transform: translateX(-50%) translateY(var(--fall, 120px)) scale(1.0); opacity:1; }
  85%  { opacity:.45; }
  100% { transform: translateX(-50%) translateY(calc(var(--fall, 120px) + 30px)) scale(.92); opacity:0; }
}

/* ===== Type + Form ===== */
h1{
  margin:6px 0 6px;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sub{
  margin:0 auto 16px;
  color:var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 56ch;
  line-height:1.5;
}

.notify{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin: 10px auto 8px;
  flex-wrap:wrap;
}

.notify input{
  width:min(420px, 86vw);
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color:var(--text);
  outline:none;
}
.notify input:focus{
  border-color: rgba(177,0,18,.55);
  box-shadow: 0 0 0 4px rgba(177,0,18,.15);
}

.notify button{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(177,0,18,.92), rgba(111,0,10,1));
  color:var(--text);
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  transition: transform .08s ease, filter .12s ease;
}
.notify button:hover{ filter: brightness(1.08); }
.notify button:active{ transform: translateY(1px); }

.fineprint{
  margin:6px 0 0;
  color: rgba(243,243,246,.55);
  font-size: 12px;
}

.footer{
  margin-top:16px;
  color: rgba(243,243,246,.45);
  font-size: 12px;
  position:relative;
  z-index:1;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip: rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ===== Mobile tweaks ===== */
@media (max-width:480px){
  .card{ padding:18px 14px 14px; border-radius:18px; }
  .drips{ height:140px; }
}


/* Fade-out form controls after successful submit */
.form-controls{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  transition: opacity .4s ease, transform .4s ease, filter .4s ease;
}
.notify.is-success .form-controls{
  opacity: 0;
  transform: translateY(6px);
  filter: blur(1px);
  pointer-events:none;
}

/* Thank-you message fade-in */
.thanks{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(243,243,246,.85);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.thanks.show{
  opacity: 1;
  transform: translateY(0);
}

/* Error message */
.error{
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,180,180,.92);
}


.notify button:disabled{
  opacity: .75;
  cursor: not-allowed;
}


/* Make the name inputs sit nicely */
.notify .form-controls{
  width: 100%;
}

.notify .form-controls input{
  width: min(420px, 86vw);
}

/* On larger screens, show first/last side-by-side */
@media (min-width: 640px){
  .notify .form-controls input#firstName,
  .notify .form-controls input#lastName{
    width: calc((min(420px, 86vw) - 10px)/2);
  }
}


.working{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(243,243,246,.72);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.working.show{
  opacity: 1;
  transform: translateY(0);
}


.already{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(243,243,246,.8);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.already.show{
  opacity: 1;
  transform: translateY(0);
}


/* Consent banner */
.consent{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  z-index: 9999;
}
.consent__card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(15,15,20,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}
.consent__text{
  font-size: 13px;
  color: rgba(243,243,246,.9);
}
.consent__actions{
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent__actions button{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(243,243,246,.95);
  cursor: pointer;
}
.consent__actions button:hover{
  background: rgba(255,255,255,.12);
}
