:root {
  color-scheme: dark;
  --paper: #070b14;
  --surface: #0b1220;
  --surface-2: #111a2d;
  --surface-3: #0f1728;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.16);
  --ink: #e2e8f0;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #818cf8;
  --accent-soft: rgb(99 102 241 / 0.1);
  --accent-line: rgb(129 140 248 / 0.28);
  --olive: #6ee7b7;
  --shadow: 0 18px 45px rgb(0 0 0 / 0.32);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgb(11 18 32 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 20px rgb(79 70 229 / 0.3);
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: 6px;
  padding: 9px 14px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgb(49 46 129 / 0.35);
}

.site-nav .nav-cta:hover {
  background: #6366f1;
  color: #fff;
}

.tool-language { position: relative; }
.tool-language summary {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  cursor: pointer;
}
.tool-language summary::-webkit-details-marker { display: none; }
.tool-language summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.tool-language[open] summary { background: var(--surface-2); }
.tool-language nav {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-end: 0;
  width: min(13rem, calc(100vw - 40px));
  max-height: min(23rem, 70vh);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-3);
  box-shadow: var(--shadow);
}
.tool-language nav a {
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-decoration: none;
}
.tool-language nav a:hover,
.tool-language nav a[aria-current] { background: var(--surface-2); color: #c7d2fe; }
.tool-language nav a[aria-current] { font-weight: 650; }

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  max-width: 840px;
  padding: 34px 0 28px;
}

.kicker {
  margin: 0 0 8px;
  color: #a5b4fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  background: var(--surface-2);
  border-color: #c9b8a2;
  transform: translateY(-1px);
}

.button.primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 10px 24px rgb(49 46 129 / 0.35);
}

.button.primary:hover {
  background: #6366f1;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.proof span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

.proof strong {
  color: var(--ink);
}

.section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.section-head span {
  color: var(--muted-2);
  font-size: 10px;
}

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

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-num {
  color: #a5b4fc;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.step h3 {
  margin: 8px 0 4px;
  font-size: 14px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.card-link:hover {
  border-color: #d9cbb8;
  transform: translateY(-1px);
}

.card-link .related-nav {
  display: block;
  margin-bottom: 4px;
}

.card-link h3 {
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
}

tbody th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--surface-2);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

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

td strong {
  font-size: 12px;
}

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

.mono {
  font-family: var(--mono);
  white-space: nowrap;
}

.table-link {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
}

.split h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.split .lead {
  font-size: 13px;
}

.note {
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: rgb(11 18 32 / 0.6);
}

.note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.note p + p {
  margin-top: 10px;
}

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 14px;
}

.faq summary {
  cursor: pointer;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted-2);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0 0 14px;
  max-width: 820px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.related-card:hover {
  border-color: #d9cbb8;
  transform: translateY(-1px);
}

.related-nav {
  color: #a5b4fc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-title {
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 30px max(20px, calc((100vw - 1120px) / 2)) 40px;
}

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

.footer-label {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  display: flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

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

.footer-bottom {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--surface-2);
  color: var(--muted-2);
  font-size: 10px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    padding: 14px 20px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .steps,
  .grid,
  .related,
  .footer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .page {
    width: calc(100% - 32px);
    padding-top: 18px;
  }

  .hero {
    padding-top: 22px;
  }
}
