/* ============================================
   CLOUD RIDGE TECH — Premium “Wow” UI
   Client-ready | Next-level depth & motion
   ============================================ */

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-rgb: 79, 70, 229;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  --secondary-rgb: 14, 165, 233;
  --accent: #06b6d4;
  --white: #ffffff;
  --dark: #0f172a;
  --dark-rgb: 15, 23, 42;
  --default-text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --light-gray: #94a3b8;

  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-section-alt: #f1f5f9;
  --bg-hero: radial-gradient(ellipse 100% 70% at 30% 0%, rgba(79, 70, 229, 0.12), transparent 55%),
              radial-gradient(ellipse 80% 50% at 90% 20%, rgba(14, 165, 233, 0.08), transparent 50%),
              radial-gradient(ellipse 60% 40% at 10% 80%, rgba(99, 102, 241, 0.06), transparent 50%),
              linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);

  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #0ea5e9 100%);
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);

  --border-subtle: rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.12);
  --shadow-card-hover: 0 32px 64px -16px rgba(79, 70, 229, 0.18), 0 0 0 1px rgba(79, 70, 229, 0.06);
  --shadow-button: 0 4px 24px rgba(79, 70, 229, 0.35);

  /* Spacing system: 8px base, clear rhythm */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 5rem;    /* 80px */
  --space-4xl: 6rem;    /* 96px */
  --space-5xl: 8rem;    /* 128px */
  --nav-height: 72px;
  --main-offset: 72px; /* match nav height — no extra gap */
  --section-padding: 72px 0;
  --section-padding-lg: 96px 0;
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.45s var(--ease-out-expo);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--default-text);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 280px;
}

/* Touch-friendly: remove tap highlight, improve tap targets on touch devices */
a, button {
  -webkit-tap-highlight-color: rgba(79, 70, 229, 0.15);
  tap-highlight-color: rgba(79, 70, 229, 0.15);
}
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  .navbar-cloudridge .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

main {  position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover { color: var(--primary); }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background: var(--gradient-primary) !important; }
.bg-light { background-color: var(--bg-section-alt) !important; }
.border-dark { border-color: var(--border-subtle) !important; }

/* Prose: max width for long text (readability) */
.prose { max-width: 62ch; }
.prose-wide { max-width: 72ch; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  color: var(--default-text);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h2 strong {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; font-weight: 600; color: var(--default-text); }

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed .stagger-1 { transition-delay: 0.1s; }
.reveal.revealed .stagger-2 { transition-delay: 0.2s; }
.reveal.revealed .stagger-3 { transition-delay: 0.3s; }
.reveal.revealed .stagger-4 { transition-delay: 0.4s; }
.reveal.revealed .stagger-5 { transition-delay: 0.5s; }
.reveal.revealed .stagger-6 { transition-delay: 0.6s; }

.reveal .stagger-1, .reveal .stagger-2, .reveal .stagger-3,
.reveal .stagger-4, .reveal .stagger-5, .reveal .stagger-6 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.revealed .stagger-1, .reveal.revealed .stagger-2, .reveal.revealed .stagger-3,
.reveal.revealed .stagger-4, .reveal.revealed .stagger-5, .reveal.revealed .stagger-6 {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SECTION TITLE ========== */
.section-title {
  margin-bottom: var(--space-2xl);
}

.section-title > span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title > span::before {
  content: '';
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

.section-title h2 { margin-bottom: 0.5rem; }

/* ========== NAVBAR (Glass + Logo) ========== */
.navbar-cloudridge {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--nav-height);
  padding: var(--space-sm) 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.navbar-cloudridge .container,
.navbar-cloudridge .container-max {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.navbar-cloudridge.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.navbar-cloudridge .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--default-text) !important;
  letter-spacing: -0.02em;
}

.navbar-cloudridge .brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Square logo (e.g. About page) */
.navbar-cloudridge .brand-logo-square {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.navbar-cloudridge .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.navbar-cloudridge .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out-expo);
}

.navbar-cloudridge .nav-link:hover::after,
.navbar-cloudridge .nav-link.active::after {
  width: calc(100% - 2rem);
}

.navbar-cloudridge .nav-link:hover,
.navbar-cloudridge .nav-link.active {
  color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.06);
}

