:root {
  color-scheme: dark;
  --yellow: #ffd600;
  --black: #080808;
  --panel: #121212;
  --panel-raised: #181818;
  --text: #f7f7f2;
  --muted: #aaa9a2;
  --line: #2f2f2c;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

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

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.brand img { border-radius: 13px; }

.site-header nav,
footer div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

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

.hero {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "↗";
  position: absolute;
  right: 2%;
  bottom: -9rem;
  color: var(--yellow);
  font-size: clamp(18rem, 38vw, 34rem);
  font-weight: 900;
  line-height: 1;
  opacity: .10;
  pointer-events: none;
}

.eyebrow,
.section-number {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.lede {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary { background: var(--yellow); color: #080808; border-color: var(--yellow); }
.button-primary:hover { background: #ffe34d; }
.button-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

.principles {
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(180px, .6fr) 2fr;
  gap: 48px;
}

.principles h2,
.support-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  min-height: 250px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.card-icon {
  display: block;
  margin-bottom: 48px;
  color: var(--yellow);
  font-size: 2.4rem;
  font-weight: 900;
}

.card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.card p { margin-bottom: 0; color: var(--muted); }

.support-panel {
  margin-bottom: 80px;
  padding: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.support-panel p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); }

.legal-layout {
  padding: 72px 0 100px;
  display: grid;
  grid-template-columns: 300px minmax(0, 720px);
  justify-content: space-between;
  gap: 72px;
}

.legal-layout aside { position: sticky; top: 28px; align-self: start; }
.legal-layout aside h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.legal-layout aside > p:not(.eyebrow) { color: var(--muted); }

.legal-nav { display: grid; margin-top: 32px; }
.legal-nav a { padding: 9px 0; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.legal-nav a:hover { color: var(--yellow); }

.legal-content section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.legal-content h3 { margin: 28px 0 8px; }
.legal-content p,
.legal-content li { color: #cecdc7; }
.legal-content a { color: var(--yellow); text-underline-offset: 3px; }
.legal-content li + li { margin-top: 8px; }

footer {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 780px) {
  .site-header { align-items: flex-start; padding: 20px 0; }
  .site-header nav { gap: 14px; font-size: .9rem; }
  .hero { min-height: 540px; }
  .principles { grid-template-columns: 1fr; padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .card-icon { margin-bottom: 28px; }
  .support-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 52px; }
  .legal-layout aside { position: static; }
  .legal-nav { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
}

@media (max-width: 520px) {
  .site-header,
  footer { flex-direction: column; align-items: flex-start; }
  .site-header nav,
  footer div { flex-wrap: wrap; gap: 14px 18px; }
  h1 { font-size: 3.1rem; }
  footer { padding: 28px 0; }
}

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