:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #142b5a 0%, #071020 52%, #03060c 100%);
  color: #e4ecff;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  min-width: 0;
}

.site-header .nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem 0.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.site-header .brand {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-header .brand a {
  color: #c9dcff;
  text-decoration: none;
}

.site-header .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-left: auto;
}

.site-header .links a,
.site-footer .footer-links a {
  color: #d9e5ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-header .links a:hover,
.site-footer .footer-links a:hover,
.site-header .brand a:hover {
  color: #f4f7ff;
}

.site-header .links a[aria-current="page"] {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #8eb4ff;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.hero p {
  color: #bbcffd;
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero picture {
  display: block;
  max-width: clamp(320px, 45vw, 640px);
  width: 100%;
}

.hero picture img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(2, 8, 20, 0.7));
}

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

@media (min-width: 880px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-header,
.about {
  position: relative;
  background: linear-gradient(150deg, rgba(32, 56, 112, 0.9), rgba(14, 26, 52, 0.92));
  border: 1px solid rgba(138, 168, 255, 0.28);
  border-radius: 24px;
  padding: clamp(1.9rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 18px 48px -30px rgba(7, 15, 32, 0.7);
  overflow: hidden;
}

.grid-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0.6rem;
}

.about {
  margin-top: 1.6rem;
}

.grid-header::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(98, 134, 228, 0.08) 45%, rgba(12, 20, 40, 0.18));
  pointer-events: none;
  opacity: 0.6;
}

.grid-header h2,
.about h2 {
  position: relative;
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  letter-spacing: -0.012em;
}

.grid-header p,
.about p {
  position: relative;
  margin: 0.9rem auto 0;
  max-width: 720px;
  color: #bccaf6;
  font-size: 1.02rem;
  line-height: 1.65;
}

.about p {
  margin-left: 0;
  margin-right: 0;
}

.card {
  background: linear-gradient(155deg, rgba(28, 52, 100, 0.88), rgba(12, 24, 52, 0.94));
  border: 1px solid rgba(134, 167, 255, 0.24);
  border-radius: 24px;
  padding: 2.1rem 2rem;
  box-shadow: 0 18px 54px -28px rgba(5, 11, 26, 0.85);
  display: block;
  position: relative;
}

.card.with-icon {
  display: grid;
  grid-template-columns: clamp(88px, 16vw, 116px) minmax(0, 1fr);
  column-gap: clamp(1.2rem, 2.2vw, 1.8rem);
  align-items: start;
}

.card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(88, 124, 220, 0.08) 40%, rgba(12, 20, 40, 0.12));
  pointer-events: none;
  opacity: 0.55;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon-block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card.with-icon .card-icon {
  width: clamp(78px, 9vw, 104px);
  height: clamp(78px, 9vw, 104px);
  border-radius: 18px;
  background: rgba(18, 36, 72, 0.65);
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 176, 255, 0.32);
  box-shadow: inset 0 8px 18px rgba(8, 16, 36, 0.5);
  overflow: hidden;
}

.card.with-icon .card-icon picture {
  display: grid;
  place-items: center;
}

.card.with-icon .card-icon img {
  width: clamp(60px, 7.5vw, 80px);
  height: clamp(60px, 7.5vw, 80px);
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(2, 6, 16, 0.55));
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
}

.card-title-row {
  width: 100%;
}

.card-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
}

.card-link {
  color: #f5f8ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 246, 255, 0.55);
  padding-bottom: 0.08rem;
}

.card-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.card h2 {
  font-size: 1.3rem;
  margin: 0;
}

