:root {
  color-scheme: dark;
  --background: #090a0c;
  --surface: #111319;
  --surface-raised: #171a21;
  --text: #f4f5f7;
  --muted: #a4a9b4;
  --border: #2a2e38;
  --accent: #a8ff78;
  --accent-dark: #173d18;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(168, 255, 120, 0.09), transparent 30rem),
    var(--background);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent);
  text-underline-offset: 0.22em;
}

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

.site-header,
.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #071007;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--background);
}

.landing-shell,
.document-shell {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.landing-shell {
  padding: clamp(70px, 12vw, 150px) 0 100px;
}

.hero {
  max-width: 790px;
  margin-bottom: 70px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-copy {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

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

.document-card {
  position: relative;
  display: grid;
  min-height: 220px;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.document-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
}

.card-index {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.document-card strong,
.document-card span span {
  display: block;
}

.document-card strong {
  margin-bottom: 5px;
  font-size: 1.35rem;
}

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

.arrow {
  color: var(--accent);
  font-size: 1.55rem;
}

.document-shell {
  padding: 58px 0 110px;
}

.compact-document {
  min-height: calc(100vh - 190px);
}

.back-link {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.document-header {
  margin-bottom: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.document-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.document-header > p:last-child {
  margin-top: 24px;
  color: var(--muted);
}

article section {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 50px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

article section h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

article section > :not(h2) {
  grid-column: 2;
}

article section p,
article section ul,
article section address {
  margin: 0;
  color: #c8ccd4;
}

article section p + p {
  margin-top: 18px;
}

article section ul {
  padding-left: 1.2rem;
}

address {
  font-style: normal;
}

.site-footer {
  min-height: 98px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .landing-shell,
  .document-shell {
    width: min(100% - 28px, 920px);
  }

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

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

  .document-card {
    min-height: 190px;
  }

  article section {
    display: block;
  }

  article section h2 {
    margin-bottom: 18px;
  }

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