:root {
  --bg-0: #020711;
  --bg-1: #081a31;
  --bg-2: #0d2b4e;
  --line: rgba(146, 190, 235, 0.25);
  --text: #eff7ff;
  --muted: #adc8e4;
  --brand: #3e95ff;
  --brand-2: #1ed4b2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

body {
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(36, 113, 196, 0.45), transparent 38%),
    radial-gradient(circle at 84% 12%, rgba(28, 170, 147, 0.25), transparent 42%),
    linear-gradient(148deg, var(--bg-0), var(--bg-1) 46%, var(--bg-2));
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(146, 190, 235, 0.18);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(3, 12, 23, 0.9), rgba(3, 12, 23, 0.62));
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: rgba(146, 190, 235, 0.42);
  background: rgba(11, 31, 54, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 0.58rem 0.88rem;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, #1e3a57, #315f7c);
}

.btn-ghost {
  border: 1px solid var(--line) !important;
  background: rgba(7, 24, 41, 0.82);
}

main {
  padding: 1rem 0 1.5rem;
}

.section {
  width: min(1280px, calc(100% - 1.2rem));
  margin: 0 auto 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(72, 161, 244, 0.15), transparent 48%),
    linear-gradient(160deg, rgba(8, 24, 40, 0.93), rgba(5, 16, 29, 0.98));
  padding: 1rem;
}

.hero {
  padding: 1.1rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  color: var(--muted);
}

h1 {
  margin: 0.45rem 0 0.7rem;
  line-height: 1.12;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

h2 {
  margin: 0.2rem 0 0.46rem;
  font-size: 1.1rem;
}

.lead {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.62;
}

.row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  border: 1px solid rgba(146, 190, 235, 0.22);
  border-radius: 14px;
  background: rgba(8, 24, 41, 0.74);
  padding: 0.9rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.prose h2 {
  margin-top: 0.2rem;
}

.prose p + h2 {
  margin-top: 0.8rem;
}

a { color: #9fd4ff; }

.site-footer {
  width: min(1280px, calc(100% - 1.2rem));
  margin: 0 auto 1rem;
  color: #9eb8d4;
  font-size: 0.84rem;
}

.analytics-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  width: min(480px, calc(100vw - 2rem));
  border: 1px solid rgba(146, 190, 235, 0.35);
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(170deg, rgba(6, 20, 35, 0.95), rgba(5, 17, 30, 0.9));
  box-shadow: 0 10px 32px rgba(1, 8, 18, 0.4);
}

.analytics-consent-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.analytics-consent-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.7rem;
}

@media (max-width: 980px) {
  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .analytics-consent-actions {
    justify-content: flex-start;
  }
}