.navbar-cloudridge .navbar-toggler {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.navbar-cloudridge .navbar-toggler-icon {
  filter: invert(0.15);
  opacity: 0.9;
}

/* ========== HERO (Premium banner) ========== */
.hero-section {
  padding: 0.75rem 0 var(--space-2xl);
  min-height: calc(100vh - var(--main-offset) - 60px);
  display: flex;
  align-items: flex-start;
  padding-top: 0.75rem;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}
@media (min-width: 992px) {
  .hero-section {
    padding: 0 0 var(--space-3xl);
    min-height: calc(100vh - var(--main-offset) - 80px);
  }
}

/* Dot grid (static base) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

/* Animated dot grid layer */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  animation: heroDotMove 25s linear infinite;
}
@keyframes heroDotMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Hero container inner (subtle scale-in on load) */
.hero-container-inner {
  animation: heroContainerIn 1.2s var(--ease-out-expo) forwards;
}
@keyframes heroContainerIn {
  from {
    opacity: 0.7;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating gradient orbs */
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: blob-float 18s var(--ease-out-expo) infinite;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -6s;
}

.hero-blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -24px) scale(1.05); }
  66% { transform: translate(-16px, 16px) scale(0.98); }
}

.hero-section .container,
.hero-section .container-max {
  position: relative;
  z-index: 1;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.hero-section .row {
  align-items: flex-start;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-section h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: var(--space-lg) !important;
}
.hero-section .lead {
  margin-bottom: var(--space-xl) !important;
  max-width: 480px;
}
.hero-section .d-flex.gap-3 {
  gap: var(--space-md) !important;
  margin-top: var(--space-md);
}

.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.hero-section .hero-badge:hover {
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
}

.hero-section .hero-img-wrap {
  position: relative;
  z-index: 1;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}
@media (min-width: 992px) {
  .hero-section .hero-img-wrap {
    padding-left: var(--space-2xl);
    padding-right: 0;
  }
}

.hero-section .hero-img-wrap img,
.hero-section .hero-banner-img {
  max-height: 420px;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px -12px rgba(79, 70, 229, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  filter: drop-shadow(0 32px 64px rgba(79, 70, 229, 0.12));
  transition: filter 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
@media (min-width: 992px) {
  .hero-section .hero-img-wrap img,
  .hero-section .hero-banner-img {
    max-height: 480px;
    max-width: 100%;
  }
}

.hero-section .hero-img-wrap:hover img,
.hero-section .hero-img-wrap:hover .hero-banner-img {
  filter: drop-shadow(0 40px 80px rgba(79, 70, 229, 0.2));
  transform: scale(1.02);
  box-shadow: 0 32px 64px -16px rgba(79, 70, 229, 0.25), 0 0 0 1px rgba(79, 70, 229, 0.08);
}

/* ========== BUTTONS (Shine effect) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary-cta {
  background: var(--gradient-primary);
  color: #fff !important;
  box-shadow: var(--shadow-button);
}

.btn-primary-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.btn-primary-cta:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.45);
}

.btn-primary-cta:hover::before {
  transform: translateX(100%);
}

.btn-outline-light-cta {
  background: rgba(255, 255, 255, 0.85);
  color: var(--default-text);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.btn-outline-light-cta:hover {
  border-color: rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-cta {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: #fff !important;
}

.btn-secondary-cta:hover { transform: translateY(-3px); color: #fff; }

/* ========== RESULTS STRIP (Outcome-driven) ========== */
.results-strip {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-section-alt);
}
@media (min-width: 768px) {
  .results-strip { padding: var(--space-xl) 0; }
}
.results-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
}
.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.result-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========== TRUST STRIP (Pills) ========== */
/* ========== CARDS (Icon style + Modern) ========== */
.icon-style-top {
  position: relative;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.icon-style-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.icon-style-top:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.15);
}

.icon-style-top:hover::before { opacity: 1; }

.icon-style-top .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(14, 165, 233, 0.1) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.icon-style-top:hover .icon {
  transform: scale(1.05);
}

.icon-style-top h6 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--default-text);
}

.icon-style-top p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  flex-grow: 1;
  color: var(--text-secondary);
}

.icon-style-top .arrow-icon {
  margin-top: auto;
  padding-top: 1.25rem;
}

.icon-style-top .arrow-icon a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 14px;
  font-size: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.icon-style-top .arrow-icon a:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

/* ========== CARD CLOUDRIDGE ========== */
.card-cloudridge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-cloudridge:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(79, 70, 229, 0.15);
}

/* Stat number (gradient + size) */
.stat-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.card-cloudridge .stat-number { margin-bottom: 0.25rem; }

.card-cloudridge h3, .card-cloudridge h6 { color: var(--default-text); margin-bottom: 0.75rem; }
.card-cloudridge p, .card-cloudridge ul { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 0; }
.card-cloudridge ul { padding-left: 1.25rem; }
.card-cloudridge .card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(14, 165, 233, 0.1) 100%);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
}

/* ========== PROGRESS BARS ========== */
.progress-wrap {
  padding: 0 0 1.5rem 0;
}

.progress-wrap h6 {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--default-text);
}

.progress-bar-serene {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--bg-section-alt);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-serene .fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-primary);
  transition: width 1.2s var(--ease-out-expo);
}

