:root {
  --bg: #0b0b0d;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --line: #2c2c31;
  --text: #f6f6f7;
  --muted: #aaaab2;
  --accent: #ff4938;
  --accent-soft: rgba(255, 73, 56, 0.12);
  --max: 860px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 73, 56, 0.13), transparent 34rem),
    var(--bg);
  line-height: 1.72;
}

a { color: #ff7669; text-underline-offset: 0.18em; }
a:hover { color: #ff9a90; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand img, .brand-mark { border-radius: 18%; }

.lang-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.lang-switch a {
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.lang-switch a.active { color: #fff; background: var(--accent); }

.document { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.hero { padding: 88px 0 52px; border-bottom: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }

h1 { max-width: 760px; margin: 0; font-size: clamp(2.55rem, 8vw, 5rem); }

.lead { max-width: 720px; margin: 28px 0 20px; color: #d3d3d8; font-size: clamp(1.05rem, 2.3vw, 1.28rem); }

.updated { color: var(--muted); font-size: 0.9rem; }

.summary {
  margin: 48px 0 32px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 73, 56, 0.35);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
}

.summary h2, .toc h2 { margin: 0 0 14px; font-size: 1.15rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li + li { margin-top: 8px; }

.toc {
  margin: 0 0 32px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.toc ol { columns: 2; gap: 44px; margin: 0; padding-left: 1.4rem; }
.toc li { break-inside: avoid; margin: 7px 0; color: var(--muted); }
.toc a { color: #d5d5da; text-decoration: none; }
.toc a:hover { color: var(--accent); }

article > section:not(.contact-panel) { padding: 46px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
article > section:first-child { border-top: 0; }

article h2 { margin: 0 0 24px; font-size: clamp(1.55rem, 4vw, 2.2rem); }
article h2 > span { margin-right: 10px; color: var(--accent); font-size: 0.76rem; letter-spacing: 0; vertical-align: middle; }
article h3 { margin: 30px 0 10px; font-size: 1.13rem; }
article p, article li { color: #c4c4cb; }
article p { margin: 0 0 16px; }
article ul { padding-left: 1.3rem; }
article li + li { margin-top: 8px; }

.provider-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.provider-links a { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: #ededf0; background: var(--surface); text-decoration: none; }
.provider-links a:hover { border-color: var(--accent); }

.contact-panel {
  margin: 48px 0 90px;
  padding: clamp(28px, 6vw, 52px);
  border-radius: 26px;
  background: var(--accent);
  color: #fff;
}

.contact-panel .eyebrow, .contact-panel p { color: #fff; }
.contact-panel h2 { max-width: 600px; margin-bottom: 12px; }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 11px;
  color: #111;
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.landing { display: grid; min-height: 100svh; place-items: center; padding: 32px 20px; }

.language-card {
  width: min(100%, 620px);
  padding: clamp(28px, 7vw, 56px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.language-card h1 { margin: 12px 0 18px; font-size: clamp(2.2rem, 8vw, 4.2rem); }
.language-card h1 span { color: #888891; }
.language-card .intro { color: var(--muted); }
.language-card .intro span { color: #7f7f87; }
.language-card .contact { display: inline-block; margin-top: 8px; font-size: 0.9rem; }

.language-grid { display: grid; gap: 12px; margin: 30px 0 24px; }

.language-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.language-link:hover { transform: translateY(-1px); border-color: #5a5a62; color: #fff; }
.language-link.primary { border-color: rgba(255, 73, 56, 0.5); background: var(--accent-soft); }
.language-link strong, .language-link small { display: block; }
.language-link small { margin-top: 2px; color: var(--muted); }
.language-code { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #fff; background: var(--accent); font-size: 0.78rem; font-weight: 900; }

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .document { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 58px 0 38px; }
  .summary, .toc { padding: 22px; border-radius: 16px; }
  .toc ol { columns: 1; }
  .provider-links { grid-template-columns: 1fr; }
  article > section:not(.contact-panel) { padding: 36px 0; }
  footer { flex-direction: column; }
}

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