:root {
  --bg: #f8f4ef;
  --ink: #1b1b1b;
  --accent: #f15a29;
  --accent-dark: #c3421a;
  --muted: #545454;
  --card: #ffffff;
  --shadow: rgba(27, 27, 27, 0.12);
  --surface: #efe7dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff9f2 0%, var(--bg) 60%);
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

p {
  line-height: 1.6;
  color: var(--muted);
}

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

.page {
  min-height: 100vh;
}

.hero {
  padding: 2.5rem clamp(1.5rem, 4vw, 5rem) 4rem;
  display: grid;
  gap: 2.5rem;
  background: linear-gradient(120deg, #fff6ec 0%, #fce1cd 45%, #f8f4ef 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(241, 90, 41, 0.2), transparent 70%);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
}

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

.link {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-dark);
}

.lede {
  font-size: 1.1rem;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0;
}

.cta.center {
  justify-content: center;
}

.button {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px var(--shadow);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(27, 27, 27, 0.15);
  box-shadow: none;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 1.2rem;
  align-content: center;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(27, 27, 27, 0.18);
  max-width: 320px;
}

.card.offset {
  margin-left: 2rem;
  background: var(--surface);
}

.card-header {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.card-body p {
  margin: 0.8rem 0 1rem;
  color: var(--ink);
  font-weight: 500;
}

.pill {
  display: inline-block;
  background: rgba(241, 90, 41, 0.15);
  color: var(--accent-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.section {
  padding: 4.5rem clamp(1.5rem, 4vw, 5rem);
}

.section.alt {
  background: #f7efe6;
}

.section.highlight {
  background: var(--ink);
  color: #fff;
}

.section.highlight p,
.section.highlight li {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.8rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature,
.panel {
  padding: 1.5rem;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.08);
}

.section.highlight .feature,
.section.highlight .panel {
  background: #2b2b2b;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 380px));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.price-card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.section.highlight .price-card p,
.section.highlight .price-card li {
  color: var(--muted);
}

.price-card.emphasis {
  background: var(--accent);
  color: #fff;
}

.section.highlight .price-card.emphasis p,
.section.highlight .price-card.emphasis li {
  color: rgba(255, 255, 255, 0.95);
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer {
  padding: 3rem clamp(1.5rem, 4vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  border-top: 1px solid rgba(27, 27, 27, 0.1);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.page-shell {
  padding: 2.5rem clamp(1.5rem, 4vw, 5rem) 2rem;
  background: linear-gradient(120deg, #fff6ec 0%, #fce1cd 45%, #f8f4ef 100%);
}

.page-header {
  max-width: 720px;
  margin: 2.5rem 0 0;
}

.page-content {
  padding: 3.5rem clamp(1.5rem, 4vw, 5rem);
  max-width: 860px;
}

.page-content h2 {
  margin-top: 2.5rem;
}

.page-content ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.resource-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.resource-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.08);
  display: grid;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 27, 27, 0.12);
}

.api-docs {
  max-width: 980px;
}

.api-docs-layout {
  display: grid;
  gap: 2.5rem;
}

.api-docs-content {
  min-width: 0;
}

.api-docs-toc {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding: 1.2rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(27, 27, 27, 0.08);
  max-height: calc(100vh - 4rem);
  overflow: auto;
}

.api-docs-toc .toc-title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.api-docs-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.api-docs-toc li {
  padding-left: 0.6rem;
  border-left: 2px solid transparent;
}

.api-docs-toc a {
  font-size: 0.9rem;
  color: var(--muted);
}

.api-docs-toc a:hover {
  color: var(--ink);
}

.api-docs h2 {
  margin-top: 3rem;
}

.api-docs h3 {
  margin-top: 2.2rem;
}

.api-docs pre {
  background: #1b1b1b;
  color: #f6f3ef;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.12);
}

.api-docs code {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.api-docs :not(pre) > code {
  background: rgba(27, 27, 27, 0.08);
  color: #1b1b1b;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.api-docs .method,
.api-docs-toc .method {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.api-docs-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.method-get {
  background: #e7f1ff;
  color: #1b5faa;
  border-color: rgba(27, 95, 170, 0.2);
}

.method-post {
  background: #e9f8ef;
  color: #1f7a4c;
  border-color: rgba(31, 122, 76, 0.2);
}

.method-patch {
  background: #fff4e6;
  color: #a65a12;
  border-color: rgba(166, 90, 18, 0.2);
}

.method-delete {
  background: #ffe9e9;
  color: #b12a2a;
  border-color: rgba(177, 42, 42, 0.2);
}

.api-docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

.api-docs th,
.api-docs td {
  border: 1px solid rgba(27, 27, 27, 0.12);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.api-docs th {
  background: rgba(27, 27, 27, 0.05);
  color: var(--ink);
}

.api-docs hr {
  border: none;
  border-top: 1px solid rgba(27, 27, 27, 0.12);
  margin: 2.5rem 0;
}

@media (min-width: 980px) {
  .api-docs-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 979px) {
  .api-docs-toc {
    position: static;
    max-height: none;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

@media (max-width: 720px) {
  .nav-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    order: -1;
  }

  .card.offset {
    margin-left: 0;
  }
}

/* News/Articles */
.article-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.article-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.08);
  display: grid;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 27, 27, 0.12);
}

.article-date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 500;
}

.article-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.article-meta .author {
  color: var(--ink);
}

.rss-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.rss-link:hover {
  text-decoration: underline;
}

.back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(27, 27, 27, 0.1);
}

.back-link a {
  color: var(--accent);
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
}
