/*
==================================================
BLIIK LIQUID GRADIENT GLASS DESIGN SYSTEM
==================================================
Mixing Apple's Liquid Glass with Modern Gradient Mesh
Ultra-light, sophisticated, cutting-edge 2025 aesthetic
==================================================
*/

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
  /* ===== GRADIENT MESH BACKGROUNDS (Ultra-Light) ===== */
  --gradient-mesh-primary: linear-gradient(135deg,
    #FFFFFF 0%,
    #F0F5FF 25%,
    #F5F0FF 50%,
    #F0FFF8 75%,
    #FFFFFF 100%);

  --gradient-mesh-soft: linear-gradient(180deg,
    #FAFCFF 0%,
    #F8F9FF 50%,
    #FAF8FF 100%);

  --gradient-mesh-blue: radial-gradient(ellipse at top right,
    rgba(14, 81, 199, 0.08) 0%,
    rgba(14, 81, 199, 0.02) 50%,
    transparent 100%);

  --gradient-mesh-purple: radial-gradient(ellipse at bottom left,
    rgba(127, 76, 185, 0.08) 0%,
    rgba(127, 76, 185, 0.02) 50%,
    transparent 100%);

  --gradient-mesh-teal: radial-gradient(ellipse at center,
    rgba(40, 155, 135, 0.06) 0%,
    transparent 70%);

  /* ===== BASE COLORS ===== */
  --bg-white: #FFFFFF;
  --bg-ultra-light: #FAFCFF;
  --bg-soft-blue: #F8FAFF;
  --bg-soft-purple: #FAF8FF;
  --bg-soft-mint: #F8FFF8;

  /* ===== ENHANCED GLASS MATERIALS ===== */
  --glass-white: rgba(255, 255, 255, 0.75);
  --glass-white-strong: rgba(255, 255, 255, 0.88);
  --glass-white-subtle: rgba(255, 255, 255, 0.60);

  /* Gradient Glass (NEW) */
  --glass-gradient-blue: linear-gradient(135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(224, 236, 255, 0.7) 100%);

  --glass-gradient-purple: linear-gradient(135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(240, 230, 255, 0.7) 100%);

  --glass-gradient-teal: linear-gradient(135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(230, 250, 245, 0.7) 100%);

  /* ===== BACKDROP BLUR ===== */
  --blur-standard: saturate(180%) blur(20px);
  --blur-strong: saturate(200%) blur(30px);
  --blur-subtle: saturate(160%) blur(16px);
  --blur-ultra: saturate(220%) blur(40px);

  /* ===== GRADIENT BORDERS (NEW) ===== */
  --border-gradient-blue: linear-gradient(135deg,
    rgba(14, 81, 199, 0.3),
    rgba(40, 155, 135, 0.2));

  --border-gradient-purple: linear-gradient(135deg,
    rgba(127, 76, 185, 0.3),
    rgba(14, 81, 199, 0.2));

  --border-gradient-multi: linear-gradient(135deg,
    rgba(14, 81, 199, 0.25),
    rgba(127, 76, 185, 0.25),
    rgba(40, 155, 135, 0.25));

  /* ===== TEXT COLORS ===== */
  --text-primary: #1A1D2E;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-gradient: linear-gradient(135deg, #0E51C7, #7F4CB9);

  /* ===== BRAND COLORS ===== */
  --brand-blue: #0E51C7;
  --brand-blue-hover: #0A3D9F;
  --brand-purple: #7F4CB9;
  --brand-teal: #289B87;
  --brand-yellow: #F6C344;

  /* ===== IRIDESCENT EFFECTS (NEW) ===== */
  --iridescent-gradient: linear-gradient(135deg,
    #E0ECFF 0%,
    #F0E6FF 25%,
    #E6F9FF 50%,
    #FFE6F5 75%,
    #E0ECFF 100%);

  --iridescent-shimmer: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%);

  /* ===== COLORED SHADOWS (Enhanced) ===== */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10);

  /* Colored Shadows */
  --shadow-blue: 0 8px 32px rgba(14, 81, 199, 0.15);
  --shadow-purple: 0 8px 32px rgba(127, 76, 185, 0.15);
  --shadow-teal: 0 8px 32px rgba(40, 155, 135, 0.15);
  --shadow-gradient: 0 12px 40px rgba(14, 81, 199, 0.12),
                     0 4px 16px rgba(127, 76, 185, 0.08);

  /* ===== BORDERS ===== */
  --border-light: 1px solid rgba(0, 0, 0, 0.06);
  --border-medium: 1px solid rgba(0, 0, 0, 0.10);
  --border-glass: 1px solid rgba(255, 255, 255, 0.30);

  /* ===== BORDER RADIUS ===== */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* ===== SPACING ===== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3rem;
  --font-6xl: 3.75rem;
  --font-7xl: 4.5rem;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ===== ANIMATIONS ===== */
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 200ms;
  --duration-medium: 400ms;
  --duration-slow: 600ms;
  --duration-slower: 1000ms;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-white);
  min-height: 100vh;
  position: relative;
}

