:root {
  --bg: #f5efe5;
  --bg-strong: #fdf9f2;
  --ink: #16233b;
  --ink-soft: #4f5d77;
  --border: rgba(22, 35, 59, 0.12);
  --accent: #da5a36;
  --accent-deep: #ab3f22;
  --teal: #2e6f77;
  --blue: #3256cf;
  --chart-a: linear-gradient(135deg, #da5a36 0%, #f08c59 100%);
  --chart-b: linear-gradient(135deg, #3256cf 0%, #6d86f1 100%);
  --shadow: 0 20px 50px rgba(22, 35, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(218, 90, 54, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(50, 86, 207, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f1e8 0%, #f4ede2 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero,
.section,
.footer {
  position: relative;
}

.hero {
  display: block;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(253, 249, 242, 0.98), rgba(247, 239, 230, 0.92)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 111, 119, 0.18), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: none;
}

.hero-note span,
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.compare-card,
.list-card,
.truth-card,
.behavior-card,
.example-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.section {
  margin-top: 24px;
  padding: 32px;
  border-radius: 32px;
  background: rgba(253, 249, 242, 0.72);
  border: 1px solid rgba(22, 35, 59, 0.09);
  backdrop-filter: blur(16px);
}

.section-heading {
  max-width: 72ch;
}

.section-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 17px;
}

.compare-card {
  margin-top: 26px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.compare-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.compare-story,
.compare-highlight {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}

.compare-periods {
  display: grid;
  gap: 14px;
}

.compare-panel {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,243,236,0.92));
  border: 1px solid var(--border);
}

.compare-label {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compare-value {
  margin-top: 10px;
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: -0.04em;
}

.compare-meta {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 14px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  height: 100%;
  align-items: stretch;
}

.highlight-card {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(22, 35, 59, 0.08);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.highlight-card.primary {
  background:
    linear-gradient(135deg, rgba(50, 86, 207, 0.12), rgba(218, 90, 54, 0.1)),
    rgba(255, 255, 255, 0.94);
  padding: 22px 20px;
}

.highlight-label {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-value {
  margin-top: 10px;
  font-size: clamp(44px, 4.7vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.highlight-meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.dual-grid,
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.subhead {
  margin-bottom: 12px;
  font-size: 18px;
}

.list-stack,
.examples-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  padding: 18px;
}

.list-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.list-name {
  font-size: 20px;
  line-height: 1.15;
}

.delta {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
}

.delta.up {
  background: rgba(46, 111, 119, 0.12);
  color: var(--teal);
}

.delta.flat,
.delta.down {
  background: rgba(218, 90, 54, 0.12);
  color: var(--accent-deep);
}

.list-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.truth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.truth-card,
.behavior-card {
  padding: 20px;
}

.truth-stat {
  margin-top: 6px;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.truth-detail,
.behavior-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.behavior-card h3 {
  font-size: 20px;
  line-height: 1.15;
}

.example-card {
  padding: 24px;
  overflow: hidden;
}

.example-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.example-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.example-title {
  margin-top: 6px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.example-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  align-self: start;
}

.insight-title {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.insight-copy,
.reasoning-copy,
.panel p,
.panel li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

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

.metric-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(22, 35, 59, 0.04);
}

.metric-card .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.metric-card .value {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(22, 35, 59, 0.14);
}

.timeline-item {
  position: relative;
  padding-left: 34px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(22, 35, 59, 0.14);
  background: #fff;
}

.timeline-item.conversion::before {
  border-color: rgba(50, 86, 207, 0.34);
  background: linear-gradient(135deg, rgba(50, 86, 207, 0.16), rgba(109, 134, 241, 0.36));
  box-shadow: 0 0 0 6px rgba(50, 86, 207, 0.08);
}

.timeline-type {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-subject {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.25;
}

.timeline-meta {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.signal-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.signal-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(218, 90, 54, 0.06);
}

.signal-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.signal-card p {
  font-size: 14px;
}

.adaptation-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.adaptation-card {
  padding: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: rgba(50, 86, 207, 0.06);
}

.adaptation-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.screenshot-wrap {
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(22, 35, 59, 0.04), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
}

.screenshot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.screenshot-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.screenshot-stage {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(22, 35, 59, 0.08);
  background: #fff;
}

.screenshot-stage img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.footer {
  margin-top: 24px;
  padding: 18px 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero,
  .example-layout,
  .dual-grid,
  .behavior-grid,
  .truth-grid,
  .compare-split,
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 10px;
  }

  .hero,
  .section,
  .example-card {
    padding: 20px;
    border-radius: 24px;
  }

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

  .example-header {
    flex-direction: column;
  }
}
