/* =============================================================================
   ZR Nordic Group - Main Stylesheet
   Unified styles for all pages
   ============================================================================= */

/* CSS Variables */
:root {
  /* Core Colors */
  --midnight: #0a0f1c;
  --deep: #0f1829;
  --ink: #eaf2ff;
  --text: #eaf2ff;
  --muted: #9fb0c6;
  --line: #233147;
  
  /* Brand Colors */
  --gold: #e7b75f;
  --emerald: #25d48f;
  --opal: #5bb7c5;
  --saffron: #E7B75F;
  
  /* Backgrounds */
  --bg-primary: #070b15;
  --bg-secondary: #0f1626;
  --bg-card: rgba(255,255,255,.05);
  --bg-card-hover: rgba(255,255,255,.08);
  
  /* Effects */
  --ring: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--emerald), var(--opal));
  --gradient-secondary: linear-gradient(135deg, var(--gold), var(--emerald));
  --gradient-text: linear-gradient(135deg, var(--gold), var(--emerald));
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.display {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.super {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  opacity: 0.9;
  font-weight: 600;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Background Utilities */
.bg-parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,28,.75), rgba(10,15,28,.6));
  pointer-events: none;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Card Components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  gap: 0.75rem;
}

.card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover:before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--midnight);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--ring);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Badge & Chip Components */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(74,153,96,.12);
  border: 1px solid rgba(74,153,96,.35);
  color: #95e0b0;
  font-weight: 700;
  font-size: 0.9rem;
}

.badge-chip {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--text);
  font-weight: 700;
  margin-top: 1rem;
}

/* Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  transition: transform 0.1s ease;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,28,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.cta {
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* KPI Grid */
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.kpi .card {
  text-align: center;
  padding: 1.5rem;
}

.kpi strong {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.5rem;
}

.kpi .small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--midnight);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Infographic */
.infographic {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

/* Sector Cards */
.sector-card {
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sector-card:hover::before {
  transform: scaleX(1);
}

/* Marquee */
.marquee-section {
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--ring);
  border-bottom: 1px solid var(--ring);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee span {
  display: inline-block;
  padding: 0 2rem;
  color: var(--muted);
  font-weight: 600;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Metric Cards */
.metric-card {
  text-align: center;
}

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--emerald);
  margin: 1rem 0;
}

/* Slider Component */
.slider {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
}

.slides {
  position: relative;
  min-height: 200px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.testimonial {
  text-align: center;
  max-width: 600px;
}

.testimonial blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial cite {
  color: var(--muted);
  font-size: 1rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--text);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
}

.slider-btn:hover {
  background: var(--emerald);
  color: var(--midnight);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--emerald);
}

/* FAQ Component */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
}

.faq-item summary:hover {
  background: rgba(255,255,255,.02);
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--emerald);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--ring);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 3rem;
}

.cta-content h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-content p {
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--ring);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
}

.brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter .input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
}

.newsletter .input::placeholder {
  color: var(--muted);
}

.newsletter .btn {
  padding: 0.8rem 1.5rem;
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social:hover {
  background: var(--emerald);
  color: var(--midnight);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: var(--text);
}

/* Form Components */
.input,
.textarea,
.select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(37,212,143,0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--ring);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .kpi {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .slider-nav {
    display: none;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .kpi {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Page-specific Styles */
.page-content {
  margin-top: 70px;
  min-height: 100vh;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .progress,
  .btn,
  .slider-nav,
  .slider-dots {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
/* Form Messages - Add this to your main.css */

/* Newsletter Form Messages */
.form-message {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  animation: slideInDown 0.3s ease-out;
}

.form-message.success {
  background: rgba(37,212,143,.1);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.form-message.error {
  background: rgba(255,107,107,.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

/* Loading state for newsletter button */
.newsletter .btn.loading {
  position: relative;
  color: transparent;
}

.newsletter .btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { 
    transform: translate(-50%, -50%) rotate(360deg); 
  }
}
/* Payment Flow Section Styles */
.payment-flow-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0f1c 0%, #0f1829 50%, #0a0f1c 100%);
    color: #eaf2ff;
}

.flow-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.flow-controls {
    background: rgba(255,255,255,0.05);
    border: 1px solid #233147;
    border-radius: 18px;
    padding: 2rem;
}

.sector-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 50px;
}

.pill {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: #9fb0c6;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.pill:hover {
    color: #eaf2ff;
    background: rgba(255,255,255,0.05);
}

.pill.active {
    background: #25d48f;
    color: #0a0f1c;
    transform: translateY(-1px);
}

.flow-diagram {
    margin: 2rem 0;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
}

.flow-path {
    fill: none;
    stroke: url(#flow-gradient);
    stroke-width: 3;
    stroke-dasharray: 10;
    stroke-dashoffset: 0;
    animation: flowAnimation 3s ease-in-out infinite;
}

.flow-node {
    fill: #25d48f;
    stroke: #eaf2ff;
    stroke-width: 2;
    animation: pulseNode 2s ease-in-out infinite;
}

.flow-label {
    fill: #eaf2ff;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

/* Animations */
@keyframes flowAnimation {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: -20; }
    100% { stroke-dashoffset: -40; }
}

@keyframes pulseNode {
    0%, 100% { 
        r: 9;
        opacity: 1;
    }
    50% { 
        r: 12;
        opacity: 0.8;
    }
}
.flow-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Change from 'start' to 'stretch' */
}

.flow-controls,
.flow-context {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make both containers fill available height */
}

.flow-context {
    justify-content: space-between; /* Distribute content evenly */
}
/* Add other styles like .flow-legend, .kpi-chip, etc. from the full code above */