/* whatisamcp.org — plain HTML/CSS/JS, bold visual, academic body */

:root {
  --bg0: #050810;
  --bg1: #0c1224;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --text: #e8edf7;
  --muted: #9aa4b8;
  --accent: #22d3ee;
  --accent2: #c084fc;
  --accent3: #fb7185;
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .noise,
  .orb,
  .hero-grid {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg0);
  overflow-x: hidden;
}

/* layered background */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 70% at 95% 10%, rgba(192, 132, 252, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(251, 113, 133, 0.12), transparent 45%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #080c18);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: shift 18s linear infinite;
}

@keyframes shift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-5%, -3%);
  }
}

.orb {
  position: fixed;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.orb--1 {
  top: -10%;
  right: -5%;
  background: var(--accent);
  animation: float1 14s ease-in-out infinite;
}

.orb--2 {
  bottom: 5%;
  left: -15%;
  background: var(--accent2);
  animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
  50% {
    transform: translate(-12%, 8%) scale(1.05);
  }
}

@keyframes float2 {
  50% {
    transform: translate(10%, -6%) scale(1.08);
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7ee7fb;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #041018;
  font-weight: 600;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 16, 0.75);
  border-bottom: 1px solid var(--surface2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--surface2);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(8, 12, 22, 0.97);
    border-bottom: 1px solid var(--surface2);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #041018;
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: #041018;
}

.btn--ghost {
  border-color: var(--surface2);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .hero-card {
    transform: rotate(2deg);
  }
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--accent3);
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: auto 1fr;
  font-size: 0.9rem;
}

.hero-card dt {
  color: var(--muted);
  font-weight: 600;
}

.hero-card dd {
  margin: 0;
}

.section {
  margin-top: 3rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card a.stretched {
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--surface2);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-note--network {
  margin-top: 0.65rem;
  max-width: 40rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.page-intro {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 48rem;
}

.page-updated time {
  font-weight: 600;
  color: #b8c0d4;
}

.takeaways {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(192, 132, 252, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.35rem;
  margin-top: 0.5rem;
}

.takeaways h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.takeaways ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.takeaways li {
  margin-bottom: 0.45rem;
}

.takeaways li:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0;
  border-radius: 14px;
  border: 1px solid var(--surface2);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 280px;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface2);
  vertical-align: top;
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 600;
  color: #c7d0e3;
  width: 32%;
}

.glossary-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
}
