:root {
  --colorBg: #fff;
  --colorInk: #0E1F7B;
  --colorSoft: #EEF1FB;
  --colorField: #EEF1FB;
  --colorButton: #0E1F7B;
  --colorButtonText: #fff;
  --logoFilter: none;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .8s;
  --durFast: .3s;
  --loop: 2.4s;
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
  --headerHeight: 72px;
  --viewportOffset: calc(var(--headerHeight) + var(--safeTop) + var(--safeBottom));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --colorBg: #0A0F2E;
    --colorInk: #C9D4FF;
    --colorSoft: #151C4A;
    --colorField: #1A2257;
    --colorButton: #C9D4FF;
    --colorButtonText: #0A0F2E;
    --logoFilter: brightness(0) invert(1);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html {
  padding-top: var(--safeTop);
  padding-bottom: var(--safeBottom);
  scroll-padding-top: calc(var(--headerHeight) + var(--safeTop));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--safeTop) - var(--safeBottom));
  margin: 0;
  overflow-x: hidden;
  background: var(--colorBg);
  color: var(--colorInk);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 29;
  height: var(--safeTop);
  background: var(--colorBg);
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--colorButton); outline-offset: 3px; border-radius: 4px; }
.srOnly { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal:not(.isVisible) { opacity: 0; transform: translate3d(0, 28px, 0); }
.reveal.isVisible { animation: revealIn var(--dur) var(--ease) var(--delay, 0ms) backwards; }
@keyframes revealIn { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.siteHeader {
  position: sticky;
  top: var(--safeTop);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 5vw;
  background: var(--colorBg);
  box-shadow: 0 1px 0 var(--colorSoft);
}
.logo img { display: block; width: auto; height: 2.125rem; filter: var(--logoFilter); }
.mainNav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.navLink { padding: .2rem 0; border-bottom: 2px solid transparent; font-size: 1.05rem; transition: border-color var(--durFast) var(--ease); }
.navLink:hover { border-color: currentColor; }
.navLink[aria-current="page"] { font-weight: 700; }
.menuToggle { display: none; margin-left: auto; padding: .3rem; background: none; border: 0; cursor: pointer; }
.languageMenu { position: relative; }
.languageToggle { display: flex; align-items: center; gap: .4rem; padding: .2rem; background: none; border: 0; cursor: pointer; }
.languageList {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 110px;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: var(--colorBg);
  border: 2px solid var(--colorInk);
  border-radius: 10px;
}
.languageMenu.isOpen .languageList { display: block; animation: dropIn var(--durFast) var(--ease); }
.languageList button { width: 100%; padding: .4rem .7rem; text-align: left; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.languageList button:hover { background: var(--colorSoft); }
main { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 3rem 5vw 4rem; }
.pageCentered { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--viewportOffset)); }
.illustration { display: block; color: var(--colorInk); }
.illustration .fillInk { fill: currentColor; stroke: none; }
.illustration .panel { fill: var(--colorBg); stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.illustration .panelFill { fill: var(--colorBg); stroke: none; }
.illustration .line { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.illustration .lineThick { fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.illustration .lineThin { stroke-width: 3; }
.illustration .lineMedium { stroke-width: 10; }
.illustration .tint { fill: currentColor; fill-opacity: .15; stroke: none; }
@media (max-width: 1000px) {
  .menuToggle { display: block; }
  .mainNav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: flex-start; gap: 1.2rem; margin: 0; padding: 1.5rem 5vw 2rem; background: var(--colorBg); border-bottom: 2px solid var(--colorSoft); }
  .mainNav.isOpen { display: flex; animation: dropIn var(--durFast) var(--ease); }
  .page { padding: 2.2rem 6vw 3rem; }
  .pageCentered { justify-content: flex-start; min-height: auto; }
}
.languageList button[aria-current="true"] { font-weight: 700; }
@media (min-width: 1600px) {
  html { font-size: 112.5%; }
  .page { max-width: 1320px; }
}
@media (min-width: 2200px) {
  html { font-size: 125%; }
  .page { max-width: 1500px; }
}
@media (pointer: coarse) {
  .navLink { padding: .6rem 0; }
  .menuToggle { padding: .6rem; }
  .languageToggle { padding: .5rem; }
  .languageList button { padding: .7rem; }
}
