:root {
  color-scheme: light dark;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #17202a;
  --sub: #667085;
  --border: #d9e1ea;
  --accent: #4f7ea8;
  --focus: #4f7ea8;
  --wrap: 1040px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141b;
  --surface: #161d27;
  --text: #eef3f8;
  --sub: #9aa8b7;
  --border: #293544;
  --accent: #7ba6c9;
  --focus: #7ba6c9;
}

html[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f141b;
    --surface: #161d27;
    --text: #eef3f8;
    --sub: #9aa8b7;
    --border: #293544;
    --accent: #7ba6c9;
    --focus: #7ba6c9;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.logo {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .11em;
  text-decoration: none;
}

nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a {
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav a:hover { border-bottom-color: var(--accent); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.language-menu {
  position: relative;
}

.language-toggle,
.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  cursor: pointer;
}

.toolbar-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  display: none;
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
}

html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  min-width: 128px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .12);
  padding: 4px;
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}

.language-options button[aria-checked="true"]::after {
  content: "";
  align-self: center;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.language-options button:hover {
  background: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: clamp(420px, 62vh, 620px);
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 34%, rgba(255, 255, 255, .7), transparent 18%),
    radial-gradient(circle at 92% 32%, rgba(195, 214, 231, .26), transparent 22%),
    radial-gradient(circle at 74% 70%, rgba(123, 166, 201, .08), transparent 36%),
    linear-gradient(180deg, #f7f9fb 0, #eef4f8 100%);
}

.hero-inner {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 156px) clamp(20px, 5vw, 40px);
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  left: 76%;
  top: 34%;
  width: min(104vw, 900px);
  height: min(42vw, 310px);
  background:
    radial-gradient(circle at 18% 58%, rgba(255, 255, 255, .72), transparent 20%),
    radial-gradient(circle at 33% 38%, rgba(225, 235, 244, .66), transparent 22%),
    radial-gradient(circle at 52% 54%, rgba(255, 255, 255, .58), transparent 21%),
    radial-gradient(circle at 70% 36%, rgba(198, 216, 232, .48), transparent 22%),
    radial-gradient(circle at 84% 58%, rgba(255, 255, 255, .46), transparent 19%);
  filter: blur(30px);
  opacity: .66;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .46), transparent 36%, rgba(123, 166, 201, .05) 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .34), transparent 30%);
  opacity: .66;
  pointer-events: none;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 76% 34%, rgba(238, 243, 248, .07), transparent 18%),
    radial-gradient(circle at 92% 32%, rgba(123, 166, 201, .14), transparent 22%),
    radial-gradient(circle at 74% 70%, rgba(123, 166, 201, .08), transparent 36%),
    linear-gradient(180deg, #0f141b 0, #121b25 100%);
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 18% 58%, rgba(238, 243, 248, .08), transparent 20%),
    radial-gradient(circle at 33% 38%, rgba(123, 166, 201, .14), transparent 22%),
    radial-gradient(circle at 52% 54%, rgba(238, 243, 248, .07), transparent 21%),
    radial-gradient(circle at 70% 36%, rgba(123, 166, 201, .12), transparent 22%),
    radial-gradient(circle at 84% 58%, rgba(238, 243, 248, .06), transparent 19%);
  opacity: .78;
}

html[data-theme="dark"] .hero::after {
  background:
    linear-gradient(180deg, rgba(238, 243, 248, .025), transparent 36%, rgba(123, 166, 201, .04) 100%),
    radial-gradient(circle at 50% 30%, rgba(238, 243, 248, .05), transparent 30%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 18px var(--bg);
  max-width: 560px;
  margin-left: 0;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.wordmark {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .11em;
}

.entity-type {
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.hero-rule {
  width: min(52vw, 320px);
  height: 1px;
  margin: 36px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--border), transparent);
}

.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  border-left: 0;
  padding-left: 0;
}

.section h2 .num {
  font-size: 13px;
  font-weight: 400;
  color: var(--sub);
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  counter-reset: item;
}
.plain-list li {
  counter-increment: item;
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.plain-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--sub);
  font-size: 14px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}
.info-table th,
.info-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 400;
  vertical-align: top;
}
.info-table th {
  width: 9em;
  color: var(--sub);
}


footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px);
  font-size: 12px;
  color: var(--sub);
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  header { padding: 16px 20px; }
  nav { gap: 18px; }
  .hero,
  .section {
    grid-template-columns: 1fr;
  }
  .hero-inner { padding: 72px 20px; }
  .section, footer { padding-left: 20px; padding-right: 20px; }
  .hero-copy { margin-left: 0; }
  .hero-copy h1 { gap: 10px; font-size: 36px; }
  .wordmark { letter-spacing: .085em; }
  .entity-type { font-size: 12px; }
  .info-table th { width: 7em; }
}

.section-body { min-width: 0; }
.section-body .lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.9;
}
.section-body .lead:last-child { margin: 28px 0 0; }
.section-body .lead a { color: var(--accent); }

.link-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.link-card:hover { border-color: var(--accent); }
.link-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1.91 / 1; background: var(--border); }
.link-card-body { display: grid; align-content: center; gap: 6px; padding: 16px 20px; font-size: 14px; color: var(--sub); }
.link-card-body strong { font-size: 16px; color: var(--text); }
.link-card-body small { font-size: 12px; }
@media (max-width: 560px) { .link-card { grid-template-columns: 1fr; } }
