:root {
  color-scheme: light dark;
  --page: #f6f7fb;
  --surface: #fcfcfe;
  --surface-soft: #eff0f7;
  --ink: #20212a;
  --muted: #626473;
  --faint: #777987;
  --line: #dfe1e9;
  --accent: #5148b6;
  --accent-strong: #403794;
  --accent-soft: #ebe9fb;
  --success: #167a5d;
  --success-soft: #e3f3ed;
  --focus: #7369dd;
  --shadow: 0 18px 45px rgba(58, 55, 91, 0.09);
  --radius-card: 18px;
  --radius-control: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(69, 61, 158, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

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

.hero {
  min-height: min(590px, calc(100dvh - 73px));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: 72px 0;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 760;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 57ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fbfaff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 9px 24px rgba(81, 72, 182, 0.18);
  transition: transform 140ms ease, background-color 140ms ease;
}

.button:hover {
  background: var(--accent-strong);
  color: #fbfaff;
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.hero-mark {
  justify-self: end;
  width: min(100%, 330px);
  aspect-ratio: 1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-card) - 5px);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 0 0 88px;
}

.hub-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.hub-card:nth-child(2),
.hub-card:nth-child(3) {
  background: var(--surface-soft);
}

.hub-card:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  color: var(--ink);
  transform: translateY(-2px);
}

.hub-card strong {
  font-size: 22px;
  letter-spacing: -0.025em;
}

.hub-card span {
  color: var(--muted);
}

.legal-hero {
  padding: 72px 0 48px;
}

.legal-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 6vw, 62px);
}

.legal-hero > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.updated {
  margin-top: 18px;
  color: var(--faint);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding-bottom: 96px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-strong);
}

.legal-card {
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 44px;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 31px);
}

.legal-card h3 {
  margin: 25px 0 8px;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul,
.legal-card ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 9px;
}

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

.callout {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--line));
  border-radius: var(--radius-control);
  background: var(--success-soft);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.contact-panel {
  margin-top: 38px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}

.contact-panel h2,
.contact-panel h3 {
  margin-top: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.support-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.support-block h2,
.support-block h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.support-block p {
  margin: 0;
}

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

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --page: #12131a;
    --surface: #1a1b24;
    --surface-soft: #22232e;
    --ink: #f0f0f5;
    --muted: #b8b9c4;
    --faint: #9698a7;
    --line: #323441;
    --accent: #8e86e8;
    --accent-strong: #b3adf5;
    --accent-soft: #292641;
    --success: #62cba8;
    --success-soft: #17352d;
    --focus: #a9a3f2;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  }

  .button {
    background: #756cda;
    color: #fcfbff;
  }

  .button:hover {
    background: #675ec9;
  }
}

@media (max-width: 780px) {
  .nav {
    min-height: 66px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 0 64px;
  }

  .hero-mark {
    justify-self: start;
    width: min(68vw, 270px);
  }

  .hub-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .toc {
    position: static;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (max-width: 480px) {
  .shell,
  .nav,
  .footer-inner {
    width: min(calc(100% - 30px), var(--max));
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .legal-hero {
    padding-top: 50px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
