:root {
  --ink: #0f172a;    /* Slate 900 */
  --night: #020617;  /* Slate 950 */
  --ocean: #1e293b;  /* Slate 800 */
  --sand: #f8fafc;   /* Slate 50 */
  --sun: #f59e0b;    /* Amber 500 */
  --sun-light: #fbbf24; /* Amber 400 */
  --teal: #0ea5e9;   /* Sky 500 */
  --mist: #e2e8f0;   /* Slate 200 */
}

/* Base resets & typography */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  touch-action: pan-y;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,
.display-4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}

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

.d-flex.justify-content-between > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Navbar improvements */
.navbar {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--teal);
}

.badge-pill {
  background: rgba(14, 165, 233, 0.1);
  color: var(--teal);
  border-radius: 9999px;
  padding: 0.25em 0.75em;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.75) 0%, rgba(30, 41, 59, 0.6) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Buttons */
.btn {
  border-radius: 9999px; /* Pill shape */
  padding: 0.625rem 1.75rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-primary {
  background: var(--sun);
  background: linear-gradient(135deg, var(--sun), var(--sun-light));
  border: none;
  color: var(--night);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3), 0 2px 4px -1px rgba(245, 158, 11, 0.15);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
  color: var(--night);
}

.cta-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.cta-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
}

/* Cards */
.card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.5rem;
  background: #fff;
  transition: all 0.3s ease;
}

.service-card, .use-case-card, .blog-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--mist);
}

.service-card .card-body, .use-case-card .card-body, .blog-card .card-body {
  padding: 2rem;
}

.service-card:hover, .use-case-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--teal);
}

.service-thumbs, .blog-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-thumb, .blog-thumb {
  width: 60px;
  height: 45px;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: transform 0.2s;
}

/* Reliability Tech Section */
.reliability {
  background: var(--night);
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
    linear-gradient(to bottom, var(--night), #0f172a);
  color: #fff;
  position: relative;
  padding: 6rem 0;
}

.diagram {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Tech grid effect overlay */
.diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  pointer-events: none;
}

/* Pattern Background for light sections */
.pattern-bg {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Gallery & Images */
.gallery-img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.enlargeable:hover {
  transform: scale(1.05);
  cursor: zoom-in;
}

/* Blog specific */
.blog-link {
  text-decoration: none;
  color: inherit;
}
.blog-link:hover .blog-card {
  transform: translateY(-5px);
  border-color: var(--teal);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

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

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer (if used) */
.footer {
  background: var(--night);
  color: var(--mist);
  padding: 4rem 0 2rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
  color: var(--teal);
}

/* Utilities */
section {
  scroll-margin-top: 100px;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 6rem;
  }
}

@media (max-width: 575.98px) {
  .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .display-4 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
  .floating,
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.cta-band {
  background: linear-gradient(135deg, var(--sun), var(--teal));
  color: var(--night);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
  pointer-events: none;
}

/* DARK MODE TEXT OVERRIDES */
.hero h1, .hero h2, .hero h3, .hero h4, .hero .display-4,
.reliability h1, .reliability h2, .reliability h3, .reliability h4, .reliability .display-4,
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer .display-4 {
  color: #fff !important;
}

.hero .text-muted,
.reliability .text-muted,
.footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Text Gradient for H1 */
.text-gradient {
  background: linear-gradient(to bottom right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Mobile Menu Polish */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
  }
}

/* Extend dark mode overrides to hero-video used in subpages */
.hero-video h1, .hero-video h2, .hero-video h3, .hero-video h4, .hero-video .display-4 {
  color: #fff !important;
}
.hero-video .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Fix for dark CTA bands (like on reliability page) */
.cta-band--dark h1,
.cta-band--dark h2,
.cta-band--dark h3,
.cta-band--dark h4,
.cta-band--dark .h4 {
  color: #fff !important;
}

.cta-band--dark p, 
.cta-band--dark .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Pricing Section Improvements */
.plan-card {
  background: #fff;
  border: 2px solid var(--mist);
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--teal);
}

.plan-card.featured {
  border: 2px solid var(--sun);
  background: linear-gradient(to bottom, #fff, #fffbeb); /* Subtle amber tint */
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.15), 0 4px 6px -2px rgba(245, 158, 11, 0.1);
  transform: scale(1.03);
  z-index: 1;
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sun), var(--sun-light));
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 25px 30px -5px rgba(245, 158, 11, 0.2), 0 15px 15px -5px rgba(245, 158, 11, 0.15);
}

.discount-pill {
  display: inline-block;
  background-color: #d1fae5; /* emerald-100 */
  color: #065f46; /* emerald-800 */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  border: 1px solid #a7f3d0; /* emerald-200 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.plan-card h3 {
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.plan-card h5 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.plan-card ul {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.plan-card ul li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
  margin-left: 0 !important;
}

.plan-card ul li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

/* Bootstrap override for list-unstyled */
.plan-card .list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

/* Plan items styling */
.plan-item {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.75rem;
}

.plan-item::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

/* Language dropdown styling */
.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
}

#languageDropdown {
  min-width: 90px;
  padding: 0.375rem 0.75rem;
}

.dropdown-menu {
  min-width: 160px;
  border: 1px solid var(--mist);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--sand);
}

.dropdown-item:active {
  background-color: var(--mist);
}

.dropdown-item .flag-icon {
  width: 24px;
  display: inline-flex;
  justify-content: center;
}
/* Page Shell - Common page wrapper */
.page-shell {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

/* Hero Video - Subpage header */
.hero-video {
  position: relative;
  min-height: 280px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 26, 42, 0.92), rgba(18, 49, 71, 0.82)), url('/img/background-video-1-webbg-20fps-420p.mp4') center/cover no-repeat;
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.16);
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 42, 0.2) 0%, rgba(11, 26, 42, 0.82) 75%);
}

.hero-video__content {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  color: #ffffff;
}

.hero-video .section-label {
  color: var(--teal);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Info Card */
.info-card {
  border-radius: 1.2rem;
  border: 1px solid var(--mist);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

/* Job Card */
.job-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

/* Pills */
.pill, .tag-pill {
  background: rgba(27, 142, 166, 0.12);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.metric-pill {
  background: rgba(14, 165, 233, 0.1);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Pillar Card */
.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.2);
  border-color: var(--teal);
}

/* Blog Card Cover */
.blog-card__cover {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  object-fit: cover;
}

/* Blog Meta */
.blog-meta {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-video {
    min-height: 220px;
  }

  .hero-video__content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}