:root {
  --bg: #f3efe5;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: #fffaf1;
  --panel-soft: rgba(255, 249, 238, 0.72);
  --text: #1d2a22;
  --muted: #5f6b62;
  --line: rgba(29, 42, 34, 0.12);
  --accent: #0f766e;
  --accent-strong: #0b4f4b;
  --accent-soft: #d5efe6;
  --warm: #d98952;
  --shadow: 0 18px 50px rgba(45, 34, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 137, 82, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 34%),
    linear-gradient(180deg, #f8f5ed 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
h1,
h2,
h3,
.metric-value {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  display: inline-block;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-copy,
.sidebar-note p,
.hero-copy,
p,
li {
  color: var(--muted);
  line-height: 1.6;
}

.section-nav {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.section-nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.2);
  transform: translateX(2px);
}

.sidebar-note {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(213, 239, 230, 0.8), rgba(255, 243, 232, 0.8));
}

.content {
  display: grid;
  gap: 22px;
}

.panel,
.panel-soft,
.workflow-step,
.playbook-card,
.metric {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.metric {
  background: var(--panel);
  border-radius: 32px;
  padding: 28px;
  backdrop-filter: blur(14px);
}

.panel-soft {
  background: var(--panel-soft);
  border-radius: 24px;
  padding: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 11ch;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

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

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.hero-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.95), rgba(234, 247, 242, 0.92));
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.metrics-grid,
.workflow-grid,
.gallery-grid,
.playbook-grid,
.snippet-grid {
  display: grid;
  gap: 18px;
}

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

.metric {
  min-height: 100%;
}

.metric-value {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}

.section {
  display: grid;
  gap: 26px;
}

.section-heading {
  max-width: 720px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.callout {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(217, 137, 82, 0.12));
}

.callout ol {
  margin: 0;
  padding-left: 20px;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid var(--line);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-button {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: #1f2622;
  color: #eef6f0;
}

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

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

.gallery-grid {
  grid-template-columns: 1fr;
}

.gallery-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #e9e3d5;
}

.gallery-copy {
  padding: 20px 22px 24px;
}

.gallery-copy h3 {
  margin-bottom: 8px;
}

.workflow-step,
.playbook-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.84);
}

.accent-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(217, 137, 82, 0.14));
}

.diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.diagram-step {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 600;
}

.diagram-arrow {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.18), rgba(217, 137, 82, 0.9), rgba(15, 118, 110, 0.18));
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.9);
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 14px 0 0;
}

.footer-band {
  padding: 30px 24px 60px;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-shell,
  .hero,
  .two-column,
  .metrics-grid,
  .snippet-grid,
  .workflow-grid,
  .playbook-grid,
  .diagram {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  h1 {
    max-width: none;
  }

  .diagram-arrow {
    width: 2px;
    height: 34px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(217, 137, 82, 0.9), rgba(15, 118, 110, 0.18));
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 16px;
  }

  .panel,
  .metric,
  .panel-soft,
  .sidebar,
  .workflow-step,
  .playbook-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }
}