@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0a0e18;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --paper: #f6f1e6;
  --card: #fffdf8;
  --muted: #5c5a52;
  --line: rgba(10, 14, 24, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  color: #fff;
}
.site-nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}
.brand span { color: var(--gold-light); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1403;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(201, 162, 39, 0.28), transparent 58%),
    linear-gradient(165deg, #0a0e18 0%, #151d30 65%, #0f1420 100%);
  color: #fff;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.kicker {
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 14px;
}
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 22px;
  max-width: 820px;
}
.lede {
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}
.lede em { font-style: normal; color: var(--gold-light); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.chip {
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #ebe4d4; }
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
  line-height: 1.1;
}
.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Meta block */
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 14px;
}
.meta dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.meta dd { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }

/* Story blocks */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story.reverse { direction: rtl; }
.story.reverse > * { direction: ltr; }
.story p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.story p strong { color: var(--ink); }

/* MCP diagram */
.mcp-flow {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(10, 14, 24, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.mcp-flow h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.mcp-flow .title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.flow-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-node .label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.flow-node .name { font-weight: 800; font-size: 0.92rem; }
.flow-node .sub { font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); margin-top: 4px; }
.flow-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}
.flow-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pipe-step {
  background: rgba(201, 162, 39, 0.12);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pipe-step span {
  display: block;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  font-weight: 500;
}

/* Comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare-side {
  padding: 32px;
  min-height: 320px;
}
.compare-side.before {
  background: #e8e4da;
}
.compare-side.after {
  background: var(--ink);
  color: #fff;
}
.compare-side h3 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}
.compare-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-side li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
}
.compare-side.after li { border-color: rgba(255, 255, 255, 0.1); }
.compare-side.after li { color: rgba(255, 255, 255, 0.88); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(10, 14, 24, 0.05);
}
.card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }

/* Timeline / flow narrative */
.flow-story {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
}
.flow-story .step {
  position: relative;
  padding-bottom: 32px;
}
.flow-story .step:last-child { padding-bottom: 0; }
.flow-story .step::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.25);
}
.flow-story h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.flow-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Quote */
.pull-quote {
  background: var(--ink);
  color: #fff;
  padding: 48px 40px;
  border-radius: 18px;
  margin: 48px 0;
}
.pull-quote blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  font-style: italic;
}
.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0;
  font-size: 0.85rem;
}
footer a { color: var(--gold-light); }

.note {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .story, .compare, .flow-row { grid-template-columns: 1fr; }
  .story.reverse { direction: ltr; }
  .flow-row { gap: 8px; }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
  .flow-pipeline { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