.card p {
  margin: 0;
  color: #d6e3ff;
  line-height: 1.6;
  font-size: 1rem;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.badge {
  background: rgba(118, 159, 255, 0.16);
  border: 1px solid rgba(132, 171, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: #e4ecff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer {
  background: linear-gradient(90deg, rgba(6, 12, 24, 0.9), rgba(14, 27, 54, 0.72));
  border-top: 1px solid rgba(105, 149, 238, 0.2);
  padding: clamp(1.4rem, 3vw, 1.9rem) 1.5rem;
}

.footer-bar {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
}

.footer-group {
  margin: 0;
  line-height: 1.7;
}

.footer-label {
  font-weight: 600;
  color: #f4f7ff;
}

.footer-group .footer-label,
.footer-group .sep,
.footer-group .footer-links,
.footer-group .footer-copy {
  display: inline;
}

.sep {
  color: #8ea3d8;
}

.footer-copy {
  margin: 0;
  color: #9fb1e6;
  font-size: 0.92rem;
}

.not-found {
  text-align: center;
  padding: 2.2rem 0 1rem;
}

.not-found h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.not-found p {
  color: #bbcffd;
  margin: 0 0 1.8rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.not-found > a {
  color: #f5f8ff;
  background: linear-gradient(155deg, rgba(28, 52, 100, 0.88), rgba(12, 24, 52, 0.94));
  border: 1px solid rgba(134, 167, 255, 0.24);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
}

.not-found > a:hover {
  color: #ffffff;
}

.not-found-links {
  margin: 1.15rem 0 0;
  font-size: 0.98rem;
}

.not-found-links a {
  color: #d9e5ff;
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.not-found-links a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .site-header .brand {
    flex: 1 0 100%;
  }

  .site-header .links {
    margin-left: 0;
  }

  main {
    padding: 1.4rem 1.2rem 3.2rem;
  }

  .hero {
    gap: 1.4rem;
  }

  .hero picture {
    max-width: clamp(260px, 62vw, 360px);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

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

  .grid {
    gap: 1.2rem;
  }

  .grid-header,
  .about {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .grid-header {
    margin-bottom: 0.4rem;
  }

  .grid-header p,
  .about p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.6rem 1.5rem;
    border-radius: 20px;
    display: block;
  }

  .card.with-icon {
    display: block;
    text-align: left;
  }

  .card.with-icon .card-icon-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .card.with-icon .card-icon {
    width: clamp(56px, 18vw, 72px);
    height: clamp(56px, 18vw, 72px);
  }

  .card.with-icon .card-icon img {
    width: clamp(48px, 16vw, 64px);
    height: clamp(48px, 16vw, 64px);
  }

  .card-body {
    gap: 0.75rem;
  }

  .footer-bar {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero picture {
    max-width: clamp(220px, 70vw, 300px);
  }

  .card,
  .grid-header,
  .about {
    border-radius: 18px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

.feature-band {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.8rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(158, 196, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(42, 78, 158, 0.96), rgba(10, 24, 54, 0.94));
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.28), 0 22px 50px -28px rgba(40, 90, 200, 0.85);
}

.feature-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-kicker h2,
.feature-copy p {
  margin: 0;
}

.feature-kicker h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}

.feature-copy {
  display: grid;
  gap: 0.85rem;
}

.feature-copy p {
  color: #e4ecff;
  line-height: 1.6;
  font-size: 1.05rem;
}

.feature-shot {
  display: none;
  min-width: 0;
}

.feature-shot a,
.shot a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.icon-56,
.icon-56 picture,
.icon-56 img {
  display: block;
  width: 56px;
  height: 56px;
}

.icon-56 {
  flex: none;
}

.icon-56 img {
  object-fit: contain;
}

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

.btn {
  display: inline-block;
  max-width: 100%;
  background: #d9e6ff;
  color: #10203f;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
}

.btn:hover {
  background: #eef3ff;
  color: #10203f;
}

.btn-secondary {
  background: transparent;
  color: #e8efff;
  border-color: rgba(180, 204, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}

.ap-hero {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5d6ff;
}

.ap h1 {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.ap h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.ap h3 {
  margin: 0;
  font-size: 1.15rem;
}

.ap p,
.ap li {
  color: #d5e2ff;
  line-height: 1.6;
  font-size: 1.02rem;
}

.ap p {
  margin: 0;
}

.ap .lead {
  font-size: 1.12rem;
  color: #e8efff;
  max-width: 42rem;
}

.ap ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.ap li + li {
  margin-top: 0.35rem;
}

.ap p + p {
  margin-top: 0.75rem;
}

.ap .facts {
  margin-top: 0.15rem;
  padding: 0;
}

.ap .facts li,
.ap .type-list li {
  margin-top: 0;
}

.ap a:not(.btn) {
  color: #dbe7ff;
  font-weight: 600;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.facts li {
  margin: 0;
  border: 1px solid rgba(160, 190, 255, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.85rem;
  color: #e7eeff;
}

.shot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.15rem 0 0;
}

.shot picture,
.shot img,
.feature-shot picture,
.feature-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.shot img,
.feature-shot img {
  border: 1px solid rgba(226, 234, 255, 0.72);
  border-radius: 12px;
  background: #f4f7fb;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.85);
}

.shot figcaption {
  margin-top: 0.55rem;
  color: #b7c8f0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pair {
  display: grid;
  gap: 1rem;
}

.pair .card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.pair .card p {
  margin: 0;
}

.home-guides {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

.home-guides .grid-header {
  margin-bottom: 0;
}

.home-guides a.card {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.home-guides a.card:hover {
  border-color: rgba(190, 214, 255, 0.55);
}

.home-guides .card-title {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #f4f7ff;
}

.home-guides .card-line {
  color: #d6e3ff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-guides .more-link {
  margin: 0;
  text-align: center;
}

.home-guides .more-link a {
  color: #f5f8ff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 246, 255, 0.55);
  padding-bottom: 0.08rem;
}

.home-guides .more-link a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1.75rem;
  margin: 0;
}

.type-list ul {
  margin: 0;
  padding-left: 1.15rem;
}

.type-list li {
  margin: 0 0 0.35rem;
}

.faq details {
  border-top: 1px solid rgba(140, 168, 230, 0.28);
  padding: 0.75rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid rgba(140, 168, 230, 0.28);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 0.5rem;
}

.cta-band {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 24px;
  border: 1px solid rgba(150, 186, 255, 0.5);
  background: linear-gradient(155deg, rgba(36, 68, 140, 0.95), rgba(10, 22, 48, 0.94));
}

.cta-band .actions {
  justify-content: center;
}

.cta-links {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .feature-band {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    align-items: center;
  }

  .feature-shot {
    display: block;
  }
}

@media (max-width: 640px) {
  .feature-band,
  .cta-band {
    border-radius: 20px;
  }

  .ap {
    gap: 2rem;
  }
}

.prose {
  max-width: 42rem;
}

.page-intro .crumbs {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #b7c8f0;
}

.page-intro h1 {
  margin-bottom: 0.75rem;
}

.ap p.note {
  color: #b7c8f0;
  font-size: 0.92rem;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.prose ul + p {
  margin-top: 0.75rem;
}

.guide,
.guide-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  min-width: 0;
  max-width: 100%;
}

.guide h1,
.guide-index h1 {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.guide h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  scroll-margin-top: 1rem;
}

.guide p,
.guide li,
.guide dd,
.guide-index .lead,
.guide-index .card p {
  color: #d5e2ff;
  line-height: 1.6;
  font-size: 1.02rem;
}

.guide p,
.guide-index .lead {
  margin: 0;
}

.guide .lead,
.guide-index .lead {
  font-size: 1.12rem;
  color: #e8efff;
  max-width: 42rem;
}

.guide .page-intro,
.guide .on-this-page,
.guide section p,
.guide section ul,
.guide section pre,
.guide .guide-callout,
.guide-index .page-intro {
  max-width: 42rem;
}

.guide .byline {
  margin: 0.7rem 0 0.85rem;
  color: #b7c8f0;
  font-size: 0.95rem;
}

.guide p + p,
.guide p + ul,
.guide ul + p,
.guide p + pre,
.guide pre + p {
  margin-top: 0.75rem;
}

.guide ul,
.guide ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.guide li + li {
  margin-top: 0.35rem;
}

.guide a:not(.btn),
.guide-index .card h2 a {
  color: #dbe7ff;
  font-weight: 600;
}

.guide-index .card h2 a {
  font-size: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 246, 255, 0.55);
}

.guide-index .card h2 a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.guide code,
.endpoint-list code,
.table-scroll code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.guide pre {
  margin: 0.75rem 0 0;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(140, 168, 230, 0.35);
  background: rgba(6, 12, 28, 0.55);
}

.guide pre code {
  white-space: pre;
  font-size: 0.92rem;
}

.on-this-page-label {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5d6ff;
}

.endpoint-list {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.endpoint-list div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.endpoint-list dt,
.endpoint-list dd {
  margin: 0;
  min-width: 0;
}

.endpoint-list code {
  overflow-wrap: anywhere;
}

.table-scroll {
  margin-top: 0.85rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(140, 168, 230, 0.28);
  color: #d5e2ff;
  line-height: 1.5;
}

.table-scroll thead th {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c5d6ff;
}

.table-scroll th[scope="row"] {
  font-weight: 600;
  color: #e8efff;
  white-space: nowrap;
}

.table-scroll td code {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}

.guide-callout {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(210, 224, 255, 0.72);
  background: rgba(120, 156, 230, 0.1);
}
