/* =============================================
   DATSTRA ANALYTICS — Design System & Styles
   ============================================= */

/* ----- 1. Custom Properties ----- */
:root {
  --navy: #355c7d;
  --navy-deep: #1e3a5f;
  --navy-dark: #0f1f33;
  --navy-light: #4a7a9b;
  --coral: #f67280;
  --coral-dark: #e45a68;
  --coral-glow: rgba(246, 114, 128, 0.15);
  --cream: #faf8f5;
  --warm-white: #ffffff;
  --warm-gray-1: #f3efe9;
  --warm-gray-2: #e4dfd7;
  --warm-gray-3: #c8c1b7;
  --text-dark: #1a2433;
  --text-body: #3a4a5c;
  --text-muted: #6b7a8d;
  --text-light: #94a3b8;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --size-display: clamp(2.8rem, 5.5vw, 4.5rem);
  --size-h1: clamp(2.2rem, 4vw, 3.5rem);
  --size-h2: clamp(1.8rem, 3.2vw, 2.75rem);
  --size-h3: clamp(1.4rem, 2.2vw, 2rem);
  --size-h4: clamp(1.15rem, 1.6vw, 1.5rem);
  --size-body-lg: 1.25rem;
  --size-body: 1.0625rem;
  --size-body-sm: 0.9375rem;
  --size-caption: 0.8125rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-section: clamp(5rem, 10vw, 8rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(30,58,95,0.06);
  --shadow-md: 0 4px 20px rgba(30,58,95,0.08);
  --shadow-lg: 0 12px 40px rgba(30,58,95,0.12);
  --shadow-xl: 0 25px 60px rgba(30,58,95,0.16);
  --shadow-glow: 0 0 60px rgba(246,114,128,0.1);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1300px;
  --container-narrow: 900px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}


/* ----- 2. Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }


/* ----- 3. Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--size-h1); font-weight: 700; }
h2 { font-size: var(--size-h2); font-weight: 700; }
h3 { font-size: var(--size-h3); font-weight: 600; }
h4 { font-size: var(--size-h4); font-weight: 600; }

p + p { margin-top: 1em; }

.text-coral { color: var(--coral); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}


/* ----- 4. Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.section-dark {
  background: var(--navy-dark);
  color: var(--warm-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--warm-white);
}

.section-dark .text-muted {
  color: var(--text-light);
}

.section-navy {
  background: var(--navy);
  color: var(--warm-white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--warm-white);
}

.section-warm {
  background: var(--warm-gray-1);
}


/* ----- 5. Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-base);
}

.nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(30, 58, 95, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-mark {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: var(--size-body-sm);
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: var(--size-body-sm);
  font-weight: 600;
  color: var(--warm-white);
  background: var(--coral);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-mobile {
  display: none;
}


/* ----- 6. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-coral {
  background: var(--coral);
  color: var(--warm-white);
}

.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(246, 114, 128, 0.3);
}

.btn-navy {
  background: var(--navy);
  color: var(--warm-white);
}

.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--warm-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--warm-white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: var(--warm-white);
  color: var(--navy);
  border-color: var(--warm-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--warm-white);
  color: var(--navy);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--size-body-sm);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.125rem;
}


/* ----- 7. Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(53,92,125,0.04), transparent),
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(246,114,128,0.03), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(53,92,125,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-headline {
  font-size: var(--size-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: var(--size-body-lg);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}


/* ----- 8. Section Headers ----- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--size-body-lg);
  color: var(--text-muted);
  max-width: 640px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-inline: auto;
}


/* ----- 9. Crisis Stats (now inside attrition section — see donor-attrition block) ----- */


/* ----- 10. Proof / Stats Section ----- */
.proof {
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(246,114,128,0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,122,155,0.1), transparent 50%);
  pointer-events: none;
}

.proof-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.proof-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.proof-arrow {
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
}

.proof-text {
  max-width: 680px;
  margin-inline: auto;
  font-size: var(--size-body-lg);
  line-height: 1.7;
  opacity: 0.85;
}

.proof-text em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--warm-white);
}

.proof-attribution {
  margin-top: var(--space-lg);
  font-size: var(--size-body-sm);
  opacity: 0.5;
}

