/**
 * ValOracle.ai Website Styles
 * Version 2.0 | January 2026
 */

:root {
  /* Primary */
  --deep-navy: #0A2540;
  --ocean-blue: #1B4D7A;
  --sky-blue: #2E7AB8;

  /* Gem/Teal */
  --gem-light: #14B8A6;
  --gem-primary: #0D9488;
  --gem-dark: #0A7669;
  --gem-highlight: #2DD4BF;

  /* Neutrals */
  --slate: #425466;
  --stone: #6B7C93;
  --cloud: #E3E8EF;
  --pearl: #F6F9FC;
  --white: #FFFFFF;

  /* Extended */
  --amber: #D97706;
  --coral: #E25D5D;
  --emerald: #059669;
  --purple: #8B5CF6;
  --pink: #EC4899;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A2540 0%, #1B4D7A 100%);
  --gradient-hero: linear-gradient(135deg, #0A2540 0%, #1B4D7A 50%, #0D9488 100%);
  --gradient-gem: linear-gradient(180deg, #14B8A6 0%, #0D9488 50%, #0A7669 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 37, 64, 0.16);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--pearl);
  color: var(--deep-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--cloud);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--deep-navy);
}

.nav-logo svg {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

/* Section Styles */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gem-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--deep-navy);
}

.section-header p {
  font-size: 18px;
  color: var(--slate);
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-navy);
  background: var(--white);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* CTA Section */
.cta-section {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 40px;
}

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

/* Footer */
.footer {
  background: var(--deep-navy);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

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

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gem-highlight);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gem-highlight);
}

/* Platform Journey Timeline */
.platform-journey {
  padding: 48px 0;
  background: var(--pearl);
  border-bottom: 1px solid var(--cloud);
}

.journey-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.journey-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  flex: 1;
  max-width: 160px;
}

.journey-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.journey-step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--stone);
  transition: all 0.3s ease;
}

.journey-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  margin-top: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.journey-step-connector {
  flex: 1;
  height: 2px;
  background: var(--cloud);
  position: relative;
  min-width: 30px;
  max-width: 60px;
}

.journey-step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--cloud);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* Active step */
.journey-step.active .journey-step-icon {
  border-color: var(--module-accent-color, var(--gem-primary));
  background: var(--module-accent-color, var(--gem-primary));
  box-shadow: 0 0 0 4px rgba(var(--module-accent-rgb, 13, 148, 136), 0.2);
}

.journey-step.active .journey-step-icon svg {
  color: white;
}

.journey-step.active .journey-step-label {
  color: var(--deep-navy);
  font-weight: 600;
}

/* Completed steps (before active) */
.journey-step.completed .journey-step-icon {
  border-color: var(--gem-primary);
  background: rgba(13, 148, 136, 0.1);
}

.journey-step.completed .journey-step-icon svg {
  color: var(--gem-primary);
}

.journey-step.completed .journey-step-label {
  color: var(--slate);
}

.journey-step-connector.completed {
  background: var(--gem-primary);
}

.journey-step-connector.completed::after {
  border-left-color: var(--gem-primary);
}

/* Hover states */
.journey-step:not(.active):hover .journey-step-icon {
  border-color: var(--gem-primary);
  transform: scale(1.1);
}

