/* ==========================================================
   Root Variables
   ========================================================== */
:root {
  --bg: #000000;
  --bg-alt: #0e152b;
  --text: #e8ebf0;
  --muted: #a9b0c3;
  --brand: #6eb1ff;
  --brand-2: #9ad6ff;
  --logo-yellow: #ffd21f;
  --border: #1b2442;
  --headline-fill: #ffffff;
  --headline-outline: #02040a;
  --headline-font: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;

  /* --- Spacing scale --- */
  --space-xs: 0.5rem;
  --space-sm: 0.8rem;
  --space-md: 1.2rem;
  --space-lg: 1.8rem;
  --space-xl: 2.4rem;

  /* --- Component-specific spacing --- */
  --card-padding: clamp(1rem, 2vw, 1.6rem);
  --card-margin: clamp(0.8rem, 1.5vw, 1.2rem);
}

/* ==========================================================
   Global Resets & Base Styles
   ========================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 80%;          /* default for large screens */
  margin: 0 auto;
  padding-inline: 0.8rem;
}




/* ==========================================================
   Header
   ========================================================== */
header.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(11, 16, 32, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

header.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  display: block;
  width: 2.95rem;
  height: 2.95rem;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-logo-line,
.brand-logo-shadow {
  fill: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-line {
  stroke: var(--logo-yellow);
  stroke-width: 6;
  filter: drop-shadow(0 0 5px rgba(255, 210, 31, 0.24));
}

.brand-logo-shadow {
  stroke: #02040a;
  stroke-width: 10;
  transform: translate(3px, 3px);
}

.brand-logo-detail {
  stroke-width: 4;
}

.brand-logo-detail-shadow {
  stroke-width: 8;
}

.brand h1 {
  font-size: 1.65rem;
  margin: 0;
  font-family: var(--headline-font);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--headline-fill);
  -webkit-text-stroke: 1.6px var(--headline-outline);
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 var(--headline-outline),
    -1px -1px 0 var(--headline-outline),
    1px -1px 0 var(--headline-outline),
    -1px 1px 0 var(--headline-outline);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nav-links a {
  font-size: 0.93rem;
  opacity: 0.95;
}

.firmware-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  color: var(--logo-yellow);
  background: #05070d;
  border-block: 1px solid rgba(255, 210, 31, 0.78);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 210, 31, 0.2);
}

.firmware-alert a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.firmware-alert-icon {
  flex: 0 0 auto;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  text-align: center;
}

.hero h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  margin: 0 0 0.4rem;
  font-family: var(--headline-font);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--headline-fill);
  -webkit-text-stroke: 1.8px var(--headline-outline);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 var(--headline-outline),
    -1px -1px 0 var(--headline-outline),
    1px -1px 0 var(--headline-outline),
    -1px 1px 0 var(--headline-outline);
  text-transform: uppercase;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 0.6rem;
}

.hero-affiliation-logo {
  margin: 1.25rem auto 0;
}

.logo-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.logo-row img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

/* ==========================================================
   Sections & Cards
   ========================================================== */
section {
  padding-block: var(--space-sm);
}

section h3,
section h4 {
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--headline-fill);
  text-align: left;
  font-family: var(--headline-font);
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-stroke: 1.4px var(--headline-outline);
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 var(--headline-outline),
    -1px -1px 0 var(--headline-outline),
    1px -1px 0 var(--headline-outline),
    -1px 1px 0 var(--headline-outline);
}

/* h3: slightly larger, more prominent section title */
section h3 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-transform: uppercase;
}

/* h4: smaller subheading, less aggressive scaling */
section h4 {
  font-size: clamp(1rem, 2.75vw, 1.3rem);
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: var(--space-md);
  margin-block: var(--space-sm);
  /* max-width: 80%; */
  margin-inline: auto; /* centers the card horizontally */
}

.card p {
  margin: 0;
}

.card p + p {
  margin-top: var(--space-sm);
}

.affiliation-logo {
  display: block;
  width: auto;
  height: clamp(2rem, 5vw, 3rem);
  margin-top: var(--space-sm);
}

.template-card {
  min-height: 3.25rem;
}

.card ul {
  margin: var(--space-xs) 0 0;
  padding-left: calc(var(--space-md) - 0.2rem);
}

.card li {
  margin: var(--space-sm) 0;
}

.function-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.function-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  font-weight: 700;
}

.function-list span {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================
   Background Layers
   ========================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: var(--bg);
  /* Optional layered gradients:
     radial-gradient(1200px 600px at 50% -10%, #17214b 0%, transparent 55%),
     radial-gradient(800px 400px at 80% 10%, #111a3d 0%, transparent 50%),
     radial-gradient(900px 500px at 10% 5%, #101735 0%, transparent 55%); */
}

/* ==========================================================
   Responsive Adjustments
   ========================================================== */
@media (max-width: 640px) {
/* small screens get more width */
  .container {
    width: 95%;        /* expands to almost full width on phones */
    padding-inline: 1rem;
  }

  header.site-header .nav {
    padding-block: 0.3rem;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .brand-logo {
    width: 2.35rem;
    height: 2.35rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .firmware-alert {
    align-items: flex-start;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .logo-row img {
    height: 24px;
  }

  .card ul {
    padding-left: 0.95rem;
  }
}
