:root {
  --ink: #f4f7f6;
  --muted: #9ab3ae;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --line: rgba(148, 163, 184, 0.22);
  --panel: rgba(4, 18, 22, 0.72);
  --bg0: #061018;
  --bg1: #0b2a28;
  --font: "Sora", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg0);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #5eead4, #0d9488);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25);
}
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 12, 16, 0.45);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: navIn 0.7s ease both, pillFloat 3.6s ease-in-out infinite;
}
.nav-pill:nth-child(1) { animation-delay: 0.05s, 0s; }
.nav-pill:nth-child(2) { animation-delay: 0.1s, 0.2s; }
.nav-pill:nth-child(3) { animation-delay: 0.15s, 0.4s; }
.nav-pill:nth-child(4) { animation-delay: 0.2s, 0.6s; }
.nav-pill:nth-child(5) { animation-delay: 0.25s, 0.8s; }
.nav-pill:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.03);
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.18);
}
.nav-pill-hot {
  position: relative;
  gap: 0.55rem;
  padding-right: 0.45rem;
  background: linear-gradient(120deg, #5eead4, #2dd4bf 40%, #0d9488);
  background-size: 200% 200%;
  color: #042f2e;
  border-color: transparent;
  font-size: 0.95rem;
  min-height: 2.65rem;
  padding-left: 1.05rem;
  animation: navIn 0.7s ease both, hotBob 1.6s ease-in-out infinite, shimmerShift 3.2s linear infinite;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
}
.nav-hot-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(94, 234, 212, 0.75);
  animation: ringPulse 1.6s ease-out infinite;
  pointer-events: none;
}
.nav-hot-label { font-weight: 700; }
.nav-hot-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #042f2e;
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: goBlink 1.4s ease-in-out infinite;
}
.nav-pill-hot:hover {
  color: #021916;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(45, 212, 191, 0.42);
}

.deck-magnet {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(94, 234, 212, 0.45);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(4, 18, 22, 0.72) 55%),
    rgba(2, 12, 16, 0.55);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.35);
  backdrop-filter: blur(10px);
  animation: rise 0.9s ease 0.18s both, magnetPulse 1.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.deck-magnet:hover {
  text-decoration: none;
  transform: translateY(-3px) scale(1.015);
  border-color: #5eead4;
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.28);
}
.deck-art {
  position: relative;
  width: 4.6rem;
  height: 3.35rem;
  flex: none;
}
.deck-slide {
  position: absolute;
  inset: 0;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, #134e4a, #0b1220 70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.deck-slide.s1 { transform: rotate(-8deg) translate(-4px, 4px); opacity: 0.55; }
.deck-slide.s2 { transform: rotate(-3deg) translate(-1px, 1px); opacity: 0.8; animation: stackWiggle 2.4s ease-in-out infinite; }
.deck-slide.s3 { transform: rotate(2deg); }
.deck-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2dd4bf;
  color: #042f2e;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  animation: playPop 1.5s ease-in-out infinite;
}
.deck-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.deck-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.deck-copy span {
  color: #b7d8d2;
  font-size: 0.9rem;
}
.deck-arrow {
  font-size: 1.55rem;
  color: #5eead4;
  animation: arrowNudge 1.1s ease-in-out infinite;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.35) 0%, rgba(6, 16, 24, 0.82) 58%, var(--bg0) 100%),
    url("kafka-mcp-banner.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 18% 20%, rgba(45, 212, 191, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(15, 118, 110, 0.2), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: auto auto 0;
  padding: 4.5rem 0 3.5rem;
}
.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 11ch;
  animation: rise 0.9s ease both;
}
.hero-line {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  color: #d1e5e1;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  animation: rise 0.9s ease 0.12s both;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: #042f2e;
}
.btn-primary:hover { background: #5eead4; }
.btn-ghost {
  background: rgba(2, 12, 16, 0.35);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--teal); }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.section {
  padding: 4.2rem 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section .lede {
  margin: 0 0 1.6rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1.2rem;
}
.step {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.22), rgba(4, 18, 22, 0.65));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 0.55rem;
  text-align: center;
  min-height: 5.2rem;
  animation: rise 0.7s ease both;
}
.step:nth-child(1) { animation-delay: 0.02s; }
.step:nth-child(2) { animation-delay: 0.05s; }
.step:nth-child(3) { animation-delay: 0.08s; }
.step:nth-child(4) { animation-delay: 0.11s; }
.step:nth-child(5) { animation-delay: 0.14s; }
.step:nth-child(6) { animation-delay: 0.17s; }
.step:nth-child(7) { animation-delay: 0.2s; }
.step:nth-child(8) { animation-delay: 0.23s; }
.step:nth-child(9) { animation-delay: 0.26s; }
.step b {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.step span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #d7ebe7;
}

.install {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
pre {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #020a0e;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #b7f5ea;
  line-height: 1.55;
}
.aside {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1.15rem 1.2rem;
}
.aside h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}
.aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feat-banner {
  margin: 0 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #020a0e;
}
.feat-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.feat-block {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(4, 18, 22, 0.55);
}
.feat-block h3 {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #dff7f2;
}
.feat-note {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.feat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.feat-table th,
.feat-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.feat-table thead th {
  color: var(--teal);
  font-weight: 600;
  border-top: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feat-table tbody th {
  width: 32%;
  color: #d7ebe7;
  font-weight: 600;
}
.feat-table td { color: #b9d4cf; }
.feat-table code,
.feat-note code,
.aside code,
.lede code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #99f6e4;
}
.code-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  font-size: 0.9rem;
}
.code-grid code {
  font-family: var(--mono);
  color: #5eead4;
}
.code-grid span { color: #b9d4cf; }

.proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.proof img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #020a0e;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 18, 22, 0.55);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.chip:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0.35rem 0; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes hotBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}
@keyframes ringPulse {
  0% { opacity: 0.95; transform: scale(0.92); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes goBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes magnetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(45, 212, 191, 0); }
}
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}
@keyframes playPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes stackWiggle {
  0%, 100% { transform: rotate(-3deg) translate(-1px, 1px); }
  50% { transform: rotate(-5deg) translate(-2px, 2px); }
}
@keyframes shimmerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

@media (max-width: 900px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .install { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3rem; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .nav { flex-direction: column; align-items: flex-start; }
  .deck-magnet {
    grid-template-columns: auto 1fr;
  }
  .deck-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
