:root{
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --border: rgba(255,255,255,.14);
  --glass: rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--fg);
  background:#05060a;
}

.stage{
  position:fixed;inset:0;
  background:center/cover no-repeat fixed;
  z-index:0;
}

body.home .stage{
  background-image:url("/assets/home/bg-home.png");
}

@media (max-width:768px){
  body.home .stage{
    background-image:url("/assets/home/bg-home-mobile.png");
  }
}

/* TEMP: Home overlay disabled */
body.home .stage{
  background-size:cover !important;
  background-position:center center !important;
}
body.home .wrap,
body.home .card,
body.home .nav,
body.home .footer{
  display:none !important;
}

.wrap{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:8vh 6vw;
  text-align:center;
}

body.home .wrap,
body.home .footer{
  z-index:2;
}

.card{
  max-width:980px;
  width:min(980px,92vw);
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:22px;
  padding:28px 26px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 28px 120px rgba(0,0,0,.55);
}

.kicker{
  font:12px/1.2 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  letter-spacing:.38em;
  text-transform:uppercase;
  color:var(--muted);
}

h1{
  margin:.7rem 0 .3rem;
  font-size:42px;
  letter-spacing:.02em;
}

p{
  margin:.4rem 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.nav{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:20px;
}

.btn{
  pointer-events:auto;
  display:inline-block;
  text-decoration:none;
  color:var(--fg);
  padding:12px 18px;
  border-radius:14px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.18);
}

.btn:hover{background:rgba(0,0,0,.38)}

.footer{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:2;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  pointer-events:none;
}

.footer span{
  font:11px/1.2 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  letter-spacing:.38em;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
}

/* HOME background scaling: desktop = show full art (no crop), mobile = immersive crop */
.stage{
  background-repeat:no-repeat;
  background-position:center center;
  background-size:contain; /* desktop: no cropping */
}
@media (max-width: 900px){
  .stage{
    background-size:cover; /* mobile: fill screen */
    background-position:center 30%;
  }
}

/* --- HOME background tuning (full-bleed, preserve focal center) --- */
body[data-page="home"] .stage{
  background-repeat:no-repeat;
  background-size:cover;         /* full-bleed */
  background-position:50% 35%;   /* aim up a bit so top/logo area survives */
}

/* Wider screens: center a touch more (avoid edge loss) */
@media (min-width: 1100px){
  body[data-page="home"] .stage{
    background-position:50% 40%;
  }
}

/* Mobile: use your mobile-specific image and aim higher */
@media (max-width: 900px){
  body[data-page="home"] .stage{
    background-image:url("/assets/home/bg-home-mobile.png") !important;
    background-position:50% 22%;
  }
}

/* ===========================
   HOME — background + overlay
   Goal: NO CROP on desktop, better UI placement
   =========================== */

body[data-page="home"] .stage{
  /* show the whole image */
  background-size:contain !important;
  background-position:50% 0% !important; /* top centered */
  background-repeat:no-repeat !important;
  background-color:#000 !important;      /* fill letterbox */
  filter:none !important;                /* stop extra “zoom feel” */
}

/* Make the main overlay feel like a floating HUD instead of a blocker */
body[data-page="home"] .wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(20px, 4vw, 56px);
}

/* If your UI uses .card (it does in the template), tune it */
body[data-page="home"] .card{
  width:min(980px, 92vw);
  padding: clamp(18px, 2.4vw, 34px);
  border-radius: 22px;
  background: rgba(0,0,0,.32);            /* lighter = less blocking */
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  transform: translateY(3vh);             /* aligns with background composition */
}

/* If your home has a 4-card grid area, tighten and align it */
body[data-page="home"] .grid,
body[data-page="home"] .nav{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Mobile: use the mobile background + allow crop (mobile needs it) */
@media (max-width: 900px){
  body[data-page="home"] .stage{
    background-image:url("/assets/home/bg-home-mobile.png") !important;
    background-size:cover !important;
    background-position:50% 20% !important;
  }

  body[data-page="home"] .card{
    width: min(720px, 92vw);
    transform: translateY(0);
    background: rgba(0,0,0,.40);
  }

  body[data-page="home"] .grid,
  body[data-page="home"] .nav{
    grid-template-columns: 1fr;
  }
}


/* ===========================
   HOME — background + overlay
   Goal: NO CROP on desktop, better UI placement
   =========================== */

body[data-page="home"] .stage{
  /* show the whole image */
  background-size:contain !important;
  background-position:50% 0% !important; /* top centered */
  background-repeat:no-repeat !important;
  background-color:#000 !important;      /* fill letterbox */
  filter:none !important;                /* stop extra “zoom feel” */
}

/* Make the main overlay feel like a floating HUD instead of a blocker */
body[data-page="home"] .wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(20px, 4vw, 56px);
}

/* If your UI uses .card (it does in the template), tune it */
body[data-page="home"] .card{
  width:min(980px, 92vw);
  padding: clamp(18px, 2.4vw, 34px);
  border-radius: 22px;
  background: rgba(0,0,0,.32);            /* lighter = less blocking */
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  transform: translateY(3vh);             /* aligns with background composition */
}

/* If your home has a 4-card grid area, tighten and align it */
body[data-page="home"] .grid,
body[data-page="home"] .nav{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Mobile: use the mobile background + allow crop (mobile needs it) */
@media (max-width: 900px){
  body[data-page="home"] .stage{
    background-image:url("/assets/home/bg-home-mobile.png") !important;
    background-size:cover !important;
    background-position:50% 20% !important;
  }

  body[data-page="home"] .card{
    width: min(720px, 92vw);
    transform: translateY(0);
    background: rgba(0,0,0,.40);
  }

  body[data-page="home"] .grid,
  body[data-page="home"] .nav{
    grid-template-columns: 1fr;
  }
}