.proof-callout {
  display: inline-block;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(246,114,128,0.3);
  border-radius: 999px;
  font-size: var(--size-body);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}

.proof-callout strong {
  color: var(--coral);
  font-size: var(--size-h4);
  font-family: var(--font-display);
  font-weight: 700;
}

.proof-transform {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: var(--space-lg) auto 0;
}

.proof-col-label {
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.proof-list {
  list-style: none;
}

.proof-list li {
  font-size: var(--size-body);
  line-height: 1.7;
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(255,255,255,0.45);
}

.proof-list li::before {
  content: '\00d7';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
  font-size: 1.1em;
}

.proof-list-after li {
  color: rgba(255,255,255,0.85);
}

.proof-list-after li::before {
  content: '\2713';
  color: #34d399;
}

.proof-divider-vert {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
}


/* ----- 11. Dashboard Mockups ----- */
.dashboard-mockup {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-base);
}

.dashboard-mockup:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.dash-toolbar {
  background: #1e293b;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #eab308; }
.dash-dot.green { background: #22c55e; }

.dash-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.dash-body {
  padding: 1rem;
}

/* KPI Row */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.dash-kpi {
  background: #1e293b;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.dash-kpi-label {
  font-size: 0.6rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.dash-kpi-value {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.dash-kpi-change {
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.dash-kpi-change.positive { color: #34d399; }
.dash-kpi-change.negative { color: #f67280; }

/* Chart Area */
.dash-chart-area {
  background: #1e293b;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.dash-chart-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
}

.dash-chart-legend {
  display: flex;
  gap: 0.8rem;
}

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.55rem;
  color: #64748b;
}

.dash-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.dash-legend-dot.navy { background: #4a8ec7; }
.dash-legend-dot.coral { background: #f67280; }

/* Bar Chart */
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
  padding-top: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dash-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  position: relative;
}

.dash-bar-group-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  flex: 1;
  width: 100%;
}

.dash-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: var(--transition-base);
}

.dash-bar.navy { background: linear-gradient(to top, #355c7d, #4a8ec7); }
.dash-bar.coral { background: linear-gradient(to top, #e45a68, #f67280); opacity: 0.6; }

.dash-bar-label {
  font-size: 0.5rem;
  color: #475569;
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* Hero Dashboard — larger */
.dashboard-hero {
  width: 100%;
  max-width: 560px;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255,255,255,0.05);
}

.dashboard-hero .dash-body {
  padding: 1.25rem;
}

.dashboard-hero .dash-kpi-row {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-hero .dash-bars {
  height: 110px;
}

/* Small Dashboard Cards (product grid) */
.dashboard-sm {
  width: 100%;
}

.dashboard-sm .dash-kpi-row {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-sm .dash-bars {
  height: 70px;
}

/* Donor 360 Mockup */
.dash-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8ec7, #355c7d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.dash-profile-info {
  min-width: 0;
}

.dash-profile-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
}

.dash-profile-meta {
  font-size: 0.55rem;
  color: #64748b;
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-metric {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

.dash-metric-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.dash-metric-label {
  font-size: 0.5rem;
  color: #64748b;
  margin-top: 0.1rem;
}

/* Activity List */
.dash-activity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  font-size: 0.55rem;
  color: #94a3b8;
}

.dash-activity-amount {
  font-weight: 600;
  color: #34d399;
}

/* Horizontal Bar Chart */
.dash-hbars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-hbar-item {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.6rem;
}

.dash-hbar-name {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-hbar-track {
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.dash-hbar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #355c7d, #4a8ec7);
}

.dash-hbar-value {
  color: #64748b;
  text-align: right;
  font-weight: 500;
}

/* Retention Line Chart */
.dash-line-chart {
  position: relative;
  height: 80px;
  margin-top: 0.5rem;
}

.dash-line-svg {
  width: 100%;
  height: 100%;
}

.dash-line-path {
  fill: none;
  stroke: #4a8ec7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-line-area {
  fill: url(#lineGradient);
  opacity: 0.3;
}

.dash-cohort-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-bottom: 0.75rem;
}

.dash-cohort-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  min-height: 16px;
}


/* ----- 12. Product Section (Dashboard Gallery) ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.product-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-item-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.product-item-label h4 {
  font-size: var(--size-body);
  font-family: var(--font-body);
  font-weight: 600;
}

.product-item-desc {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  margin-top: -0.25rem;
}


/* ----- 12b. Pillars Section ----- */
.pillars-section {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.pillars-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(246,114,128,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.pillar {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-md);
  border-top: 2px solid rgba(255,255,255,0.1);
}

.pillar-num {
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.pillar-content {
  margin-bottom: var(--space-sm);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 0.3rem;
}

.pillar-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(246,114,128,0.7);
  font-size: var(--size-body-sm);
  line-height: 1.45;
}

.pillar-body {
  font-size: var(--size-body-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* Dark section sub-paragraph override for readability */
.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}


/* ----- 13. ICP Section ----- */
.icp-content {
  max-width: 780px;
  margin-inline: auto;
}

.icp-quote {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
}

.icp-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
  border-radius: 2px;
}

.icp-body {
  font-size: var(--size-body-lg);
  line-height: 1.75;
  color: var(--text-body);
}

.icp-body strong {
  color: var(--navy);
}

.icp-highlight {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  color: var(--navy);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--warm-gray-2);
}


/* ----- 14. Process Steps ----- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: var(--size-h4);
  margin-bottom: 0.35rem;
}

.step .step-time {
  font-size: var(--size-body-sm);
  color: var(--coral);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.step p:not(.step-time) {
  color: var(--text-muted);
  font-size: var(--size-body-sm);
  line-height: 1.7;
}


/* ----- 14b. Trusted By ----- */
.trusted-by {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--cream);
}

.trusted-by-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.trusted-by-track {
  animation-duration: 25s;
}

.trusted-by-strip {
  gap: clamp(3rem, 6vw, 5rem);
  padding-right: clamp(3rem, 6vw, 5rem);
}

.trusted-by-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.trusted-by-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* ----- 15. Testimonials ----- */
.quotes-stack {
  max-width: 900px;
  margin-inline: auto;
}

.quote-row {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--warm-gray-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}

.quote-row:first-child {
  border-top: 1px solid var(--warm-gray-2);
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
  margin: 0;
}

.quote-full {
  display: none;
  opacity: 0;
}

.quote-row.expanded .quote-full {
  display: inline;
  animation: quoteFadeIn 0.4s ease forwards;
}

@keyframes quoteFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quote-toggle {
  display: inline-block;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  color: var(--coral);
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.quote-toggle:hover {
  color: var(--coral-dark);
}

.quote-toggle::before {
  content: '\25B8';
  margin-right: 0.35em;
  display: inline-block;
  transition: transform 0.3s;
}

.quote-row.expanded .quote-toggle::before {
  transform: rotate(90deg);
}

.quote-attr {
  text-align: right;
  min-width: 180px;
  padding-top: 0.25rem;
}

.quote-attr strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--text-dark);
}

.quote-attr span {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
}


/* ----- 16. Final CTA ----- */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(246,114,128,0.1), transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  color: var(--warm-white);
  margin-bottom: var(--space-md);
}

.final-cta p {
  color: rgba(255,255,255,0.7);
  font-size: var(--size-body-lg);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}


/* ----- 17. Footer ----- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo-mark {
  height: 28px;
  width: auto;
}

.footer-desc {
  font-size: var(--size-body-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  font-size: var(--size-body-sm);
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--size-caption);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a:hover {
  color: var(--warm-white);
}


/* =============================================
   INNER PAGE STYLES
   ============================================= */

/* ----- Page Hero (shared) ----- */
.page-hero {
  padding-top: 8rem;
  padding-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 80%, rgba(53,92,125,0.06), transparent);
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--size-body-lg);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}


/* ----- How We Work Page: Phases ----- */
.phases {
  max-width: 960px;
  margin-inline: auto;
}

.phase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--warm-gray-2);
  align-items: start;
}

.phase:last-child {
  border-bottom: 1px solid var(--warm-gray-2);
}

.phase-meta {
  position: sticky;
  top: 6rem;
}

.phase-label {
  font-family: var(--font-body);
  font-size: var(--size-caption);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-xs);
}

.phase-title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.phase-time {
  font-size: var(--size-body-sm);
  color: var(--coral);
  font-weight: 600;
}

.phase-list {
  list-style: none;
}

.phase-list li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.4rem;
  font-size: var(--size-body);
  color: var(--text-body);
  line-height: 1.7;
}

.phase-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--warm-gray-3);
  font-size: 0.75em;
}

