:root {
  --ink: #102026;
  --muted: #5c6e72;
  --accent: #f26b5e;
  --teal: #4aacaa;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(16, 32, 38, 0.12);
  --shadow: 0 24px 80px rgba(16, 32, 38, 0.12);
  --radius: 24px;
  /* Official POP brand guidelines (popapi.io/brand-guidelines): Plus Jakarta Sans for headings,
     Inter for body copy. IBM Plex Mono stays as-is for code/pre — a dedicated monospace font for
     technical content, independent of the brand's text fonts. */
  --font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(242, 107, 94, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(74, 172, 170, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f6f1ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 32, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 38, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 84%);
}

a {
  color: inherit;
}

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(16, 32, 38, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 92px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.hero {
  margin-top: 26px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 172, 170, 0.12);
  color: #1e6461;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(74, 172, 170, 0.14);
}

h1,
.brand {
  font-family: var(--font-heading);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 6vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section {
  padding: 28px;
}

.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.section h2,
.section h3 {
  font-family: var(--font-heading);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.section h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

.section p,
.section li {
  color: var(--muted);
  line-height: 1.7;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tool {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.tool strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.tool p {
  margin: 0;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  border-radius: 20px;
  background: #111b1f;
  color: #f8f4ed;
  line-height: 1.6;
  font-size: 0.9rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 32, 38, 0.06);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--ink);
}

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

  .span-8,
  .span-6,
  .span-4,
  .span-12 {
    grid-column: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1160px);
    padding-top: 18px;
  }

  .hero,
  .section {
    padding: 22px;
  }

  .brand img {
    width: 82px;
  }
}

@media (max-width: 420px) {
  .hero,
  .section {
    padding: 16px;
  }

  .topbar {
    padding: 14px 16px;
  }
}
