:root {
  --bg: #f7f0e4;
  --paper: rgba(255, 252, 245, 0.84);
  --paper-strong: #fffaf0;
  --ink: #14261f;
  --muted: #5f6d65;
  --line: rgba(20, 38, 31, 0.12);
  --brand: #0f5b4f;
  --brand-2: #d97841;
  --brand-3: #f0c56d;
  --accent: #0f766e;
  --danger: #9d3c2a;
  --shadow: 0 22px 50px rgba(20, 38, 31, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 197, 109, 0.55), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.28), transparent 25%),
    linear-gradient(180deg, #f8f1e5 0%, #f4ecdf 48%, #f8f3ea 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
}

.page-shell::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -140px;
  background: rgba(15, 91, 79, 0.18);
}

.page-shell::after {
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: 8%;
  background: rgba(217, 120, 65, 0.14);
}

.container {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 242, 231, 0.72);
  border-bottom: 1px solid rgba(20, 38, 31, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #1a8974 100%);
  display: grid;
  place-items: center;
  color: #fff8ef;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(15, 91, 79, 0.22);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.88);
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(20, 38, 31, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.article-shell h1,
.error-shell h1 {
  margin: 18px 0 0;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6.1rem);
  max-width: 12ch;
}

.hero p {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #1b8975 100%);
  color: #fff8ef;
  box-shadow: 0 18px 30px rgba(15, 91, 79, 0.22);
}

.btn-secondary {
  background: rgba(255, 251, 245, 0.84);
  color: var(--ink);
  border: 1px solid rgba(20, 38, 31, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #a0442f 0%, #cf663f 100%);
  color: #fff8ef;
  box-shadow: 0 18px 30px rgba(160, 68, 47, 0.22);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-notes span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
}

.hero-visual {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(20, 38, 31, 0.94) 0%, rgba(15, 91, 79, 0.94) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: auto -15% 62% 38%;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 197, 109, 0.42), transparent 62%);
}

.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 248, 239, 0.88);
  font-size: 0.86rem;
}

.visual-window-dots {
  display: flex;
  gap: 7px;
}

.visual-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.45);
}

.visual-panel {
  margin-top: 18px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 251, 245, 0.08);
  border: 1px solid rgba(255, 248, 239, 0.12);
}

.visual-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 197, 109, 0.14);
  color: #f5d58c;
  font-size: 0.8rem;
  font-weight: 700;
}

.visual-panel h3 {
  margin: 14px 0 0;
  color: #fffaf0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.visual-panel p {
  margin: 10px 0 0;
  color: rgba(255, 248, 239, 0.78);
  font-size: 0.96rem;
  line-height: 1.65;
}

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

.visual-stat {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.08);
  border: 1px solid rgba(255, 248, 239, 0.08);
}

.visual-stat strong {
  display: block;
  color: #fff8ef;
  font-size: 1.45rem;
}

.visual-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 248, 239, 0.66);
  font-size: 0.9rem;
  line-height: 1.45;
}

.floating-card {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: min(240px, 64%);
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 16px 36px rgba(20, 38, 31, 0.22);
  transform: rotate(-6deg);
}

.floating-card span {
  display: block;
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.section {
  padding: 36px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  max-width: 12ch;
}

.section-heading p {
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  position: relative;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: auto -30px -50px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 65%);
}

.card.kicker-card::after {
  background: radial-gradient(circle, rgba(217, 120, 65, 0.14), transparent 65%);
}

.icon-chip {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(15, 91, 79, 0.1);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
}

.card h3 {
  margin: 16px 0 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.8);
  border: 1px solid rgba(20, 38, 31, 0.08);
  text-align: center;
}

.metric strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.78);
  border: 1px solid rgba(20, 38, 31, 0.08);
}

.step-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand) 0%, #1b8975 100%);
  color: #fffaf0;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-card strong {
  display: block;
  font-size: 1.06rem;
}

.step-card p {
  margin: 8px 0 0;
}

.roadmap {
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 91, 79, 0.42), rgba(217, 120, 65, 0.32));
}

.roadmap-item {
  position: relative;
  margin-left: 34px;
  padding: 0 0 22px 22px;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 0 8px rgba(217, 120, 65, 0.12);
}

.roadmap-item span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.roadmap-item h3 {
  margin: 12px 0 0;
  font-size: 1.18rem;
}

.roadmap-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel,
.article-shell,
.error-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(20, 38, 31, 0.95) 0%, rgba(15, 91, 79, 0.93) 100%);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.cta-panel h2,
.article-shell h1,
.error-shell h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.cta-panel p,
.article-shell p,
.article-shell li,
.error-shell p {
  color: rgba(255, 248, 239, 0.76);
  line-height: 1.8;
}

.cta-panel .btn-secondary,
.error-shell .btn-secondary {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.16);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 22px;
}

.article-copy {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.article-copy h2 {
  margin: 0 0 14px;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.article-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.article-side {
  display: grid;
  gap: 16px;
}

.article-note {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.article-note strong {
  display: block;
  font-size: 1rem;
}

.article-note p,
.article-note a {
  margin: 10px 0 0;
  color: rgba(255, 248, 239, 0.76);
}

.footer {
  padding: 28px 0 42px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .article-layout,
  .grid-3,
  .grid-4,
  .grid-2,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero {
    padding-top: 46px;
  }

  .hero-visual {
    padding: 18px;
  }

  .visual-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    transform: none;
  }

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

  .btn {
    width: 100%;
  }

  .article-shell,
  .error-shell,
  .cta-panel,
  .card,
  .summary-card {
    padding: 22px;
  }
}
