:root {
  --bg: #111113;
  --surface: #1b1b1f;
  --surface-2: #222228;
  --surface-3: #2b2b32;
  --border: #34343c;
  --border-soft: #292930;
  --text: #e7e7ea;
  --text-2: #b8b8c0;
  --text-3: #898994;
  --blue: #149cec;
  --blue-soft: rgba(20, 156, 236, .12);
  --cyan: #4ec9f0;
  --green: #4ec9a8;
  --amber: #e7b95e;
  --danger: #ef646f;
  --max: 1120px;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -10%, rgba(20, 156, 236, .12), transparent 32rem),
    linear-gradient(180deg, #151519 0, var(--bg) 30rem);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--cyan); }
a:hover { color: #8cddf5; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 9px 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--border-soft);
  background: rgba(18, 18, 21, .94);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .01em;
}
.site-brand img { width: 26px; height: 26px; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav-links a {
  padding: 7px 10px;
  color: var(--text-2);
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
}
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--surface-2);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px 38px;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
}
.page-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.page-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
}
.page-version {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.page-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 90px;
}

.page-toc {
  position: sticky;
  top: 82px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(27, 27, 31, .72);
}
.page-toc strong {
  display: block;
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-toc a {
  display: block;
  padding: 6px 8px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.page-toc a:hover {
  color: var(--text);
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.policy {
  min-width: 0;
}
.policy section {
  scroll-margin-top: 88px;
  padding: 0 0 32px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--border-soft);
}
.policy section:last-child { border-bottom: 0; }
.policy h2 {
  margin: 0 0 12px;
  color: #f3f3f5;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.policy h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}
.policy p { margin: 0 0 13px; color: var(--text-2); }
.policy ul, .policy ol {
  margin: 10px 0 16px;
  padding-left: 22px;
  color: var(--text-2);
}
.policy li { margin: 7px 0; }
.policy strong { color: var(--text); }
.policy code, kbd {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cyan);
  background: var(--surface-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .86em;
}

.notice,
.warning,
.success {
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  color: var(--text-2);
  background: var(--surface);
}
.warning { border-left-color: var(--amber); }
.success { border-left-color: var(--green); }
.notice strong, .warning strong, .success strong { color: var(--text); }

.action-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.action-card,
.guide-card {
  display: block;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  background: var(--surface);
  text-decoration: none;
}
.action-card:hover,
.guide-card:hover {
  border-color: rgba(20, 156, 236, .6);
  color: var(--text);
  background: var(--surface-2);
}
.action-card strong,
.guide-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.guide-media-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
  margin: 22px 0;
}

.guide-figure {
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.guide-media-grid .guide-figure { margin: 0; }
.guide-figure--narrow { max-width: 500px; margin-inline: auto; }
.guide-figure--medium { max-width: 760px; margin-inline: auto; }

.guide-image-link {
  display: block;
  background: #17181b;
}

.guide-image-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
}

.guide-image-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

.guide-figure figcaption {
  padding: 13px 16px 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.55;
}

.steps {
  list-style: none;
  counter-reset: guide-step;
  padding: 0 !important;
}
.steps li {
  position: relative;
  min-height: 38px;
  padding: 0 0 18px 46px;
  counter-increment: guide-step;
}
.steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 156, 236, .55);
  border-radius: 50%;
  color: var(--cyan);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comparison th,
.comparison td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.comparison th {
  color: var(--text-3);
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.comparison td { color: var(--text-2); }

.support-form {
  margin: 22px 0 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.support-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.support-field-wide { grid-column: 1 / -1; }
.support-field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.support-optional {
  margin-left: 5px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}
.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-2);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.support-field input,
.support-field select { min-height: 42px; padding: 9px 11px; }
.support-checkbox label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.support-checkbox input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--cyan);
}
.support-field textarea { min-height: 170px; padding: 10px 11px; resize: vertical; }
.support-field input[type="file"] {
  min-height: auto;
  padding: 9px;
  color: var(--text-2);
}
.support-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
}
.support-field input:hover,
.support-field select:hover,
.support-field textarea:hover { border-color: var(--text-3); }
.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 2px rgba(78, 201, 240, .14);
}
.support-field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(239, 100, 111, .13);
}
.support-hint {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}
.support-turnstile { min-height: 65px; margin: 20px 0 10px; }
.support-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.support-submit,
.support-copy {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(20, 156, 236, .7);
  border-radius: 6px;
  color: #fff;
  background: #066ca7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.support-copy {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}
.support-submit:hover,
.support-copy:hover { background: #0875b1; }
.support-submit:disabled {
  border-color: var(--border);
  color: var(--text-3);
  background: var(--surface-3);
  cursor: not-allowed;
}
.support-status {
  min-height: 24px;
  margin: 0 !important;
  color: var(--text-2);
  font-size: 13px;
}
.support-status[data-state="error"] { color: #ff929a; }
.support-status[data-state="success"] { color: var(--green); }
.support-status[data-state="progress"] { color: var(--cyan); }
.support-success {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(78, 201, 168, .45);
  border-radius: 6px;
  background: rgba(78, 201, 168, .08);
}
.support-success p { margin: 5px 0 12px; }
.support-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
[hidden] { display: none !important; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--border-soft);
  color: var(--text-3);
  background: #0f0f11;
  font-size: 12px;
}
.site-footer strong { color: var(--text); }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.site-footer-links a { color: var(--text-2); text-decoration: none; }
.site-footer-links a:hover { color: var(--cyan); }

.site-language {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-language::after {
  content: '';
  position: absolute;
  right: 11px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-2);
  pointer-events: none;
}
.site-language select {
  min-width: 142px;
  height: 32px;
  padding: 0 32px 0 11px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  color-scheme: dark;
  background: var(--surface-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.site-language select option {
  color: var(--text);
  background: var(--surface-2);
}
.site-language select:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--text-2);
}
.site-footer .site-language select,
.site-footer .site-language select option {
  background: #0f0f11;
}
.site-language select:focus-visible {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 2px rgba(78,201,240,.16);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .site-nav { flex-wrap: wrap; gap: 8px; padding: 11px 18px; }
  .site-nav-links { order: 3; width: 100%; overflow-x: auto; }
  .site-nav-links a { white-space: nowrap; }
  .page-hero { padding: 48px 20px 24px; }
  .page-shell { display: block; padding: 18px 20px 70px; }
  .page-toc {
    position: static;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    margin-bottom: 34px;
    padding: 8px;
  }
  .page-toc strong { display: none; }
  .page-toc a { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; }
  .page-toc a:hover { border-bottom-color: var(--blue); }
  .site-footer { flex-wrap: wrap; }
  .site-footer-links { order: 3; width: 100%; margin: 0; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .site-nav-links { display: none; }
  .page-title { font-size: 34px; }
  .action-grid, .guide-grid, .guide-media-grid { grid-template-columns: 1fr; }
  .support-form { padding: 16px; }
  .support-form-grid { grid-template-columns: 1fr; }
  .support-actions { align-items: stretch; flex-direction: column; }
  .support-submit { width: 100%; }
  .comparison { display: block; overflow-x: auto; }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