/* ========== IMG WRAP (rounded + shadow) ========== */
.img-wrap-modern {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-wrap-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.img-wrap-modern:hover img { transform: scale(1.04); }

.img-wrap-fixed {
  min-height: 320px;
  max-height: 420px;
  aspect-ratio: 3 / 2;
}
.img-wrap-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 992px) {
  .img-wrap-fixed { min-height: 380px; max-height: 440px; }
}

/* ========== PORTFOLIO CARD ========== */
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.portfolio-card .portfolio-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-img { transform: scale(1.06); }

.portfolio-card .portfolio-body { padding: 1.75rem; }
.portfolio-card .portfolio-img-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-card .portfolio-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-img-wrap::after { opacity: 1; }

.portfolio-card h6 { margin-bottom: 0.35rem; font-size: 1.0625rem; font-weight: 700; }
.portfolio-card .portfolio-cat {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.portfolio-kpi-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-primary);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-section-alt);
  border-radius: 6px;
}
.chip-impact {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
}

/* ========== STACK & ENGAGEMENT ========== */
.stack-engagement-icon {
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-radius: 14px;
}
.stack-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.stack-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: border-color var(--transition), color var(--transition);
}
.stack-badge:hover {
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.35);
}

/* ========== PROCESS STEPS (Embark-style) ========== */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .process-steps { gap: 0.5rem; flex-wrap: nowrap; }
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.2);
}
.process-step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-radius: 14px;
  margin-bottom: 0.5rem;
}
.process-step-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--default-text);
  display: block;
}
.process-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.process-step-arrow {
  display: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .process-step-arrow { display: flex; align-items: center; }
}

/* ========== FAQ COUNTER BOX ========== */
.faqs-counter-box {
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-top: -4rem;
  position: relative;
  z-index: 4;
  box-shadow: 0 20px 50px -12px rgba(79, 70, 229, 0.4);
}

.faqs-counter-box h2 { color: var(--white); margin-bottom: 0; font-weight: 800; }
.faqs-counter-box h2 sub { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }

/* ========== ACCORDION ========== */
.accordion-serene .accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.accordion-serene .accordion-item:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
}

.accordion-serene .accordion-button {
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border: none;
  font-weight: 600;
  color: var(--default-text);
  font-size: 1rem;
  box-shadow: none;
  border-radius: 0;
}

.accordion-serene .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
  color: var(--primary);
}

.accordion-serene .accordion-button::after { filter: none; }
.accordion-serene .accordion-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: var(--space-4xl) 0 var(--space-5xl);
  text-align: center;
  position: relative;
  background: var(--bg-hero);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.page-hero .container,
.page-hero .container-max { position: relative; z-index: 1; padding-left: var(--container-padding); padding-right: var(--container-padding); }
.page-hero h1 { margin-bottom: var(--space-sm); }
.page-hero .lead { margin-left: auto; margin-right: auto; margin-bottom: 0; max-width: 36em; }
@media (min-width: 768px) {
  .page-hero { padding: var(--space-5xl) var(--container-padding) var(--space-5xl); }
}

/* ========== FOOTER ========== */
.footer-cloudridge {
  background: var(--default-text);
  color: var(--white);
  padding: var(--space-5xl) 0 var(--space-xl);
  margin-top: 0;
  position: relative;
}
.footer-cloudridge .container,
.footer-cloudridge .container-max {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.footer-cloudridge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0.9;
}

.footer-cloudridge h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.footer-cloudridge .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cloudridge .footer-links li { margin-bottom: 0.5rem; }

.footer-cloudridge .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-cloudridge .footer-links a:hover { color: var(--white); }

.footer-cloudridge .text-white { color: var(--white) !important; }
.footer-cloudridge p { color: rgba(255, 255, 255, 0.65); }

.footer-cloudridge .brand-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.footer-cloudridge .brand-logo-square {
  height: 36px;
  width: 36px;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.footer-subscribe-inline .form-control {
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: 0.75rem 1rem;
  max-width: 260px;
}

.footer-subscribe-inline .form-control::placeholder { color: rgba(255,255,255,0.5); }
.footer-subscribe-inline .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
  outline: none;
}

.footer-subscribe-inline .btn {
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1.25rem;
}

