@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --bg: #07100b;
  --bg-soft: #0d1b14;
  --surface: rgba(18, 34, 25, 0.84);
  --surface-soft: rgba(24, 43, 33, 0.88);
  --line: rgba(138, 232, 186, 0.22);
  --text: #ecfff2;
  --muted: #b0cabd;
  --accent: #39d98a;
  --accent-soft: #8cf5c2;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(92, 227, 158, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(57, 217, 138, 0.12), transparent 28%),
    linear-gradient(180deg, #060d09 0%, #09140f 52%, #060d09 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.site-shell {
  width: min(1040px, 94vw);
  margin: 0 auto;
  padding: 18px 0 72px;
}

.page-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-bottom: 28px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 18, 13, 0.88);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #07301a;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
}

.header-actions,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill-link,
.language-switch a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 35, 26, 0.72);
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
}

.language-switch a[aria-current="page"] {
  color: #062c17;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
  border-color: transparent;
  font-weight: 700;
}

.hero-card,
.panel,
.article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.28;
}

h3 {
  font-size: 1.08rem;
}

.lead {
  margin: 16px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.85;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 232, 186, 0.24);
  background: rgba(9, 29, 20, 0.86);
  color: var(--accent-soft);
  font-size: 0.9rem;
}

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

.doc-card,
.side-card {
  padding: 22px;
}

.doc-card p,
.side-card p,
.article-section p,
.article-section li,
.footnote {
  color: var(--muted);
  line-height: 1.85;
}

.doc-card p,
.side-card p {
  margin: 12px 0 0;
}

.card-actions {
  margin-top: 16px;
}

.cta-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #062c17;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
  text-decoration: none;
  font-weight: 700;
}

.content-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 24px;
}

.panel h2,
.panel h3 {
  margin-bottom: 12px;
}

.panel ul,
.article-section ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.panel li + li,
.article-section li + li {
  margin-top: 8px;
}

.article-shell {
  padding: 30px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.article-section + .article-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(138, 232, 186, 0.14);
}

.article-section {
  scroll-margin-top: 110px;
}

.article-section h2 {
  margin-bottom: 12px;
}

.article-section p {
  margin: 0;
}

.article-section p + p,
.article-section ul {
  margin-top: 12px;
}

.toc {
  position: sticky;
  top: 108px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

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

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--text);
}

.info-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 24, 18, 0.9);
  border: 1px solid rgba(138, 232, 186, 0.14);
}

.footer-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(138, 232, 186, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bar a {
  color: var(--accent-soft);
}

.page-footer {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .doc-grid,
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-top: 12px;
  }

  .header-bar,
  .hero-card,
  .panel,
  .article-shell,
  .doc-card,
  .side-card {
    padding: 20px;
  }

  .header-bar {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
