:root {
  --paper: #fffaf0;
  --ink: #17211c;
  --muted: #667166;
  --line: rgba(23, 33, 28, 0.12);
  --green: #0f9f73;
  --green-dark: #0b3328;
  --blue: #3978f2;
  --orange: #f29a35;
  --pink: #e85d87;
  --shadow: 0 30px 90px rgba(38, 45, 34, 0.16);
  color-scheme: light;
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

@supports (container-type: scroll-state) {
  html {
    container-type: scroll-state;
    container-name: page;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 159, 115, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(57, 120, 242, 0.16), transparent 34rem),
    linear-gradient(135deg, #eff5ea 0%, #fff8e8 54%, #eff1e7 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 28, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  width: min(1160px, calc(100% - 40px));
  transform: translateX(-50%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid transparent;
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0);
  transition:
    padding 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

@container page scroll-state(scrollable: top) {
  .header-inner {
    padding-block: 10px;
    border-color: rgba(23, 33, 28, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 50px rgba(24, 33, 29, 0.16);
    backdrop-filter: blur(18px);
    transform: translateY(-4px);
  }

  .brand small {
    opacity: 0;
    translate: 0 -4px;
  }

  .brand-mark {
    scale: 0.78;
  }

  .nav a {
    padding-block: 8px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--green), #56d6aa 58%, var(--orange));
  box-shadow: 0 12px 32px rgba(15, 159, 115, 0.28);
  transition: scale 220ms ease;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    opacity 220ms ease,
    translate 220ms ease;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(15, 159, 115, 0.1);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: padding 220ms ease;
}

main {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
p,
pre {
  margin: 0;
}

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 92px);
  padding: 72px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 2px 2px 0 var(--orange);
  content: "";
}

h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.16;
  letter-spacing: -0.07em;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 800;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.support-badge {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.primary-link {
  color: #fff;
  background: var(--green-dark);
  text-decoration: none;
}

.support-badge {
  color: #174fc4;
  background: rgba(57, 120, 242, 0.12);
}

.demo-section,
.code-section,
.support-section,
.article-feed {
  scroll-margin-top: 110px;
}

.demo-section,
.code-section {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.section-heading span,
.feature-card span,
.support-section span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.code-copy h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.06em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.18), transparent 9rem),
    linear-gradient(135deg, #0b3328, var(--green));
}

.feature-card.blue {
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.18), transparent 9rem),
    linear-gradient(135deg, #173fe0, var(--blue));
}

.feature-card.pink {
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.18), transparent 9rem),
    linear-gradient(135deg, #b63a72, var(--pink));
}

.feature-card span {
  color: rgba(255, 255, 255, 0.7);
}

.feature-card h3 {
  margin: 76px 0 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.feature-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
}

.code-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.code-copy {
  display: grid;
  align-content: center;
}

.code-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

pre {
  padding: 20px;
  border-radius: 24px;
  color: #ecfff4;
  background: var(--green-dark);
  overflow: auto;
}

code {
  font: 800 13px/1.68 "SFMono-Regular", Consolas, monospace;
}

.support-section {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.72);
}

.support-section span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
}

.support-section p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.article-feed {
  display: grid;
  gap: 18px;
  padding: 80px 0 120px;
}

.article-feed article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.66);
}

.article-feed span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.article-feed h2 {
  margin-top: 26px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.article-feed p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .site-header,
  main {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

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

  .feature-grid,
  .code-section {
    grid-template-columns: 1fr;
  }

  .code-section,
  .demo-section {
    padding: 18px;
    border-radius: 24px;
  }

  .feature-card {
    min-height: 210px;
  }
}
