:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --text: #172026;
  --muted: #63707a;
  --line: #dce3e8;
  --accent: #0f766e;
  --accent-2: #1d4ed8;
  --soft: #dff4f0;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner,
.case-actions,
.tag-row,
.metric-grid,
.case-grid,
.two-column {
  display: grid;
}

.header-inner {
  min-height: 70px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

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

.hero {
  padding: 70px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

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

.lead {
  max-width: 720px;
  font-size: 19px;
}

.case-actions {
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 900;
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

.case-visual {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    var(--surface);
  box-shadow: var(--shadow);
}

.case-visual img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.section {
  padding: 54px 0;
}

.two-column {
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: start;
}

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

.case-card,
.metric,
.note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-card {
  padding: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric {
  padding: 18px;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 22px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.note-box {
  padding: 24px;
  background: color-mix(in srgb, var(--soft) 52%, var(--surface));
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .two-column,
  .case-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .case-actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
