:root {
  color-scheme: dark;
  --bg: #101217;
  --bg-raised: #171a21;
  --panel: #1d222b;
  --panel-strong: #252b36;
  --line: #343c49;
  --line-soft: rgba(214, 223, 237, 0.16);
  --text: #f7f9fd;
  --text-soft: #c5cedb;
  --text-muted: #8d98aa;
  --blue: #3b8eea;
  --blue-strong: #5ab2ff;
  --amber: #f2a900;
  --mint: #4ed7a8;
  --rose: #e56b8d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: var(--blue-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fd0ff;
}

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

code {
  padding: 0.08em 0.32em;
  border: 1px solid rgba(143, 208, 255, 0.16);
  border-radius: 5px;
  background: rgba(90, 178, 255, 0.1);
  color: #d8efff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(214, 223, 237, 0.12);
  background: rgba(16, 18, 23, 0.88);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(var(--max), calc(100vw - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  width: 42px;
  height: 42px;
}

.home-page .site-header__inner {
  grid-template-columns: 1fr auto 1fr;
}

.home-page .site-brand {
  display: none;
}

.home-page .site-nav {
  grid-column: 2;
}

.home-page .language-link {
  grid-column: 3;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.language-link,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a.site-nav__language {
  display: none;
}

.site-nav a:hover,
.language-link:hover,
.footer-links a:hover {
  background: rgba(90, 178, 255, 0.1);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: rgba(242, 169, 0, 0.14);
  color: #ffe3a3;
}

.language-link {
  border: 1px solid rgba(214, 223, 237, 0.18);
  justify-self: end;
}

.site-main {
  min-height: 62vh;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(680px, calc(100svh - 120px));
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 223, 237, 0.12);
  background: #090b10;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/captures/main-100.png");
  background-position: right 8% center;
  background-size: min(780px, 82vw) auto;
  background-repeat: no-repeat;
  opacity: 0.72;
  filter: saturate(1.1);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 16, 0.96) 0%, rgba(9, 11, 16, 0.86) 43%, rgba(9, 11, 16, 0.34) 100%),
    linear-gradient(0deg, rgba(16, 18, 23, 0.95) 0%, rgba(16, 18, 23, 0) 28%);
}

.home-hero__inner {
  width: min(var(--max), calc(100vw - 32px));
  min-height: min(680px, calc(100svh - 120px));
  margin: 0 auto;
  padding: 72px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-hero__brand,
.site-footer__brand {
  display: block;
  line-height: 0;
}

.home-hero__brand {
  margin-bottom: 26px;
}

.home-hero__brand img {
  width: min(420px, 100%);
  height: auto;
  border-radius: 8px;
}

.site-footer__brand {
  margin-bottom: 10px;
}

.site-footer__brand img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: min(770px, 100%);
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 840;
}

.hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.26rem);
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
}

.button-link--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 142, 234, 0.26);
}

.button-link--primary:hover {
  background: #54a5fa;
  color: #fff;
}

.button-link--secondary {
  border: 1px solid rgba(214, 223, 237, 0.28);
  background: rgba(29, 34, 43, 0.56);
  color: var(--text);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-facts span {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(214, 223, 237, 0.16);
  border-radius: 999px;
  background: rgba(16, 18, 23, 0.62);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-content {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 58px 0 84px;
}

.home-content h2 {
  max-width: 800px;
  margin: 74px 0 18px;
  color: var(--text);
  font-size: clamp(1.55rem, 3.1vw, 2.55rem);
}

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

.home-content > p,
.home-content > ul,
.home-content > ol,
.home-content > .table-wrap {
  max-width: 850px;
}

.home-content p {
  color: var(--text-soft);
}

.home-content h3 {
  margin-top: 24px;
  color: #ffe0a0;
  font-size: 1.12rem;
}

.home-content h3 + p {
  max-width: 760px;
  margin-top: 8px;
}

.content-main {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.article-shell {
  max-width: 900px;
  padding: 36px clamp(20px, 4vw, 46px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(23, 26, 33, 0.78);
  box-shadow: var(--shadow);
}

.article-shell h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.article-shell h2 {
  margin: 48px 0 14px;
  padding-top: 4px;
  font-size: clamp(1.38rem, 2.4vw, 1.9rem);
}

.article-shell h3 {
  margin: 32px 0 10px;
  color: #ffe0a0;
  font-size: 1.1rem;
}

.article-shell p,
.article-shell li {
  color: var(--text-soft);
}

.article-shell > p:first-of-type {
  font-size: 1.08rem;
}

.article-shell img {
  display: block;
  margin: 28px 0;
  border: 1px solid rgba(214, 223, 237, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.28rem;
}

.table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid rgba(214, 223, 237, 0.14);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(214, 223, 237, 0.11);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(59, 142, 234, 0.14);
  color: #e5f4ff;
  font-size: 0.92rem;
}

td {
  color: var(--text-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.code-block {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid rgba(143, 208, 255, 0.14);
  border-radius: var(--radius);
  background: #0b0e14;
}

.site-footer {
  border-top: 1px solid rgba(214, 223, 237, 0.12);
  background: #0b0d12;
}

.site-footer__inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.site-footer p {
  max-width: 580px;
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 430px;
}

.site-footer__bottom {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: #778195;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
    gap: 8px 12px;
    padding: 12px 0;
  }

  .site-brand {
    order: 1;
    flex: 0 1 auto;
  }

  .language-link {
    display: none;
  }

  .site-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a,
  .language-link {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .site-nav a.site-nav__language {
    display: inline-flex;
    border: 1px solid rgba(214, 223, 237, 0.18);
    order: -1;
  }

  .home-hero {
    min-height: max(560px, calc(100svh - 220px));
  }

  .home-hero::before {
    background-position: center bottom 8%;
    background-size: 640px auto;
    opacity: 0.34;
  }

  .home-hero__overlay {
    background:
      linear-gradient(180deg, rgba(9, 11, 16, 0.92) 0%, rgba(9, 11, 16, 0.75) 58%, rgba(16, 18, 23, 0.98) 100%);
  }

  .home-hero__inner {
    min-height: max(560px, calc(100svh - 220px));
    padding: 34px 0;
  }

  .home-hero h1 {
    word-break: break-all;
    font-size: clamp(1.88rem, 9vw, 2.35rem);
  }

  .home-hero__brand {
    margin-bottom: 18px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .hero-facts {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .button-link {
    width: 100%;
  }

  .article-shell {
    padding: 28px 18px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-brand span {
    font-size: 1.12rem;
  }

  .home-hero__brand {
    max-width: 86vw;
  }

  .home-hero__brand img {
    width: 100%;
  }

  .hero-facts span {
    font-size: 0.82rem;
  }

  .home-content {
    padding-top: 44px;
  }

  .home-content h2 {
    margin-top: 56px;
  }

  table {
    min-width: 480px;
  }
}