.phase-outcome {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  border-left: 2px solid var(--coral);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  font-size: var(--size-body);
  line-height: 1.6;
}

/* Integration Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  padding: var(--space-sm) 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track-reverse {
  animation-direction: reverse;
  animation-duration: 35s;
  margin-top: var(--space-sm);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
  padding-right: var(--space-lg);
}

.marquee-item {
  font-size: var(--size-body-lg);
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--warm-gray-3);
  font-size: 0.5rem;
  line-height: 1;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ----- Results Page ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.gallery-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,92,125,0.06);
}

.gallery-item:nth-child(even) {
  direction: rtl;
}

.gallery-item:nth-child(even) > * {
  direction: ltr;
}

.gallery-item .dashboard-mockup {
  margin-bottom: 0;
}

.gallery-item-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gallery-item-content h4 {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  color: var(--text-dark);
  margin-bottom: 0;
}

.gallery-item-question {
  font-family: var(--font-display);
  font-size: var(--size-body);
  color: var(--coral);
  margin-bottom: 0;
}

.gallery-item-content > p {
  font-size: var(--size-body-sm);
  color: var(--text-body);
  line-height: 1.7;
}

.gallery-item-insight {
  background: var(--cream);
  border-left: 3px solid var(--coral);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--size-body-sm) !important;
  color: var(--text-dark) !important;
  line-height: 1.7;
}

.case-study {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,92,125,0.06);
  margin-bottom: var(--space-lg);
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.case-study h3 {
  margin-bottom: 0.25rem;
}

.case-study-tag {
  font-size: var(--size-caption);
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.case-study-section {
  margin-bottom: var(--space-md);
}

.case-study-section:last-child {
  margin-bottom: 0;
}

.case-study-section h4 {
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.case-study-stat {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--navy);
}


/* ----- Pricing Page ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,92,125,0.06);
  transition: var(--transition-base);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--coral);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  font-size: var(--size-caption);
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card h3 {
  font-family: var(--font-body);
  font-size: var(--size-h4);
  margin-bottom: 0.25rem;
}

.pricing-tag {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.pricing-amount span {
  font-size: var(--size-body);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-period {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--warm-gray-2);
}

.pricing-features {
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: var(--size-body-sm);
  color: var(--text-body);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.pricing-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--warm-gray-2);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--coral);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  line-height: 1.65;
}


/* ----- About Page ----- */
.about-story {
  max-width: 780px;
  margin-inline: auto;
}

