:root {
  --bg: #f3f7f4;
  --bg-accent: #e3efe7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #173026;
  --muted: #557268;
  --line: rgba(23, 48, 38, 0.12);
  --primary: #0e8f63;
  --primary-strong: #0a6a49;
  --secondary: #e8f4ef;
  --shadow: 0 18px 48px rgba(23, 48, 38, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 143, 99, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(26, 115, 232, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, var(--bg) 56%, #edf4f1 100%);
}

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.hero {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(232, 244, 239, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 143, 99, 0.16), transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.hero-card-label,
.step-index {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--primary-strong);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 58ch;
  margin-bottom: 22px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.topbar a:hover,
.link-card:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(14, 143, 99, 0.22);
}

.attribution {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.hero-card,
.card,
.link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.hero-card {
  padding: 18px;
}

.hero-card.muted {
  background: rgba(255, 255, 255, 0.6);
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.mini-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 56px 0 8px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

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

.three-up .card,
.card {
  padding: 22px;
}

.card p {
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--muted);
}

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

.flow-section .timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.timeline-step {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(227, 239, 231, 0.56));
}

.timeline-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.code-card {
  background: linear-gradient(180deg, rgba(19, 48, 38, 0.96), rgba(19, 48, 38, 0.9));
  color: #f5fbf8;
}

.code-card p,
.code-card h3 {
  color: inherit;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

code {
  font-family: "Cascadia Code", Consolas, Monaco, monospace;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card strong {
  font-size: 1.05rem;
}

.link-card span {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding-top: 56px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-panel,
  .card-grid,
  .quickstart-grid,
  .link-list,
  .flow-section .timeline {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero {
    padding: 20px;
  }

  h1 {
    max-width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
