:root {
  color-scheme: dark;
  --ink: #090e17;
  --ink-deep: #05080f;
  --panel: rgba(19, 28, 43, 0.9);
  --panel-strong: #182337;
  --line: rgba(255, 255, 255, 0.1);
  --line-accent: rgba(59, 219, 176, 0.36);
  --text: #f5f8fb;
  --muted: #a7b0bf;
  --accent: #3bdbb0;
  --accent-deep: #13a982;
  --warning: #ffb84d;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(59, 219, 176, 0.16), transparent 33rem),
    radial-gradient(circle at 92% 10%, rgba(88, 171, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(59, 219, 176, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 23, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  padding: 5px;
  border: 1px solid var(--line-accent);
  border-radius: 13px;
  background: linear-gradient(145deg, #17243a, #0a101b);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.brand-copy { line-height: 1; }

.brand-name {
  display: block;
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.brand-tagline {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-nav,
.footer-nav,
.language-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.top-nav { justify-content: flex-end; }

.top-nav a,
.language-link {
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.language-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero { padding: 80px 0 42px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.65;
}

.language-row,
.meta-row { margin-top: 26px; }

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 720;
}

.pill.live { color: var(--accent); }

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

.card {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%), var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.card:hover {
  border-color: var(--line-accent);
  background: linear-gradient(145deg, rgba(59, 219, 176, 0.08), transparent 50%), var(--panel-strong);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(59, 219, 176, 0.25);
  border-radius: 14px;
  color: var(--accent);
  background: rgba(59, 219, 176, 0.08);
  font-size: 20px;
}

.card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 56px;
  padding-bottom: 90px;
}

.side-nav {
  position: sticky;
  top: 108px;
  display: flex;
  height: fit-content;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.side-nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.prose {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.prose section + section,
.prose .language-section + .language-section {
  margin-top: 70px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 42px 0 14px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

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

.prose h3 {
  margin: 30px 0 10px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: #d0d6df;
  font-size: 15px;
  line-height: 1.78;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 22px; }

.notice,
.contact-box {
  margin: 24px 0;
  padding: 19px 21px;
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  background: rgba(59, 219, 176, 0.06);
}

.notice.warning {
  border-color: rgba(255, 184, 77, 0.38);
  background: rgba(255, 184, 77, 0.065);
}

.notice p,
.contact-box p { margin: 0; }

.notice p + p,
.contact-box p + p { margin-top: 8px; }

.steps li + li { margin-top: 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-nav { justify-content: flex-end; }

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--text); }

@media (max-width: 800px) {
  .top-nav { display: none; }
  .hero { padding-top: 58px; }
  .grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .prose { padding: 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 34px 0; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .shell { width: min(100% - 26px, 1120px); }
  .brand-tagline { display: none; }
  h1 { font-size: 42px; }
  .prose { padding: 20px; }
}

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