/* ===================================
   SOLUTIONS PAGE STYLES - CREATIVE NO-STATS REDESIGN
   Capital Innovation Fund
   =================================== */

/* PREVENT HORIZONTAL SCROLL */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

/* COLOR VARIABLES */
:root {
  --blue: #00273d;
  --blue-dark: #001a29;
  --blue-light: #003d5c;
  --white: #ffffff;
  --grey: #f8f9fa;
  --grey-light: #f4f4f4;
  --grey-dark: #1a1a1a;
  --grey-medium: #666666;
  --accent: #00a8e8;
  --accent-light: #33bef0;
  --success: #00ff88;
  --warning: #ffaa00;
  --border: rgba(0, 0, 0, 0.08);
}

/* RESET STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ==================================
   NAVIGATION
   ================================== */
nav {
  width: 100%;
  background: var(--blue);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(0, 39, 61, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 12px 40px;
}

nav .logo img {
  height: 45px;
  transition: height 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  transition: opacity 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ==================================
   FULLSCREEN IMMERSIVE HERO
   ================================== */
.solutions-hero-immersive {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0, 168, 232, 0.1) 80px, rgba(0, 168, 232, 0.1) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0, 168, 232, 0.1) 80px, rgba(0, 168, 232, 0.1) 81px);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(80px, 80px);
  }
}

.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 30%;
  top: 60%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  right: 20%;
  top: 30%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  right: 40%;
  bottom: 40%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  left: 60%;
  bottom: 20%;
  animation-delay: 1s;
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1.5);
  }
}

.hero-content-center {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 30px;
  padding: 10px 24px;
  background: rgba(0, 168, 232, 0.15);
  border-radius: 30px;
  border: 1px solid rgba(0, 168, 232, 0.3);
  animation: fadeInUp 1s ease forwards 0.2s;
  opacity: 0;
}

.hero-content-center h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
  animation: fadeInUp 1s ease forwards 0.4s;
  opacity: 0;
}

.hero-content-center p {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 60px;
  animation: fadeInUp 1s ease forwards 0.6s;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    transform: translateY(20px);
  }
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 1s ease forwards 0.8s;
  opacity: 0;
  cursor: pointer;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 25px;
    opacity: 0.3;
  }
}

.hero-scroll-indicator span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ==================================
   INTERACTIVE PIPELINE - HOVER REVEALS
   ================================== */
.architecture-section {
  padding: 120px 60px;
  background: var(--white);
}

.architecture-section h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--grey-medium);
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pipeline-interactive {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pipeline-stage {
  background: var(--grey);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 4px solid var(--accent);
  overflow: hidden;
}

.pipeline-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.pipeline-stage:hover::before {
  opacity: 1;
}

.pipeline-stage:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pipeline-stage:hover * {
  color: var(--white);
}

.stage-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 168, 232, 0.1);
  line-height: 1;
  transition: color 0.4s ease;
  z-index: 1;
}

.pipeline-stage:hover .stage-number {
  color: rgba(255, 255, 255, 0.15);
}

.stage-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--success));
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 168, 232, 0.3);
  position: relative;
  z-index: 1;
}

.stage-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.pipeline-stage h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--blue);
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.stage-brief {
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey-medium);
  margin-bottom: 20px;
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.stage-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.pipeline-stage:hover .stage-details {
  max-height: 800px;
  opacity: 1;
  margin-top: 24px;
}

.detail-section {
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.pipeline-stage:hover .detail-section h4 {
  color: var(--success);
}

.detail-section p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-dark);
}

.pipeline-stage:hover .detail-section p {
  color: rgba(255, 255, 255, 0.9);
}

.detail-section.highlight {
  background: rgba(0, 168, 232, 0.1);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 232, 0.2);
}

.pipeline-stage:hover .detail-section.highlight {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==================================
   TECHNOLOGY LAYERS - STACKED REVEAL
   ================================== */
.tech-layers-section {
  padding: 120px 60px;
  background: var(--grey);
}

.tech-layers-section h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.layers-container {
  max-width: 1300px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tech-layer {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-layer:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.tech-layer {
  display: grid;
  grid-template-columns: 400px 1fr;
}

.layer-visual {
  position: relative;
  height: 100%;
  min-height: 350px;
}

.layer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-label {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.layer-content {
  padding: 50px;
  position: relative;
}

.layer-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.layer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layer-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}

.layer-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--grey-dark);
  margin-bottom: 24px;
  opacity: 0.9;
}

.layer-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.tech-layer.expanded .layer-expanded {
  max-height: 600px;
  opacity: 1;
  margin-top: 32px;
}

.layer-expanded h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 12px;
}

.layer-expanded h4:first-child {
  margin-top: 0;
}

