:root {
  color-scheme: dark;
  --bg-primary: #0f172a;
  --bg-secondary: #111c30;
  --bg-surface: #162541;
  --bg-panel: #1a2d4a;
  --text-primary: #f8fafc;
  --text-muted: #cbd5f5;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --border: rgba(148, 163, 209, 0.22);
  --shadow: 0 20px 45px rgba(8, 15, 30, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.narrow {
  width: min(720px, calc(100% - 3rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(10, 16, 28, 0.85);
  border-bottom: 1px solid rgba(148, 163, 209, 0.14);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links .active {
  color: var(--accent);
}

.hero {
  padding: clamp(4rem, 8vw, 6.8rem) 0;
  background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.18), transparent 50%),
    var(--bg-primary);
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  animation: rise 0.8s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
  animation: float-in 0.9s ease both;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section.alt {
  background: var(--bg-secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 16px 38px rgba(56, 189, 248, 0.35);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-2px);
}

.button.ghost {
  border-color: rgba(148, 163, 209, 0.4);
  color: var(--text-primary);
}

.button.ghost:hover,
.button.ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.capability-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.capability-card {
  background: var(--bg-surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.capability-card span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.program-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}

.program-card {
  background: var(--bg-panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.9rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.program-card ul {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--text-muted);
}

.toolkit-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.toolkit-item {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(22, 37, 65, 0.8);
  display: grid;
  gap: 0.6rem;
}

.signal-panel {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
}

.signal-metrics {
  display: grid;
  gap: 1rem;
}

.metric {
  padding: 1.4rem;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.6rem;
}

.callout {
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.2), transparent 60%), var(--bg-secondary);
}

.callout-panel {
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 209, 0.2);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.contact-hero {
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.not-found main {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

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

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