:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #151517;
  --surface-raised: #1b1b1e;
  --line: #2a2a2e;
  --line-strong: #3a3a3f;
  --text: #f5f5f6;
  --muted: #a7a7ad;
  --muted-soft: #85858c;
  --orange: #ff5a1f;
  --orange-bright: #ff7040;
  --content: 1040px;
  --radius-sm: 12px;
  --radius-lg: 32px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4f1;
  --surface: #ffffff;
  --surface-raised: #efede9;
  --line: #dedbd5;
  --line-strong: #c9c5be;
  --text: #181716;
  --muted: #66635f;
  --muted-soft: #78746f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-underline-offset: 3px; }
::selection { color: #fff; background: rgba(255, 90, 31, .45); }

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .18s ease-out;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  inset-block-start: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(9, 9, 11, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
:root[data-theme="light"] .site-header { border-bottom-color: rgba(24, 23, 22, .09); background: rgba(246, 244, 241, .88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 142px; height: auto; }
:root[data-theme="light"] .brand img { filter: brightness(0); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transition: transform .15s ease-out, background-color .15s ease-out, border-color .15s ease-out;
}
.theme-toggle:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .18s ease-out, transform .18s ease-out; }
.theme-toggle .sun { opacity: 0; transform: scale(.25) rotate(-45deg); }
.theme-toggle .moon { opacity: 1; transform: scale(1); }
:root[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: scale(.25) rotate(45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease-out, background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.96); }
.button-primary { color: #fff; background: var(--orange); box-shadow: 0 12px 32px rgba(255, 90, 31, .22), inset 0 1px rgba(255, 255, 255, .18); }
.button-primary:hover { background: var(--orange-bright); box-shadow: 0 16px 38px rgba(255, 90, 31, .3), inset 0 1px rgba(255, 255, 255, .2); }
.button-secondary { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.button-secondary:hover { background: var(--surface-raised); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(255, 112, 64, .75); outline-offset: 3px; }

.page-hero { position: relative; overflow: clip; padding-block: clamp(64px, 9vw, 112px) clamp(42px, 6vw, 72px); }
.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: -360px -80px auto 42%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .17), rgba(255, 90, 31, .04) 44%, transparent 70%);
  content: "";
  pointer-events: none;
}
:root[data-theme="light"] .page-hero::before { opacity: .58; }
.eyebrow { margin: 0 0 16px; color: var(--orange); font-size: 13px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { max-width: 860px; margin-block-end: 22px; font-size: clamp(44px, 7.5vw, 76px); font-weight: 780; line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
.hero-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; text-wrap: pretty; }

.page-content { padding-block: 0 clamp(72px, 9vw, 112px); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: clamp(28px, 5vw, 64px); }
.document-card, .side-card, .action-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}
:root[data-theme="light"] .document-card,
:root[data-theme="light"] .side-card,
:root[data-theme="light"] .action-card { box-shadow: 0 24px 60px rgba(74, 58, 39, .1); }
.document-card { min-width: 0; padding: clamp(28px, 5vw, 58px); border-radius: var(--radius-lg); }
.document-card > :first-child { margin-block-start: 0; }
.document-card > :last-child { margin-block-end: 0; }
.document-card h2 { margin: 42px 0 12px; font-size: clamp(23px, 3vw, 30px); font-weight: 740; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.document-card h2[id] { scroll-margin-top: 110px; }
.document-card h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.document-card p, .document-card li { color: var(--muted); }
.document-card p { max-width: 68ch; margin-block-end: 18px; }
.document-card ul { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.document-card li { position: relative; padding-inline-start: 30px; }
.document-card li::before { position: absolute; inset-block-start: .27em; inset-inline-start: 0; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); content: "✓"; font-size: 11px; font-weight: 800; }
.document-card a, .side-card a, .site-footer a { text-decoration-thickness: from-font; text-underline-position: from-font; }
.document-card a { color: var(--orange); font-weight: 650; overflow-wrap: break-word; }
.updated { display: inline-flex; margin: 0 0 30px; padding: 7px 11px; border-radius: 999px; color: var(--muted); background: var(--surface-raised); font-size: 13px; }

.side-stack { position: sticky; inset-block-start: 110px; display: grid; gap: 14px; }
.side-card { padding: 22px; border-radius: 22px; }
.side-card h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .01em; }
.side-nav { display: grid; gap: 6px; }
.side-nav a { min-height: 38px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s ease-out, background-color .15s ease-out; }
.side-nav a:hover { color: var(--text); background: var(--surface-raised); }
.side-card p { margin: 0; color: var(--muted); font-size: 13px; }

.price-panel { position: relative; overflow: hidden; margin-block-end: 34px; padding: clamp(24px, 4vw, 34px); border-radius: 24px; color: #fff; background: #111113; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.price-panel::after { position: absolute; inset: auto -100px -170px auto; width: 330px; height: 330px; border-radius: 50%; background: rgba(255, 90, 31, .26); filter: blur(22px); content: ""; }
.price-label { position: relative; z-index: 1; margin: 0 0 4px; color: #bdbdc2; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price { position: relative; z-index: 1; margin: 0; color: #fff !important; font-size: clamp(38px, 7vw, 58px); font-weight: 780; line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price-note { position: relative; z-index: 1; margin: 8px 0 0 !important; color: #bdbdc2 !important; font-size: 14px; }
.details { display: grid; gap: 4px; margin-block-start: 16px; padding: 22px; border-radius: 18px; background: var(--surface-raised); }
.details p { margin: 0; }
.details strong { color: var(--text); font-size: 18px; }
.detail-label { display: block; margin-block-start: 12px; color: var(--muted-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.detail-value { color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.support-intro { margin-block-end: 34px; }
.support-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-start: 34px; }
.action-card { display: grid; gap: 18px; min-height: 190px; padding: 26px; border-radius: 24px; text-decoration: none; transition: transform .15s ease-out, border-color .15s ease-out, background-color .15s ease-out; }
.action-card:hover { border-color: var(--line-strong); background: var(--surface-raised); transform: translateY(-3px); }
.action-card:active { transform: scale(.96); }
.action-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--orange); background: rgba(255, 90, 31, .1); }
.action-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-card strong { display: block; margin-block-end: 4px; font-size: 18px; }
.action-card span { color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s ease-out; }
.footer-links a:hover, .footer-note a:hover { color: var(--text); }
.footer-note { margin: 0; color: var(--muted-soft); font-size: 12px; text-align: end; }
.footer-note a { color: inherit; }

@media (max-width: 780px) {
  .container { width: min(100% - 36px, var(--content)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 120px; }
  .button.header-back { min-height: 42px; padding-inline: 14px; font-size: 13px; }
  .page-hero { padding-block: 58px 46px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .side-card.navigation { display: none; }
  .support-actions { grid-template-columns: 1fr; }
  .action-card { min-height: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-note { text-align: start; }
}

@media (max-width: 440px) {
  .header-actions { gap: 8px; }
  .theme-toggle { width: 40px; height: 40px; }
  .header-back .wide-label { display: none; }
  h1 { font-size: clamp(40px, 13vw, 56px); }
  .document-card { padding: 24px 20px; border-radius: 24px; }
  .side-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .theme-toggle, .button, .document-card, .side-card, .action-card { border: 1px solid CanvasText; }
}