/* Gradient Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-primary);
  z-index: -2;
  opacity: 1;
}

/* Animated Gradient Orbs */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    var(--gradient-mesh-blue),
    var(--gradient-mesh-purple),
    var(--gradient-mesh-teal);
  z-index: -1;
  opacity: 0.8;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-7xl); }
h2 { font-size: var(--font-6xl); }
h3 { font-size: var(--font-5xl); }
h4 { font-size: var(--font-4xl); }
h5 { font-size: var(--font-3xl); }
h6 { font-size: var(--font-2xl); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.lead {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   GRADIENT GLASS NAVIGATION
   ======================================== */

.nav-gradient-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-white-strong);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border-bottom: var(--border-light);
  padding: var(--space-md) 0;
  transition: all var(--duration-medium) var(--easing-standard);
}

.nav-gradient-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--iridescent-gradient);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-standard);
  pointer-events: none;
}

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

.nav-gradient-glass.scrolled::before {
  opacity: 0.08;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
  transition: all var(--duration-fast) var(--easing-standard);
}

.nav-brand:hover {
  color: var(--brand-blue);
}

/* Logo Image Styling */
.nav-logo {
  height: 32px; /* Fixed height for consistency */
  width: auto; /* Maintain aspect ratio */
  display: block;
  transition: all var(--duration-fast) var(--easing-standard);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .nav-logo {
    height: 28px; /* Slightly smaller on mobile */
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--easing-standard);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--border-gradient-blue);
  border-radius: var(--radius-pill);
  transition: transform var(--duration-medium) var(--easing-spring);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(14, 81, 199, 0.05);
}

.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

/* ========================================
   GRADIENT GLASS CARDS
   ======================================== */

.card-gradient-glass {
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-xl);
  border: var(--border-glass);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-medium) var(--easing-standard);
}

/* Gradient Border Effect */
.card-gradient-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--border-gradient-multi);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-standard);
  pointer-events: none;
}

.card-gradient-glass:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gradient);
}

.card-gradient-glass:hover::before {
  opacity: 1;
}

/* Specular Highlight */
.card-gradient-glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--iridescent-shimmer);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--easing-standard);
  pointer-events: none;
}

.card-gradient-glass:hover::after {
  opacity: 0.3;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* Card Variants with Gradient Backgrounds */
.card-gradient-blue {
  background: var(--glass-gradient-blue);
  box-shadow: var(--shadow-blue);
}

.card-gradient-purple {
  background: var(--glass-gradient-purple);
  box-shadow: var(--shadow-purple);
}

.card-gradient-teal {
  background: var(--glass-gradient-teal);
  box-shadow: var(--shadow-teal);
}

/* Floating Card (Multi-layer Glass) */
.card-floating {
  position: relative;
}

.card-floating::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--glass-white-subtle);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

/* ========================================
   IRIDESCENT BUTTONS
   ======================================== */

.btn {
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all var(--duration-medium) var(--easing-standard);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

/* Iridescent Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: white;
  box-shadow: var(--shadow-gradient);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--iridescent-gradient);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-standard);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(14, 81, 199, 0.25),
              0 8px 24px rgba(127, 76, 185, 0.15);
}

.btn-primary:hover::before {
  opacity: 0.3;
}

/* Glass Button with Gradient Border */
.btn-secondary {
  background: var(--glass-white-strong);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  color: var(--brand-blue);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--border-gradient-blue);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.btn-secondary:hover {
  background: var(--glass-white);
  color: var(--brand-blue); /* Maintain blue text on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Focus and Active States */
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible {
  background: var(--glass-white-strong);
  color: var(--brand-blue);
  border: 2px solid transparent;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 81, 199, 0.15); /* Subtle blue focus ring */
}

.btn-secondary:active {
  transform: translateY(0); /* Remove hover lift on click */
}

/* Prevent focus outline on mouse click, but keep for keyboard navigation */
.btn-secondary:focus:not(:focus-visible) {
  box-shadow: none;
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, var(--brand-teal), #1F9B7F);
  color: white;
  box-shadow: var(--shadow-teal);
}

.btn-success:hover {
  box-shadow: 0 12px 40px rgba(40, 155, 135, 0.25);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  font-size: var(--font-sm);
  padding: 10px 20px;
}

.btn-lg {
  font-size: var(--font-lg);
  padding: 18px 36px;
  border-radius: var(--radius-lg);
}

/* ========================================
   GRADIENT BADGES
   ======================================== */

.badge-gradient {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-semibold);
  background: var(--glass-white-strong);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border: var(--border-glass);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  position: relative;
}

.badge-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-pill);
  padding: 1px;
  background: var(--border-gradient-multi);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

/* Badge Variants */
.badge-blue {
  background: var(--glass-gradient-blue);
  color: var(--brand-blue);
}

.badge-purple {
  background: var(--glass-gradient-purple);
  color: var(--brand-purple);
}

.badge-teal {
  background: var(--glass-gradient-teal);
  color: var(--brand-teal);
}

