/* HBO Max Case Study - FINAL COMPLETE VERSION */

/* Force visibility */
.results-section,
.results-intro,
.results-grid,
.result-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.results-grid {
  display: grid !important;
}

/* Base wrapper */
.hbo-complete-wrapper {
  background: #f5f5f3;
}

/* Base section */
.hbo-section {
  padding: 120px 20px;
  position: relative;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00F1AA;
  margin-bottom: 24px;
  text-align: center;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 32px;
  text-align: center;
}

.section-heading.white {
  color: white;
}

.section-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(15, 15, 15, 0.7);
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-text.white {
  color: rgba(255, 255, 255, 0.8);
}

.section-text-centered {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(15, 15, 15, 0.7);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 60px;
}

/* CHALLENGE SECTION */
.challenge-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.challenge-section .section-heading {
  color: white;
}

.challenge-section .section-text {
  color: rgba(255, 255, 255, 0.8);
}

.challenge-pills {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
  background: rgba(0, 241, 170, 0.1);
  border: 2px solid rgba(0, 241, 170, 0.3);
  border-radius: 999px;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .challenge-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .pill {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}


.pill-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00F1AA;
  margin-bottom: 8px;
}

.pill-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* SOLUTION SECTION */
.solution-section {
  background: white;
}

.solution-phones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.solution-phone {
  text-align: center;
}

.solution-phone img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
}

.solution-phone h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 12px;
}

.solution-phone p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
}

.platform-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.platform-item {
  text-align: center;
}

.platform-logo {
  max-height: 18px;
  width: auto;
  margin-bottom: 20px;
}

.platform-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
  margin-bottom: 12px;
}

.platform-item strong {
  color: #0f0f0f;
}

/* ECOSYSTEM SECTION */
.ecosystem-section {
  background: linear-gradient(135deg, #00F1AA 0%, #00D4B8 100%);
}

.ecosystem-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.flow-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.flow-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.flow-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.flow-card.featured {
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid white;
}

.flow-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.flow-icon.large {
  font-size: 3.5rem;
}

.flow-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.flow-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.flow-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.ecosystem-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

/* DESIGN APPROACH SECTION */
.design-approach-section {
  background: white;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: center;
}

.approach-block {
  margin-bottom: 40px;
}

.approach-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 12px;
}

.approach-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
}

.approach-visual img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.design-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #00F1AA;
  padding: 4px;
  border-radius: 20px;
  margin-bottom: 80px;
}

.banner-stat {
  background: white;
  padding: 60px 32px;
  text-align: center;
  border-radius: 16px;
}

.banner-stat.teal {
  background: #00F1AA;
}

.stat-big {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 12px;
}

.stat-text {
  display: block;
  font-size: 1rem;
  color: rgba(15, 15, 15, 0.7);
}

.file-tree {
  text-align: center;
}

.file-tree img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* RESULTS SECTION */
.results-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
  padding: 120px 20px;
}

.results-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.results-intro h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.results-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.results-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 241, 170, 0.5);
  transform: translateY(-4px);
}

.result-card.large {
  grid-column: span 2;
  text-align: left;
  padding: 60px;
}

.result-card.teal {
  background: rgba(0, 241, 170, 0.1);
  border-color: rgba(0, 241, 170, 0.3);
}

