:root {
  --ink: #10211e;
  --ink-soft: #2a403b;
  --foam: #f4fbf8;
  --paper: #eaf6f1;
  --teal: #0d7a6f;
  --teal-deep: #08564e;
  --teal-soft: #7dcdc0;
  --line: rgba(16, 33, 30, 0.12);
  --line-strong: rgba(16, 33, 30, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #dceee8;
  overflow-x: hidden;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 8% -5%, rgba(125, 205, 192, 0.55), transparent 60%),
    radial-gradient(800px 480px at 95% 8%, rgba(13, 122, 111, 0.22), transparent 55%),
    linear-gradient(180deg, #e8f5f0 0%, #d7ebe4 48%, #cfe4dc 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 16s ease-in-out infinite;
}

.blob-a {
  width: 420px;
  height: 420px;
  top: 12%;
  left: -80px;
  background: rgba(125, 205, 192, 0.55);
}

.blob-b {
  width: 360px;
  height: 360px;
  top: 55%;
  right: -60px;
  background: rgba(8, 86, 78, 0.18);
  animation-delay: -6s;
}

.grid-wash {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(16, 33, 30, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 30, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.site-header,
.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--teal-deep);
}

.nav-github {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(244, 251, 248, 0.55);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  min-height: calc(100vh - 5rem);
}

.hero-copy {
  animation: rise-in 0.85s ease both;
}

.hero-stage {
  animation: rise-in 1s 0.12s ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 6.4rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--ink);
  color: var(--foam);
  border: 1px solid var(--ink);
}

.btn.primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.btn.ghost {
  background: rgba(244, 251, 248, 0.45);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.doc-shell {
  background: linear-gradient(165deg, #12352f 0%, #0c2420 100%);
  border-radius: 18px;
  border: 1px solid rgba(125, 205, 192, 0.22);
  box-shadow: 0 28px 60px rgba(8, 40, 35, 0.28);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.hero-stage:hover .doc-shell {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
}

.doc-chrome {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(125, 205, 192, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.doc-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(125, 205, 192, 0.35);
}

.doc-chrome span:nth-child(1) { background: #e8a598; }
.doc-chrome span:nth-child(2) { background: #e8d089; }
.doc-chrome span:nth-child(3) { background: #8fd4b8; }

.doc-chrome p {
  margin: 0;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(201, 239, 232, 0.7);
}

.doc-body {
  padding: 1.35rem 1.3rem 1.4rem;
  color: #d7f3ec;
}

.doc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.doc-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  color: #f4fbf8;
}

.doc-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(125, 205, 192, 0.12);
}

.method {
  display: inline-flex;
  justify-content: center;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.method.get { background: rgba(94, 184, 160, 0.25); color: #9eebda; }
.method.post { background: rgba(110, 160, 220, 0.25); color: #b7d4f5; }
.method.put { background: rgba(220, 180, 100, 0.22); color: #f0d9a0; }
.method.del { background: rgba(220, 120, 110, 0.22); color: #f0b8b0; }

.doc-row code {
  font-size: 0.78rem;
  color: #c9efe8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-log {
  margin: 1.1rem 0 0;
  padding: 0.9rem 0.95rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(125, 205, 192, 0.12);
  color: #a8e6d8;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
}

.run-log code {
  font-family: var(--font-mono);
  white-space: pre;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.band.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 5rem;
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(244, 251, 248, 0.55);
  backdrop-filter: blur(10px);
}

.band.proof div {
  padding: 0.35rem 0.5rem;
}

.band.proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.band.proof span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.section {
  margin-bottom: 5.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1.02rem;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.pipeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  padding-top: 0.2rem;
}

.pipeline h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.pipeline p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
}

.capability-grid article {
  padding: 0;
  border: none;
  background: transparent;
}

.capability-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(13, 122, 111, 0.28);
}

.capability-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.export-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.export-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.export-groups h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
}

.export-groups p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.export-aside {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--foam);
}

.aside-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.export-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  line-height: 1.45;
  font-size: 0.94rem;
  color: rgba(244, 251, 248, 0.88);
}

.setup-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.setup-steps {
  display: grid;
  gap: 0.85rem;
}

.setup-steps > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 251, 248, 0.5);
}

.setup-steps span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--teal);
  line-height: 1;
}

.setup-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

.install {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #12352f, #0b211d);
  color: #b7efe3;
  overflow-x: auto;
  border: 1px solid rgba(125, 205, 192, 0.16);
  height: 100%;
}

.install code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.stack-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.stack-row h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.stack-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-row li {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(16, 33, 30, 0.9);
  color: var(--foam);
  font-size: 0.8rem;
  font-weight: 500;
}

.closing {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(125, 205, 192, 0.35), transparent 70%),
    rgba(244, 251, 248, 0.6);
  border: 1px solid var(--line);
}

.closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
}

.closing p {
  margin: 0 auto 1.4rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

footer a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}

footer p {
  margin: 0;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -18px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    gap: 2rem;
  }

  .doc-shell {
    transform: none;
  }

  .hero-stage:hover .doc-shell {
    transform: none;
  }

  .band.proof {
    grid-template-columns: 1fr 1fr;
  }

  .capability-grid,
  .export-layout,
  .setup-grid,
  .export-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .band.proof {
    grid-template-columns: 1fr;
  }

  .pipeline li {
    grid-template-columns: 3rem 1fr;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
  }
}