.badge-orange {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 240, 220, 0.7));
  color: #FF6B35;
}

/* ========================================
   BENTO GRID LAYOUT SYSTEM (NEW)
   ======================================== */

.bento-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bento-item {
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-xl);
  border: var(--border-glass);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-medium) var(--easing-standard);
}

/* Bento Grid Sizes */
.bento-sm {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-md {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   ICON CONTAINERS
   ======================================== */

.icon-container {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-4xl);
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border: var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-medium) var(--easing-standard);
  position: relative;
}

.icon-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--iridescent-gradient);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-standard);
}

.icon-container:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.icon-container:hover::before {
  opacity: 0.15;
}

/* Icon Variants */
.icon-blue {
  background: var(--glass-gradient-blue);
  color: var(--brand-blue);
}

.icon-purple {
  background: var(--glass-gradient-purple);
  color: var(--brand-purple);
}

.icon-teal {
  background: var(--glass-gradient-teal);
  color: var(--brand-teal);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-gradient {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Floating Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 25s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 81, 199, 0.4), transparent);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(127, 76, 185, 0.35), transparent);
  bottom: -150px;
  left: -150px;
  animation-delay: -8s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(40, 155, 135, 0.3), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -40px) scale(1.08);
  }
  50% {
    transform: translate(-30px, 40px) scale(0.92);
  }
  75% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

/* ========================================
   STATS & METRICS
   ======================================== */

.stat-glass {
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-md);
  border: var(--border-glass);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: all var(--duration-medium) var(--easing-standard);
  position: relative;
  overflow: hidden;
}

.stat-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border-gradient-multi);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-standard);
}

.stat-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-glass:hover::before {
  opacity: 0.08;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3rem); /* Responsive: 1.5rem (mobile) to 3rem (desktop) */
  font-weight: var(--font-weight-bold);
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1; /* Slightly increased for better multi-line readability */
  margin-bottom: var(--space-xs);
  overflow-wrap: break-word; /* Break long words like "Coparticipação" */
  word-break: break-word; /* Fallback for older browsers */
  white-space: normal; /* Allow text wrapping */
}

.stat-label {
  font-size: clamp(0.75rem, 2vw + 0.25rem, 0.875rem); /* Responsive: 0.75rem (mobile) to 0.875rem (desktop) */
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  overflow-wrap: break-word; /* Handle long words like "Coparticipação" */
  word-break: break-word; /* Fallback for older browsers */
  white-space: normal; /* Allow text wrapping */
  line-height: 1.3; /* Better readability for wrapped text */
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress-gradient {
  height: 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
}

.progress-bar-gradient {
  height: 100%;
  background: linear-gradient(90deg,
    var(--brand-blue),
    var(--brand-purple),
    var(--brand-teal));
  border-radius: var(--radius-pill);
  transition: width var(--duration-slow) var(--easing-standard);
  box-shadow: 0 0 16px rgba(14, 81, 199, 0.4);
  position: relative;
  overflow: hidden;
}

.progress-bar-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--iridescent-shimmer);
  animation: shimmer 2s linear infinite;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-gradient {
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-xl);
  border: var(--border-glass);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  transition: all var(--duration-medium) var(--easing-standard);
  position: relative;
  overflow: hidden;
}

.testimonial-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-gradient-multi);
}

.testimonial-gradient:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.avatar-gradient {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-xl);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-gradient {
  background: var(--glass-white-strong);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border-top: var(--border-light);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--iridescent-gradient);
  opacity: 0.04;
  pointer-events: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.glass-panel {
  background: var(--glass-white);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border-radius: var(--radius-lg);
  border: var(--border-glass);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.section-spacing {
  padding: var(--space-4xl) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  /* Reduce blur for performance */
  .card-gradient-glass,
  .nav-gradient-glass,
  .testimonial-gradient {
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
  }

  /* Adjust font sizes */
  h1 { font-size: var(--font-6xl); }
  h2 { font-size: var(--font-5xl); }
  h3 { font-size: var(--font-4xl); }

  /* Reduce spacing */
  .section-spacing {
    padding: var(--space-2xl) 0;
  }

  /* Simplify animations */
  .gradient-orb {
    animation: none;
    opacity: 0.15;
  }

  /* Stack bento grid */
  .bento-md,
  .bento-lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Adjust stat cards for mobile */
  .stat-glass {
    padding: var(--space-md); /* Reduce from --space-lg (2rem) to --space-md (1.5rem) */
  }

  /* Ensure stat cards stack properly in narrow columns */
  .stat-value {
    font-size: clamp(1.25rem, 5vw, 1.75rem); /* Smaller range on mobile for narrow columns */
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: clamp(0.7rem, 3vw, 0.8rem); /* Smaller on mobile */
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gradient-orb,
  body::after {
    animation: none !important;
  }
}

.btn:focus,
.nav-link:focus,
a:focus {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(14, 81, 199, 0.2);
}

@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
  }

  .card-gradient-glass,
  .testimonial-gradient {
    border: 2px solid currentColor;
  }
}