.about-story-lead {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: var(--space-lg);
}

.about-story p {
  font-size: var(--size-body-lg);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.team-avatar.navy { background: linear-gradient(135deg, #355c7d, #4a7a9b); }
.team-avatar.coral { background: linear-gradient(135deg, #f67280, #e45a68); }
.team-avatar.deep { background: linear-gradient(135deg, #1e3a5f, #355c7d); }

.team-card h3 {
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  margin-bottom: 0.1rem;
}

.team-role {
  font-size: var(--size-body-sm);
  color: var(--coral);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.value-card {
  padding: var(--space-lg);
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,92,125,0.06);
  border-left: 4px solid var(--coral);
}

.value-card h3 {
  font-size: var(--size-h4);
  margin-bottom: 0.25rem;
}

.value-arabic {
  font-size: var(--size-body-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.value-arabic-script {
  font-size: 1.1em;
  direction: rtl;
  margin-left: 0.35em;
  color: var(--coral);
}

.value-card p {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  line-height: 1.65;
}


/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--size-body-sm);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--warm-gray-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(53,92,125,0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
}

.trust-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.trust-item h4 {
  font-family: var(--font-body);
  font-size: var(--size-body);
  margin-bottom: 0.15rem;
}

.trust-item p {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
}


/* ----- Resources Page ----- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.article-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,92,125,0.06);
  transition: var(--transition-base);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.article-card-image span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  opacity: 0.15;
  color: white;
}

/* ----- Resource Card Visualizations ----- */
.card-viz {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
}

/* 1. Rising Bar Chart ($254M → $664M) */
.viz-bars {
  gap: 12px;
  align-items: flex-end;
}
.viz-bars .bar {
  width: 28px;
  border-radius: 4px 4px 0 0;
  background: rgba(255,255,255,0.6);
  transition: height 0.4s ease, background 0.4s ease;
  position: relative;
}
.viz-bars .bar:nth-child(1) { height: 30%; }
.viz-bars .bar:nth-child(2) { height: 48%; }
.viz-bars .bar:nth-child(3) { height: 68%; }
.viz-bars .bar:nth-child(4) { height: 92%; background: rgba(255,255,255,0.8); }
.viz-bars .bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.viz-bars .bar:last-child .bar-label {
  color: rgba(255,255,255,0.9);
}
.article-card:hover .viz-bars .bar { background: rgba(255,255,255,0.75); }
.article-card:hover .viz-bars .bar:nth-child(4) { background: rgba(255,255,255,0.9); }

/* 2. Leaky Bucket / Draining Bar */
.viz-drain {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 32px 28px;
}
.viz-drain .drain-track {
  height: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  position: relative;
}
.viz-drain .drain-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.25) 80%, transparent 100%);
  width: 85%;
}
.viz-drain .drain-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.viz-drain .drain-drops {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 4px;
}
.viz-drain .drop {
  width: 4px;
  height: 8px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: rgba(255,255,255,0.5);
}
.viz-drain .drop:nth-child(2) { opacity: 0.6; transform: translateY(4px); }
.viz-drain .drop:nth-child(3) { opacity: 0.4; transform: translateY(8px); }
.article-card:hover .viz-drain .drain-fill {
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.3) 80%, transparent 100%);
}

/* 3. Three Gauge Rings */
.viz-rings {
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.viz-rings .ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
}
.viz-rings .ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.viz-rings .ring circle {
  fill: none;
  stroke-width: 3;
}
.viz-rings .ring .ring-bg {
  stroke: rgba(255,255,255,0.25);
}
.viz-rings .ring .ring-fill {
  stroke: rgba(255,255,255,0.7);
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}
.viz-rings .ring-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-weight: 600;
}
.article-card:hover .viz-rings .ring-fill { stroke: rgba(255,255,255,0.85); }

/* 4. Donor 360 Radar Ring */
.viz-radar {
  align-items: center;
  justify-content: center;
}
.viz-radar .radar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.5);
  position: relative;
  transition: border-color 0.3s ease;
}
.viz-radar .radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  transition: background 0.3s ease;
}
.viz-radar .radar-dot:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.viz-radar .radar-dot:nth-child(2) { top: 18%; right: -2px; }
.viz-radar .radar-dot:nth-child(3) { bottom: 18%; right: -2px; }
.viz-radar .radar-dot:nth-child(4) { bottom: -4px; left: 50%; transform: translateX(-50%); }
.viz-radar .radar-dot:nth-child(5) { bottom: 18%; left: -2px; }
.viz-radar .radar-dot:nth-child(6) { top: 18%; left: -2px; }
.viz-radar .radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.5px;
}
.article-card:hover .viz-radar .radar-circle { border-color: rgba(255,255,255,0.65); }
.article-card:hover .viz-radar .radar-dot { background: rgba(255,255,255,0.9); }