.layer-expanded p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--grey-dark);
  opacity: 0.9;
}

.layer-toggle {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.layer-toggle:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.tech-layer.expanded .layer-toggle {
  background: var(--grey-medium);
}

.tech-layer.expanded .layer-toggle::after {
  content: ' ▲';
}

.layer-toggle::after {
  content: ' ▼';
}

/* ==================================
   HEXAGONAL ADVANTAGES GRID
   ================================== */
.advantages-hexagon {
  padding: 120px 60px;
  background: var(--blue-dark);
  color: var(--white);
}

.advantages-hexagon h2 {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.advantages-hexagon .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.hex-grid {
  max-width: 1200px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.hex-item {
  display: flex;
  gap: 30px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hex-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.hex-shape {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hex-item:hover .hex-shape {
  transform: rotate(180deg);
}

.hex-icon {
  width: 60px;
  height: 60px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hex-item:hover .hex-icon {
  transform: rotate(-180deg);
}

.hex-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hex-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.hex-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* ==================================
   FLIP CARDS COMPARISON
   ================================== */
.comparison-flip {
  padding: 120px 60px;
  background: var(--white);
}

.comparison-flip h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.flip-grid {
  max-width: 1300px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.flip-card {
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: var(--grey-dark);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  transform: rotateY(180deg);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.flip-card-front .card-label {
  background: rgba(0, 0, 0, 0.1);
  color: var(--grey-dark);
}

.flip-card-back .card-label {
  background: rgba(0, 168, 232, 0.3);
  color: var(--accent);
}

.flip-card-front h3,
.flip-card-back h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.approach-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.approach-icon.traditional {
  background: rgba(150, 150, 150, 0.2);
  border: 3px solid #999;
}

.approach-icon.platform {
  background: rgba(0, 168, 232, 0.2);
  border: 3px solid var(--accent);
}

.approach-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.flip-card-front .approach-icon img {
  opacity: 0.6;
}

.flip-card-back .approach-icon img {
  filter: brightness(0) invert(1);
}

.flip-card-front p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-dark);
  opacity: 0.85;
}

.flip-card-back p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ==================================
   SOLUTIONS CTA
   ================================== */
.solutions-cta {
  padding: 100px 60px;
  background: var(--grey);
  text-align: center;
}

.cta-container h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-container p {
  font-size: 19px;
  color: var(--grey-dark);
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 232, 0.3);
}

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

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==================================
   FOOTER
   ================================== */
footer {
  background: var(--grey-light);
  padding: 60px 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer img {
  height: 50px;
}

footer .social img {
  height: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

footer .social img:hover {
  transform: scale(1.15);
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */
@media (max-width: 1200px) {
  .pipeline-interactive {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tech-layer {
    grid-template-columns: 1fr;
  }
  
  .layer-visual {
    min-height: 300px;
  }
  
  .hex-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 968px) {
  nav {
    padding: 15px 25px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .hero-content-center h1 {
    font-size: 44px;
  }
  
  .solutions-hero-immersive {
    min-height: 600px;
  }
  
  .architecture-section,
  .tech-layers-section,
  .advantages-hexagon,
  .comparison-flip,
  .solutions-cta {
    padding: 80px 40px;
  }
  
  .architecture-section h2,
  .tech-layers-section h2,
  .advantages-hexagon h2,
  .comparison-flip h2,
  .cta-container h2 {
    font-size: 36px;
  }
  
  .pipeline-interactive {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 12px 20px;
  }
  
  nav .logo img {
    height: 35px;
  }
  
  nav ul {
    gap: 12px;
  }
  
  nav ul li a {
    font-size: 13px;
  }
  
  .solutions-hero-immersive {
    min-height: 500px;
  }
  
  .hero-content-center h1 {
    font-size: 32px;
  }
  
  .hero-content-center p {
    font-size: 16px;
  }
  
  .architecture-section,
  .tech-layers-section,
  .advantages-hexagon,
  .comparison-flip,
  .solutions-cta {
    padding: 60px 25px;
  }
  
  .architecture-section h2,
  .tech-layers-section h2,
  .advantages-hexagon h2,
  .comparison-flip h2,
  .cta-container h2 {
    font-size: 28px;
  }
  
  .pipeline-interactive {
    grid-template-columns: 1fr;
  }
  
  .pipeline-stage {
    padding: 30px 24px;
  }
  
  .layer-content {
    padding: 35px 28px;
  }
  
  .hex-shape {
    width: 90px;
    height: 90px;
  }
  
  .hex-icon {
    width: 45px;
    height: 45px;
  }
  
  .flip-card {
    height: 350px;
  }
  
  .flip-card-front,
  .flip-card-back {
    padding: 35px 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }
}