:root {
  --ink: #14201c;
  --muted: #5b6b66;
  --accent: #0f766e;
  --accent-2: #334155;
  --paper: #f4f7f6;
  --card: rgba(255, 255, 255, 0.72);
  --line: #d6e0dc;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 8% -10%, #99f6e4 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #cbd5e1 0%, transparent 50%),
    linear-gradient(165deg, #f7faf9, #e8eef0);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  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(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 10px; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }
.cta-nav {
  color: #fff !important;
  background: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero {
  padding: 3.5rem 0 2.5rem;
  max-width: 46rem;
  animation: rise 0.7s ease both;
}
.hero-mark {
  display: block;
  margin: 0 0 1.25rem;
  animation: rise 0.55s ease both;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.gem-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.35rem;
  padding: 0.7rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  animation: rise 0.8s ease both;
}
.gem-callout a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.gem-callout a:hover { text-decoration: underline; }
.gem-callout code {
  font-size: 0.88rem;
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
.gem-callout img { display: block; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

.terminal, .install pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  overflow: auto;
  font-size: 0.9rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  animation: rise 0.9s ease both;
}
.install pre { margin: 0 0 1rem; }

.features, .install, .docs, .sponsor { padding: 2.5rem 0; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section-lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }
.section-lede a { color: var(--accent); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.grid article:hover {
  border-color: #99f6e4;
  transform: translateY(-2px);
}
.grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.docs ul { padding-left: 1.1rem; }
.docs a { color: var(--accent); }
.docs li { margin: 0.35rem 0; }

.sponsor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  margin-top: 1rem;
}
.sponsor p { color: var(--muted); margin: 0 0 1rem; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer a { color: var(--accent); }
.fine { opacity: 0.85; }

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2rem; }
}