/* 5. Declining Line Chart (Ad ROI) */
.viz-decline {
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 40px;
}
.viz-decline .decline-bar {
  width: 24px;
  border-radius: 3px 3px 0 0;
  background: rgba(255,255,255,0.6);
  transition: background 0.3s ease;
  position: relative;
}
.viz-decline .decline-bar:nth-child(1) { height: 90%; background: rgba(255,255,255,0.75); }
.viz-decline .decline-bar:nth-child(2) { height: 72%; }
.viz-decline .decline-bar:nth-child(3) { height: 52%; }
.viz-decline .decline-bar:nth-child(4) { height: 35%; }
.viz-decline .decline-bar:nth-child(5) { height: 22%; background: rgba(255,255,255,0.4); }
.viz-decline .decline-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.article-card:hover .viz-decline .decline-bar { background: rgba(255,255,255,0.75); }
.article-card:hover .viz-decline .decline-bar:nth-child(5) { background: rgba(255,255,255,0.55); }

/* 6. Gap Visualization ($5M → $25M) */
.viz-gap {
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 20px;
}
.viz-gap .gap-bar {
  height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,0.65);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-gap .gap-bar-small { width: 55px; }
.viz-gap .gap-bar-large { width: 110px; }
.viz-gap .gap-bridge {
  width: 36px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.55) 0 4px, transparent 4px 8px);
  position: relative;
}
.viz-gap .gap-bridge::before {
  content: '?';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.viz-gap .gap-label {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.article-card:hover .viz-gap .gap-bar { background: rgba(255,255,255,0.8); }
.article-card:hover .viz-gap .gap-bridge { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.7) 0 4px, transparent 4px 8px); }

