/* =====================================================
   CFO PAGE — CLEAN BLUEPRINT LAYOUT (WHITE + BLUE GRID)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Montserrat:wght@700;800&display=swap');

:root {
  --brand-blue: #0b5e92;
  --brand-light-blue: #3885af;
  --brand-dark-blue: #021b38;
  --brand-yellow: #f5c400;
  
  --text-dark: #0F172A;
  --text-muted: #475569;
  --bg-card: #ffffff;
  --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 24px;
}

/* Global Font & Technical Background */
html[data-page="cfo-slides"],
html[data-page="cfo-slides"] body {
  background: #ffffff;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* Engineering Grid (Main Page) */
[data-page="cfo-slides"] body::after,
body[data-page="cfo-slides"]::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(11, 94, 146, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 94, 146, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Refined Titles (Step 129 Weight) */
main h1, main h2, main h3, main h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

#cfo-scroll {
  height: auto;
  overflow: visible;
}

/* HERO SECTION (BRAND GRADIENT) */
.split-hero {
  position: relative;
  min-height: 35vh; /* Reduced to match datasheet style */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-dark-blue) 0%, var(--brand-blue) 50%, var(--brand-light-blue) 100%);
  padding: 100px 24px 60px;
  color: #fff;
  overflow: hidden;
}

.split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 50%, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.split-hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.8rem); /* Refined size for one-line layout */
  line-height: 1.1;
  white-space: nowrap; /* Forces title onto one line on desktop */
}

@media (max-width: 1024px) {
  .split-hero h1 {
    white-space: normal; /* Safe wrap for mobile */
  }
}

.hero-kicker {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-yellow);
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-text-right p {
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 550px;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 18px 40px;
  background-color: #ffffff;
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 12px;
  transition: var(--transition-premium);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-decoration: none;
}

/* CFO MODULES (CONTENT-FIRST 40/60 LAYOUT) */
.cfo-modules {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.cfo-module {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.cfo-text {
  padding: 50px;
  background: #f8fafc; /* High Contrast Background */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 94, 146, 0.08);
  box-shadow: 0 10px 30px rgba(11, 94, 146, 0.03);
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.cfo-text::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--brand-blue);
  opacity: 0.9;
}

.cfo-module:hover .cfo-text {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(11, 94, 146, 0.08);
  border-color: var(--brand-blue);
  background: #ffffff;
}

.cfo-index {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.cfo-text h3 {
  font-size: 30px;
  color: var(--brand-blue) !important;
  margin-bottom: 20px;
}

.cfo-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 17px;
  margin-bottom: 24px;
}

.cfo-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

.cfo-text ul li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-yellow);
  margin-top: 3px;
}

.cfo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  background: var(--brand-dark-blue);
}

.cfo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cfo-module:hover .cfo-image img {
  transform: scale(1.05);
  opacity: 1;
}

/* WHITE BLUEPRINT SECTION (WHITE + BLUE GRID) */
.cfo-value {
  background: #ffffff;
  background-image: 
    linear-gradient(rgba(11, 94, 146, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 94, 146, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 100px 24px;
  position: relative;
  border-top: 1px solid rgba(11, 94, 146, 0.1);
}

.cfo-value-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cfo-value-item {
  padding: 40px;
  background: #ffffff;
  border: 1px solid rgba(11, 94, 146, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: var(--transition-premium);
}

.cfo-value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(11, 94, 146, 0.1);
  border-color: var(--brand-blue);
}

.value-accent {
  display: block;
  width: 30px;
  height: 4px;
  background: var(--brand-yellow);
  margin-bottom: 20px;
  border-radius: 2px;
}

.cfo-value-item h4 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--brand-blue) !important;
}

.cfo-value-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .cfo-module { grid-template-columns: 1fr; gap: 40px; }
  .cfo-image { height: 320px; }
  .cfo-value-grid { grid-template-columns: 1fr; }
}