:root {
  color-scheme: light dark;
  --page-bg: #eef3fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0f7ccb;
  --accent-strong: #0b63a0;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #09111d;
    --surface: rgba(9, 18, 31, 0.74);
    --surface-strong: rgba(10, 18, 31, 0.92);
    --surface-border: rgba(148, 163, 184, 0.18);
    --text: #ecf4ff;
    --text-muted: #b6c2d3;
    --accent: #4fb4ff;
    --accent-strong: #74c3ff;
    --shadow: 0 26px 70px rgba(2, 8, 23, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(15, 124, 203, 0.16), transparent 36%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 28%),
    var(--page-bg);
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

.guide-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.site-header,
.site-footer,
.guide-hero,
.guide-section,
.guide-card,
.guide-note {
  backdrop-filter: blur(22px);
}

.site-header,
.site-footer,
.guide-hero,
.guide-section,
.guide-card,
.guide-note {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer,
.guide-hero,
.guide-section,
.guide-card,
.guide-note {
  border-radius: var(--radius-xl);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.site-header {
  margin-bottom: 1rem;
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-platform {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.header-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  color: white;
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--surface-border);
  color: var(--text);
}

.guide-main {
  display: grid;
  gap: 1rem;
}

.guide-hero,
.guide-section {
  padding: 1.35rem;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.35rem;
}

.guide-eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.guide-title {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.guide-summary,
.guide-intro {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

.guide-summary {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.guide-intro {
  margin: 0.9rem 0 0;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.guide-chips {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.guide-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-strong);
  padding: 0.58rem 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
}

.guide-chips li::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #22c55e);
  flex: none;
}

.guide-figure {
  margin: 0;
  padding: 0.7rem;
  border-radius: 22px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.guide-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.guide-figure figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.1rem;
}

.guide-card h2,
.guide-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  letter-spacing: -0.04em;
}

.guide-card h3,
.guide-section h3 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.guide-card p,
.guide-section p,
.guide-card li,
.guide-section li {
  color: var(--text-muted);
  line-height: 1.68;
}

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

.guide-card li + li,
.guide-section li + li {
  margin-top: 0.38rem;
}

.guide-note {
  padding: 1rem 1.1rem;
}

.guide-note strong {
  display: block;
  margin-bottom: 0.3rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-border);
}

th {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 78%, black 22%);
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.link-list {
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
  list-style: none;
}

.link-list li {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-strong);
}

.faq-item h2 {
  margin-bottom: 0.6rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .guide-hero,
  .guide-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .guide-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    position: static;
    top: auto;
  }

  .site-header,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .guide-shell {
    padding-top: 0.6rem;
  }

  .brand-icon {
    width: 60px;
    height: 60px;
  }

  .guide-hero,
  .guide-section,
  .guide-card {
    padding: 1rem;
  }

  .button {
    width: 100%;
  }
}
