/* ==========================================================
   Root Variables
   ========================================================== */
:root {
  --bg: #0b1020;
  --bg-alt: #0e152b;
  --text: #e8ebf0;
  --muted: #a9b0c3;
  --brand: #6eb1ff;
  --brand-2: #9ad6ff;
  --border: #1b2442;

  /* --- 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.5rem;
}

.brand-mark {
  font-size: 2rem;
  line-height: 1;
}

.brand h1 {
  font-size: 1.65rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

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

/* ==========================================================
   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;
}

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

.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(--brand-2);
  text-align: left;
  letter-spacing: 0.18px;
}

/* 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);
  font-weight: 600;
}

.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 ul {
  margin: var(--space-xs) 0 0;
  padding-left: calc(var(--space-md) - 0.2rem);
}

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

/* ==========================================================
   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;
  }

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

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

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

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

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