:root {
  color-scheme: light;
  --ink: #142033;
  --ink-strong: #07111f;
  --muted: #59677a;
  --paper: #f5f8fc;
  --panel: #ffffff;
  --panel-soft: #edf6ff;
  --line: #d7e4f1;
  --blue: #2f8de7;
  --blue-deep: #061525;
  --cyan: #67c7ff;
  --green: #0f9f7a;
  --amber: #b56b00;
  --danger: #b64242;
  --shadow: 0 24px 70px rgba(6, 21, 37, 0.14);
  --soft-shadow: 0 14px 34px rgba(6, 21, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 141, 231, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #116aaf;
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

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

.site-header {
  background:
    linear-gradient(120deg, rgba(6, 21, 37, 0.96), rgba(9, 38, 65, 0.9)),
    radial-gradient(circle at 80% 10%, rgba(103, 199, 255, 0.28), transparent 24rem);
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 22px 76px;
}

.kicker {
  margin: 0 0 12px;
  color: #a9eaff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.12;
  letter-spacing: 0;
}

.site-header h1,
.site-header .lede {
  color: #ffffff;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(38px, 6vw, 68px);
}

h2 {
  margin: 38px 0 12px;
  font-size: clamp(25px, 3.2vw, 34px);
}

h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.lede {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 2.1vw, 21px);
}

.page-shell {
  max-width: 1120px;
  margin: -42px auto 0;
  padding: 0 22px 64px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-strong);
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.card {
  padding: clamp(24px, 4.7vw, 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-grid,
.faq-grid,
.info-grid {
  display: grid;
  gap: 14px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
}

.pill-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--soft-shadow);
}

.pill-card strong {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
}

.pill-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #b8dff5;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: var(--panel-soft);
}

.notice.warning {
  border-color: #f0cf91;
  border-left-color: var(--amber);
  background: #fff8eb;
}

.notice.danger {
  border-color: #e9b7b7;
  border-left-color: var(--danger);
  background: #fff2f2;
}

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

p,
li,
dd {
  color: var(--muted);
  font-size: 16px;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 5px;
}

hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
}

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

th {
  background: var(--blue-deep);
  color: #ffffff;
  font-size: 14px;
}

tr:nth-child(odd) td {
  background: #f9fcff;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--blue-deep);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(6, 21, 37, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.faq-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.faq-item h2,
.faq-item h3 {
  margin-top: 0;
}

.meta {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .nav,
  .hero,
  .page-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 58px;
  }

  .page-shell {
    margin-top: -30px;
  }

  .card {
    padding: 22px 16px;
  }

  p,
  li,
  dd {
    font-size: 15.5px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  th {
    display: none;
  }

  td {
    border-bottom: 0;
  }

  tr {
    border-bottom: 1px solid var(--line);
  }

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

  .button {
    width: 100%;
    text-align: center;
  }
}
