:root {
  color-scheme: light;
  --ink: #171a2b;
  --muted: #62677b;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --line: #dfe2ec;
  --violet: #5b5ce2;
  --violet-soft: #e8e8ff;
  --mint: #bff3dc;
  --coral: #ff806d;
  --shadow: 0 20px 60px rgb(37 39 76 / 10%);
  --display: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  --utility: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 23px, rgb(91 92 226 / 5%) 24px, transparent 25px) 0 0 / 48px 48px,
    linear-gradient(transparent 23px, rgb(91 92 226 / 5%) 24px, transparent 25px) 0 0 / 48px 48px,
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(223 226 236 / 85%);
  background: rgb(246 247 251 / 88%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner,
.hero,
.document,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--violet);
  color: #fff;
  box-shadow: 5px 5px 0 var(--mint);
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 16px rgb(37 39 76 / 7%);
}

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 72px;
  padding-block: 82px 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-meta {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--ink);
}

.layer-figure {
  position: relative;
  height: 292px;
  margin: 0;
}

.layer-card {
  position: absolute;
  width: 210px;
  height: 250px;
  border: 1px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.layer-card::before,
.layer-card::after {
  content: "";
  position: absolute;
}

.layer-card.back {
  top: 6px;
  left: 0;
  background: var(--mint);
  transform: rotate(-8deg);
}

.layer-card.middle {
  top: 21px;
  left: 52px;
  background: var(--coral);
  transform: rotate(7deg);
}

.layer-card.front {
  top: 31px;
  left: 26px;
  display: grid;
  place-items: center;
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, #edf0f6 25%, transparent 25%),
    linear-gradient(-45deg, #edf0f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf0f6 75%),
    linear-gradient(-45deg, transparent 75%, #edf0f6 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  transform: rotate(-1deg);
}

.layer-card.front::before {
  inset: 34px 38px 30px;
  border: 2px solid var(--violet);
  border-radius: 58% 42% 44% 56% / 40% 44% 56% 60%;
  background: rgb(91 92 226 / 12%);
}

.layer-card.front::after {
  width: 14px;
  height: 14px;
  top: 25px;
  right: 27px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: -144px 178px 0 -2px var(--surface), -144px 178px 0 0 var(--ink);
}

.document {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 58px;
  padding-bottom: 96px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 82%);
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.content {
  min-width: 0;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}

.assurance {
  min-height: 130px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}

.assurance strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 17px;
}

.assurance p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.language-block {
  margin-bottom: 26px;
  padding: clamp(25px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 24px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-block h2 {
  margin: 42px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.language-block h2:first-of-type {
  margin-top: 0;
}

.language-block h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.language-block p,
.language-block li {
  color: #3f4355;
}

.language-block ul,
.language-block ol {
  padding-left: 1.25em;
}

.language-block li + li {
  margin-top: 8px;
}

.language-block a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--violet);
  border-radius: 0 14px 14px 0;
  background: var(--violet-soft);
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

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

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

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

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--mint);
}

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

.contact-panel p {
  color: #343846;
}

.contact-button {
  flex: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 34px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 58px 42px;
  }

  .layer-figure {
    display: none;
  }

  .document {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .hero,
  .document,
  .site-footer {
    width: min(100% - 26px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    display: none;
  }

  .site-nav a {
    padding-inline: 10px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

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

  .contact-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }
}

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