/* ════════════════════════════════════════
   ZEROBIZ CLUB — World-Class Stylesheet
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #b81d1d;
  --red-glow: rgba(184, 29, 29, 0.35);
  --red-deep: #8a1515;
  --black: #0a0a0a;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.45);
  --glass-bg: rgba(12, 12, 12, 0.5);
  --glass-border: rgba(255,255,255,0.12);
  --glass-highlight: rgba(255,255,255,0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-display);
  color: var(--white);
  background: var(--black);
  cursor: default;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ─── WALLPAPER ─── */
.wallpaper {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.wallpaper-img {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover; object-position: center;
  filter: brightness(0.55) saturate(1.2) contrast(1.15);
  animation: bgDrift 25s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bgDrift {
  0%   { transform: scale(1.04) translate(0, 0); }
  33%  { transform: scale(1.07) translate(-0.8%, 0.5%); }
  66%  { transform: scale(1.05) translate(0.5%, -0.8%); }
  100% { transform: scale(1.08) translate(-0.3%, 0.3%); }
}
.wallpaper::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(184,29,29,0.08) 100%
  );
}

/* ─── GRID OVERLAY ─── */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 30s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

/* ─── FLOATING PARTICLES ─── */
.particles {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── GRAIN ─── */
.grain {
  position: fixed; inset: -50%; z-index: 2; width: 200%; height: 200%;
  opacity: 0.025; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .4s steps(3) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 25%{transform:translate(-2%,-1%)} 50%{transform:translate(1%,2%)} 75%{transform:translate(-1%,1%)} 100%{transform:translate(2%,-2%)}
}

/* ─── VIGNETTE ─── */
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* ─── CURSOR GLOW ─── */
.cursor-glow {
  position: fixed; z-index: 3; pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: left, top;
}
body:hover .cursor-glow { opacity: 1; }

/* ─── CORNER DECO ─── */
.ct {
  position: fixed; z-index: 15;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,0.2); text-transform: uppercase;
}
.ct.tl { top: 22px; left: 24px; }
.ct.tr { top: 22px; right: 24px; text-align: right; }

/* ─── MAIN LAYOUT ─── */
.site-wrap {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
}

/* ─── HERO SECTION ─── */
.hero {
  width: 100%; max-width: 480px;
  padding: 48px 20px 40px;
  display: flex; flex-direction: column; align-items: center;
}

/* ─── HEADER / LOGO ─── */
.header {
  width: 100%; text-align: center;
  margin-bottom: 20px;
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) both;
}
.logo-img-wrap {
  position: relative; display: inline-block; margin-bottom: 4px;
}
.logo-img-wrap::before {
  content: ''; position: absolute; inset: -24px;
  background: radial-gradient(ellipse, var(--red-glow) 0%, transparent 65%);
  filter: blur(30px);
  animation: logoGlow 4s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { opacity: .3; transform: scale(.9); }
  to   { opacity: .7; transform: scale(1.06); }
}
.logo-img {
  width: 280px; max-width: 70vw;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 40px rgba(184,29,29,.2)) drop-shadow(0 2px 12px rgba(0,0,0,.3));
}
.subline {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 6px; color: var(--muted);
  text-transform: uppercase; margin-top: 8px;
}

/* ════════════════════════════════════
   GLASS CARD
   ════════════════════════════════════ */
.card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  padding: 42px 36px;
  position: relative;
  overflow: visible;
  animation: riseIn .9s .18s cubic-bezier(.22,1,.36,1) both;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.5),
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 var(--glass-highlight);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* Card mouse-track glow */
.card-glow {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(184,29,29,0.08), transparent 40%);
}
.card:hover .card-glow { opacity: 1; }

.card-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 5px;
  color: var(--red); text-transform: uppercase; margin-bottom: 12px;
}
.card-title {
  font-size: 34px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1;
  margin-bottom: 10px; color: var(--white);
}
.card-desc {
  font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 28px;
}

/* ─── STEP TAG ─── */
.step-tag {
  position: absolute; top: 0; right: 0;
  border-bottom-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--white); background: rgba(184,29,29,0.5);
  letter-spacing: 3px;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
}

/* ════════════════════════════════════
   INPUTS
   ════════════════════════════════════ */
