:root {
  --mcpf-accent: #1f6feb;
  --mcpf-accent-soft: rgba(31,111,235,.08);
  --mcpf-ink: #0f172a;
  --mcpf-muted: #475569;
  --mcpf-border: rgba(15,23,42,.08);
}

* {
  box-sizing: border-box;
}

body {
  background-color: #f9fafb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--mcpf-ink);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col-lg-5, .col-lg-6, .col-lg-7 {
  padding: 0 12px;
  width: 100%;
}

.g-3 > *, .g-4 > * {
  margin-bottom: 16px;
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-5 { width: 41.666%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333%; }
}

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
}

.align-items-center { align-items: center; }
.text-center { text-center; }
.text-muted { color: var(--mcpf-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.p-4 { padding: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--mcpf-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mcpf-accent);
  color: #fff;
  font-weight: 700;
}

.brand-badge--small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--mcpf-muted);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--mcpf-accent-soft);
  color: var(--mcpf-accent);
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--mcpf-accent-soft) 0%, rgba(255,255,255,0) 65%);
}

.hero .badge {
  display: inline-block;
  background: rgba(15,23,42,.06);
  color: var(--mcpf-muted);
  border: 1px solid rgba(15,23,42,.10);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  margin: 16px 0;
}

.lead {
  color: var(--mcpf-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--mcpf-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1558d6;
}

.btn-outline-primary {
  border-color: var(--mcpf-accent);
  color: var(--mcpf-accent);
  background: #fff;
}

.btn-outline-primary:hover {
  background: var(--mcpf-accent-soft);
}

.btn-outline-secondary {
  border-color: var(--mcpf-border);
  color: var(--mcpf-muted);
  background: #fff;
}

.btn-outline-secondary:hover {
  background: #f9fafb;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 8px;
}

.d-grid {
  display: grid;
}

/* Feature Cards - FIXED SIZE */
.feature-card {
  border: 1px solid var(--mcpf-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  background: #fff;
  transition: box-shadow 0.2s;
  min-height: 180px; /* Prevent cards from being too big */
  max-height: 320px; /* Cap maximum height */
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mcpf-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--mcpf-accent);
  flex-shrink: 0;
}

.feature-card h5 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 48px 0;
}

.kicker {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mcpf-muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
  display: block;
}

/* Code Card */
.code-card {
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #0b1220;
  color: #e2e8f0;
  overflow: hidden;
}

.code-card pre {
  margin: 0;
  padding: 20px;
  font-size: 0.9rem;
  overflow: auto;
  line-height: 1.6;
}

.code-card code {
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Callout */
.callout {
  border-left: 4px solid var(--mcpf-accent);
  background: rgba(31,111,235,.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.table-plain td,
.table-plain th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mcpf-border);
  text-align: left;
}

.table-plain thead th {
  font-weight: 600;
  color: var(--mcpf-ink);
}

.table-plain tbody td {
  color: var(--mcpf-muted);
}

/* Footer - FIXED OVERLAP */
.site-footer {
  border-top: 1px solid var(--mcpf-border);
  background: #fff;
  margin-top: auto; /* Push to bottom */
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer .footer-info {
  flex: 1;
  max-width: 500px;
}

.site-footer .footer-links {
  text-align: left;
}

@media (min-width: 768px) {
  .site-footer .footer-links {
    text-align: right;
  }
}

.link-muted {
  color: var(--mcpf-muted);
  text-decoration: none;
}

.link-muted:hover {
  text-decoration: underline;
  color: var(--mcpf-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 4px;
  }
  
  .feature-card {
    margin-bottom: 16px;
  }
}

/* Utilities */
.d-block {
  display: block;
}

.text-md-end {
  text-align: left;
}

@media (min-width: 768px) {
  .text-md-end {
    text-align: right;
  }
}

h2 {
  margin: 0 0 16px 0;
}

h4 {
  font-size: 1.25rem;
  margin: 0 0 16px 0;
}

h5 {
  font-size: 1.1rem;
}

ul {
  margin: 0;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
}
