/* ============================================
   ADVANCED MONKEY — HOME PAGE CSS
   ============================================ */

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding: var(--nav-height) var(--pad-x) 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* terracotta glow behind the stats card */
.hero-glow {
  position: absolute; right: -6%; bottom: -32%;
  width: 62%; height: 150%;
  background: radial-gradient(circle at center, rgba(201,79,26,0.30), transparent 62%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}

/* Roaming monkey — perched on the top-right corner of the stats card (child of .hero-panel) */
.hero-monkey {
  position: absolute;
  top: -40px;
  right: -8px;
  width: 88px; height: 88px;
  z-index: 4;
  pointer-events: none;
}
.hero-monkey svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.4)); }
@media (max-width: 900px) { .hero-monkey { display: none; } }

.hero-main {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
/* dark-hero text colours */
.hero h1 { color: #fff; }
.hero-creds .stat-val { color: #fff; }
.hero-creds .stat-key { color: rgba(255,255,255,0.45); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero .btn-ghost:hover { border-color: #fff; background: transparent; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 44px;
}
.hero-sub strong { color: #fff; font-weight: 500; }
.hero-sub a { color: #fff; }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-creds {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Stats card (raised translucent panel on the dark hero) */
.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-panel-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-stat {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:first-child { padding-top: 0; }
.hero-stat:last-child { border-bottom: none; }
.hero-stat em {
  font-style: normal;
  color: var(--accent);
}
.hero-quote {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.75;
  font-style: italic;
}
.hero-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── PROBLEM ─── */
.problem-card {
  padding: 44px 36px;
  position: relative;
}
.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s;
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-industry {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.problem-pain {
  font-size: 20px; font-weight: 600; color: white;
  line-height: 1.3; margin-bottom: 14px;
}
.problem-opp {
  font-size: 14px; color: rgba(255,255,255,0.4);
  line-height: 1.7; font-weight: 300;
}
.problem-truth {
  margin-top: 56px; padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 24px; align-items: flex-start;
}
.truth-mark {
  font-family: var(--font-head);
  font-size: 56px; font-weight: 700;
  color: rgba(255,255,255,0.06); line-height: 1;
  flex-shrink: 0; margin-top: -8px;
}
.truth-text {
  font-family: var(--font-head);
  font-size: 21px; font-weight: 600;
  color: white; line-height: 1.5;
}
.truth-text em { font-style: normal; color: var(--accent); }

/* ─── HOW IT WORKS ─── */
.how-step { padding: 40px 32px; }
.how-num {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.how-title {
  font-size: 19px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.how-desc {
  font-size: 14px; color: var(--mid);
  line-height: 1.7; font-weight: 300;
}

/* ─── SERVICES ─── */
.service-card {
  padding: 44px 40px;
  position: relative; overflow: hidden;
}
.service-n {
  position: absolute; bottom: 20px; right: 28px;
  font-family: var(--font-head);
  font-size: 72px; font-weight: 700;
  color: var(--faint); line-height: 1;
  pointer-events: none; transition: color var(--transition);
}
.service-card:hover .service-n { color: rgba(201,79,26,0.1); }
.service-tier {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid);
  margin-bottom: 12px;
}
.service-name {
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.service-hook {
  font-size: 13px; color: var(--accent);
  font-weight: 500; margin-bottom: 16px;
}
.service-desc {
  font-size: 14px; color: var(--mid);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 20px; max-width: 380px;
}
.service-price {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.service-price small {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 300; color: var(--mid);
}

/* ─── DIFFERENTIATOR ─── */
.diff-pillars {
  margin-top: 40px;
  display: flex; flex-direction: column;
}
.diff-pillar {
  display: flex; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--faint);
}
.diff-pillar:last-child { border-bottom: none; }
.dp-num {
  font-family: var(--font-head); font-size: 12px;
  font-weight: 700; color: var(--accent);
  min-width: 22px; padding-top: 1px;
}
.dp-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 5px;
}
.dp-desc {
  font-size: 13px; color: var(--mid);
  line-height: 1.6; font-weight: 300;
}

.diff-statement {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; color: white;
  line-height: 1.45; letter-spacing: -0.01em;
  margin-top: 32px;
}
.diff-statement em { font-style: normal; color: var(--accent); }
.diff-tools {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px;
}
.diff-note {
  margin-top: 24px; font-size: 12px;
  color: rgba(255,255,255,0.25); font-style: italic;
  line-height: 1.6;
}

/* ─── CASE CARDS ─── */
.case-card { border-radius: var(--radius); overflow: hidden; }
.case-top {
  background: var(--ink); padding: 32px;
}
.case-tag {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.case-name {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: white; letter-spacing: -0.02em;
}
.case-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--faint);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.case-stat {
  background: var(--paper); padding: 20px 22px;
}
.case-body { padding: 24px 28px; }
.case-body-title {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 500; margin-bottom: 14px;
}

/* ─── CASE STUDY STORY ROWS (facts + drawn diagram) ─── */
.cs-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto 28px;
}
.cs-story.flip .cs-story-copy { order: 2; }
.cs-story-copy {
  background: var(--paper);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 34px 36px;
}
.cs-story .case-tag { color: var(--mid); }
.cs-story .case-name {
  color: var(--ink);
  margin-bottom: 22px;
}
.cs-story-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--faint);
}
.cs-story-fig {
  position: relative;
  margin: 0;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.cs-story-fig > svg { width: 100%; height: auto; display: block; }
.cs-fig-cap {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
/* win-moment monkey, leaping off the first diagram's corner */
.cs-fig-monkey {
  position: absolute;
  top: -6px; right: 14px;
  width: 60px; height: 60px;
  pointer-events: none;
}
.cs-fig-monkey svg { width: 100%; height: 100%; display: block; }

/* ─── SERVICE TIER ICONS + FEATURED TIER ─── */
.service-ico {
  display: block;
  width: 32px; height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-ico svg {
  width: 100%; height: 100%; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .service-ico { transform: translateY(-3px) scale(1.08); }
.service-card.featured {
  background: var(--warm);
  box-shadow: inset 0 2px 0 var(--accent);
}
.service-card.featured .service-tier { color: var(--accent); font-weight: 600; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { margin-top: 8px; }
  .hero-main { padding: 40px 0 32px; }
  .cs-story { grid-template-columns: 1fr; }
  .cs-story.flip .cs-story-copy { order: 0; }
  .cs-story-copy { padding: 26px 24px; }
  .problem-card { padding: 32px 24px; }
  .how-step { padding: 32px 24px; }
  .problem-truth { padding: 28px; flex-direction: column; gap: 12px; }
  .truth-mark { font-size: 36px; }
  .truth-text { font-size: 18px; }
}

@media (max-width: 768px) {
  .problem-grid, .how-grid, .services-grid { grid-template-columns: 1fr !important; }
  .hero-creds { gap: 20px; }
  .diff-tools { gap: 6px; }
}
