/**
 * Propeliq | Enterprise Design System, Rich Color Atmosphere & Glassmorphism
 * https://propeliq.io
 */

:root {
  /* Core Color Tokens */
  --color-primary: #315BFF;
  --color-secondary: #6657E8;
  --color-accent: #21B8D7;
  --color-soft-blue: #EAF2FF;
  --color-soft-violet: #F1EEFF;
  --color-soft-cyan: #E6F8FC;
  --color-bg-main: #F6F9FD;
  --color-bg-secondary: #EEF3FA;
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-text-primary: #152238;
  --color-text-secondary: #566782;
  --color-border: #DDE5F0;
  --color-border-subtle: #E8EEF5;
  --color-success: #20A56A;
  --color-warning: #E8A317;

  /* Vibrant Gradients */
  --grad-primary: linear-gradient(135deg, #315BFF 0%, #6657E8 100%);
  --grad-secondary: linear-gradient(135deg, #21B8D7 0%, #315BFF 100%);
  --grad-accent-warm: linear-gradient(135deg, #6657E8 0%, #21B8D7 100%);
  --grad-surface-soft: linear-gradient(135deg, rgba(234, 242, 255, 0.6) 0%, rgba(241, 238, 255, 0.5) 100%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layered Shadows */
  --shadow-subtle: 0 4px 12px rgba(49, 91, 255, 0.04);
  --shadow-card: 0 12px 36px -4px rgba(28, 52, 90, 0.07), 0 4px 12px -2px rgba(28, 52, 90, 0.03);
  --shadow-card-hover: 0 24px 48px -6px rgba(49, 91, 255, 0.16), 0 8px 18px -4px rgba(102, 87, 232, 0.08);
  --shadow-glass: 0 20px 60px rgba(28, 52, 90, 0.08);
  --shadow-glow: 0 0 40px rgba(49, 91, 255, 0.18);
}

/* Base HTML & Multi-Stop Ambient Light Canvas */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Ambient Multi-Point Gradient Canvas (Rich, Vivid Light Colors) */
  background: 
    radial-gradient(circle at 8% 6%, rgba(49, 91, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 92% 10%, rgba(102, 87, 232, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 50% 32%, rgba(33, 184, 215, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 88% 60%, rgba(244, 63, 94, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 75%, rgba(49, 91, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(102, 87, 232, 0.16) 0%, transparent 45%),
    #F3F7FC;
  background-attachment: fixed;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.text-h1 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.text-h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.text-h3 {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Containers */
.propeliq-container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1024px) {
  .propeliq-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.propeliq-container-wide {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section Spacing */
.section-padding {
  padding-top: clamp(60px, 8vw, 104px);
  padding-bottom: clamp(60px, 8vw, 104px);
}

.section-padding-sm {
  padding-top: clamp(44px, 5.5vw, 68px);
  padding-bottom: clamp(44px, 5.5vw, 68px);
}

/* Mesh Gradient Blobs with Fluid Floating Motion */
.mesh-gradient-blob {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  border-radius: 9999px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Animated Text Gradient with Shine Effect */
.animated-text-gradient {
  background: linear-gradient(90deg, #152238 0%, #315BFF 28%, #6657E8 50%, #21B8D7 72%, #152238 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 7s linear infinite;
  display: inline-block;
}

@keyframes shineGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ========================================================
   RICH FLOATING CAPSULE NAVBAR (DISTINCT BACKGROUND COLOR)
   ======================================================== */
.floating-glass-capsule {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(234, 242, 255, 0.92) 50%, rgba(241, 238, 255, 0.90) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1.5px solid rgba(49, 91, 255, 0.35) !important;
  box-shadow: 
    0 12px 36px -4px rgba(49, 91, 255, 0.18),
    0 4px 12px rgba(21, 34, 56, 0.05),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.95) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-glass-capsule.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 240, 255, 0.95) 100%) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-color: rgba(49, 91, 255, 0.5) !important;
  box-shadow: 
    0 18px 45px -6px rgba(49, 91, 255, 0.24),
    0 6px 16px rgba(21, 34, 56, 0.08),
    inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
}

/* Glass Panels with Specular Highlights */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-glass), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

/* Cards with 3D Depth, Gradient Borders & Elevated Presence */
.propeliq-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(221, 229, 240, 0.85);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.propeliq-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(49, 91, 255, 0.4);
}

/* Subtle Gradient Glow Ring around Featured Cards */
.card-glow-ring {
  position: relative;
}

.card-glow-ring::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(49, 91, 255, 0.4), rgba(102, 87, 232, 0.3), rgba(33, 184, 215, 0.4));
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.card-glow-ring:hover::before {
  opacity: 1;
}

/* Buttons with Gradient Glow */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(49, 91, 255, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(49, 91, 255, 0.45);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(221, 229, 240, 0.9);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(49, 91, 255, 0.12);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

/* Material Symbols icon styling with micro-animations */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.group:hover .material-symbols-outlined {
  transform: scale(1.1);
}

/* Subtle Badges */
.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(234, 242, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  border: 1px solid rgba(49, 91, 255, 0.25);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(49, 91, 255, 0.08);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.accordion-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-inner {
  overflow: hidden;
}

/* Marquee infinite scroll strip with tinted background */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 24px;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-content {
  display: flex;
  gap: 24px;
  animation: marquee 35s linear infinite;
  flex-shrink: 0;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(49, 91, 255, 0.15);
}

/* Section Background Gradient Utilities */
.bg-gradient-mesh-hero {
  background: 
    radial-gradient(circle at 80% 20%, rgba(102, 87, 232, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 10% 40%, rgba(49, 91, 255, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(33, 184, 215, 0.18) 0%, transparent 48%),
    linear-gradient(180deg, rgba(234, 242, 255, 0.6) 0%, rgba(246, 249, 253, 0.85) 100%);
}

.bg-gradient-tint-1 {
  background: linear-gradient(180deg, rgba(234, 242, 255, 0.7) 0%, rgba(241, 238, 255, 0.6) 50%, rgba(230, 248, 252, 0.55) 100%);
}

.bg-gradient-tint-2 {
  background: linear-gradient(135deg, rgba(238, 243, 250, 0.8) 0%, rgba(241, 238, 255, 0.6) 50%, rgba(246, 249, 253, 0.95) 100%);
}

/* Rich Vivid Color Themes for Cards across All Pages */
.card-theme-blue {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 242, 255, 0.75) 100%);
  border: 1px solid rgba(49, 91, 255, 0.32);
}

.card-theme-violet {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 238, 255, 0.75) 100%);
  border: 1px solid rgba(102, 87, 232, 0.32);
}

.card-theme-cyan {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 248, 252, 0.75) 100%);
  border: 1px solid rgba(33, 184, 215, 0.38);
}

.card-theme-emerald {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 253, 245, 0.75) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.card-theme-amber {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 243, 199, 0.65) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.card-theme-rose {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 241, 242, 0.75) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Vivid Glowing Eyebrow Badges */
.badge-color-blue {
  background: linear-gradient(135deg, rgba(49, 91, 255, 0.12), rgba(102, 87, 232, 0.12));
  border: 1px solid rgba(49, 91, 255, 0.35);
  color: #1E40AF;
}

.badge-color-violet {
  background: linear-gradient(135deg, rgba(102, 87, 232, 0.14), rgba(147, 51, 234, 0.12));
  border: 1px solid rgba(102, 87, 232, 0.35);
  color: #5B21B6;
}

.badge-color-cyan {
  background: linear-gradient(135deg, rgba(33, 184, 215, 0.16), rgba(49, 91, 255, 0.12));
  border: 1px solid rgba(33, 184, 215, 0.4);
  color: #0E7490;
}

.badge-color-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065F46;
}

.badge-color-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400E;
}

/* Reduced Motion */
@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;
  }
}