.journey-step:not(.active):hover .journey-step-label {
  color: var(--gem-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .journey-timeline {
    flex-wrap: wrap;
    gap: 16px;
  }

  .journey-step {
    flex: 0 0 calc(33.33% - 16px);
    max-width: none;
  }

  .journey-step-connector {
    display: none;
  }

  .journey-step-icon {
    width: 48px;
    height: 48px;
  }

  .journey-step-icon svg {
    width: 20px;
    height: 20px;
  }

  .journey-step-label {
    font-size: 11px;
  }
}

/* AI Chat Widget */
.chat-widget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 9999 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chat-toggle {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #14B8A6 0%, #0D9488 50%, #0A7669 100%) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4) !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(13, 148, 136, 0.5) !important;
}

.chat-toggle svg {
  width: 28px !important;
  height: 28px !important;
  color: white !important;
}

.chat-toggle .chat-close {
  display: none !important;
}

.chat-widget.open .chat-toggle .chat-icon {
  display: none !important;
}

.chat-widget.open .chat-toggle .chat-close {
  display: block !important;
}

.chat-window {
  position: absolute !important;
  bottom: 76px !important;
  right: 0 !important;
  left: auto !important;
  top: auto !important;
  width: 380px !important;
  height: 520px !important;
  max-width: calc(100vw - 48px) !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(10, 37, 64, 0.2) !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.chat-widget.open .chat-window {
  display: flex !important;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.chat-header {
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #0A2540 0%, #1B4D7A 100%) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.chat-header-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.chat-header-avatar svg {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
}

.chat-header-info h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 0 2px 0 !important;
  color: white !important;
}

.chat-header-info span {
  font-size: 12px !important;
  opacity: 0.8 !important;
  color: white !important;
}

.chat-messages {
  flex: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: #FFFFFF !important;
}

.chat-message {
  max-width: 85% !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.chat-message.bot {
  background: #F6F9FC !important;
  color: #0A2540 !important;
  border-bottom-left-radius: 4px !important;
  align-self: flex-start !important;
}

.chat-message.user {
  background: #0D9488 !important;
  color: white !important;
  border-bottom-right-radius: 4px !important;
  align-self: flex-end !important;
}

.chat-message.typing {
  display: flex !important;
  gap: 4px !important;
  padding: 16px !important;
}

.chat-message.typing span {
  width: 8px !important;
  height: 8px !important;
  background: #6B7C93 !important;
  border-radius: 50% !important;
  animation: typing 1.4s infinite !important;
}

.chat-message.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-message.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-input-container {
  padding: 16px !important;
  border-top: 1px solid #E3E8EF !important;
  display: flex !important;
  gap: 8px !important;
  background: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.chat-input {
  flex: 1 !important;
  padding: 12px 16px !important;
  border: 1px solid #E3E8EF !important;
  border-radius: 24px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  background: #FFFFFF !important;
  color: #0A2540 !important;
}

.chat-input:focus {
  border-color: #0D9488 !important;
}

.chat-send {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #0D9488 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.chat-send:hover {
  background: #0A7669 !important;
}

.chat-send:disabled {
  background: #E3E8EF !important;
  cursor: not-allowed !important;
}

.chat-send svg {
  width: 20px !important;
  height: 20px !important;
  color: white !important;
}

/* Mobile chat adjustments */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px !important;
    right: 16px !important;
  }

  .chat-window {
    width: calc(100vw - 32px) !important;
    height: calc(100vh - 120px) !important;
    max-height: 600px !important;
    right: -8px !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 36px;
  }

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

/* Mobile Navigation Toggle */
.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--deep-navy);
}

@media (max-width: 768px) {
  .nav-inner {
    position: relative;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .nav.nav-open .nav-links,
  .nav-links.active {
    display: flex !important;
  }

  .nav-mobile-toggle {
    display: flex !important;
  }

  .nav-cta {
    display: none;
  }

  section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* ============================================
   MODULE PAGE SHARED STYLES
   ============================================
   Shared styles for all module detail pages.
   Module-specific colors use --module-accent-color
   which should be set per page via inline style on <html> or <body>
   Default: var(--ocean-blue) (#1B4D7A)
   ============================================ */

:root {
  /* Module accent color - override per page */
  --module-accent-color: #1B4D7A;
  --module-accent-rgb: 27, 77, 122;
}

/* Module Hero Section */
.module-hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--module-accent-rgb), 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(var(--module-accent-rgb), 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.module-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.module-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.module-hero-text {
  color: var(--white);
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* Module Badge */
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--module-accent-color);
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.module-badge-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Module Hero Typography */
.module-hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 540px;
}

/* Module Hero Features */
.module-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.module-hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.module-hero-feature svg {
  width: 16px;
  height: 16px;
  color: var(--module-accent-color);
}

/* Module Hero Visual / Screenshot */
.module-hero-visual {
  position: relative;
}

.module-screenshot {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(var(--module-accent-rgb), 0.2);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.module-screenshot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--pearl);
  border-bottom: 1px solid var(--cloud);
}

.module-screenshot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cloud);
}

