:root {
  --bg: #161826;
  --surface: #232532;
  --surface-soft: #1b1d2d;
  --text: #e9e9ed;
  --muted: #b8b8c2;
  --accent: #9184d9;
  --accent-light: #d2cefd;
  --divider: rgba(233, 233, 237, 0.16);
  --section: #262a60;
  --radius: 10px;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 540;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 19ch;
  font-size: clamp(2.45rem, 5.6vw, 4.5rem);
}

h2 {
  max-width: 25ch;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.16rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--divider);
  background: rgba(22, 24, 38, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: grid;
  margin-right: auto;
  color: var(--text);
  line-height: 1.15;
}

.brand span {
  font-weight: 650;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-light);
  font-size: 0.84rem;
  font-weight: 600;
}

.button-primary {
  background: var(--accent-light);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
}

.hero::before {
  position: absolute;
  inset: -250px -10% auto auto;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 83, 151, 0.26), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: clamp(82px, 12vw, 138px);
}

.breadcrumb,
.eyebrow,
.card-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.7rem;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent-light);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--accent-light);
}

.hero-copy {
  max-width: 67ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.13rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  padding-block: clamp(68px, 9vw, 94px);
  border-bottom: 1px solid var(--divider);
}

.section-tinted {
  background: linear-gradient(180deg, var(--surface-soft), var(--bg));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(34px, 8vw, 96px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 62ch;
  color: var(--muted);
}

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

.card {
  min-width: 0;
  padding: 25px 23px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-index {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 0.7rem;
}

.card h3 {
  margin-bottom: 12px;
}

.card p,
.content-copy p,
.result-list {
  color: var(--muted);
  font-size: 0.93rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 9vw, 110px);
  align-items: start;
}

.content-copy {
  display: grid;
  gap: 18px;
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding: 0 0 12px 22px;
  border-bottom: 1px solid var(--divider);
}

.result-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.related a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.related small {
  color: var(--muted);
}

.cta {
  padding-block: clamp(68px, 9vw, 90px);
  background: linear-gradient(180deg, var(--section), #1e2148);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.cta p {
  max-width: 60ch;
  margin-top: 16px;
  color: #d5d5dd;
}

.site-footer {
  color: rgba(233, 233, 237, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .section-heading,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .header-inner > .button {
    padding-inline: 12px;
  }

  h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.1rem);
  }

  .button-row {
    display: grid;
  }

  .button-row .button {
    width: 100%;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
