@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

:root {
  --accent: #ff8c42;
  --accent-soft: rgba(255, 140, 66, 0.14);
  --bg: #ffffff;
  --bg-elevated: #f9f9fb;
  --text: rgb(24 24 27);
  --text-muted: rgb(82 82 91);
  --text-subtle: rgb(113 113 122);
  --border: rgb(228 228 231);
}
.dark {
  --bg: #0a0a0a;
  --bg-elevated: rgb(24 24 27);
  --text: rgb(244 244 245);
  --text-muted: rgb(161 161 170);
  --text-subtle: rgb(113 113 122);
  --border: rgb(39 39 42);
  color-scheme: dark;
}

html { overflow-x: hidden; }
body.mc-home {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.mc-home h1, body.mc-home h2, body.mc-home h3,
body.mc-home h4, body.mc-home h5, body.mc-home h6,
body.mc-home p, body.mc-home ul, body.mc-home ol {
  padding: 0;
  font-family: inherit;
}
body.mc-home h1, body.mc-home h2, body.mc-home h3,
body.mc-home h4, body.mc-home h5, body.mc-home h6 {
  margin: 0;
}
body.mc-home p { margin: 0; }
body.mc-home .mc-lead { margin: 0 auto 2.5rem; }
body.mc-home .mc-section-sub { margin: 0 auto; }
body.mc-home .mc-credit-sub { margin: 0; }
body.mc-home a { color: inherit; }
body.mc-home * { box-sizing: border-box; }

.mc-mono {
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

.mc-gradient-text {
  background: linear-gradient(135deg, #ff8c42, #f97316 60%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  position: relative;
}

.mc-hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 30% -10%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-bottom: 1.5rem;
}

.mc-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.mc-lead {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  color: rgb(82 82 91);
}
.dark .mc-lead {
  color: rgb(161 161 170);
}

.mc-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.mc-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.mc-btn:hover { transform: translateY(-1px); }

.mc-btn-primary {
  background: var(--accent);
  color: white !important;
  box-shadow: 0 8px 20px var(--accent-soft);
}

.mc-btn-secondary {
  border: 1px solid rgb(212 212 216);
  color: rgb(24 24 27) !important;
}
.dark .mc-btn-secondary {
  border-color: rgb(63 63 70);
  color: rgb(244 244 245) !important;
}

.mc-terminal {
  background: #0a0a0a;
  color: #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 56rem;
  margin: 0 auto;
}
.mc-terminal-wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── custom homepage nav + footer ─── */
.mc-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, #ffffff 80%, transparent);
  border-bottom: 1px solid rgb(228 228 231);
}
.dark .mc-navbar {
  background: color-mix(in srgb, #0a0a0a 80%, transparent);
  border-bottom-color: rgb(39 39 42);
}
.mc-navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: none;
}
.mc-navbar-logo .star { color: var(--accent); }
.mc-navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.mc-navbar-link {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  color: rgb(82 82 91);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .mc-navbar-link { color: rgb(161 161 170); }
.mc-navbar-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(24 24 27);
}
.dark .mc-navbar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(244 244 245);
}

.mc-lang-chip {
  display: inline-flex;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.375rem;
  overflow: hidden;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}
.dark .mc-lang-chip { border-color: rgb(63 63 70); }
.mc-lang-chip > * {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.mc-lang-active {
  background: rgba(255, 140, 66, 0.14);
  color: var(--accent);
}
.mc-lang-link {
  color: rgb(113 113 122);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .mc-lang-link { color: rgb(161 161 170); }
.mc-lang-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(24 24 27);
}
.dark .mc-lang-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(244 244 245);
}

.mc-theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: rgb(113 113 122);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .mc-theme-toggle { color: rgb(161 161 170); }
.mc-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(24 24 27);
}
.dark .mc-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(244 244 245);
}
.mc-theme-toggle .icon-sun { display: none; }
.mc-theme-toggle .icon-moon { display: block; }
.dark .mc-theme-toggle .icon-sun { display: block; }
.dark .mc-theme-toggle .icon-moon { display: none; }