@media (max-width: 576px) {
  .footer-subscribe-inline {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-subscribe-inline .form-control {
    border-radius: 12px;
    max-width: 100%;
  }
  .footer-subscribe-inline .btn {
    border-radius: 12px;
    width: 100%;
  }
}

/* ========== RESPONSIVE: ALL SCREEN SIZES ========== */
/* Extra small phones (320px - 374px) */
@media (max-width: 374px) {
  .hero-section h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .results-strip-inner {
    gap: var(--space-md);
  }
  .result-value { font-size: 1.25rem; }
  .process-step { min-width: 88px; padding: 1rem 0.75rem; }
  .process-step-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .cta-premium { padding: 2rem 1.5rem; }
  .go-to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
}

/* Small phones (375px - 575px) — already covered by Bootstrap sm */
/* Tablets portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section .hero-img-wrap img,
  .hero-section .hero-banner-img {
    max-height: 360px;
  }
}

/* Tablets landscape / small laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-max { max-width: 960px; }
}

/* Desktop (1200px - 1439px) — Bootstrap xl */
/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .container-max { max-width: min(1280px, 90vw); }
}

/* Ultra-wide (1920px+) — keep content centered, optional max */
@media (min-width: 1920px) {
  .container-max { max-width: 1400px; }
}

.tiny-footer {
  padding: 1.5rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ========== FORMS ========== */
.form-cloudridge .form-control,
.form-cloudridge .form-select {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  color: var(--default-text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-cloudridge .form-control:focus,
.form-cloudridge .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}

.form-cloudridge label { color: var(--default-text); font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9375rem; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  z-index: 1050;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* ========== GO TO TOP ========== */
.go-to-top {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  z-index: 1060;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out-expo), visibility 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.go-to-top svg {
  flex-shrink: 0;
  pointer-events: none;
}
.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.go-to-top:hover {
  color: var(--white);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}
.go-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .go-to-top { transition-duration: 0.001ms; }
}

/* ========== SITEMAP ========== */
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border-subtle); }
.sitemap-list a { color: var(--default-text); font-weight: 500; }
.sitemap-list a:hover { color: var(--primary); }

/* ========== ANIMATIONS ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 4s var(--ease-out-expo) infinite;
}

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

/* ========== HERO ENTRANCE ANIMATIONS ========== */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08); }
  50% { box-shadow: 0 6px 32px rgba(79, 70, 229, 0.14); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(79, 70, 229, 0.35); }
  50% { box-shadow: 0 6px 32px rgba(79, 70, 229, 0.42); }
}

/* Hero staggered entrance — runs on load */
.hero-section .hero-entrance {
  opacity: 0;
  animation: heroEntrance 0.85s var(--ease-out-expo) forwards;
}
.hero-section .hero-entrance-1 { animation-delay: 0.12s; }
.hero-section .hero-entrance-2 { animation-delay: 0.28s; }
.hero-section .hero-entrance-3 { animation-delay: 0.44s; }
.hero-section .hero-entrance-4 { animation-delay: 0.6s; }
.hero-section .hero-entrance-5 { animation-delay: 0.76s; }
.hero-section .hero-entrance-6 { animation-delay: 0.92s; }

.hero-section .hero-graphic-entrance {
  opacity: 0;
  animation: heroGraphicEntrance 1s var(--ease-out-expo) 0.25s forwards;
}

/* Gradient text shimmer (hero only) */
.hero-section .gradient-text {
  background: linear-gradient(120deg, #4f46e5 0%, #6366f1 25%, #0ea5e9 50%, #6366f1 75%, #4f46e5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 6s ease-in-out infinite;
}

/* Badge: entrance + subtle glow after */
.hero-section .hero-badge.hero-entrance {
  animation: heroEntrance 0.85s var(--ease-out-expo) forwards,
             badgeGlow 3s 1.2s ease-in-out infinite;
}

/* Primary CTA subtle pulse (hero) */
.hero-section .btn-primary-cta {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.hero-section .btn-primary-cta:hover {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .hero-entrance,
  .hero-section .hero-graphic-entrance {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-section .gradient-text { animation: none; }
  .hero-section .hero-badge.hero-entrance { animation: none; }
  .hero-section .btn-primary-cta { animation: none; }
  .hero-section .animate-float { animation: none; }
  .hero-dot-grid { animation: none; }
  .hero-container-inner { animation: none; opacity: 1; transform: none; }
}

.container-max {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.section-padding { padding: var(--section-padding); }
.section-padding-lg { padding: var(--section-padding-lg); }
.bg-secondary-section {
  background-color: var(--bg-section-alt) !important;
  position: relative;
}
.bg-secondary-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ========== CTA PREMIUM BOX ========== */
.cta-premium {
  position: relative;
  padding: 4rem 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(14, 165, 233, 0.03) 100%);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 24px 56px -16px rgba(79, 70, 229, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}

.cta-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.cta-premium .lead { margin-left: auto; margin-right: auto; }

/* ========== GLOBAL POLISH ========== */
::selection {
  background: rgba(79, 70, 229, 0.2);
  color: var(--default-text);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Subtle grain (premium texture) — low z so it doesn’t block UI */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.navbar-cloudridge,
.footer-cloudridge {
  position: relative;
  z-index: 2;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-section-alt);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-section-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