.field { margin-bottom: 18px; text-align: left; }
label {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 4px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; margin-bottom: 8px;
}
input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-mono); font-size: 15px; color: var(--white);
  outline: none;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(8px);
}
input::placeholder { color: rgba(255,255,255,0.25); }
input:focus {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px rgba(184,29,29,0.15), 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.btn {
  width: 100%; margin-top: 14px; padding: 18px 24px;
  background: var(--white);
  border: none; border-radius: var(--radius-sm); color: var(--black);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn:hover::after { transform: translateX(100%); }
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 20px var(--red-glow);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Social action buttons (red variant) */
.btn-social {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-social:hover {
  background: linear-gradient(135deg, #d32222 0%, var(--red) 100%);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 30px var(--red-glow);
}

/* ─── ERROR & HINTS ─── */
.err-msg {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  letter-spacing: 1px; text-align: center; min-height: 18px; margin-top: 10px;
}
.hint-txt {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 2.5px; text-align: center; margin-top: 18px; font-style: italic;
}
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  margin: 22px 0;
}
.foot-note {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px;
  color: var(--muted); text-align: center; line-height: 2; text-transform: uppercase;
}

/* ─── SUCCESS PAGE ─── */
.success-glyph {
  font-size: 56px; display: block; margin-bottom: 20px; color: var(--red);
  filter: drop-shadow(0 0 20px var(--red-glow));
  animation: popIn .6s cubic-bezier(.175,.885,.32,1.4) both;
}
@keyframes popIn {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.success-h {
  font-size: 38px; font-weight: 800; letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 14px;
}
.success-p { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ═══════════════════════════
   PAGES / TRANSITIONS
   ═══════════════════════════ */
.page {
  display: none; width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}
.page.active {
  display: flex; flex-direction: column; align-items: center;
  animation: pageIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
.page.exit {
  animation: pageOut .4s cubic-bezier(.55,.06,.68,.19) forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(0.98); }
}

/* ─── FLASH RING ─── */
.flash-ring {
  position: fixed; z-index: 50; border-radius: 50%;
  border: 1.5px solid var(--red);
  pointer-events: none;
  width: 80px; height: 80px; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0); opacity: 0;
}
.flash-ring.pop { animation: ringPop .55s ease forwards; }
@keyframes ringPop {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: .8; border-color: var(--red); }
  100% { transform: translate(-50%,-50%) scale(14); opacity: 0; border-color: transparent; }
}

/* ─── SHAKE ─── */
.shake { animation: shk .35s ease; }
@keyframes shk {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════
   FAQ SECTION
   ════════════════════════════════════ */
.faq-section {
  width: 100%; max-width: 640px;
  padding: 0 20px 80px;
  margin-top: 80px;
  display: flex; flex-direction: column; align-items: center;
}
.faq-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 6px; color: rgba(255,255,255,0.3);
  text-transform: uppercase; margin-bottom: 28px;
  text-align: center;
}
.faq-list {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.18);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,0.85); text-align: left; gap: 16px;
  transition: color .2s;
}
.faq-q:hover { color: var(--red); }
.faq-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .35s cubic-bezier(.22,1,.36,1);
}
.faq-chevron svg {
  width: 12px; height: 12px;
  stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(184,29,29,0.2);
  border-color: var(--red);
}
.faq-item.open .faq-chevron svg { stroke: var(--red); }
.faq-item.open .faq-q { color: var(--red); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .3s;
  padding: 0 24px;
}
.faq-body p {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 14px;
  font-family: var(--font-mono); letter-spacing: .3px;
}
.faq-item.open .faq-body {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ─── FOOTER ─── */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 10;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px; letter-spacing: 6px; color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(184,29,29,0.25); border-radius: 2px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 520px) {
  .hero { padding: 32px 16px 32px; }
  .card { padding: 32px 24px; border-radius: 16px; }
  .card-title { font-size: 28px; }
  .logo-img { width: 220px; }
  .ct { display: none; }

  /* ── Mobile background fix: show full image ── */
  .wallpaper {
    background: var(--black);
  }
  .wallpaper-img {
    /* Reset the bleed offsets used on desktop */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Show full image without any cropping */
    object-fit: contain;
    object-position: center center;
    /* Slightly dim but keep full visibility */
    filter: brightness(0.6) saturate(1.1) contrast(1.1);
    /* Kill drift animation so it doesn't scale and crop */
    animation: none;
    transform: none;
  }
  /* Softer overlay on mobile so image stays visible */
  .wallpaper::after {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.2) 40%,
      rgba(0,0,0,0.55) 100%
    );
  }
}