.mc-lang-chip-nav {
  display: inline-flex;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.375rem;
  overflow: hidden;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
}
.dark .mc-lang-chip-nav { border-color: rgb(63 63 70); }
.mc-lang-chip-nav > * {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.mc-lang-chip-nav .mc-lang-active {
  background: rgba(255, 140, 66, 0.14);
  color: var(--accent, #ff8c42);
}
.mc-lang-chip-nav .mc-lang-link {
  color: rgb(113 113 122);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .mc-lang-chip-nav .mc-lang-link { color: rgb(161 161 170); }
.mc-lang-chip-nav .mc-lang-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(24 24 27);
}
.dark .mc-lang-chip-nav .mc-lang-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(244 244 245);
}

.mc-theme-toggle-nav {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: rgb(113 113 122);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .mc-theme-toggle-nav { color: rgb(161 161 170); }
.mc-theme-toggle-nav:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(24 24 27);
}
.dark .mc-theme-toggle-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(244 244 245);
}
.mc-theme-toggle-nav .icon-sun { display: none; }
.mc-theme-toggle-nav .icon-moon { display: block; }
.dark .mc-theme-toggle-nav .icon-sun { display: block; }
.dark .mc-theme-toggle-nav .icon-moon { display: none; }

.mc-footer {
  border-top: 1px solid rgb(228 228 231);
  padding: 3rem 1.5rem;
}
.dark .mc-footer { border-top-color: rgb(39 39 42); }
.mc-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.mc-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.mc-footer-brand .star { color: var(--accent); }
.mc-footer-meta {
  color: rgb(113 113 122);
  font-weight: 400;
}
.dark .mc-footer-meta { color: rgb(161 161 170); }
.mc-footer-links {
  display: flex;
  gap: 1.5rem;
  color: rgb(113 113 122);
}
.dark .mc-footer-links { color: rgb(161 161 170); }
.mc-footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.mc-footer-links a:hover { color: var(--accent); }

