:root {
  --bg: #051316;
  --bg-soft: #0a2025;
  --surface: rgba(10, 42, 48, 0.82);
  --surface-strong: rgba(12, 52, 61, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4ffff;
  --muted: rgba(255, 255, 255, 0.68);
  --primary: #38e6d2;
  --info: #6bb9ff;
  --warning: #ffb66b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(56, 230, 210, 0.08), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(107, 185, 255, 0.10), transparent 22%),
    linear-gradient(180deg, #07171b 0%, #051316 42%, #030d10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 230, 210, 0.14);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pill-link:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 230, 210, 0.28);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-card,
.panel,
.doc-card,
.contact-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(8, 28, 35, 0.95), rgba(16, 54, 64, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 230, 210, 0.16), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 182, 107, 0.12);
  border: 1px solid rgba(255, 182, 107, 0.22);
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  max-width: 10ch;
}

.hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card.primary strong { color: var(--primary); }
.stat-card.info strong { color: var(--info); }
.stat-card.warning strong { color: var(--warning); }

.side-column {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel h2,
.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.panel p,
.section-header p,
.contact-card p,
.doc-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.contact-card strong {
  display: block;
  font-size: 14px;
}

.contact-card a {
  color: var(--primary);
  word-break: break-word;
}

.section-header {
  margin: 22px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 230, 210, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.doc-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.footer-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-align: center;
}

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

.article-sidebar {
  position: sticky;
  top: 22px;
  padding: 18px;
}

.sidebar-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-link {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  border-color: rgba(56, 230, 210, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.article {
  padding: 24px;
}

.article .hero-badge {
  margin-bottom: 16px;
}

.article h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}

.article .lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.article h2 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.article p,
.article li {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  font-size: 15px;
}

.article ul {
  margin: 10px 0 18px 20px;
  padding: 0;
}

.article li {
  padding-left: 4px;
  margin-bottom: 8px;
}

.article hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

.doc-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .article-shell,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 14px;
  }

  .hero-card,
  .panel,
  .article,
  .article-sidebar,
  .doc-card,
  .contact-card {
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
}
