:root {
  --bg: #08111f;
  --bg-soft: #0e1a30;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #a9b6d3;
  --accent: #7dd3fc;
  --accent-2: #6ee7b7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 231, 183, 0.12), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #091426 42%, #08111f 100%);
  color: var(--text);
  line-height: 1.7;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(110, 231, 183, 0.22));
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  color: #07111f;
  font-weight: 750;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.breadcrumb {
  padding-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #bfe9ff;
}

.hero {
  padding: 44px 0 68px;
}

.hero-background-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.hero-background-media,
.hero-background-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background-media {
  z-index: -2;
}

.hero-background-media img {
  object-fit: cover;
  object-position: center 52%;
}

.hero-background-section::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 29, 0.97) 0%, rgba(7, 16, 29, 0.86) 40%, rgba(7, 16, 29, 0.48) 72%, rgba(7, 16, 29, 0.38) 100%),
    linear-gradient(180deg, rgba(7, 16, 29, 0.16) 0%, rgba(7, 16, 29, 0.26) 56%, rgba(7, 16, 29, 0.9) 100%);
  content: "";
  pointer-events: none;
}

.hero-background-section .hero-grid {
  padding-top: 36px;
}

.hero-background-section .lead {
  color: #c1cce3;
}

.hero-background-section .summary-card {
  align-self: end;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(6, 15, 30, 0.62), rgba(6, 15, 30, 0.42));
  backdrop-filter: blur(7px);
}

.hero-background-section .summary-card li {
  padding: 9px 0;
  color: #c1cce3;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  color: #bfe9ff;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 14ch;
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  letter-spacing: -0.045em;
}

.lead {
  max-width: 65ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.summary-card,
.panel,
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 24px;
}

.summary-card h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.summary-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-card li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.summary-card li:last-child {
  border-bottom: 0;
}

.summary-card li::before {
  margin-right: 9px;
  color: var(--accent-2);
  content: "✓";
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 50px;
  padding: 64px 0;
}

.article h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: -0.025em;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.article p,
.article li {
  color: var(--muted);
}

.article p {
  margin: 0 0 18px;
}

.article ul {
  padding-left: 22px;
}

.article li + li {
  margin-top: 9px;
}

.callout {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  background: rgba(125, 211, 252, 0.07);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
}

.side-nav {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
}

.side-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
}

.side-nav a:hover {
  color: var(--accent);
}

.related {
  padding: 52px 0 70px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  min-height: 100%;
  padding: 22px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.35);
}

.related-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.related-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.cta {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

footer {
  margin-top: 70px;
  padding: 30px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-grid,
  .article-wrap,
  .cta {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-nav {
    position: static;
    order: -1;
  }

  .hero-background-media img {
    object-position: 66% center;
  }
}

@media (max-width: 620px) {
  .nav-links a:not(.button) {
    display: none;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .hero {
    padding-bottom: 46px;
  }

  .hero-background-media,
  .hero-background-media img {
    inset: 0 0 auto;
    height: min(68vw, 280px);
  }

  .hero-background-media img {
    object-position: center;
  }

  .hero-background-section::after {
    background:
      linear-gradient(180deg, rgba(7, 16, 29, 0.46) 0%, rgba(7, 16, 29, 0.7) 170px, rgba(7, 16, 29, 0.96) 300px, rgba(7, 16, 29, 0.9) 100%);
  }
}