/* 7. Pipeline Flow (Mop & Bucket / Infrastructure) */
.viz-pipeline {
  align-items: center;
  justify-content: center;
  gap: 0;
}
.viz-pipeline .pipe-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.viz-pipeline .pipe-line {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.45);
  position: relative;
}
.viz-pipeline .pipe-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 5px solid rgba(255,255,255,0.45);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.viz-pipeline .pipe-node.active { background: rgba(255,255,255,0.85); }
.article-card:hover .viz-pipeline .pipe-node { background: rgba(255,255,255,0.8); }
.article-card:hover .viz-pipeline .pipe-node.active { background: rgba(255,255,255,0.95); }
.article-card:hover .viz-pipeline .pipe-line { background: rgba(255,255,255,0.55); }

/* 8. Sankey-style Flow (Supply Chain / Donation Tracking) */
.viz-flow {
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}
.viz-flow .flow-source {
  width: 24px;
  height: 48px;
  border-radius: 4px;
  background: rgba(255,255,255,0.7);
  flex-shrink: 0;
  position: relative;
}
.viz-flow .flow-source::after {
  content: '$';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.viz-flow .flow-paths {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 6px;
}
.viz-flow .flow-path {
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.45);
}
.viz-flow .flow-path:nth-child(1) { width: 50px; }
.viz-flow .flow-path:nth-child(2) { width: 60px; }
.viz-flow .flow-path:nth-child(3) { width: 45px; }
.viz-flow .flow-path:nth-child(4) { width: 55px; }
.viz-flow .flow-targets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viz-flow .flow-target {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,0.6);
  transition: background 0.3s ease;
}
.article-card:hover .viz-flow .flow-source { background: rgba(255,255,255,0.85); }
.article-card:hover .viz-flow .flow-target { background: rgba(255,255,255,0.75); }
.article-card:hover .viz-flow .flow-path { background: rgba(255,255,255,0.55); }

/* 9. Timeline Dots (7 Years Donating) */
.viz-timeline {
  align-items: center;
  justify-content: center;
  gap: 0;
}
.viz-timeline .tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s ease;
}
.viz-timeline .tl-line {
  width: 12px;
  height: 2px;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.viz-timeline .tl-dot:last-of-type {
  background: rgba(255,255,255,0.85);
}
.viz-timeline .tl-dot:first-of-type .tl-label,
.viz-timeline .tl-dot:last-of-type .tl-label {
  display: block;
}
.viz-timeline .tl-label {
  display: none;
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.article-card:hover .viz-timeline .tl-dot { background: rgba(255,255,255,0.8); }
.article-card:hover .viz-timeline .tl-dot:last-of-type { background: rgba(255,255,255,0.95); }

/* 10. Split View — Pipes vs Charts (Engineer vs Analyst) */
.viz-split {
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.viz-split .split-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-split .split-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.4);
}
/* Pipe side */
.viz-split .split-pipes {
  display: flex;
  align-items: center;
  gap: 3px;
}
.viz-split .sp-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
}
.viz-split .sp-pipe {
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.45);
}
/* Chart side */
.viz-split .split-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}
.viz-split .sc-bar {
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: rgba(255,255,255,0.6);
}
.viz-split .sc-bar:nth-child(1) { height: 45%; }
.viz-split .sc-bar:nth-child(2) { height: 70%; }
.viz-split .sc-bar:nth-child(3) { height: 55%; }
.viz-split .sc-bar:nth-child(4) { height: 85%; }
.viz-split .split-label {
  font-size: 9px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card:hover .viz-split .sp-node { background: rgba(255,255,255,0.8); }
.article-card:hover .viz-split .sc-bar { background: rgba(255,255,255,0.75); }

.article-card-body {
  padding: var(--space-lg);
}

.article-card-tag {
  font-size: var(--size-caption);
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-xs);
}

