:root {
  color-scheme: dark;
  --navy: #101326;
  --navy-deep: #090b17;
  --card: #1b2038;
  --card-soft: #222844;
  --coral: #ff6f75;
  --peach: #ffb28d;
  --gold: #f4c96d;
  --lavender: #b8a8ff;
  --text: #fffaf6;
  --muted: #bfc2d4;
  --line: rgba(255, 255, 255, 0.11);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 7%, rgba(184, 168, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 14% 34%, rgba(255, 111, 117, 0.11), transparent 26rem),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--peach);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffd1bb;
}

.site-header,
footer {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--gold);
  background: rgba(244, 201, 109, 0.1);
  border: 1px solid rgba(244, 201, 109, 0.25);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

nav,
.footer-links {
  display: flex;
  gap: 22px;
}

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

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

main {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
}

.hero {
  max-width: 830px;
  padding: clamp(76px, 12vw, 140px) 0 clamp(62px, 9vw, 100px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: -0.05em;
}

h1 span {
  color: var(--peach);
}

.lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.07rem, 2.5vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #1b1014;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  box-shadow: 0 12px 32px rgba(255, 111, 117, 0.22);
}

.button.primary:hover {
  color: #1b1014;
  filter: brightness(1.06);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

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

.card,
.document {
  background: linear-gradient(160deg, rgba(34, 40, 68, 0.95), rgba(24, 29, 51, 0.94));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.card {
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 9px;
  color: var(--gold);
  background: rgba(244, 201, 109, 0.11);
  border: 1px solid rgba(244, 201, 109, 0.2);
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 900;
}

.card h2 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.document-wrap {
  max-width: 850px;
  padding: clamp(55px, 8vw, 90px) 0;
}

.document {
  padding: clamp(25px, 6vw, 56px);
}

.document h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.document h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
}

.document h3 {
  margin: 28px 0 6px;
  font-size: 1.07rem;
}

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

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

.document ul,
.document ol {
  padding-left: 1.35rem;
}

.document li + li {
  margin-top: 7px;
}

.updated,
.small-note {
  font-size: 0.9rem;
}

.inline-button {
  margin-top: 8px;
}

footer {
  min-height: 92px;
  color: #8e92a8;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 74px;
  }

  .brand span:last-child {
    display: none;
  }

  nav,
  .footer-links {
    gap: 16px;
  }

  .actions,
  .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}

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