.mc-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mc-terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.mc-terminal-bar .red { background: #ff5f56; }
.mc-terminal-bar .yellow { background: #ffbd2e; }
.mc-terminal-bar .green { background: #27c93f; }
.mc-terminal-bar .title {
  width: auto;
  height: auto;
  border-radius: 0;
  margin-left: auto;
  color: #71717a;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.mc-terminal-body {
  padding: 28px 32px;
  font-family: "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "JetBrains Mono", ui-monospace, monospace;
  font-variant-ligatures: none;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  overflow-y: auto;
  height: 540px;
  cursor: text;
}
.mc-ascii-logo {
  display: block;
  line-height: 1;
  letter-spacing: 0;
  font-feature-settings: "kern" 0, "liga" 0, "calt" 0;
  white-space: pre;
  margin: 0.5rem 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.mc-ascii-logo .t-orange { line-height: 1; }

.mc-chat-log {
  display: contents;
}

.mc-chat-prompt-row {
  display: inline;
  margin: 0;
  padding: 0;
}

.mc-chat-prompt {
  user-select: none;
}

.mc-chat-input-wrap {
  display: inline;
  position: relative;
  white-space: nowrap;
}

.mc-chat-input-inline,
.mc-chat-input-inline:focus,
.mc-chat-input-inline:focus-visible,
.mc-chat-input-inline:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}

.mc-chat-input-inline {
  color: #f5f5f5;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  caret-color: #ff8c42;
  min-width: 4ch;
  max-width: 100%;
  vertical-align: baseline;
}
.mc-chat-input-inline::placeholder {
  color: #6c6c75;
  font-style: italic;
  animation: mc-placeholder-pulse 2.4s ease-in-out infinite;
}
@keyframes mc-placeholder-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.mc-chat-input-inline:focus::placeholder {
  color: transparent;
}
.mc-chat-input-inline:disabled {
  opacity: 0.4;
}

.mc-chat-input-mirror {
  position: absolute;
  top: -9999px;
  left: -9999px;
  visibility: hidden;
  white-space: pre;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  pointer-events: none;
}

.mc-chat-cursor {
  display: none;
}

.mc-asst-text {
  color: #f5f5f5;
}

.mc-chat-cta-inline {
  display: block;
}

.mc-chat-install-link {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border: 1px solid #ff8c42;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mc-chat-install-link:hover {
  background: rgba(255, 140, 66, 0.14);
}

.t-orange { color: #ff8c42; font-weight: 700; }
.t-pink { color: #ff79c6; }
.t-gray { color: #6c6c75; }
.t-muted { color: #a1a1aa; font-style: italic; }
.t-white { color: #f5f5f5; font-weight: 700; }
.t-label { color: #a1a1aa; }
.t-chip {
  border: 1px solid #ff8c42;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 6px;
}

.mc-section {
  padding: 4rem 1.5rem;
}

.mc-container {
  max-width: 56rem;
  margin: 0 auto;
}
.mc-container-narrow { max-width: 42rem; margin: 0 auto; }
.mc-container-wide { max-width: 72rem; margin: 0 auto; }

.mc-section-alt {
  background: rgb(248 248 250);
  border-top: 1px solid rgb(228 228 231);
  border-bottom: 1px solid rgb(228 228 231);
}
.dark .mc-section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.mc-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.mc-section-sub {
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
  color: rgb(82 82 91);
  line-height: 1.6;
}
.dark .mc-section-sub { color: rgb(161 161 170); }

.mc-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.mc-step-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.mc-step-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.mc-step-text {
  color: rgb(82 82 91);
  line-height: 1.6;
}
.dark .mc-step-text { color: rgb(161 161 170); }
.mc-step-text code {
  font-family: ui-monospace, monospace;
  color: var(--accent);
  background: rgba(255, 140, 66, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.mc-section-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mc-section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.mc-features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 64rem;
  margin: 0 auto;
}

.mc-feature-card {
  padding: 1.5rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.75rem;
  background: white;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dark .mc-feature-card {
  background: rgb(24 24 27);
  border-color: rgb(39 39 42);
}
.mc-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgb(212 212 216);
}
.dark .mc-feature-card:hover {
  border-color: rgb(63 63 70);
}

.mc-feature-emoji {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.mc-feature-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.mc-feature-text {
  color: rgb(82 82 91);
}
.dark .mc-feature-text {
  color: rgb(161 161 170);
}

.mc-install-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.75rem;
  background: white;
  margin-bottom: 0.75rem;
}
.dark .mc-install-row {
  background: rgb(24 24 27);
  border-color: rgb(39 39 42);
}

.mc-install-row code {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

.mc-copy-btn {
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  color: rgb(82 82 91);
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.dark .mc-copy-btn {
  background: rgb(39 39 42);
  border-color: rgb(63 63 70);
  color: rgb(161 161 170);
}
.mc-copy-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.mc-copy-btn.copied {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.mc-chat-card {
  max-width: 48rem;
  margin: 2rem auto;
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  background: white;
  overflow: hidden;
}
.dark .mc-chat-card {
  background: rgb(24 24 27);
  border-color: rgb(39 39 42);
}

.mc-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(228 228 231);
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}
.dark .mc-chat-header {
  border-color: rgb(39 39 42);
}

.mc-chat-messages {
  padding: 1.25rem;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mc-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mc-chat-msg-role {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.mc-chat-msg-role.user { color: #ff79c6; }
.mc-chat-msg-role.assistant { color: var(--accent); }
.mc-chat-msg-content {
  white-space: pre-wrap;
  line-height: 1.6;
}

.mc-chat-empty {
  color: rgb(161 161 170);
  font-style: italic;
  text-align: center;
  margin: auto 0;
}

.mc-chat-input-row {
  border-top: 1px solid rgb(228 228 231);
  padding: 0.875rem;
  display: flex;
  gap: 0.5rem;
}
.dark .mc-chat-input-row {
  border-color: rgb(39 39 42);
}

.mc-chat-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgb(212 212 216);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  resize: none;
  color: inherit;
}
.dark .mc-chat-input {
  border-color: rgb(63 63 70);
}
.mc-chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.mc-chat-send {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.mc-chat-send:hover { opacity: 0.9; }
.mc-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mc-chat-status {
  padding: 0.5rem 1.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgb(161 161 170);
  border-top: 1px solid rgb(228 228 231);
}
.dark .mc-chat-status {
  border-color: rgb(39 39 42);
}
.mc-chat-status.error { color: #ef4444; }

.mc-chat-quota {
  margin-left: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.mc-chat-cta {
  margin: auto 0;
  text-align: center;
  padding: 1.5rem;
}
.mc-chat-cta-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.mc-chat-cta-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.mc-chat-cta-text {
  color: rgb(82 82 91);
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.dark .mc-chat-cta-text { color: rgb(161 161 170); }
.mc-chat-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.15s ease;
  margin-bottom: 0.5rem;
}
.mc-chat-cta-btn:hover {
  transform: translateY(-1px);
}
.mc-chat-cta-sub {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgb(161 161 170);
}

/* ─── credit section ─── */
.mc-section-credit {
  padding: 3rem 1rem 4rem;
}
.mc-credit-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}
.mc-credit-by {
  color: rgb(113 113 122);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dark .mc-credit-by {
  color: rgb(161 161 170);
}
.mc-credit-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
}
.mc-credit-sub {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
  margin: 0;
}
.dark .mc-credit-sub {
  color: rgb(161 161 170);
}
.mc-credit-sub a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
  transition: color 0.15s ease;
}
.mc-credit-sub a:hover {
  color: var(--accent);
}

/* ─── doc prose: orange accents, only on Hextra doc pages ─── */
.content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.content h2 {
  position: relative;
  padding-left: 0.875rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}
.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.content :not(pre) > code {
  color: var(--accent) !important;
  background: rgba(255, 140, 66, 0.1) !important;
  padding: 0.125rem 0.4rem !important;
  border-radius: 0.3rem !important;
  font-size: 0.875em !important;
  border: none !important;
  font-weight: 500;
}
.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.content a:hover {
  border-bottom-color: var(--accent);
}
.content blockquote {
  border-left: 3px solid var(--accent) !important;
  background: rgba(255, 140, 66, 0.06);
  padding: 0.75rem 1rem !important;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: inherit;
}
.dark .content blockquote {
  background: rgba(255, 140, 66, 0.08);
}
.content table th {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content strong {
  color: inherit;
  font-weight: 700;
}

/* ─── section background contrast in dark mode ─── */
section[style*="rgba(0,0,0,0.02)"],
section[style*="rgba(0, 0, 0, 0.02)"] {
  position: relative;
}
.dark section[style*="rgba(0,0,0,0.02)"],
.dark section[style*="rgba(0, 0, 0, 0.02)"] {
  background: rgba(255, 255, 255, 0.025) !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 640px) {
  .mc-terminal-wrap {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .mc-terminal {
    max-width: 100%;
    width: 100%;
  }
  .mc-terminal-body {
    height: 400px;
    font-size: 10px;
    padding: 14px 12px;
  }
  .mc-terminal-bar .title { font-size: 9px; }
  .mc-section { padding: 2rem 0.5rem; }
  .mc-navbar-inner { padding: 0 0.75rem; }
  .mc-hero { padding: 2rem 0.75rem 1.5rem; }
  .mc-footer { padding: 2rem 0.75rem; }
  .mc-3col { gap: 1rem; }
}