.module-screenshot-dot.red {
  background: #FF5F57;
}

.module-screenshot-dot.yellow {
  background: #FEBC2E;
}

.module-screenshot-dot.green {
  background: #28C840;
}

.module-screenshot-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Features Section */
/* Standardized Module Sections & Grids */
.module-section,
.features-section,
.capabilities-section,
.components-section,
.model-types-section,
.payer-types-section {
  padding: 100px 0;
  background: var(--white);
}

.module-section.alt-bg,
.workflow-section,
.related-section {
  background: var(--pearl);
}

.module-grid,
.features-grid,
.capabilities-grid,
.components-grid,
.model-types-grid,
.payer-types-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.features-grid,
.module-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.module-card,
.feature-card,
.capability-card,
.component-card,
.model-type-card,
.payer-type-card,
.related-card {
  padding: 32px;
  background: var(--pearl);
  border: 1px solid var(--cloud);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card {
  background: var(--white);
}

.module-card:hover,
.feature-card:hover,
.capability-card:hover,
.component-card:hover,
.model-type-card:hover,
.payer-type-card:hover,
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--module-accent-color);
}

.module-icon,
.feature-icon,
.capability-icon,
.component-icon,
.model-type-icon,
.payer-type-icon,
.related-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--module-accent-rgb), 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--module-accent-color);
}

.module-icon svg,
.feature-icon svg,
.capability-icon svg,
.component-icon svg,
.model-type-icon svg,
.payer-type-icon svg,
.related-card-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3,
.capability-card h3,
.component-card h4,
.model-type-card h4,
.payer-type-card h4,
.related-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--deep-navy);
}

.feature-card p,
.capability-card p,
.component-card p,
.model-type-card p,
.payer-type-card p,
.related-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
}

.feature-list-item svg {
  width: 16px;
  height: 16px;
  color: var(--module-accent-color);
  flex-shrink: 0;
}


/* Workflow Section */
.workflow-section {
  padding: 100px 0;
  background: var(--pearl);
}

.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
}

.workflow-step-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--cloud);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.workflow-step:hover .workflow-step-icon {
  border-color: var(--module-accent-color);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--module-accent-rgb), 0.15);
}

.workflow-step-icon svg {
  width: 36px;
  height: 36px;
  color: var(--module-accent-color);
}

.workflow-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 4px;
}

.workflow-step-desc {
  font-size: 12px;
  color: var(--stone);
}

.workflow-arrow {
  color: var(--cloud);
}

/* Integrations Section */
.integrations-section {
  padding: 100px 0;
  background: var(--deep-navy);
  color: var(--white);
}

.integrations-section .section-header h2 {
  color: var(--white);
}

.integrations-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

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

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

.integration-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--module-accent-color);
}

.integration-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.integration-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Related Modules Section */
.related-section {
  padding: 100px 0;
  background: var(--pearl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--module-accent-color);
}

.related-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--module-accent-rgb), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--module-accent-color);
}

.related-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

/* Module Page Responsive Breakpoints */
@media (max-width: 1024px) {
  .module-hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .module-hero h1 {
    font-size: 40px;
  }

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

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

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

  .workflow-diagram {
    flex-direction: column;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .module-hero {
    padding: 120px 0 60px;
  }

  .module-hero h1 {
    font-size: 32px;
  }

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

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}