:root {
  color-scheme: light;
  --ink: #25263d;
  --muted: #626477;
  --line: #e7e3dc;
  --paper: #faf8f3;
  --card: #ffffff;
  --accent: #5c65a8;
  --accent-soft: #eceefa;
  --shadow: 0 18px 50px rgba(54, 56, 83, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid rgba(92, 101, 168, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid rgba(231, 227, 220, 0.8);
}

.header-inner,
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  min-height: calc(100vh - 150px);
  align-items: center;
  padding: 88px 0 110px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 76px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 250px;
  height: 250px;
  background:
    radial-gradient(circle at 35% 35%, #f5d2a4 0 12%, transparent 13%),
    radial-gradient(circle at 67% 52%, #c9d7bc 0 17%, transparent 18%),
    radial-gradient(circle at 42% 75%, #c9ccef 0 22%, transparent 23%);
  content: "";
  opacity: 0.78;
  transform: rotate(8deg);
}

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

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 7.5vw, 78px);
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 13px;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.page-main {
  padding: 66px 0 92px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.page-heading h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.document {
  max-width: 760px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.document h2 {
  margin: 40px 0 10px;
  font-size: 25px;
}

.document h2:first-child {
  margin-top: 0;
}

.document h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.document p,
.document ul {
  margin: 10px 0;
}

.document ul {
  padding-left: 24px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
}

.support-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.support-card p {
  margin: 0;
  color: var(--muted);
}

.support-contact {
  grid-column: 1 / -1;
  border-color: rgba(92, 101, 168, 0.3);
  background: var(--accent-soft);
}

.site-footer {
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 960px);
  }

  .header-inner,
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 72px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .hero-card::after {
    top: -145px;
    right: -120px;
  }

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

  .support-contact {
    grid-column: auto;
  }
}

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