.result-card.flat .result-number {
  font-size: 3.5rem;
  letter-spacing: 0.1em;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.result-number {
  font-size: 5rem;
  font-weight: 700;
  color: #00F1AA;
  line-height: 1;
  display: inline-block;
}

.result-suffix {
  font-size: 3rem;
  font-weight: 700;
  color: #00F1AA;
  display: inline-block;
  margin-left: 8px;
}

.result-label {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-top: 20px;
  display: block;
}

.result-detail {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

/* Image card in results grid - spans 2 rows */
.result-card.result-image-card {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(0, 241, 170, 0.2);
  border-radius: 16px;
}

.result-card.result-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .result-card.result-image-card {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .result-card {
    text-align: center;
  }
  
  .result-card .result-number,
  .result-card .result-suffix,
  .result-card .result-label,
  .result-card .result-detail {
    text-align: center;
  }
  
  /* Center the number + suffix if they're inline */
  .result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .result-card.large {
    text-align: center;
    align-items: center;
  }
  
  .result-card.large .result-number,
  .result-card.large .result-suffix,
  .result-card.large .result-label,
  .result-card.large .result-detail {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .result-card.large {
    text-align: center !important;
  }
  
  .result-card.large * {
    text-align: center !important;
  }
}

/* Quote */
.results-quote {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px;
  background: rgba(0, 241, 170, 0.05);
  border-left: 6px solid #00F1AA;
  border-radius: 24px;
}

.quote-mark {
  font-size: 6rem;
  font-weight: 700;
  color: #00F1AA;
  line-height: 1;
  display: block;
}

.results-quote blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: white;
  font-style: italic;
  margin-bottom: 32px;
}

.results-quote blockquote p {
  margin-bottom: 32px;
}

.results-quote cite {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.results-quote cite strong {
  color: #00F1AA;
  display: block;
  margin-bottom: 4px;
  font-size: 1.125rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .solution-phones,
  .platform-info,
  .ecosystem-flow,
  .approach-grid {
    grid-template-columns: 1fr;
  }
  
  .ecosystem-stats-row,
  .design-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .result-card.large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hbo-section {
    padding: 80px 20px;
  }
  
  .solution-phones,
  .platform-info,
  .ecosystem-flow,
  .approach-grid,
  .ecosystem-stats-row,
  .design-stats-banner,
  .results-grid {
    grid-template-columns: 1fr !important;
  }
  
  .result-card.large {
    grid-column: span 1;
  }
  
  .result-number {
    font-size: 3.5rem;
  }
  
  .result-suffix {
    font-size: 2rem;
  }
}

/* =========================================================
   SOLUTION SECTION - Bento Grid Style
   ========================================================= */

.solution-section-bento {
  background: #f5f5f3;
  padding: 120px 20px;
}

/* =========================================================
   BENTO GRID LAYOUT
   ========================================================= */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card sizes */
.bento-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Large: 2x2 */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 480px;
}

/* Tall: 1x2 */
.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
  min-height: 480px;
}

/* Small: 1x1 */
.bento-small {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 200px;
  padding: 28px;
}

/* Medium: 2x1 */
.bento-medium {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 180px;
}

/* Wide: 4x1 (full width) */
.bento-wide {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 140px;
}

/* =========================================================
   CARD THEMES
   ========================================================= */

/* Dark theme */
.bento-card.dark {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
  color: #ffffff;
}

.bento-card.dark h3,
.bento-card.dark h4 {
  color: #ffffff;
}

.bento-card.dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Light theme */
.bento-card.light {
  background: #ffffff;
  color: #0f0f0f;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-card.light h3,
.bento-card.light h4 {
  color: #0f0f0f;
}

.bento-card.light p {
  color: rgba(15, 15, 15, 0.65);
  padding-top: 10px;
  line-height: 1.6;
}

/* Accent theme (brand green) */
.bento-card.accent {
  background: linear-gradient(135deg, #00F1AA 0%, #00D4B8 100%);
  color: #0f0f0f;
}

.bento-card.accent h3,
.bento-card.accent h4 {
  color: #0f0f0f;
}

.bento-card.accent p {
  color: rgba(0, 0, 0, 0.7);
}

/* Gradient theme */
.bento-card.gradient {
  background: linear-gradient(135deg, #00D4B8 0%, #00f1aa 64%, #818589 100%);
  color: #ffffff;
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.bento-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 200px;
}

.bento-content {
  padding: 28px 32px 32px;
}

.bento-large .bento-content,
.bento-tall .bento-content {
  padding: 24px 32px 36px;
}

.bento-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Logo in card */
.bento-logo {
  margin-bottom: 16px;
}

.bento-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Icon in small cards */
.bento-icon {
  margin-bottom: 16px;
}

.bento-icon img {
  height: 18px;
  width: auto;
}

/* =========================================================
   PLACEHOLDER VISUALS
   ========================================================= */

.placeholder-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard mock */
.dashboard-mock {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mock-dot:first-child { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-content {
  display: flex;
  padding: 16px;
  gap: 12px;
  min-height: 200px;
}

.mock-sidebar {
  width: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-nav-item {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mock-nav-item.active {
  background: #00F1AA;
}

.mock-main {
  flex: 1;
}

.mock-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.mock-card {
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-card:first-child {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.3) 0%, rgba(0, 241, 170, 0.1) 100%);
  border-color: rgba(0, 241, 170, 0.3);
}

.mock-card:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.3) 0%, rgba(0, 241, 170, 0.1) 100%);
  border-radius: 8px;
  pointer-events: none;
}

/* Flow mock for automation card */
.flow-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px;
}

.flow-node {
  width: 130px;
  height: 44px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f0f0f;
}

.flow-node.input {
  background: #ffffffc4;
}

.flow-node.process {
  background: #ffffff;
}

.flow-node.output {
  background: rgba(0, 0, 0, 0.35);
}

.flow-line {
  width: 2px;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
}

/* =========================================================
   PLATFORM LOGOS ROW
   ========================================================= */

.bento-medium .bento-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.bento-medium h3 {
  margin-bottom: 20px;
}

.platform-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-logos-row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 25px;
}

.platform-logo-pill {
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.platform-logo-pill img {
  height: 18px;
  width: auto;
}

.platform-logo-pill-alt {
  background: #013afd;
  padding: 10px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.platform-logo-pill-alt img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* =========================================================
   STATS ROW (Wide card)
   ========================================================= */

.bento-wide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-stats-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 32px 48px;
}

.bento-stat {
  text-align: center;
}

.bento-stat .stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.bento-stat .stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Roadmap mock */
.roadmap-mock {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f5f3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.roadmap-phase {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(15, 15, 15, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roadmap-tracks {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-track {
  height: 28px;
  background: #f5f5f3;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.roadmap-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
}

.roadmap-bar.bar-1 {
  left: 10%;
  width: 50%;
  background: linear-gradient(90deg, #00F1AA, #00D4B8);
}

.roadmap-bar.bar-2 {
  left: 30%;
  width: 45%;
  background: linear-gradient(90deg, #329A99, #46C494);
}

.roadmap-bar.bar-3 {
  left: 50%;
  width: 40%;
  background: linear-gradient(90deg, #00D4B8, #00F1AA);
}

/* Tools row in bento cards */
.bento-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bento-tools img {
  height: 18px;
  width: auto;
}

.bento-card.dark .bento-tools {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bento-card.dark .bento-tools img {
  filter: brightness(0) invert(1);
}

.bento-card.light .bento-tools img {
  height: 18px;
  width: auto;
}

/* Visual showcase card - full bleed image */
.bento-card.visual-showcase {
  padding: 0;
  overflow: hidden;
}

.bento-card.visual-showcase .bento-visual.full {
  padding: 0;
  min-height: 100%;
  height: 100%;
}

.bento-card.visual-showcase .bento-visual.full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 400px;
  }
  
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 320px;
  }
  
  .bento-medium {
    grid-column: span 2;
  }
  
  .bento-wide {
    grid-column: span 2;
  }
  
  .bento-stats-row {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .bento-stat {
    flex: 1 1 40%;
  }
}

@media (max-width: 640px) {
  .solution-section-bento {
    padding: 80px 16px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bento-large,
  .bento-tall,
  .bento-medium,
  .bento-wide,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: auto;
  }
  
  .bento-large {
    min-height: 380px;
  }
  
  .bento-tall {
    min-height: 300px;
  }
  
  .bento-visual {
    padding: 24px;
    min-height: 160px;
  }
  
  .bento-content {
    padding: 20px 24px 28px;
  }
  
  .bento-content h3 {
    font-size: 1.2rem;
  }
  
  .bento-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  
  .bento-stat {
    text-align: center;
  }
  
  .bento-stat .stat-value {
    font-size: 1.75rem;
  }
  
  .bento-stat .stat-label {
    font-size: 0.75rem;
  }
  
  .platform-logos-row {
    justify-content: center;
  }
  
 .platform-logos-row2 {
    justify-content: center;
  }

  .bento-card.visual-showcase {
    display: none !important;
  }
}

/* =========================================================
   ECOSYSTEM SECTION - Bento Style
   ========================================================= */

.ecosystem-section-bento {
  background: linear-gradient(135deg, #00F1AA 0%, #00D4B8 50%, #329A99 100%);
  padding: 120px 20px;
  background-image: url(../assets/hbomax/dcshero.jpg);
  background-size: cover, contain;
  background-position: center;
}

.section-label.light {
  color: rgba(0, 0, 0, 0.5);
}

.section-heading.white {
  color: #ffffff;
}

.section-text-centered.white {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
}

/* =========================================================
   ECOSYSTEM BENTO GRID
   ========================================================= */

.eco-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   ECO CARD BASE
   ========================================================= */

.eco-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card sizes */
.eco-tall {
  grid-row: span 1;
  min-height: 360px;
}

.eco-large {
  grid-row: span 1;
  min-height: 360px;
}

.eco-wide {
  grid-column: span 3;
  min-height: 120px;
}

.eco-card.eco-large.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
}

/* =========================================================
   ECO CARD THEMES
   ========================================================= */

/* Glass theme - frosted white */
.eco-card.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Featured theme - solid white */
.eco-card.featured {
  background: rgba(255, 255, 255, 0.8);
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Dark theme */
.eco-card.dark {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}

/* =========================================================
   ECO HEADER
   ========================================================= */

.eco-header {
  padding: 24px 28px 0;
  position: relative;
  z-index: 1;
}

.eco-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.eco-card.glass .eco-label {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   ECO STACK (Input/Output columns)
   ========================================================= */

.eco-stack {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.eco-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.eco-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-item-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.eco-item-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.eco-item-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* =========================================================
   ECO HERO (Center Dataclay card)
   ========================================================= */

.eco-hero-content {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 60px);
  position: relative;
  z-index: 1;
}

.eco-hero-icon {
  margin-bottom: 20px;
}

.eco-hero-icon img {
  height: 36px;
  width: auto;
}

.eco-hero-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 12px;
}

.eco-hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.7);
  max-width: 320px;
  margin: 0 auto 28px;
}

/* Mini stats inside hero */
.eco-hero-stats {
  display: flex;
  gap: 24px;
  padding: 20px 28px;
  background: #f5f5f3;
  border-radius: 16px;
}

.eco-mini-stat {
  text-align: center;
}

.eco-mini-stat .mini-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00D4B8;
  line-height: 1.2;
}

.eco-mini-stat .mini-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(15, 15, 15, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Flow arrows */
.eco-flow-left,
.eco-flow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #00D4B8;
  opacity: 0.6;
}

.eco-flow-left {
  left: -20px;
  transform: translateY(-50%) rotate(180deg);
}

.eco-flow-right {
  right: -20px;
}

/* =========================================================
   ECO STATS ROW (Bottom wide card)
   ========================================================= */

.eco-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 32px 48px;
  height: 100%;
}

.eco-stat {
  text-align: center;
}

.eco-stat .stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00F1AA;
  line-height: 1.1;
  margin-bottom: 8px;
}

.eco-stat .stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

@media (max-width: 1024px) {
  .eco-bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .eco-large {
    grid-column: span 2;
    order: -1;
  }
  
  .eco-wide {
    grid-column: span 2;
  }
  
  .eco-flow-left,
  .eco-flow-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .ecosystem-section-bento {
    padding: 80px 16px;
  }
  
  .eco-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .eco-tall,
  .eco-large,
  .eco-wide {
    grid-column: span 1;
    min-height: auto;
  }
  
  .eco-large {
    order: -1;
  }
  
  .eco-stack {
    padding: 16px 20px 24px;
  }
  
  .eco-item {
    padding: 16px;
  }
  
  .eco-hero-content {
    padding: 24px 20px;
  }
  
  .eco-hero-content h3 {
    font-size: 1.4rem;
  }
  
  .eco-hero-stats {
    flex-direction: row;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .eco-mini-stat .mini-value {
    font-size: 1.25rem;
  }
  
  .eco-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  
  .eco-stat .stat-value {
    font-size: 1.75rem;
  }
  
  .eco-stat .stat-label {
    font-size: 0.75rem;
  }
}

/* =========================================================
   HBO MAX HERO - LIGHT VERSION
   ========================================================= */

.cs-hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f3;
  overflow: hidden;
}

/* =========================================================
   BACKDROP
   ========================================================= */

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Gradient overlay */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(65deg, #ffffff 10%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.15) 100%),
    url(../assets/hbomax/titlewall.jpg);
  z-index: 2;
  background-position: center, center;
  opacity: 1;
  pointer-events: none;
  background-size: cover, cover;
}


/* =========================================================
   HERO CONTENT - LIGHT VERSION
   ========================================================= */

.hero-cinematic-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
}

.cs-hero-cinematic .floating-logo {
  margin-bottom: 20px;
}

.cs-hero-cinematic .hero-headline {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f0f0f;
}

.cs-hero-cinematic .hero-subheading {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem) !important;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
}

.cs-hero-cinematic .hero-context-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cs-hero-cinematic .meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #0f0f0f;
}

.cs-hero-cinematic .hero-programme-name {
  margin-bottom: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00a98b;
}

.cs-hero-cinematic .hero-supporting {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 20px;
  color: var(--cs-text-light);
  max-width: 900px;
}

.cs-hero-cinematic .hero-discipline-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cs-hero-cinematic .discipline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-hero-cinematic .discipline-mark {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.72;
}

.cs-hero-cinematic .discipline-item {
  display: inline-block;
}

.cs-hero-cinematic .discipline-separator {
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.84rem;
  line-height: 1;
}


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

@media (max-width: 1024px) {
  .floating-asset {
    opacity: 0.5;
  }
  
.floating-asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

  .floating-asset.asset-1 {
    width: 160px;
    height: 220px;
    left: 3%;
  }
  
  .floating-asset.asset-2 {
    width: 140px;
    height: 190px;
    right: 3%;
  }
  
  .floating-asset.asset-3,
  .floating-asset.asset-4 {
    display: none;
  }

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

  .cs-hero-cinematic .hero-subheading {
    font-size: 1.7rem !important;
  }
}

@media (max-width: 640px) {
  .cs-hero-cinematic {
    min-height: 100svh;
  }
  
  .hero-cinematic-content {
    padding: 100px 20px 40px;
  }
  
  .cs-hero-cinematic .hero-headline {
    font-size: 2.2rem;
    line-height: 1.06;
    text-transform: uppercase;
  }

  .cs-hero-cinematic .hero-subheading {
    font-size: 1.3rem !important;
    margin-bottom: 20px;
  }

  .cs-hero-cinematic .hero-context-pills {
    gap: 8px;
    margin-bottom: 8px;
  }

  .cs-hero-cinematic .meta-pill {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding: 8px 12px;
  }

  .cs-hero-cinematic .hero-programme-name {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
  }
  
  .cs-hero-cinematic .hero-supporting { margin-bottom: 20px; }
  
  .cs-hero-cinematic .hero-discipline-pills {
    gap: 8px;
    margin-bottom: 44px;
  }
  
  .cs-hero-cinematic .discipline-pill {
    font-size: 0.68rem;
    gap: 6px;
    letter-spacing: 0.06em;
  }

  .cs-hero-cinematic .discipline-mark {
    width: 10px;
    height: 10px;
  }
  
  .floating-asset {
    display: none;
  }
  
  .hero-scroll-cue {
    display: none;
  }
}

@media (max-width: 560px) {
  .cs-hero-cinematic .hero-headline {
    font-size: 1.95rem;
    text-transform: uppercase;
  }

  .cs-hero-cinematic .hero-subheading { font-size: 1.3rem !important; }
}

/* =========================================================
   VIDEO INTRO INTEGRATION
   ========================================================= */

.cs-hero-cinematic {
  opacity: 1;
}

.cs-hero-cinematic.hbo-intro-visible {
  opacity: 1;
}

.floating-asset {
  position: absolute;
  border-radius: 0;
  overflow: visible;
  opacity: 0.9;
  background: none;
  box-shadow: none;
}

.floating-asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
