:root {
  --bg: #efe6d8;
  --bg-deep: #ddd0bf;
  --panel: rgba(255, 250, 242, 0.82);
  --panel-strong: rgba(255, 250, 242, 0.92);
  --ink: #1d231f;
  --muted: #5d655f;
  --line: rgba(29, 35, 31, 0.1);
  --green: #0e6b57;
  --green-deep: #0a4f40;
  --clay: #a44b28;
  --gold: #b98924;
  --shadow: 0 28px 72px rgba(49, 43, 34, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 107, 87, 0.14), transparent 25%),
    radial-gradient(circle at 100% 20%, rgba(169, 75, 40, 0.12), transparent 20%),
    linear-gradient(180deg, #f5ecdf 0%, #e9dfd1 48%, #e1d6c6 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 236, 223, 0.68);
  border-bottom: 1px solid rgba(29, 35, 31, 0.08);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}

main {
  padding: 28px 20px 80px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  padding: 18px 0 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(14, 107, 87, 0.1);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 11ch;
}

.hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-media-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-media {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-media .caption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding-top: 28px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 26px;
}

.summary-grid,
.detail-grid,
.command-grid,
.scenario-grid {
  display: grid;
  gap: 18px;
}

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

.detail-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

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

.card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 100%;
  min-width: 0;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

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

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.kicker.symptom {
  background: rgba(169, 75, 40, 0.12);
  color: #7d371c;
}

.kicker.cause {
  background: rgba(14, 107, 87, 0.1);
  color: var(--green-deep);
}

.kicker.fix {
  background: rgba(185, 137, 36, 0.12);
  color: #755816;
}

.metric {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}

.metric .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 800;
}

.metric .value {
  display: block;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--green-deep);
}

pre {
  margin: 0;
  padding: 16px 18px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 18px;
  background: #1f2421;
  color: #edf2ed;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

code {
  font-family: "IBM Plex Mono", monospace;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.crumb {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(14, 107, 87, 0.08);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-link {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.scenario-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(49, 43, 34, 0.09);
  border-color: rgba(14, 107, 87, 0.18);
}

.scenario-link .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.symptom-log {
  margin-top: 16px;
}

.visual-flow {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.visual-step {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.visual-step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(14,107,87,0.62), rgba(14,107,87,0));
}

.visual-step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(14,107,87,0.72);
  border-bottom: 2px solid rgba(14,107,87,0.72);
  background: rgba(255,250,242,0.98);
}

.visual-step:last-child::after,
.visual-step:last-child::before {
  display: none;
}

.visual-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-step strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

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

@media (max-width: 980px) {
  .summary-grid,
  .detail-grid,
  .command-grid,
  .scenario-grid,
  .hero-media-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: auto;
  }

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