.article-card h3 {
  font-size: var(--size-h4);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.article-card p {
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--size-body-sm);
  font-weight: 600;
  color: var(--coral);
  margin-top: var(--space-sm);
  transition: gap var(--transition-fast);
}

.article-card:hover .article-card-link {
  gap: 0.6rem;
}


/* ----- Donor Attrition ----- */
.donor-attrition {
  background: #0f1923;
  color: #fff;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
  position: relative;
}

.crisis-stats-section {
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.attrition-inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

/* Year + count header */
.attrition-header {
  text-align: center;
  margin-bottom: clamp(12px, 2vh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.attrition-count {
  font-family: var(--font-body);
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.95);
  transition: color 0.5s ease;
  order: 1;
}

.attrition-count.critical {
  color: var(--coral);
}

/* Year label sits right below the big number */
.attrition-year {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  order: 2;
  transition: color 0.4s ease;
}

.attrition-count-label {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
  order: 3;
}

/* Playing status indicator */
.attrition-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: clamp(8px, 1.5vh, 16px);
  visibility: hidden; /* GSAP controls via autoAlpha */
  opacity: 0;
}

.attrition-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 8px;
  transition: color 0.2s;
}
.attrition-skip:hover { color: rgba(255,255,255,0.6); }

.attrition-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: attritionBlink 1.2s ease-in-out infinite;
}

@keyframes attritionBlink {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Replay button */
.attrition-replay {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  padding: 10px 24px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  visibility: hidden; /* GSAP controls via autoAlpha */
  opacity: 0;
}

.attrition-replay:hover {
  border-color: rgba(246,114,128,0.35);
  color: rgba(255,255,255,0.7);
}

/* Dot grid */
.attrition-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(5px, 1.2vw, 9px);
  max-width: 240px;
  width: 100%;
  margin-bottom: clamp(12px, 2vh, 24px);
  padding: 12px;
}

.attrition-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px rgba(246,114,128,0.35);
  transform: scale(1);
  opacity: 1;
  transition-property: background, box-shadow, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* .attrition-dot.inactive is no longer used — GSAP drives dot opacity/scale directly */

/* Timeline */
.attrition-timeline {
  width: 100%;
  max-width: 300px;
  margin-bottom: clamp(10px, 1.5vh, 20px);
}

.attrition-timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.attrition-timeline-labels span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.02em;
  transition: all 0.4s ease;
}

.attrition-timeline-labels span.active {
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.attrition-timeline-labels span.active.final {
  color: var(--coral);
}

.attrition-timeline-labels span.past {
  color: rgba(255,255,255,0.25);
}

.attrition-timeline-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.attrition-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(246,114,128,0.4), var(--coral));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rate label */
.attrition-rate {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-bottom: clamp(8px, 1.5vh, 16px);
  letter-spacing: 0.04em;
}

/* Final message */
.attrition-message {
  text-align: center;
  max-width: 400px;
  margin-bottom: 24px;
  /* visibility/opacity controlled by GSAP autoAlpha */
}

.attrition-message-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255,255,255,0.8);
  margin: 0 0 12px;
}

.attrition-message-title em {
  color: var(--coral);
  font-style: italic;
}

.attrition-message-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  margin: 0;
}

/* Animations */
@keyframes attritionFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes attritionFadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----- Crisis Stats (dark variant, inside attrition section) ----- */
.attrition-eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-xs);
}

