/* ======================================
   GLOBAL DESIGN TOKENS
   ====================================== */

:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --max: 1280px;
}

/* ======================================
   GLOBAL RESET
   ====================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ======================================
   GLOBAL WIDTH LOCK
   ====================================== */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Media safety */
img,
video,
iframe,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================================
   BODY
   ====================================== */

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.85)),
    url("../images/background.jpg") center / cover no-repeat fixed;
}

/* ======================================
   LAYOUT CONTAINER
   ====================================== */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ======================================
   HEADER
   ====================================== */

.site-header {
  width: 100%;
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-logo {
  max-height: 72px;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

/* ======================================
   HERO
   ====================================== */

.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.subhead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
  padding: 0 12px;
}

/* ======================================
   FOOTER
   ====================================== */

.site-footer {
  width: 100%;
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 48px 0;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-disclaimer p {
  margin-bottom: 10px;
}

.footer-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ======================================
   MOBILE – DESKTOP-LIKE, NO OVERLAP
   ====================================== */

@media (max-width: 768px) {

  body {
    background-attachment: scroll;
  }

  /* Allow wrap instead of overlap */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 0;
  }

  /* Brand stays first row */
  .brand {
    flex: 1 1 auto;
  }

  .brand-logo {
    max-height: 46px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  /* Nav moves to next line only if needed */
  .nav {
    flex: 1 1 100%;
    justify-content: center;
    gap: 12px;
  }

  .nav a {
    font-size: 0.9rem;
  }

  /* HERO SCALE */
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  body {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ======================================
   SMALL MOBILE TIGHTENING
   ====================================== */

@media (max-width: 480px) {
  .brand-logo {
    max-height: 42px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav a {
    font-size: 0.85rem;
  }
}
