:root {
  --bg: #f7f1e8;
  --bg-strong: #efe6d8;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fff8ef;
  --text: #1f1f1a;
  --muted: #645e55;
  --line: rgba(42, 34, 20, 0.14);
  --brand: #c75c2b;
  --brand-deep: #8b3712;
  --accent: #0b5d52;
  --shadow: 0 24px 70px rgba(93, 54, 20, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 92, 43, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(11, 93, 82, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  pointer-events: none;
  z-index: -1;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header,
.docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(61, 42, 18, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #f1a452);
  color: #fff;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(199, 92, 43, 0.1);
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--brand-deep) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ef;
  padding: 10px 14px;
  font: inherit;
}

.hero,
.pricing-hero,
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  padding: 68px 0 28px;
}

.hero-copy,
.hero-card,
.pricing-hero,
.about-hero {
  animation: rise 700ms ease both;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  font-weight: 700;
}

.hero h1,
.pricing-hero h1,
.about-hero h1,
.docs-content h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 180ms ease;
}

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

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.button-secondary:hover {
  background: #fff;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof span,
.status-pill,
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 93, 82, 0.1);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-card,
.feature-card,
.price-card,
.cta-panel,
.comparison-table,
.docs-table,
.timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(199, 92, 43, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(252, 247, 239, 0.85));
}

.status-row,
.code-header,
.plan-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.metric-grid article,
.logo-strip span {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(45, 31, 15, 0.08);
}

.metric-grid strong,
.price-card h2 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.code-panel {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(33, 25, 19, 0.08);
  background: #211d1b;
  color: #efe6d8;
}

.code-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
}

.code-panel pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 30px;
}

.logo-strip span {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section-grid,
.comparison,
.pricing-detail {
  padding: 42px 0 8px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2,
.story-copy h2,
.cta-panel h2,
.docs-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.feature-grid,
.pricing-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-card h3,
.timeline h3,
.faq-list h3,
.docs-content h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.story-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding: 42px 0 12px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding: 22px;
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-weight: 700;
}

.comparison-table,
.docs-table {
  overflow: hidden;
}

.table-row,
.docs-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.table-row span,
.docs-table-row span {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.table-head span,
.docs-table-head span {
  border-top: 0;
  background: rgba(199, 92, 43, 0.08);
  font-weight: 700;
  color: var(--text);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 30px;
}

.pricing-hero,
.about-hero {
  display: block;
  max-width: 850px;
  padding-bottom: 16px;
}

.pricing-grid {
  padding: 20px 0 14px;
}

.price-card ul,
.docs-content ul,
.docs-content ol {
  padding-left: 20px;
}

.price-card h2 span {
  font-size: 1rem;
  color: var(--muted);
}

.featured-plan {
  position: relative;
  transform: translateY(-10px);
  background:
    radial-gradient(circle at top, rgba(199, 92, 43, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(252, 246, 236, 0.95));
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

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

.faq-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.74);
}

.docs-body {
  min-height: 100vh;
}

.docs-layout {
  width: min(calc(100% - 40px), 1420px);
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 24px;
}

.docs-sidebar,
.docs-toc,
.docs-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 22px;
}

.sidebar-label {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-group + .sidebar-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-group p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.docs-sidebar a,
.docs-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.docs-sidebar a:hover,
.docs-sidebar a.is-active,
.docs-toc a:hover,
.docs-toc a.is-active {
  background: rgba(199, 92, 43, 0.1);
  color: var(--text);
}

.docs-content {
  padding: 34px;
}

.docs-intro {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.docs-content section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(42, 34, 20, 0.08);
}

.docs-content section:last-of-type {
  border-bottom: 0;
}

.docs-content pre {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: #211d1b;
  color: #efe6d8;
  overflow-x: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .story-band,
  .feature-grid,
  .pricing-grid,
  .about-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

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

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

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar,
  .docs-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .docs-layout {
    width: min(calc(100% - 24px), var(--content));
  }

  .site-header,
  .docs-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff8ef;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav,
  .docs-header.nav-open .site-nav {
    display: flex;
  }

  .hero,
  .pricing-hero,
  .about-hero {
    padding-top: 42px;
  }

  .hero h1,
  .pricing-hero h1,
  .about-hero h1,
  .docs-content h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .metric-grid,
  .table-row,
  .docs-table-row,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .docs-content {
    padding: 22px;
  }
}
