:root {
  color-scheme: dark;
  --background: #0f1013;
  --surface: #181a1f;
  --surface-raised: #202229;
  --border: #30333b;
  --text: #f2f3f5;
  --muted: #a8abb3;
  --accent: #e52d3f;
  --accent-hover: #f23e4f;
  --focus: #7cbcff;
  --max-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  min-width: 280px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgb(15 16 19 / 92%);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid #3a3d45;
  border-radius: 8px;
  background: #15171c;
}

.brand-mark::before {
  position: absolute;
  inset: 6px 7px;
  border-radius: 2px;
  background: #eceef1;
  content: "";
}

.brand-mark span {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 1;
  width: 5px;
  height: 10px;
  background: var(--accent);
}

nav { display: flex; align-items: center; gap: 24px; }

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
.footer-links a:hover { color: var(--text); }

.hero {
  padding-block: clamp(76px, 11vw, 140px) clamp(70px, 9vw, 112px);
}

.eyebrow {
  margin: 0 0 16px;
  color: #ff6574;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

h1 span { color: #878b94; }

.hero-copy {
  max-width: 670px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--border); background: var(--surface); }
.button-secondary:hover { border-color: #4a4e58; background: var(--surface-raised); }

.privacy-callout {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}

.privacy-callout strong { color: var(--text); }

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #42bd65;
  box-shadow: 0 0 0 3px rgb(66 189 101 / 14%);
}

.section {
  padding-block: clamp(66px, 9vw, 110px);
  border-top: 1px solid var(--border);
}

.section-heading { max-width: 650px; margin-bottom: 36px; }

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.support-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card { min-height: 230px; padding: 24px; }
.card-number { color: #6f737c; font: 700 0.72rem/1 ui-monospace, monospace; }
.card h3 { margin: 52px 0 9px; font-size: 1.1rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(40px, 9vw, 120px);
}

.privacy-section p { margin-top: 0; color: var(--muted); font-size: 1.05rem; }

.text-link {
  color: var(--text);
  font-weight: 750;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.site-footer { padding-block: 48px 28px; border-top: 1px solid var(--border); }

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p { max-width: 520px; margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 18px; }
.legal-note { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-note p { max-width: 850px; margin: 0; color: #858992; font-size: 0.76rem; }
.compact-footer { margin-top: 72px; padding-block: 30px; }

.document-page { max-width: 900px; padding-top: clamp(64px, 9vw, 104px); }
.document-header { padding-bottom: 46px; border-bottom: 1px solid var(--border); }
.document-header h1 { max-width: 780px; font-size: clamp(2.7rem, 7vw, 5.5rem); }
.document-header .lead { max-width: 690px; margin: 26px 0 0; color: var(--muted); font-size: 1.12rem; }
.meta { margin: 16px 0 0; color: #858992; font-size: 0.85rem; }

.document-content { max-width: 740px; }
.document-content section { padding-block: 36px; border-bottom: 1px solid var(--border); }
.document-content h2,
.support-card h2 { font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.25; }
.document-content p,
.document-content li,
.support-card p,
.support-card li { color: #c1c4ca; }
.document-content ul,
.support-card ul,
.support-card ol { padding-left: 1.3rem; }
code { padding: 0.12em 0.34em; border: 1px solid var(--border); border-radius: 4px; background: #121419; color: #e6e7e9; font-size: 0.88em; }
.document-content a { color: #9dccff; text-underline-offset: 3px; }

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 28px;
}

.topic-nav a {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.topic-nav a:hover { border-color: #4a4e58; color: var(--text); }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-card { scroll-margin-top: 20px; padding: 24px; }
.support-card h2 { margin: 0 0 12px; }
.support-card p:last-child,
.support-card ul:last-child,
.support-card ol:last-child { margin-bottom: 0; }
.warning-card { border-color: #5b4728; background: #211d16; }
.report-card { grid-column: 1 / -1; }
.link-placeholder { padding: 12px 14px; border-left: 3px solid var(--accent); background: #121419; }

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-section { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .report-card { grid-column: auto; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max-width)); }
  .header-inner { min-height: 64px; gap: 14px; }
  .brand { font-size: 0.92rem; }
  nav { gap: 12px; }
  nav a { font-size: 0.78rem; }
  .hero { padding-top: 64px; }
  .hero-copy { margin-top: 24px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .privacy-callout { align-items: flex-start; flex-wrap: wrap; }
  .privacy-callout span:last-child { width: 100%; padding-left: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .card h3 { margin-top: 38px; }
  .footer-grid { flex-direction: column; }
  .document-page { padding-top: 52px; }
}

@media (max-width: 420px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 11px;
  }

  .header-inner nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
