:root {
  color-scheme: dark;
  --background: #071017;
  --background-deep: #04090d;
  --surface: rgba(18, 31, 40, 0.88);
  --surface-strong: #101c24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(102, 211, 255, 0.3);
  --text: #f4f8fa;
  --muted: #9aaab4;
  --blue: #45c6fb;
  --blue-deep: #188bc7;
  --green: #5ee2a0;
  --danger: #ff8a8a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --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 {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(69, 198, 251, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(24, 139, 199, 0.11), transparent 28rem),
    linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(69, 198, 251, 0.72);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #041017;
  background: var(--blue);
  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(7, 16, 23, 0.78);
  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: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #1a2731, #091017);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.25);
}

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

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

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

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a,
.language-link {
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  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(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

.meta-row,
.language-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  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: 700;
}

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

.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 46%),
    var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(69, 198, 251, 0.08), transparent 48%),
    var(--surface-strong);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(69, 198, 251, 0.22);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(69, 198, 251, 0.07);
  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(--blue);
  font-size: 13px;
  font-weight: 750;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 56px;
  align-items: start;
  padding: 12px 0 96px;
}

.side-nav {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

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

.prose {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(12, 22, 29, 0.72);
  box-shadow: var(--shadow);
}

.prose section + section { margin-top: 54px; }

.prose .language-section {
  padding-top: 10px;
  scroll-margin-top: 96px;
}

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

.prose h2,
.prose h3 {
  scroll-margin-top: 106px;
  color: var(--text);
  letter-spacing: -0.025em;
}

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

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

.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

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

.prose strong { color: var(--text); }

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

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

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

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(69, 198, 251, 0.18);
  border-radius: 16px;
  background: rgba(69, 198, 251, 0.055);
}

.notice p { margin: 0; }

.steps {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 52px;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #041017;
  background: var(--blue);
  content: counter(steps);
  font-size: 13px;
  font-weight: 850;
}

.contact-box {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(69, 198, 251, 0.08), rgba(255, 255, 255, 0.02));
}

.contact-box p { margin: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 12, 0.72);
}

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

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 16px;
}

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

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

@media (max-width: 820px) {
  .top-nav a:not(.support-nav) { display: none; }
  .hero { padding-top: 58px; }
  .grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 18px; }
  .side-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-nav a { border: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .brand-tagline { display: none; }
  .header-inner { min-height: 68px; }
  .hero { padding-top: 46px; }
  h1 {
    font-size: 36px;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
  }
  .prose { padding: 24px 20px; border-radius: 22px; }
  .prose p, .prose li { font-size: 15px; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 30px 0; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
