/* Page layout: floating glass nav (Warzone), centered IW4x hero, hairline sections, subpage header, compact footer */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3.2vw, 2.25rem);
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3.2vw, 2.25rem);
}

/* ---- Floating Translucent Glass Navbar (Warzone-inspired) ---- */
.nav-wrap {
  position: fixed;
  top: 0.9rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(0.85rem, 2.5vw, 1.75rem);
  pointer-events: none;
}

.site-header {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 58px;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(20, 20, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.brand-logo {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.9rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-strong);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  max-width: var(--container-max);
  margin: 0.5rem auto 0;
  padding: 0.75rem 1.15rem 1rem;
  background: rgba(20, 20, 25, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .nav-link:last-child {
  border-bottom: none;
}

/* ---- Centered Full-Bleed Hero (IW4x primary + steamgrid-hero.svg) ---- */
.hero {
  position: relative;
  min-height: min(80vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-offset) + 1.75rem) 0 2rem;
  overflow: hidden;
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 21, 0.35) 0%, rgba(17, 17, 21, 0.58) 65%, var(--bg-base) 100%),
    url("../assets/steamgrid-hero.svg") center / cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(230px, 38vw, 370px);
  height: auto;
  margin-bottom: 0.95rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 400;
  color: var(--text-body);
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hero-cta .btn {
  min-width: 178px;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}

.hero-divider {
  width: 240px;
  height: 1px;
  background: var(--border-strong);
  margin-bottom: 1rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-body);
  font-weight: 500;
}

.hero-links a:hover {
  color: #ffffff;
}

.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hero-scroll:hover {
  color: #ffffff;
}

/* ---- Subpage Header Band (Install, Docs, FAQ) ---- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-offset) + 2.75rem) 0 2.75rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 21, 0.55) 0%, var(--bg-base) 100%),
    url("../assets/steamgrid-hero.svg") center top / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-hi);
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.65rem;
}

.page-lead {
  max-width: 62ch;
  font-size: 1rem;
  color: var(--text-dim);
}

/* ---- Landing Sections (IW4x hairline rhythm) ---- */
.section {
  padding: var(--space-section) 0;
  scroll-margin-top: var(--nav-offset);
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-center-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.section-center-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.section-center-head p {
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* IW4x borderless 3x2 feature grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

/* IW4x 2-column Getting Started split */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
  max-width: 880px;
  margin: 0 auto;
}

/* ---- Documentation Split Workspace ---- */
.docs-shell {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-offset) + 0.5rem);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.docs-content {
  min-width: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---- Compact Centered Footer (IW4x-inspired) ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-void);
  padding: 2rem 0 0;
  text-align: center;
  color: var(--text-dim);
}

.footer-logo {
  height: 26px;
  width: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.92;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--text-body);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-legal {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--bg-panel-hi) 0%, var(--blue) 50%, var(--bg-panel-hi) 100%);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-shell {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-actions .btn-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .pillars-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .hero-platforms {
    padding-left: 0;
    border-left: none;
    width: 100%;
    justify-content: center;
  }
}
