:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2e;
  --panel-2: #12243a;
  --text: #ecf6ff;
  --muted: #a9bad0;
  --line: rgba(142, 226, 255, 0.18);
  --teal: #22d3c5;
  --amber: #f8b84e;
  --blue: #6aa8ff;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 197, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 15%, rgba(248, 184, 78, 0.13), transparent 26rem),
    linear-gradient(180deg, #07111f 0%, #0a1525 42%, #101827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

strong {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.site-footer img {
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(34, 211, 197, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 150px;
  max-width: 100%;
}

.language-switcher::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.language-select {
  width: 100%;
  min-height: 38px;
  padding: 7px 38px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-select:hover,
.language-select:focus {
  border-color: rgba(34, 211, 197, 0.6);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(34, 211, 197, 0.16);
}

.language-select option {
  color: #07111f;
  background: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 22px 42px;
}

.hero-content,
.hero-card,
.section,
.site-footer {
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.92), rgba(10, 21, 37, 0.88));
  box-shadow: 0 22px 60px var(--shadow);
}

.hero-content {
  padding: clamp(30px, 5vw, 54px);
  border-radius: 8px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  font-size: clamp(32px, 5.4vw, 58px);
}

.title-line {
  display: block;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 19px;
}

.lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

p,
li,
summary,
dd,
dt,
a {
  overflow-wrap: anywhere;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.btn.primary {
  color: #04121f;
  background: var(--teal);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.hero-card {
  align-self: stretch;
  padding: 28px;
  border-radius: 8px;
}

.hero-card h2 {
  font-size: 28px;
}

.hero-card p {
  color: var(--muted);
}

pre {
  overflow: auto;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(34, 211, 197, 0.22);
  border-radius: 8px;
  background: #050b13;
  color: #c9fff9;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.section {
  max-width: 1180px;
  margin: 26px auto;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 8px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 26px;
}

.section-heading p,
.split p,
.note-card p,
.cards p,
.callout p,
.related p,
.faq p,
.sources p,
.site-footer p {
  color: var(--muted);
}

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

.steps article,
.cards article,
.note-card,
.callout,
.related-grid a {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #04121f;
  background: var(--amber);
  font-weight: 900;
}

.workflow-figure {
  margin: 30px 0 0;
}

.workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffffff;
  background: rgba(34, 211, 197, 0.08);
}

td {
  color: var(--muted);
}

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

.code-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.checklist {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  color: var(--muted);
}

.checklist li {
  padding-left: 4px;
}

.callout {
  margin-top: 22px;
  border-color: rgba(248, 184, 78, 0.28);
}

.related-grid a {
  display: block;
}

.related-grid span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.related-grid strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
}

.sources ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.sources a {
  color: #9be8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 26px auto 40px;
  padding: 28px;
  border-radius: 8px;
}

.site-footer div {
  max-width: 560px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
  color: var(--muted);
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-switcher {
    width: 100%;
  }

  .hero,
  .split,
  .code-block,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-content,
  .hero-card,
  .section {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 32px), 358px);
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .hero {
    padding-inline: 0;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 20px;
  }

  .hero-content,
  .hero-card,
  .section {
    padding: 22px;
  }

  h1 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
  }
}
