:root {
  --background-start: #f6e3ca;
  --background-end: #fbecd5;
  --surface: rgba(249, 243, 235, 0.82);
  --surface-strong: rgba(255, 248, 240, 0.92);
  --surface-dark: rgba(75, 42, 33, 0.94);
  --text-primary: #3b2214;
  --text-secondary: #5a4331;
  --text-inverse: #f8efe7;
  --accent: #e4572e;
  --accent-deep: #b63f1a;
  --success: #14866d;
  --line: rgba(59, 34, 20, 0.12);
  --shadow-soft: 0 18px 40px rgba(67, 40, 23, 0.12);
  --shadow-card: 0 10px 24px rgba(54, 31, 18, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(228, 87, 46, 0.12), transparent 28%),
    radial-gradient(circle at right 20%, rgba(212, 169, 95, 0.24), transparent 22%),
    linear-gradient(180deg, var(--background-start) 0%, var(--background-end) 48%, #f9f0df 100%);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(228, 87, 46, 0.3);
  outline-offset: 3px;
}

.backdrop-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.orb-left {
  top: -12rem;
  left: -14rem;
  background: rgba(228, 87, 46, 0.18);
}

.orb-right {
  right: -14rem;
  top: 24rem;
  background: rgba(212, 169, 95, 0.3);
}

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

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 239, 222, 0.72);
  border-bottom: 1px solid rgba(59, 34, 20, 0.08);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.75rem;
  height: 3.25rem;
  padding: 0.18rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(59, 34, 20, 0.08);
  background: rgba(255, 250, 245, 0.96);
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.primary-nav a {
  position: relative;
  padding: 0.4rem 0.1rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 700;
}

.primary-nav a.is-active,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-deep);
}

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.3rem 0;
  background: var(--text-primary);
  border-radius: 999px;
}

.hero {
  display: block;
  min-height: calc(100vh - 6rem);
  padding-top: 2rem;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 6.9rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.lede,
.section-intro p,
.metric-card p,
.feature-card p,
.zoo-card p,
.pipeline-card p,
.dark-panel p,
.preview-copy p,
.repo-card span,
.footer-copy,
.detail-grid p,
.support-card p,
.callout p,
.stack-list li,
.command-note,
.summary-list li,
.resource-links li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.hero-actions {
  flex-direction: column;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent) 0%, #c6441a 100%);
  box-shadow: 0 14px 28px rgba(198, 68, 26, 0.24);
}

.button-secondary {
  border-color: rgba(182, 63, 26, 0.16);
  background: rgba(255, 250, 245, 0.72);
}

.social-embed-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  border-radius: 12px;
  overflow: hidden;
}

.social-embed-link:hover,
.social-embed-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(103, 56, 26, 0.12);
}

.social-embed-link img {
  display: block;
  height: 32px;
  width: auto;
}

.pill-list,
.stack-list,
.summary-list,
.resource-links {
  margin: 0;
  padding: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  list-style: none;
}