.attrition-heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 380px;
  line-height: 1.35;
  margin-bottom: clamp(8px, 1.5vh, 20px);
}

.attrition-crisis-reveal {
  /* Stats are now in their own section — always visible, naturally below the pin */
}

.crisis-reveal-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.crisis-stats-dark {
  display: flex;
  margin-bottom: var(--space-xl);
}

.crisis-stat-dark {
  flex: 1;
  padding: 0 var(--space-xl);
}

.crisis-stat-dark:first-child { padding-left: 0; }
.crisis-stat-dark:last-child { padding-right: 0; }

.crisis-divider-dark {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-self: stretch;
}

.crisis-num-dark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.crisis-stat-dark h4 {
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xs);
}

.crisis-stat-dark p {
  font-size: var(--size-body-sm);
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

.crisis-bottom-dark {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  max-width: 700px;
  margin-inline: auto;
}


/* =============================================
   ANIMATIONS
   ============================================= */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 0.36s; }

/* Hero-specific animations */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-visual {
  opacity: 0;
  transform: translateY(40px) perspective(1000px) rotateY(-3deg);
  animation: heroDashIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDashIn {
  to {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateY(-3deg) rotateX(2deg);
  }
}

/* Count-up shimmer */
.count-up {
  display: inline-block;
}

/* Dashboard bar animation */
.dashboard-mockup .dash-bar {
  transform-origin: bottom;
  transform: scaleY(0);
}

.dashboard-mockup.visible .dash-bar {
  animation: barGrow 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dashboard-mockup.visible .dash-bar-group:nth-child(1) .dash-bar { animation-delay: 0.05s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(2) .dash-bar { animation-delay: 0.1s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(3) .dash-bar { animation-delay: 0.15s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(4) .dash-bar { animation-delay: 0.2s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(5) .dash-bar { animation-delay: 0.25s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(6) .dash-bar { animation-delay: 0.3s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(7) .dash-bar { animation-delay: 0.35s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(8) .dash-bar { animation-delay: 0.4s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(9) .dash-bar { animation-delay: 0.45s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(10) .dash-bar { animation-delay: 0.5s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(11) .dash-bar { animation-delay: 0.55s; }
.dashboard-mockup.visible .dash-bar-group:nth-child(12) .dash-bar { animation-delay: 0.6s; }

@keyframes barGrow {
  to { transform: scaleY(1); }
}

/* H-bar animation */
.dashboard-mockup.visible .dash-hbar-fill {
  animation: hbarGrow 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes hbarGrow {
  to { transform: scaleX(1); }
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero-content {
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin-inline: auto;
  }

  .dashboard-hero {
    transform: perspective(1000px) rotateY(0deg) rotateX(3deg);
  }

  @keyframes heroDashIn {
    to {
      opacity: 1;
      transform: translateY(0) perspective(1000px) rotateY(0deg) rotateX(3deg);
    }
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }

  .pillars-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .pillar:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
  }

  .phase {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .phase-meta {
    position: static;
  }

  .steps-row {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: var(--space-xl);
  }

  .quotes-stack {
    max-width: 100%;
  }

  .quote-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .quote-attr {
    text-align: left;
    min-width: unset;
  }

  .trusted-by-logo {
    height: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

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

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

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

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

  .gallery-item:nth-child(even) {
    direction: ltr;
  }

  .proof-transform {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .proof-divider-vert {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  }

  .crisis-stats-dark {
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 540px;
    margin-inline: auto;
  }

  .crisis-stat-dark {
    padding: 0;
    text-align: center;
  }

  .crisis-divider-dark {
    width: 100%;
    height: 1px;
  }

  /* .attrition-crisis-reveal margin-top removed — now in its own section */
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile a {
    font-size: var(--size-h3);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
  }

  .nav-mobile .nav-cta {
    font-family: var(--font-body);
    font-size: var(--size-body);
    padding: 0.8rem 2rem;
  }

  .nav-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    color: var(--navy);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: var(--space-2xl);
  }

  .hero-headline {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .pillars-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .pillar:nth-child(5) {
    max-width: 100%;
  }

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

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

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-hero .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
