/* WarPlanet one-screen landing (v5)
   Goal: keep previous page structure, only change the faction rotator to 512x512 image box with translucent text overlay.
*/

:root{
  --bg1:#050913;
  --bg2:#0b1022;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --border2: rgba(255,255,255,0.25);
}

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

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 30%, rgba(110,170,255,0.18), transparent 55%),
    radial-gradient(900px 700px at 70% 25%, rgba(255,180,80,0.10), transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  background: url("../img/hero.webp") center/cover no-repeat;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.55) 100%),
    radial-gradient(900px 700px at 70% 30%, rgba(0,0,0,0.12), rgba(0,0,0,0.55));
  pointer-events:none;
}

.lang-switch{
  position:absolute;
  top:18px;
  right:18px;
  display:inline-flex;
  gap:8px;
  z-index:3;
}

.lang-btn{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color:#fff;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  letter-spacing:0.5px;
}

.lang-btn.is-active{
  background: rgba(255,255,255,0.92);
  color:#111;
  border-color: rgba(255,255,255,0.92);
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:56px 24px 40px;
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:28px;
  align-items:center;
  min-height:100vh;
  width:100%;
}

.logo-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 6px;
}

.logo-img{
  width: 400px;
  height: 190px;
}

.logo-text{
  font-weight: 950;
  letter-spacing: 2px;
  font-size: 18px;
}

.hero-subtitle{
  font-size:18px;
  margin: 6px 0 14px 0;
  opacity:0.92;
}

.hero-lead{
  font-size:16px;
  line-height:1.55;
  margin:0 0 16px 0;
  max-width: 72ch;
}

.hero-bullets{
  margin:0 0 18px 0;
  padding-left: 18px;
}
.hero-bullets li{ margin: 8px 0; line-height: 1.35; }

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn{
  padding:12px 16px;
  border-radius: 10px;
  text-decoration:none;
  display:inline-block;
  user-select:none;
  font-weight: 800;
}

.btn-primary{ background: rgba(255,255,255,0.92); color:#111; }
.btn-secondary{ background: rgba(255,255,255,0.14); color:#fff; border: 1px solid var(--border2); }
.is-disabled{ opacity:0.55; cursor:not-allowed; }

.hero-footnote{
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.78;
  max-width: 80ch;
  color: var(--muted);
}

.hero-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
}

/* NEW ROTATOR LOOK: 512x512 image-filled box + translucent text overlay */
.faction-box{
  width: 512px;
  height: 512px;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 40px 90px rgba(0,0,0,0.60);
}

.faction-text-bg{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 18px 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.68));
  backdrop-filter: blur(6px);
}

.faction-name{
  font-weight: 950;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.faction-desc{
  opacity: 0.92;
  line-height: 1.45;
}

.faction-dots{
  display:flex;
  justify-content:center;
  gap:8px;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
}
.dot.is-active{ background: rgba(255,255,255,0.90); border-color: rgba(255,255,255,0.90); }

.side-note{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  text-align:center;
  max-width: 40ch;
}

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

/* Mobile */
@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
    min-height:auto;
    padding-top: 84px;
    padding-bottom: 48px;
  }
  .hero{ min-height:auto; }
  .logo-text{ font-size: 16px; }
  .faction-box{ width: 320px; height: 320px; border-radius: 16px; }
}

/* Footer overlay (sticks to bottom of the viewport if hero fills it; does not add scroll) */
.site-footer{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 16px 16px;
  text-align: center;
  pointer-events: none;
}

.footer-line{
  max-width: 1200px;
  margin: 0 auto 10px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.footer-text{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

/* Give a little breathing room so content doesn't clash with the footer on smaller screens */
.hero-inner{
  padding-bottom: 70px;
}