.pill-list li {
  position: relative;
  padding: 0 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.pill-list li::before {
  content: "";
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.feature-card,
.zoo-card,
.terminal-card,
.dark-panel,
.repo-card,
.detail-card,
.callout,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.metric-label,
.feature-kicker,
.badge-number,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-grid,
.card-grid,
.split-panels,
.detail-grid,
.resource-grid,
.repo-list,
.quickstart-preview {
  display: grid;
  gap: 1.25rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.pipeline-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 245, 0.74);
}

.metric-label,
.feature-kicker,
.badge-number,
.detail-kicker {
  color: var(--accent-deep);
}

.metric-card h2 {
  margin-top: 0.55rem;
  font-size: 1.34rem;
}

.section-intro {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
  justify-items: center;
  text-align: center;
}

.section-intro h2 {
  max-width: 11ch;
  margin-inline: auto;
}

.capabilities-heading {
  max-width: 18ch;
}

.section-title-break span {
  display: block;
}

.section-intro p {
  max-width: 48rem;
  margin: 0 auto;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.zoo-card,
.detail-card,
.support-card,
.callout {
  padding: 1.5rem;
  background: var(--surface);
}

.video-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.video-card {
  padding: 1rem;
}

.video-embed-shell {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #2e1c14;
}

.video-embed-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin: 0.95rem 0 0;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.65;
}

.video-fallback a {
  color: var(--accent-deep);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.faq-list + * {
  margin-top: 0;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.zoo-card {
  text-align: center;
}

.zoo-flow {
  font-size: 1.03rem;
  font-weight: 700;
}

.zoo-flow span {
  color: var(--accent-deep);
  font-weight: 800;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--accent-deep);
  font-weight: 800;
}

.link-arrow::after {
  content: "->";
}

.section-dark {
  color: var(--text-inverse);
  background:
    linear-gradient(145deg, rgba(75, 42, 33, 0.98), rgba(100, 49, 27, 0.94)),
    radial-gradient(circle at top right, rgba(228, 87, 46, 0.16), transparent 28%);
}

.section-dark .eyebrow,
.section-dark .section-intro p,
.section-dark .stack-list li,
.section-dark .dark-panel p,
.section-dark .pipeline-card p {
  color: rgba(248, 239, 231, 0.78);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pipeline-card,
.dark-panel {
  border: 1px solid rgba(248, 239, 231, 0.12);
  background: rgba(255, 246, 238, 0.08);
  box-shadow: none;
}

.pipeline-card span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  background: #e0b571;
  font-weight: 800;
}

.split-panels {
  grid-template-columns: 1.15fr 0.85fr;
}

.dark-panel {
  padding: 1.5rem;
}

.stack-list,
.summary-list,
.resource-links {
  list-style: none;
}

.stack-list li,
.summary-list li,
.resource-links li {
  position: relative;
  padding-left: 1.15rem;
}

.stack-list li + li,
.summary-list li + li,
.resource-links li + li {
  margin-top: 0.75rem;
}

.stack-list li::before,
.summary-list li::before,
.resource-links li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.quickstart-preview {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.preview-copy {
  text-align: center;
}

.terminal-card {
  overflow: hidden;
  background: #2e1c14;
  color: #f9efe8;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem 0;
}

.terminal-bar span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff8d68;
}

.terminal-bar span:nth-child(2) {
  background: #f2c66c;
}

.terminal-bar span:nth-child(3) {
  background: #62c5a4;
}

.terminal-card pre {
  margin: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.96rem;
  line-height: 1.7;
}

.contribute-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.8rem;
  border: 1px solid rgba(59, 34, 20, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.88), rgba(247, 237, 223, 0.88));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.repo-list {
  grid-template-columns: 1fr;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
}

.repo-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem;
  background: rgba(255, 252, 247, 0.9);
}

.repo-card strong {
  font-size: 1.08rem;
}

.repo-card:hover,
.repo-card:focus-visible {
  transform: translateY(-2px);
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(59, 34, 20, 0.1);
}

.brand-footer img {
  width: 2.3rem;
  height: 2.75rem;
}

.footer-copy {
  max-width: 29rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links h3 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
}

.footer-links a + a {
  margin-top: 0.55rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-deep);
}

.footer-meta {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.detail-hero {
  display: grid;
  gap: 1.2rem;
  padding-top: 3rem;
}

.detail-hero .section-intro {
  margin-bottom: 0;
}

.detail-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card h3,
.support-card h3,
.callout h3 {
  margin-top: 0.6rem;
}

.command-grid,
.resource-grid,
.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.release-grid {
  grid-template-columns: 1fr;
}

.command-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(46, 28, 20, 0.98);
  box-shadow: var(--shadow-card);
}

.command-card pre {
  margin: 0;
  padding: 1.15rem;
  overflow-x: auto;
  color: #f8ede6;
  line-height: 1.65;
}

.command-note {
  margin-top: 0.85rem;
}

.support-card a,
.resource-links a {
  color: var(--accent-deep);
  font-weight: 800;
}

.release-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.8rem 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
}

.release-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.8);
}

.release-card > p {
  max-width: 52rem;
  margin: 0 auto 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.72;
}

.release-list {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.release-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.release-list li + li {
  margin-top: 0.8rem;
}

.release-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
}

.callout {
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.95), rgba(244, 231, 214, 0.86));
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
  justify-content: center;
}

.detail-nav a {
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  font-weight: 800;
  font-size: 0.94rem;
}

.detail-nav a.is-active,
.detail-nav a:hover,
.detail-nav a:focus-visible {
  color: #fff9f3;
  background: var(--accent);
  border-color: var(--accent);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .contribute-panel,
  .quickstart-preview,
  .video-card,
  .split-panels,
  .detail-grid,
  .command-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-three,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  h1,
  .detail-hero h1,
  .section-intro h2 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 249, 242, 0.98);
    box-shadow: var(--shadow-soft);
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .metric-grid,
  .card-grid-four,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.2rem 0;
  }

  .shell {
    width: min(100% - 1.25rem, 1180px);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
  }

  .pill-list,
  .detail-nav {
    display: grid;
  }

  .feature-card,
  .zoo-card,
  .detail-card,
  .support-card,
  .callout,
  .dark-panel,
  .repo-card,
  .contribute-panel {
    border-radius: 24px;
  }
}
