:root {
  --bg: #eef3f0;
  --bg-deep: #e2ebe6;
  --ink: #14201c;
  --muted: #5a6b64;
  --line: rgba(20, 32, 28, 0.12);
  --accent: #0f766e;
  --accent-ink: #063832;
  --surface: rgba(255, 255, 255, 0.55);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Bricolage Grotesque", Georgia, serif;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(700px 420px at 92% 12%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%2314201c' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
}

.top-cta {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.top-cta:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 6.5rem) 1.5rem 3.5rem;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.8s ease forwards;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  opacity: 0;
  animation: rise 0.8s ease 0.12s forwards;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.8s ease 0.22s forwards;
}

.hero-actions {
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.8s ease 0.32s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f7f5;
}

.btn-primary:hover {
  background: var(--accent-ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

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

.section-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

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

.section-head code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  background: var(--surface);
  border-radius: 4px;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.catalog-loading,
.catalog-error {
  color: var(--muted);
  padding: 1rem 0;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1.5rem 0 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--product-accent, transparent);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.55s ease forwards;
}

.product:focus-within,
.product:hover {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.product-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.product-tagline {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--ink);
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--product-accent, var(--muted));
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: var(--product-accent, var(--accent));
}

.status-beta {
  color: #b45309;
}

.status-coming_soon {
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.muted {
  font-family: var(--font);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

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

@media (max-width: 720px) {
  .product {
    grid-template-columns: 1fr;
  }

  .product-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand-mark,
  .hero h1,
  .lede,
  .hero-actions,
  .product {
    opacity: 1;
    transform: none;
  }
}
