:root {
  --msc-bg: #f8fafc;
  --msc-panel: rgba(255, 255, 255, 0.92);
  --msc-panel-solid: #ffffff;
  --msc-border: #e2e8f0;
  --msc-border-strong: #cbd5e1;
  --msc-text: #334155;
  --msc-text-strong: #0f172a;
  --msc-text-muted: #64748b;
  --msc-link: #4f46e5;
  --msc-link-hover: #3730a3;
  --msc-accent-bg: #ecfeff;
  --msc-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --msc-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body.msc-static-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--msc-text);
  font-family: system-ui, -apple-system, sans-serif;
}

body.msc-static-page::before,
body.msc-static-page::after {
  content: '';
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

body.msc-static-page::before {
  top: -120px;
  left: -140px;
  background: rgba(79, 70, 229, 0.14);
}

body.msc-static-page::after {
  right: -120px;
  bottom: 0;
  background: rgba(14, 165, 233, 0.1);
}

body.msc-static-page a {
  color: var(--msc-link);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.msc-static-page a:hover {
  color: var(--msc-link-hover);
}

body.msc-static-page p,
body.msc-static-page li {
  line-height: 1.7;
}

.msc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.msc-site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.msc-brand {
  color: var(--msc-link);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.msc-brand:hover {
  opacity: 0.84;
}

.msc-topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.msc-language-select {
  border: 1px solid var(--msc-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--msc-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.msc-topnav a,
.msc-topnav button {
  color: var(--msc-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.msc-topnav a:hover,
.msc-topnav button:hover,
.msc-topnav .is-active {
  color: var(--msc-link);
}

.msc-header-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
}

.msc-page-shell {
  width: min(100% - 32px, 72rem);
  margin: 32px auto 56px;
  position: relative;
  z-index: 1;
}

body.msc-static-page main.wrap,
body.msc-static-page .wrap.msc-page-shell {
  max-width: none;
  padding: 0;
}

body.msc-static-page .card,
body.msc-static-page .hero,
body.msc-static-page .faq,
body.msc-static-page .tool-shell {
  background: var(--msc-panel);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: var(--msc-shadow-soft);
}

body.msc-static-page .card,
body.msc-static-page .hero,
body.msc-static-page .faq {
  padding: 28px;
}

body.msc-static-page .tool-shell {
  padding: 22px;
}

body.msc-static-page .hero,
body.msc-static-page .card {
  position: relative;
  overflow: hidden;
}

body.msc-static-page .hero::before,
body.msc-static-page .card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 55%, #10b981 100%);
}

body.msc-static-page h1,
body.msc-static-page h2,
body.msc-static-page h3,
body.msc-static-page h4 {
  color: var(--msc-text-strong);
  letter-spacing: -0.02em;
}

body.msc-static-page h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
}

body.msc-static-page .muted,
body.msc-static-page .date {
  color: var(--msc-text-muted);
  font-size: 0.82rem;
}

body.msc-static-page .grid {
  gap: 16px;
}

body.msc-static-page .guide,
body.msc-static-page .tile {
  border-radius: 18px;
  border: 1px solid var(--msc-border);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

body.msc-static-page .guide:hover,
body.msc-static-page .tile:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
}

body.msc-static-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--msc-accent-bg);
  border: 1px solid rgba(14, 165, 233, 0.12);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.msc-static-page .warn {
  border-left: 4px solid #d97706;
  background: #fffbeb;
  border-radius: 14px;
  padding: 14px 16px;
}

.msc-context-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

.msc-context-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--msc-border);
  background: rgba(248, 250, 252, 0.95);
  color: var(--msc-text);
}

.msc-context-links a:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--msc-link);
}

.msc-growth-panel {
  margin: 24px 0 0;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 52%, #0f766e 100%);
  color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.msc-growth-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msc-growth-panel h2 {
  margin: 14px 0 10px;
  color: #f8fafc;
  font-size: 1.5rem;
}

.msc-growth-panel p {
  margin: 0;
  color: #cbd5e1;
}

.msc-growth-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.msc-growth-bullets span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

.msc-growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.msc-related-guides {
  margin: 24px 0 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.msc-related-guides h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.msc-related-guides > p {
  margin: 0 0 14px;
  color: var(--msc-text-muted);
  font-size: 0.88rem;
}

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

.msc-related-card {
  display: block;
  border: 1px solid var(--msc-border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.msc-related-card strong {
  display: block;
  color: var(--msc-text-strong);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.msc-related-card span {
  display: block;
  color: var(--msc-text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.msc-growth-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.msc-growth-actions .primary {
  background: #ffffff;
  color: #0f172a;
}

.msc-growth-actions .secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.msc-site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}

.msc-site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.msc-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.msc-footer-title {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
}

.msc-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.msc-footer-list a,
.msc-footer-list button,
.msc-footer-mini a,
.msc-footer-mini button {
  color: #94a3b8;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.msc-footer-list a:hover,
.msc-footer-list button:hover,
.msc-footer-mini a:hover,
.msc-footer-mini button:hover {
  color: #818cf8;
}

.msc-footer-divider {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.72rem;
}

.msc-footer-copy p {
  margin: 0;
}

.msc-footer-copy p + p {
  margin-top: 4px;
}

.msc-footer-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

@media (max-width: 960px) {
  .msc-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .msc-topnav {
    justify-content: flex-start;
  }

  .msc-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msc-footer-divider {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .msc-page-shell {
    width: min(100% - 20px, 72rem);
    margin: 20px auto 36px;
  }

  .msc-site-header-inner,
  .msc-site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.msc-static-page .card,
  body.msc-static-page .hero,
  body.msc-static-page .faq,
  body.msc-static-page .tool-shell {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .msc-topnav {
    gap: 8px 12px;
  }

  .msc-footer-grid {
    grid-template-columns: 1fr;
  }

  .msc-related-grid {
    grid-template-columns: 1fr;
  }

  .msc-growth-panel {
    padding: 20px 18px;
  }
}