/* ═══════════════════════════════════════════════════════════════
   Service Wheel
   ═══════════════════════════════════════════════════════════════ */

/* Side-by-side layout: wheel left, content right (auto-flips in RTL) */
.wheel-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.wheel-wrapper {
  position: relative;
  width: min(540px, 48vw);
  height: min(540px, 48vw);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Outer ring (rotates) ── */
.wheel-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wheel-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(58, 180, 233, 0.15);
}

.wheel-ring::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(58, 180, 233, 0.1);
}

/* ── Each segment (positioned on the arc by JS) ── */
.wheel-segment {
  position: absolute;
  z-index: 3;
  padding: 4px 6px;
  background: transparent;
  pointer-events: none;
  max-width: 110px;
  /* left/top set by JS */
}

.wheel-segment-label {
  display: block;
  font-size: clamp(0.5rem, 1.1vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #8a8f98);
  white-space: pre-line;
  line-height: 1.25;
  transition: color 0.3s, text-shadow 0.3s;
  text-align: center;
  pointer-events: none;
  /* rotation set by JS to follow circle tangent */
}

.wheel-segment.active .wheel-segment-label {
  color: #3ab4e9;
  text-shadow: 0 0 20px rgba(58, 180, 233, 0.5);
}

.wheel-segment.wedge-hover .wheel-segment-label {
  color: #2aebeb;
}

/* ── Wedge SVG overlay (pie-slice indicators) ── */
.wheel-wedge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.wheel-wedge {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  transition: fill 0.35s, stroke 0.35s, stroke-width 0.35s;
  pointer-events: none;
}

.wheel-wedge.hover {
  fill: rgba(58, 180, 233, 0.06);
  stroke: rgba(58, 180, 233, 0.2);
  stroke-width: 0.3;
}
/* Radial divider lines between segments */
.wheel-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 0;
  background: linear-gradient(90deg, transparent 30%, rgba(58, 180, 233, 0.08) 55%, rgba(58, 180, 233, 0.04) 100%);
  pointer-events: none;
}

/* ── Middle ring (decorative) ── */
.wheel-mid-ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-mid-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(58, 180, 233, 0.12);
  animation: wheel-dash-spin 60s linear infinite;
}

@keyframes wheel-dash-spin {
  to { transform: rotate(360deg); }
}

/* ── Core circle ── */
.wheel-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(58, 180, 233, 0.12), rgba(10, 10, 20, 0.95));
  border: 2px solid rgba(58, 180, 233, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 5;
  box-shadow: 0 0 40px rgba(58, 180, 233, 0.1), inset 0 0 30px rgba(58, 180, 233, 0.05);
}

.wheel-core-icon svg {
  width: 32px;
  height: 32px;
  stroke: #3ab4e9;
  opacity: 0.7;
}

.wheel-core-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3ab4e9;
  opacity: 0.8;
}

/* ── Top pointer ── */
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 14px;
  z-index: 10;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.6));
}

.wheel-pointer svg {
  width: 100%;
  height: 100%;
}

/* ── Entrance animation ── */
.wheel-wrapper.entering .wheel-ring {
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Decorative orbiting particles */
.wheel-wrapper::before,
.wheel-wrapper::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(58, 180, 233, 0.4);
  z-index: 0;
}

.wheel-wrapper::before {
  top: 10%;
  left: 8%;
  animation: wheel-float 6s ease-in-out infinite;
}

.wheel-wrapper::after {
  bottom: 12%;
  right: 10%;
  animation: wheel-float 8s ease-in-out infinite reverse;
}

@keyframes wheel-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(8px, -12px); opacity: 0.7; }
}

/* Outer glow ring pulse */
.wheel-ring-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, transparent, rgba(58, 180, 233, 0.15), transparent, rgba(42, 235, 235, 0.1), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: wheel-glow-spin 10s linear infinite;
  pointer-events: none;
}

@keyframes wheel-glow-spin {
  to { transform: rotate(360deg); }
}

/* ── Radar Sweep ── */
.wheel-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 280deg,
    rgba(58, 180, 233, 0.07) 300deg,
    rgba(58, 180, 233, 0.20) 322deg,
    rgba(58, 180, 233, 0.38) 340deg,
    rgba(42, 235, 235, 0.55) 352deg,
    rgba(58, 180, 233, 0.72) 360deg
  );
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 13%,
    rgba(0,0,0,0.85) 18%,
    rgba(0,0,0,0.7) 30%,
    rgba(0,0,0,0.45) 42%,
    rgba(0,0,0,0.18) 52%,
    transparent 56%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 13%,
    rgba(0,0,0,0.85) 18%,
    rgba(0,0,0,0.7) 30%,
    rgba(0,0,0,0.45) 42%,
    rgba(0,0,0,0.18) 52%,
    transparent 56%
  );
  animation: radar-spin 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Radar ping rings — expand from core outward */
.wheel-radar-ping {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(58, 180, 233, 0.25);
  pointer-events: none;
  z-index: 2;
  animation: radar-ping 4s ease-out infinite;
}

.wheel-radar-ping--delayed {
  animation-delay: -2s;
}

@keyframes radar-ping {
  0%   { inset: 34%; opacity: 0.45; border-color: rgba(58, 180, 233, 0.3); }
  100% { inset: -2%; opacity: 0;    border-color: rgba(58, 180, 233, 0); }
}

/* ═══ Wheel Tab Panels ═══ */
.wheel-tab-panel {
  display: none;
}

.wheel-tab-panel.active {
  display: block;
}

/* ═══ Content Panel (beside Wheel) ═══ */

.wheel-content-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 500px;
  min-height: 200px;
  perspective: 800px;
}

.wheel-content-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.96) rotateX(4deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s ease,
              border-color 0.6s ease;
  pointer-events: none;
  text-align: left;
  padding: 2rem 1.5rem;
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  border-radius: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

[dir="rtl"] .wheel-content-card {
  text-align: right;
}

.wheel-content-card.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  pointer-events: auto;
  position: relative;
  border-color: rgba(58, 180, 233, 0.15);
  box-shadow:
    0 0 0 1px rgba(58, 180, 233, 0.06),
    0 0 40px rgba(58, 180, 233, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Top gradient accent line */
.wheel-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3ab4e9 20%, #2aebeb 50%, #3ab4e9 80%, transparent 100%);
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  z-index: 2;
}

.wheel-content-card.active::before {
  transform: scaleX(1);
}

/* Shimmer sweep on activation */
.wheel-content-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(58, 180, 233, 0.04) 42%,
    rgba(58, 180, 233, 0.09) 50%,
    rgba(58, 180, 233, 0.04) 58%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}

.wheel-content-card.active::after {
  animation: card-shimmer 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

@keyframes card-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* HUD accent bar (replaces emoji icons) */
.card-hud-accent {
  display: flex;
  align-items: center;
  height: 12px;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.card-hud-accent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ab4e9;
  box-shadow: 0 0 8px rgba(58, 180, 233, 0.6);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.wheel-content-card.active .card-hud-accent::before {
  opacity: 1;
  animation: hud-pulse 2s ease-in-out 0.5s infinite;
}

.card-hud-accent::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(58, 180, 233, 0.5), rgba(42, 235, 235, 0.2) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

[dir="rtl"] .card-hud-accent::after {
  transform-origin: right;
  background: linear-gradient(-90deg, rgba(58, 180, 233, 0.5), rgba(42, 235, 235, 0.2) 40%, transparent);
}

.wheel-content-card.active .card-hud-accent::after {
  transform: scaleX(1);
}

@keyframes hud-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(58, 180, 233, 0.4); }
  50%      { box-shadow: 0 0 14px rgba(58, 180, 233, 0.8), 0 0 28px rgba(58, 180, 233, 0.2); }
}

.wheel-content-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.wheel-content-card p {
  font-size: 0.95rem;
  color: var(--text-muted, #8a8f98);
  line-height: 1.7;
  max-width: 480px;
}

/* ═══ Light Mode ═══ */
[data-theme="light"] .wheel-core {
  background: radial-gradient(circle at 30% 30%, rgba(58, 180, 233, 0.08), rgba(245, 245, 250, 0.95));
  border-color: rgba(58, 180, 233, 0.2);
}

[data-theme="light"] .wheel-radar-sweep {
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(58, 180, 233, 0.45) 0deg,
    rgba(42, 235, 235, 0.30) 15deg,
    rgba(58, 180, 233, 0.16) 40deg,
    rgba(58, 180, 233, 0.06) 75deg,
    transparent 120deg,
    transparent 360deg
  );
}

[data-theme="light"] .wheel-radar-ping {
  border-color: rgba(58, 180, 233, 0.15);
}

[data-theme="light"] .wheel-content-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wheel-content-card.active {
  border-color: rgba(58, 180, 233, 0.2);
  box-shadow:
    0 0 0 1px rgba(58, 180, 233, 0.08),
    0 0 30px rgba(58, 180, 233, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-hud-accent::before {
  background: #1a8fc4;
}

[data-theme="light"] .card-hud-accent::after {
  background: linear-gradient(90deg, rgba(26, 143, 196, 0.4), rgba(42, 235, 235, 0.15) 40%, transparent);
}

[data-theme="light"] .wheel-segment-label {
  color: var(--text-muted, #666);
}

[data-theme="light"] .wheel-segment.active .wheel-segment-label {
  color: #1a8fc4;
  text-shadow: none;
}

[data-theme="light"] .wheel-segment:hover .wheel-segment-label,
[data-theme="light"] .wheel-segment.wedge-hover .wheel-segment-label {
  color: #0e7fb0;
}

/* ═══ Mobile ═══ */
@media (max-width: 768px) {
  .wheel-layout {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  [dir="rtl"] .wheel-layout {
    flex-direction: column;
  }

  /* Wheel fills almost the full screen width */
  .wheel-wrapper {
    width: min(95vw, calc(100svh - var(--nav-height, 64px) - 12rem));
    height: min(95vw, calc(100svh - var(--nav-height, 64px) - 12rem));
    align-self: center;
    /* Enable container queries so labels can scale with the wheel size,
       not just the viewport — prevents overlap on narrow screens. */
    container-type: inline-size;
    container-name: wheel;
  }

  /* Larger labels for the bigger wheel */
  .wheel-segment-label {
    font-size: clamp(0.62rem, 2.2vw, 0.75rem);
    letter-spacing: 0.4px;
  }

  /* Content panel: full-width, no vertical offset */
  .wheel-content-panel {
    max-width: 100%;
    width: 100%;
    transform: none !important;
  }

  .wheel-content-card {
    text-align: center;
  }
  [dir="rtl"] .wheel-content-card {
    text-align: center;
  }

  /* Hide the read-more connector on stacked mobile (content sits directly below) */
  .wheel-readmore-cta { display: none !important; }

  /* Tiers grid: single column so cards never overflow */
  .tiers-grid {
    grid-template-columns: 1fr;
  }

  /* Upgrade path flow: horizontal scroll so arrows stay linear */
  .services-upgrade-flow {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 180, 233, 0.3) transparent;
    justify-content: flex-start !important;
  }
  .services-upgrade-flow > div[style] {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .wheel-wrapper {
    width: 90vw;
    height: 90vw;
  }
  .wheel-segment-label {
    font-size: clamp(0.55rem, 2vw, 0.65rem);
    letter-spacing: 0.5px;
  }
  .wheel-content-card {
    padding: 1.5rem 1rem;
  }
  .wheel-content-card h3 {
    font-size: 1.15rem;
  }
}

/* When the wheel itself becomes small (regardless of viewport), shrink the
   labels so adjacent segment names don't overlap each other. Container
   queries respond to .wheel-wrapper's actual rendered width. */
@container wheel (max-width: 380px) {
  .wheel-segment {
    max-width: 78px;
    padding: 2px 3px;
  }
  .wheel-segment-label {
    font-size: clamp(0.48rem, 3.4cqw, 0.6rem);
    letter-spacing: 0.25px;
    line-height: 1.15;
  }
}

@container wheel (max-width: 300px) {
  .wheel-segment {
    max-width: 64px;
  }
  .wheel-segment-label {
    font-size: clamp(0.42rem, 3.2cqw, 0.52rem);
    letter-spacing: 0.2px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   "Read More" CTA — anchored at the BOTTOM-CENTER of the content
   panel beside the wheel. A slim glowing line drops down from the
   panel and ends in the Read More badge, whose width defines the
   "length" of the trace (per the new design spec).
   ═══════════════════════════════════════════════════════════════ */
.wheel-readmore-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  margin: 1.25rem auto 0;
  padding: 0;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 4;
  width: max-content;
  max-width: 100%;
}

/* The slim vertical glowing line that drops from the card bottom-center.
   Its height equals the badge's apparent line-length so the whole CTA
   reads as one continuous element. */
.wheel-readmore-line {
  display: block;
  width: 1.2px;
  height: 38px;
  background: linear-gradient(180deg,
    rgba(58, 180, 233, 0)    0%,
    rgba(58, 180, 233, 0.55) 30%,
    rgba(42, 235, 235, 0.95) 100%);
  box-shadow: 0 0 6px rgba(42, 235, 235, 0.5);
  border-radius: 2px;
  position: relative;
}
.wheel-readmore-line::after {
  /* Comet that travels down the line continuously */
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 50%, rgba(255,255,255,0));
  box-shadow: 0 0 8px rgba(255,255,255,0.85);
  animation: wheelReadMoreLineFlow 2.2s ease-in-out infinite;
}
@keyframes wheelReadMoreLineFlow {
  0%   { transform: translateY(-12px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(38px);  opacity: 0; }
}

/* Read More badge — borderless glass pill with a soft brand glow */
.wheel-readmore-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 0 22px rgba(58, 180, 233, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wheel-readmore-cta:hover .wheel-readmore-badge {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(42, 235, 235, 0.45);
}

.wheel-readmore-badge-text {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3ab4e9, #2aebeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.4));
}

.wheel-readmore-badge-arrow {
  width: 12px;
  height: 12px;
  color: #2aebeb;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.7));
  animation: wheelReadMoreBadgeArrowBob 1.6s ease-in-out infinite;
}
@keyframes wheelReadMoreBadgeArrowBob {
  0%, 100% { transform: translateY(-1px); }
  50%      { transform: translateY( 2px); }
}

/* Lift the content panel a touch so the card visually sits ABOVE the
   wheel's vertical centerline — the new arrow then lands cleanly on the
   horizontal axis the user pointed at. */
.wheel-content-panel {
  transform: translateY(-12px);
}

/* Reduced-motion: kill animations but keep visuals */
@media (prefers-reduced-motion: reduce) {
  .wheel-readmore-line::after,
  .wheel-readmore-badge-arrow {
    animation: none !important;
  }
  .wheel-content-panel {
    transform: none;
  }
}

/* ─── Tier Cards ─── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tier-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: all var(--transition-med);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-med);
  transform-origin: left;
}

.tier-card:hover::before {
  transform: scaleX(1);
}

.tier-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(58, 180, 233, 0.06), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tier-card:hover::after {
  opacity: 1;
}

.tier-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-lg);
}

.tier-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.3;
  line-height: 1;
}

.tier-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.12), rgba(42, 235, 235, 0.05));
}

.tier-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-3);
}

.tier-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.tier-card .tier-employees {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.tier-card .tier-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tier-card .tier-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tier-card .cost-bar {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--glass-border);
  transition: background var(--transition-fast);
}

.tier-card .cost-bar.active {
  background: var(--accent-3);
}

.tier-card .tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-card .tier-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tier-card .tier-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-4);
}

.tier-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-4);
  transition: all var(--transition-fast);
}

.tier-card .card-link:hover {
  gap: 0.75rem;
}


/* ─── Comparison Table ─── */
/* Mobile selector — hidden on desktop */
.comparison-mobile-selector { display: none; }
.comparison-mobile-cards { display: none; }

@media (max-width: 768px) {
  .comparison-wrapper { display: none; }
  .comparison-mobile-selector {
    display: block; margin-top: 2rem; text-align: center;
  }
  .comparison-mobile-hint {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem;
  }
  .comparison-select-row {
    display: flex; align-items: center; gap: 0.75rem; justify-content: center;
  }
  .comparison-select {
    flex: 1; max-width: 180px; padding: 0.65rem 1rem;
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--glass-border); border-radius: 12px;
    font-family: inherit; font-size: 0.9rem; cursor: pointer;
    transition: border-color 0.2s;
  }
  .comparison-select:focus { border-color: var(--accent-3); outline: none; }
  .comparison-vs {
    font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
    color: var(--accent-4); letter-spacing: 0.1em;
  }
  .comparison-mobile-cards {
    display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem;
  }
  .comp-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 1rem 1.25rem; transition: border-color 0.2s;
  }
  .comp-card:hover { border-color: var(--glass-border-hover); }
  .comp-card-label {
    font-weight: 600; font-size: 0.85rem; color: var(--text-secondary);
    margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  }
  .comp-card-values { display: flex; gap: 1rem; }
  .comp-card-val {
    flex: 1; text-align: center; padding: 0.6rem;
    background: var(--bg-primary); border-radius: 10px;
    font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem;
  }
  .comp-card-tier { font-size: 0.75rem; font-weight: 600; }
  .comp-card-val .check { color: var(--accent-5); font-size: 1.1rem; }
  .comp-card-val .cross { color: var(--text-muted); }
}

.comparison-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-2) var(--bg-secondary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
  white-space: nowrap;
}

.comparison-table thead th {
  background: rgba(10, 22, 40, 0.8);
  position: sticky;
  top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-4);
  backdrop-filter: blur(10px);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: rgba(58, 180, 233, 0.03);
}

.comparison-table .check {
  color: var(--accent-5);
}

.comparison-table .cross {
  color: var(--text-muted);
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 340px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card .card-link {
  margin-top: auto !important;
  padding-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.feature-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-md);
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.1), rgba(42, 235, 235, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Delivery card — full-bleed background photo */
.feature-card--delivery {
  position: relative;
  overflow: hidden;
}

.delivery-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.delivery-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.2) 0%, rgba(10, 15, 30, 0.5) 100%);
  transition: background 0.4s ease;
}

.feature-card--delivery h4,
.feature-card--delivery p {
  position: relative;
  z-index: 2;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.7);
  paint-order: stroke fill;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.feature-card--delivery .card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.12em;
  color: #fff;
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, padding 0.4s ease;
}

/* Gradient text */
.feature-card--delivery .card-link .card-link__text {
  background: linear-gradient(90deg, #3ab4e9, #2aebeb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s ease;
}

.feature-card--delivery .card-link:hover .card-link__text {
  filter: brightness(1.3);
}

/* Rotating border beam */
.feature-card--delivery .card-link::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 60%,
    #3ab4e9 72%,
    #2aebeb 82%,
    #3ab4e9 92%,
    transparent 100%
  );
  z-index: -2;
  animation: border-beam 3s linear infinite;
}

/* Solid fill behind text */
.feature-card--delivery .card-link::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: #0a0f1e;
  z-index: -1;
  overflow: hidden;
}

/* Shimmer streak across pill */
.feature-card--delivery .card-link .card-link__shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 100px;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(58, 180, 233, 0.12) 42%,
    rgba(42, 235, 235, 0.18) 50%,
    rgba(58, 180, 233, 0.12) 58%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: pill-shimmer 12s ease-in-out infinite;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-beam {
  to { --beam-angle: 360deg; }
}

@keyframes pill-shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

.feature-card--delivery .card-link:hover {
  transform: scale(1.08) translateY(-2px);
}

.feature-card--delivery .card-link:hover::before {
  animation-duration: 1s;
}

.feature-card--delivery .card-link .card-link__line {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, #3ab4e9, #2aebeb);
  vertical-align: middle;
  border-radius: 1px;
  flex-shrink: 0;
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
}

.feature-card--delivery .card-link .card-link__chevron {
  vertical-align: middle;
  stroke: #2aebeb;
  flex-shrink: 0;
  margin-left: -0.35rem;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
  transition: filter 0.3s ease;
}

.feature-card--delivery .card-link:hover .card-link__line {
  width: 100px;
  filter: drop-shadow(0 0 8px rgba(42, 235, 235, 0.9)) drop-shadow(0 0 16px rgba(58, 180, 233, 0.5));
}

.feature-card--delivery .card-link:hover .card-link__chevron {
  filter: drop-shadow(0 0 8px rgba(42, 235, 235, 0.9)) drop-shadow(0 0 16px rgba(58, 180, 233, 0.5));
}

.delivery-route {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
}

.delivery-route svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.delivery-path {
  stroke-dashoffset: 0;
  animation: delivery-dash 10s linear infinite;
}

@keyframes delivery-dash {
  to { stroke-dashoffset: -40; }
}

.delivery-dot {
  animation: delivery-pulse 4s ease-in-out infinite;
}

.delivery-dot-end {
  animation: delivery-pulse 4s ease-in-out 2s infinite;
}

@keyframes delivery-pulse {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 5; opacity: 0.6; }
}

/* Traveling dot along route (positioned via SVG animateMotion) */
.delivery-traveler-glow {
  filter: blur(3px);
}

.delivery-traveler {
  filter: drop-shadow(0 0 8px #3ab4e9) drop-shadow(0 0 16px rgba(58, 180, 233, 0.8)) drop-shadow(0 0 28px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 40px rgba(42, 235, 235, 0.3));
}

.delivery-path {
  filter: none;
}

.delivery-dot {
  filter: drop-shadow(0 0 6px #3ab4e9) drop-shadow(0 0 14px rgba(58, 180, 233, 0.6)) drop-shadow(0 0 22px rgba(58, 180, 233, 0.3));
}

.delivery-dot-end {
  filter: drop-shadow(0 0 6px #2aebeb) drop-shadow(0 0 14px rgba(42, 235, 235, 0.6)) drop-shadow(0 0 22px rgba(42, 235, 235, 0.3));
}

/* Floating package icons */
.delivery-floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.delivery-floater {
  position: absolute;
  font-size: 0.85rem;
  opacity: 0;
  animation: delivery-float 12s ease-in-out infinite;
}

.delivery-floater:nth-child(1) {
  left: 15%;
  bottom: 10%;
  animation-delay: 0s;
}

.delivery-floater:nth-child(2) {
  left: 50%;
  bottom: 15%;
  animation-delay: 4s;
}

.delivery-floater:nth-child(3) {
  left: 80%;
  bottom: 8%;
  animation-delay: 8s;
}

@keyframes delivery-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  15%  { opacity: 0.5; }
  50%  { opacity: 0.3; transform: translateY(-40px) scale(1); }
  85%  { opacity: 0; }
  100% { opacity: 0; transform: translateY(-70px) scale(0.6); }
}

/* Shimmer scan-line */
.delivery-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(58, 180, 233, 0.08) 45%,
    rgba(42, 235, 235, 0.12) 50%,
    rgba(58, 180, 233, 0.08) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: delivery-shimmer 8s ease-in-out infinite;
}

@keyframes delivery-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Parallax tilt */
.feature-card--delivery {
  transition: transform 0.3s ease;
}

.feature-card--delivery:hover .delivery-bg-img {
  opacity: 0.9;
  transform: scale(1.06);
}

.feature-card--delivery:hover .delivery-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.2) 0%, rgba(10, 15, 30, 0.5) 100%);
}

.feature-card--delivery:hover .delivery-path {
  animation-duration: 1.5s;
}

.feature-card--delivery:hover .delivery-dot-end {
  filter: drop-shadow(0 0 10px #2aebeb) drop-shadow(0 0 20px rgba(42, 235, 235, 0.7)) drop-shadow(0 0 30px rgba(42, 235, 235, 0.4));
}

/* Light mode delivery card */
[data-theme="light"] .delivery-bg-img {
  opacity: 0.85;
}

[data-theme="light"] .delivery-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.25) 0%, rgba(10, 20, 40, 0.55) 100%);
}

[data-theme="light"] .feature-card--delivery h4,
[data-theme="light"] .feature-card--delivery p {
  color: #fff;
  -webkit-text-stroke: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .feature-card--delivery .card-link::after {
  background: #0d304a;
}

[data-theme="light"] .feature-card--delivery .card-link .card-link__chevron {
  stroke: #2aebeb;
}

[data-theme="light"] .delivery-route {
  background: none;
  border-color: transparent;
}

[data-theme="light"] .feature-card--delivery:hover .delivery-bg-img {
  opacity: 0.9;
}

[data-theme="light"] .feature-card--delivery:hover .delivery-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.15) 0%, rgba(10, 20, 40, 0.45) 100%);
}


/* ─── Security Shield Animation ─── */
.security-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.security-shield-svg {
  width: 50px;
  height: 60px;
  overflow: visible;
}

/* Shield outline draws in */
.shield-path {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: shield-draw 3s ease forwards, shield-glow 4s ease-in-out 3s infinite;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 12px rgba(42, 235, 235, 0.3));
}

@keyframes shield-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes shield-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 12px rgba(42, 235, 235, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(58, 180, 233, 0.8)) drop-shadow(0 0 20px rgba(42, 235, 235, 0.5)); }
}

/* Checkmark draws after shield */
.shield-check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: shield-check-draw 0.6s ease forwards 2.5s;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
}

@keyframes shield-check-draw {
  to { stroke-dashoffset: 0; }
}

/* Scanning line sweeps up and down */
.shield-scan {
  animation: shield-scan-move 3s ease-in-out infinite 3s;
}

@keyframes shield-scan-move {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-50px); opacity: 0.6; }
}

/* Orbiting security dots */
.shield-dot-1 {
  cx: 60;
  cy: 5;
  animation: shield-orbit-1 6s linear infinite;
  filter: drop-shadow(0 0 4px #3ab4e9);
}

.shield-dot-2 {
  cx: 60;
  cy: 5;
  animation: shield-orbit-2 8s linear infinite reverse;
  filter: drop-shadow(0 0 4px #2aebeb);
}

@keyframes shield-orbit-1 {
  0%   { cx: 60;  cy: 5;   }
  25%  { cx: 110; cy: 55;  }
  50%  { cx: 60;  cy: 130; }
  75%  { cx: 10;  cy: 55;  }
  100% { cx: 60;  cy: 5;   }
}

@keyframes shield-orbit-2 {
  0%   { cx: 60;  cy: 130; }
  25%  { cx: 110; cy: 75;  }
  50%  { cx: 60;  cy: 5;   }
  75%  { cx: 10;  cy: 75;  }
  100% { cx: 60;  cy: 130; }
}

/* ─── Cloud Animation ─── */
.cloud-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cloud-svg {
  width: 120px;
  height: 60px;
  overflow: visible;
}

/* Cloud outline draws in */
.cloud-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: cloud-draw 2.5s ease forwards, cloud-glow 4s ease-in-out 2.5s infinite;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 12px rgba(42, 235, 235, 0.3));
}

@keyframes cloud-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes cloud-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 12px rgba(42, 235, 235, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(58, 180, 233, 0.8)) drop-shadow(0 0 20px rgba(42, 235, 235, 0.5)); }
}

/* Upload arrow bobs */
.cloud-arrow {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: cloud-arrow-draw 0.5s ease forwards 2s, cloud-arrow-bob 2s ease-in-out 2.5s infinite;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
}

@keyframes cloud-arrow-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes cloud-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Data particles rising into cloud */
.cloud-particle {
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(58, 180, 233, 0.6));
}

.cloud-particle-1 { animation: cloud-rise 3s ease-in-out 3s infinite; }
.cloud-particle-2 { animation: cloud-rise 3s ease-in-out 3.5s infinite; }
.cloud-particle-3 { animation: cloud-rise 3s ease-in-out 4s infinite; }
.cloud-particle-4 { animation: cloud-rise 3s ease-in-out 4.5s infinite; }
.cloud-particle-5 { animation: cloud-rise 3s ease-in-out 5s infinite; }

@keyframes cloud-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.8; }
  60%  { opacity: 0.4; transform: translateY(-35px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.3); }
}

/* ─── Scalable Tiers Animation ─── */
.scale-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.scale-svg {
  width: 140px;
  height: 60px;
  overflow: visible;
}

.scale-bar {
  height: 0;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.5));
}

.scale-bar-1 { animation: scale-grow 0.5s ease forwards 0.2s; --bar-h: 15; }
.scale-bar-2 { animation: scale-grow 0.5s ease forwards 0.4s; --bar-h: 22; }
.scale-bar-3 { animation: scale-grow 0.5s ease forwards 0.6s; --bar-h: 18; }
.scale-bar-4 { animation: scale-grow 0.5s ease forwards 0.8s; --bar-h: 32; }
.scale-bar-5 { animation: scale-grow 0.5s ease forwards 1.0s; --bar-h: 38; }
.scale-bar-6 { animation: scale-grow 0.5s ease forwards 1.2s; --bar-h: 50; }

@keyframes scale-grow {
  to { height: calc(var(--bar-h) * 1px); y: calc((60 - var(--bar-h)) * 1px); }
}

.scale-trend {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: scale-trend-draw 1.5s ease forwards 1.5s;
  filter: drop-shadow(0 0 6px rgba(42, 235, 235, 0.5));
}

@keyframes scale-trend-draw {
  to { stroke-dashoffset: 0; }
}

.scale-dot {
  filter: drop-shadow(0 0 6px #2aebeb) drop-shadow(0 0 12px rgba(42, 235, 235, 0.5));
  opacity: 0;
  animation: scale-dot-show 0.3s ease forwards 1.5s;
}

@keyframes scale-dot-show {
  to { opacity: 1; }
}

/* ─── Globe / Regional Animation ─── */
.globe-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.globe-svg {
  width: 60px;
  height: 60px;
  overflow: visible;
}

.globe-circle {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: globe-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.4));
}

@keyframes globe-draw {
  to { stroke-dashoffset: 0; }
}

.globe-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: globe-draw 2s ease forwards 0.5s;
}

.globe-lat {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: globe-draw 1.5s ease forwards 1s;
}

/* Globe slow rotation via longitude lines */
.globe-line-1 { animation: globe-draw 2s ease forwards 0.5s, globe-rotate 8s linear 2.5s infinite; transform-origin: 60px 60px; }
.globe-line-2 { animation: globe-draw 2s ease forwards 0.5s, globe-rotate 8s linear 2.5s infinite reverse; transform-origin: 60px 60px; }

@keyframes globe-rotate {
  0%   { rx: 20; }
  25%  { rx: 5; }
  50%  { rx: 20; }
  75%  { rx: 35; }
  100% { rx: 20; }
}

/* Ping dots */
.globe-ping {
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.6));
}

.globe-ping-1 { animation: globe-ping 3s ease-in-out 2s infinite; }
.globe-ping-2 { animation: globe-ping 3s ease-in-out 3s infinite; }
.globe-ping-3 { animation: globe-ping 3s ease-in-out 4s infinite; }

@keyframes globe-ping {
  0%, 100% { opacity: 0; r: 1; }
  20% { opacity: 0.9; r: 3; }
  50% { opacity: 0.5; r: 5; }
  80% { opacity: 0; r: 7; }
}

/* ─── Pricing Tag Animation ─── */
.pricing-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pricing-svg {
  width: 65px;
  height: 60px;
  overflow: visible;
}

.price-tag {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: price-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5));
}

@keyframes price-draw {
  to { stroke-dashoffset: 0; }
}

.price-hole {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: price-draw 0.5s ease forwards 1.5s;
}

.price-line {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.price-line-1 { animation: price-draw 0.4s ease forwards 2s; }
.price-line-2 { animation: price-draw 0.4s ease forwards 2.2s; }
.price-line-3 { animation: price-draw 0.4s ease forwards 2.4s; }

.price-sparkle {
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
}

.price-sparkle-1 { animation: price-sparkle 2.5s ease-in-out 2.5s infinite; }
.price-sparkle-2 { animation: price-sparkle 2.5s ease-in-out 3s infinite; }
.price-sparkle-3 { animation: price-sparkle 2.5s ease-in-out 3.5s infinite; }

@keyframes price-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ─── Disaster Recovery Animation ─── */
.disaster-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.disaster-svg {
  width: 140px;
  height: 60px;
  overflow: visible;
}

.dr-server {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}

.dr-server-1 { animation: dr-draw 1.5s ease forwards; }
.dr-server-2 { animation: dr-draw 1.5s ease forwards 0.5s; }

@keyframes dr-draw {
  to { stroke-dashoffset: 0; }
}

.dr-sync {
  stroke-dashoffset: 0;
  animation: dr-sync-flow 2s linear 2s infinite;
}

@keyframes dr-sync-flow {
  to { stroke-dashoffset: -14; }
}

.dr-arrow-r {
  opacity: 0;
  animation: dr-arrow-show 0.3s ease forwards 1.8s, dr-arrow-pulse 2s ease-in-out 2s infinite;
}

.dr-arrow-l {
  opacity: 0;
  animation: dr-arrow-show 0.3s ease forwards 2s;
}

@keyframes dr-arrow-show {
  to { opacity: 1; }
}

@keyframes dr-arrow-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.dr-status {
  opacity: 0;
}

.dr-status-1 { animation: dr-status-blink 2s ease-in-out 1.5s infinite; }
.dr-status-2 { animation: dr-status-blink 2s ease-in-out 2s infinite; }

@keyframes dr-status-blink {
  0%, 100% { opacity: 0.3; r: 2; }
  50% { opacity: 1; r: 3; filter: drop-shadow(0 0 4px #2aebeb); }
}

.dr-packet {
  opacity: 0;
}

.dr-packet-1 { animation: dr-packet-move 2.5s ease-in-out 2.5s infinite; }
.dr-packet-2 { animation: dr-packet-move 2.5s ease-in-out 3.5s infinite; }

@keyframes dr-packet-move {
  0%   { cx: 78; opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { cx: 130; opacity: 0; }
}

/* ─── Monitoring / NOC Animation ─── */
.monitor-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.monitor-svg {
  width: 160px;
  height: 60px;
  overflow: visible;
}

.monitor-pulse {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: monitor-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5)) drop-shadow(0 0 12px rgba(42, 235, 235, 0.3));
}

@keyframes monitor-draw {
  to { stroke-dashoffset: 0; }
}

.monitor-dot {
  opacity: 0;
  animation: monitor-dot-show 0.3s ease forwards 2s;
  filter: drop-shadow(0 0 8px #2aebeb) drop-shadow(0 0 16px rgba(42, 235, 235, 0.5));
}

@keyframes monitor-dot-show {
  to { opacity: 1; }
}

.monitor-alert {
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.6));
}

.monitor-alert-1 { animation: monitor-alert-ping 3s ease-in-out 2.5s infinite; }
.monitor-alert-2 { animation: monitor-alert-ping 3s ease-in-out 3.5s infinite; }
.monitor-alert-3 { animation: monitor-alert-ping 3s ease-in-out 4.5s infinite; }

@keyframes monitor-alert-ping {
  0%, 100% { opacity: 0; r: 1; }
  30% { opacity: 0.9; r: 3; }
  60% { opacity: 0.4; r: 5; }
  90% { opacity: 0; r: 2; }
}

/* ─── Services Quick Selection Guide Animations ─── */
.employees-anim,
.cloudguide-anim,
.support-anim,
.locations-anim,
.compliance-anim,
.custom-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.employees-svg { width: 80px; height: 55px; overflow: visible; }
.cloudguide-svg { width: 90px; height: 55px; overflow: visible; }
.support-svg { width: 60px; height: 60px; overflow: visible; }
.locations-svg { width: 90px; height: 55px; overflow: visible; }
.compliance-svg { width: 50px; height: 60px; overflow: visible; }
.custom-svg { width: 60px; height: 60px; overflow: visible; }

/* Employees – figures draw in */
.emp-head, .emp-body {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: emp-draw 1.5s ease forwards;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}
.emp-h2, .emp-b2 { animation-delay: 0.3s; }
.emp-h3, .emp-b3 { animation-delay: 0.6s; }
@keyframes emp-draw { to { stroke-dashoffset: 0; } }

/* Cloud guide – cloud draws in */
.cg-cloud {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: cg-draw 2s ease forwards;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}
@keyframes cg-draw { to { stroke-dashoffset: 0; } }

/* Support – headset draws + text fades */
.sup-outer, .sup-inner {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sup-draw 2s ease forwards;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.4));
}
.sup-inner { animation-delay: 0.5s; }
.sup-headset-l, .sup-headset-r {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sup-draw 1s ease 1s forwards;
}
.sup-text {
  opacity: 0;
  animation: sup-text-in 0.8s ease 1.5s forwards;
}
@keyframes sup-draw { to { stroke-dashoffset: 0; } }
@keyframes sup-text-in { to { opacity: 1; } }

/* Locations – buildings draw in */
.loc-bldg1, .loc-bldg2, .loc-bldg3 {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: loc-draw 1.5s ease forwards;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}
.loc-bldg2 { animation-delay: 0.3s; }
.loc-bldg3 { animation-delay: 0.6s; }
@keyframes loc-draw { to { stroke-dashoffset: 0; } }

/* Compliance – clipboard draws in */
.comp-board, .comp-clip {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: comp-draw 2s ease forwards;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}
.comp-clip { animation-delay: 0.3s; }
.comp-line { opacity: 0; animation: comp-line-in 0.5s ease forwards; }
.comp-l1 { animation-delay: 1s; }
.comp-l2 { animation-delay: 1.4s; }
.comp-l3 { animation-delay: 1.8s; }
.comp-l4 { animation-delay: 2.2s; }
.comp-check { stroke-dasharray: 30; stroke-dashoffset: 30; }
.comp-c1 { animation: comp-check-draw 0.5s ease 1.2s forwards; }
.comp-c2 { animation: comp-check-draw 0.5s ease 1.6s forwards; }
.comp-c3 { animation: comp-check-draw 0.5s ease 2.0s forwards; }
@keyframes comp-draw { to { stroke-dashoffset: 0; } }
@keyframes comp-line-in { to { opacity: 0.6; } }
@keyframes comp-check-draw { to { stroke-dashoffset: 0; } }

/* Custom – gear rotates */
.cust-gear-outer {
  transform-origin: 60px 55px;
  animation: cust-spin 12s linear infinite;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}
.cust-gear-inner {
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.4));
}
@keyframes cust-spin { to { transform: rotate(360deg); } }

/* ─── Guide Chain ─── */
.guide-chain-wrapper {
  position: relative;
}

.guide-chain-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.chain-link {
  fill: none;
  stroke: url(#chainGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.45;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.3));
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  pointer-events: stroke;
  cursor: default;
}

.chain-link:hover {
  opacity: 0.9;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(42, 235, 235, 0.6));
}

.chain-link.chain-link--nudged {
  filter: drop-shadow(0 0 10px rgba(42, 235, 235, 0.7));
  opacity: 0.85;
}

/* ─── SLA Card Animations ─── */
.sla-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.sla-svg {
  width: 55px;
  height: 55px;
  overflow: visible;
}

/* Critical – warning triangle draws */
.sla-warn {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: sla-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.5));
}
.sla-exclam-line {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: sla-draw 0.5s ease 1.5s forwards;
}
.sla-exclam-dot {
  opacity: 0;
  animation: sla-dot-in 0.3s ease 2s forwards;
}
@keyframes sla-draw { to { stroke-dashoffset: 0; } }
@keyframes sla-dot-in { to { opacity: 1; } }

/* High – box + arrow draws */
.sla-high-box {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: sla-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(255, 166, 61, 0.5));
}
.sla-high-arrow {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: sla-draw 1s ease 1s forwards;
}

/* Medium – circle + check draws */
.sla-med-outer {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sla-draw 2s ease forwards;
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.5));
}
.sla-med-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sla-draw 0.8s ease 1.5s forwards;
}

/* SLA card content layout */
.sla-details {
  position: relative;
  z-index: 2;
}

.sla-purpose {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.7);
  paint-order: stroke fill;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.sla-response-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.sla-tiers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.sla-tiers-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.sla-tiers-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2aebeb;
  font-weight: bold;
}

/* Light mode enhanced cards */
[data-theme="light"] .enhanced-bg-img {
  opacity: 0.85;
}

[data-theme="light"] .enhanced-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.25) 0%, rgba(10, 20, 40, 0.55) 100%);
}

[data-theme="light"] .feature-card--enhanced h4,
[data-theme="light"] .feature-card--enhanced p {
  color: #fff;
  -webkit-text-stroke: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ─── RTL Support ─── */
[dir="rtl"] .tier-card-number {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .tier-card::before {
  transform-origin: right;
}

[dir="rtl"] .comparison-table tbody td:first-child {
  text-align: right;
  left: auto;
  right: 0;
}

[dir="rtl"] .sla-tiers-list li {
  padding-left: 0;
  padding-right: 1rem;
}

[dir="rtl"] .sla-tiers-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .tier-card .tier-features li {
  flex-direction: row-reverse;
}

[dir="rtl"] .tier-card .card-link,
[dir="rtl"] .feature-card .card-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .tier-card .card-link svg,
[dir="rtl"] .feature-card .card-link svg {
  transform: scaleX(-1);
}

[dir="rtl"] #services-upgrade svg[viewBox="0 0 24 24"] {
  transform: scaleX(-1);
}

[dir="rtl"] .btn-icon {
  transform: scaleX(-1);
}

[data-theme="light"] .feature-card--enhanced .card-link::after {
  background: #0d304a;
}

[data-theme="light"] .feature-card--enhanced .card-link .card-link__chevron {
  stroke: #2aebeb;
}

[data-theme="light"] .feature-card--enhanced:hover .enhanced-bg-img {
  opacity: 0.9;
}

[data-theme="light"] .feature-card--enhanced:hover .enhanced-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.15) 0%, rgba(10, 20, 40, 0.45) 100%);
}


/* ─── Tier Selector Interactive ─── */
.tier-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.tier-selector-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tier-selector-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.tier-selector-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

/* ─── Enhanced Feature Cards (shared with home) ─── */
.feature-card--enhanced {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.enhanced-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.enhanced-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.2) 0%, rgba(10, 15, 30, 0.5) 100%);
  transition: background 0.4s ease;
}

.feature-card--enhanced h4,
.feature-card--enhanced p {
  position: relative;
  z-index: 2;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.7);
  paint-order: stroke fill;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.feature-card--enhanced ul,
.feature-card--enhanced li,
.feature-card--enhanced strong {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.feature-card--enhanced .card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.12em;
  color: #fff;
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, padding 0.4s ease;
}

.feature-card--enhanced .card-link .card-link__text {
  background: linear-gradient(90deg, #3ab4e9, #2aebeb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s ease;
}

.feature-card--enhanced .card-link:hover .card-link__text {
  filter: brightness(1.3);
}

.feature-card--enhanced .card-link::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 60%,
    #3ab4e9 72%,
    #2aebeb 82%,
    #3ab4e9 92%,
    transparent 100%
  );
  z-index: -2;
  animation: border-beam 3s linear infinite;
}

.feature-card--enhanced .card-link::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: #0a0f1e;
  z-index: -1;
  overflow: hidden;
}

.feature-card--enhanced .card-link .card-link__shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 100px;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(58, 180, 233, 0.12) 42%,
    rgba(42, 235, 235, 0.18) 50%,
    rgba(58, 180, 233, 0.12) 58%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: pill-shimmer 12s ease-in-out infinite;
}

.feature-card--enhanced .card-link:hover {
  transform: scale(1.08) translateY(-2px);
}

.feature-card--enhanced .card-link:hover::before {
  animation-duration: 1s;
}

.feature-card--enhanced .card-link .card-link__line {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, #3ab4e9, #2aebeb);
  vertical-align: middle;
  border-radius: 1px;
  flex-shrink: 0;
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
}

.feature-card--enhanced .card-link .card-link__chevron {
  vertical-align: middle;
  stroke: #2aebeb;
  flex-shrink: 0;
  margin-left: -0.35rem;
  filter: drop-shadow(0 0 4px rgba(42, 235, 235, 0.6));
  transition: filter 0.3s ease;
}

.feature-card--enhanced .card-link:hover .card-link__line {
  width: 100px;
  filter: drop-shadow(0 0 8px rgba(42, 235, 235, 0.9)) drop-shadow(0 0 16px rgba(58, 180, 233, 0.5));
}

.feature-card--enhanced .card-link:hover .card-link__chevron {
  filter: drop-shadow(0 0 8px rgba(42, 235, 235, 0.9)) drop-shadow(0 0 16px rgba(58, 180, 233, 0.5));
}

.enhanced-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(58, 180, 233, 0.08) 45%,
    rgba(42, 235, 235, 0.12) 50%,
    rgba(58, 180, 233, 0.08) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: delivery-shimmer 8s ease-in-out infinite;
}

.feature-card--enhanced:hover .enhanced-bg-img {
  opacity: 0.9;
  transform: scale(1.06);
}

.feature-card--enhanced:hover .enhanced-bg-overlay {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.15) 0%, rgba(10, 15, 30, 0.45) 100%);
}

/* ─── Division Subcategory Layout ─── */
.division-subcategory {
  margin-top: 2.5rem;
}

.subcategory-header {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
}

.subcategory-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.subcategory-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ─── Sub Cards (HUD tiles) ─── */
.sub-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Left accent bar */
.sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0.35;
  transition: opacity 0.35s ease, width 0.35s ease, box-shadow 0.35s ease;
}

/* Shimmer sweep */
.sub-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(58, 180, 233, 0.06), transparent);
  pointer-events: none;
  transition: left 0.6s ease;
}

.sub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 180, 233, 0.3);
  box-shadow: 0 8px 28px rgba(58, 180, 233, 0.1), 0 0 0 1px rgba(58, 180, 233, 0.08);
}

.sub-card:hover::before {
  opacity: 1;
  width: 4px;
  box-shadow: 0 0 12px rgba(58, 180, 233, 0.4);
}

.sub-card:hover::after {
  left: 140%;
}

.sub-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sub-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Light mode adjustments */
html[data-theme="light"] .sub-card:hover {
  box-shadow: 0 8px 28px rgba(58, 180, 233, 0.15), 0 0 0 1px rgba(58, 180, 233, 0.12);
}

html[data-theme="light"] .sub-card:hover::before {
  box-shadow: 0 0 12px rgba(58, 180, 233, 0.3);
}

@media (max-width: 600px) {
  .subcategory-grid {
    grid-template-columns: 1fr;
  }
  .subcategory-header h3 {
    font-size: 1.15rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Minimal feature card — mirrors the wheel-content-card aesthetic
   (HUD accent + glass surface + gradient top border) but lays out
   inside a feature-grid like a normal card. Used by FIND YOUR
   ECOSYSTEM TIER and SLA FRAMEWORK.
   ═══════════════════════════════════════════════════════════════ */
.feature-card--minimal {
  position: relative;
  text-align: left;
  padding: 2rem 1.5rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.feature-card--minimal:hover {
  border-color: rgba(58, 180, 233, 0.18);
  box-shadow:
    0 0 0 1px rgba(58, 180, 233, 0.06),
    0 0 40px rgba(58, 180, 233, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
[dir="rtl"] .feature-card--minimal { text-align: right; }

/* Top gradient accent line (always visible on minimal variant) */
.feature-card--minimal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3ab4e9 20%, #2aebeb 50%, #3ab4e9 80%, transparent 100%);
  z-index: 2;
}

/* HUD accent: pulsing dot + gradient line — match the wheel cards */
.feature-card--minimal .card-hud-accent {
  display: flex;
  align-items: center;
  height: 12px;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.feature-card--minimal .card-hud-accent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ab4e9;
  box-shadow: 0 0 8px rgba(58, 180, 233, 0.6);
  flex-shrink: 0;
  animation: hud-pulse 2s ease-in-out infinite;
}
.feature-card--minimal .card-hud-accent::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(58, 180, 233, 0.5), rgba(42, 235, 235, 0.2) 40%, transparent);
}
[dir="rtl"] .feature-card--minimal .card-hud-accent::after {
  background: linear-gradient(-90deg, rgba(58, 180, 233, 0.5), rgba(42, 235, 235, 0.2) 40%, transparent);
}

.feature-card--minimal h4 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.feature-card--minimal > p {
  font-size: 0.95rem;
  color: var(--text-muted, #8a8f98);
  line-height: 1.7;
  margin: 0;
}

/* SLA-specific bits inside the minimal card */
.feature-card--minimal .sla-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(58, 180, 233, 0.12);
}
.feature-card--minimal .sla-response-label {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #8a8f98);
  margin: 0 0 0.5rem;
}
.feature-card--minimal .sla-tiers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.feature-card--minimal .sla-tiers-list li {
  font-size: 0.9rem;
  color: var(--text-secondary, #c8ccd2);
  padding-left: 0.85rem;
  position: relative;
}
.feature-card--minimal .sla-tiers-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2aebeb;
  box-shadow: 0 0 6px rgba(42, 235, 235, 0.7);
}
[dir="rtl"] .feature-card--minimal .sla-tiers-list li {
  padding-left: 0;
  padding-right: 0.85rem;
}
[dir="rtl"] .feature-card--minimal .sla-tiers-list li::before {
  left: auto;
  right: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SLA Priority Cards
   Three-column grid. Each card has a colour theme (P1=red,
   P2=amber, P3=cyan), an animated icon, and a response-time bar
   chart where more bar = faster response = better coverage.
   ═══════════════════════════════════════════════════════════════ */

/* ── Grid ── */
.sla-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── Base card ── */
.sla-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 20px;
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.sla-card:hover {
  transform: translateY(-4px);
}

/* Top gradient border line (colour set per variant below) */
.sla-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--sla-c1) 25%, var(--sla-c2) 50%, var(--sla-c1) 75%, transparent 100%);
  z-index: 2;
}

/* Ambient corner glow */
.sla-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sla-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Colour themes ── */
.sla-card--p1 {
  --sla-c1: #3ab4e9;
  --sla-c2: #2aebeb;
  --sla-glow: rgba(58, 180, 233, 0.15);
  --sla-fill: linear-gradient(90deg, #3ab4e9, #2aebeb);
  color: #3ab4e9;
}
.sla-card--p1:hover {
  border-color: rgba(58, 180, 233, 0.25);
  box-shadow: 0 0 0 1px rgba(58,180,233,0.08), 0 0 40px rgba(58,180,233,0.1), 0 12px 36px rgba(0,0,0,0.25);
}

.sla-card--p2 {
  --sla-c1: #3ab4e9;
  --sla-c2: #2aebeb;
  --sla-glow: rgba(58, 180, 233, 0.15);
  --sla-fill: linear-gradient(90deg, #3ab4e9, #2aebeb);
  color: #3ab4e9;
}
.sla-card--p2:hover {
  border-color: rgba(58, 180, 233, 0.25);
  box-shadow: 0 0 0 1px rgba(58,180,233,0.08), 0 0 40px rgba(58,180,233,0.1), 0 12px 36px rgba(0,0,0,0.25);
}

.sla-card--p3 {
  --sla-c1: #3ab4e9;
  --sla-c2: #2aebeb;
  --sla-glow: rgba(58, 180, 233, 0.15);
  --sla-fill: linear-gradient(90deg, #3ab4e9, #2aebeb);
  color: #3ab4e9;
}
.sla-card--p3:hover {
  border-color: rgba(58, 180, 233, 0.25);
  box-shadow: 0 0 0 1px rgba(58,180,233,0.08), 0 0 40px rgba(58,180,233,0.1), 0 12px 36px rgba(0,0,0,0.25);
}

/* ── Priority badge (top-right corner pill) ── */
.sla-priority-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 25%, transparent);
  z-index: 3;
}

/* ── Icon area ── */
.sla-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.sla-icon svg {
  width: 100%;
  height: 100%;
  color: var(--sla-c1);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--sla-c1) 50%, transparent));
}

/* Pulsing outer rings on the icons */
.sla-ring {
  transform-origin: 40px 40px;
  animation: slaRingPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.sla-ring--2 {
  animation-delay: 1.2s;
}
@keyframes slaRingPulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  80%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* P2 arrow bob */
.sla-arrow-anim {
  animation: slaArrowBob 1.8s ease-in-out infinite;
  transform-origin: 40px 40px;
}
@keyframes slaArrowBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* P3 check draw on load */
.sla-check-anim {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: slaCheckDraw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes slaCheckDraw {
  to { stroke-dashoffset: 0; }
}

/* ── Card body ── */
.sla-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sla-card-body h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin: 0;
  line-height: 1.25;
}
.sla-card-body h4 span { color: var(--sla-c1); }

.sla-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #8a8f98);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

/* ── Response bars ── */
.sla-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sla-bar-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 3.2rem;
  align-items: center;
  gap: 0.55rem;
}

.sla-tier {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #8a8f98);
  white-space: nowrap;
}

.sla-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.sla-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--sla-fill);
  box-shadow: 0 0 6px color-mix(in srgb, var(--sla-c1) 60%, transparent);
  animation: slaBarGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
  position: relative;
}
/* Travelling shimmer on each bar */
.sla-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  border-radius: inherit;
  animation: slaBarShimmer 2.4s ease-in-out 1.4s infinite;
}
@keyframes slaBarGrow {
  to { width: var(--target); }
}
@keyframes slaBarShimmer {
  0%   { opacity: 0; transform: translateX(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-200px); }
}

.sla-time {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: currentColor;
  text-align: right;
  white-space: nowrap;
}

/* ── Light mode ── */
[data-theme="light"] .sla-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.08);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sla-ring,
  .sla-arrow-anim,
  .sla-check-anim,
  .sla-bar-fill,
  .sla-bar-fill::after {
    animation: none !important;
  }
  .sla-bar-fill { width: var(--target); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .sla-cards-grid {
    grid-template-columns: 1fr;
  }
  .sla-bar-row {
    grid-template-columns: 4rem 1fr 2.8rem;
  }
}

/* ── Services Page Global Mobile ── */
@media (max-width: 768px) {
  /* Compact hero top padding on mobile */
  #services-hero {
    padding-top: calc(var(--nav-height, 64px) + 2rem) !important;
    padding-bottom: 1rem !important;
  }
  #services-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  #services-hero p {
    font-size: 1rem !important;
  }

  /* Wheel section: less bottom padding so wheel feels full-screen */
  #services-wheel-section {
    padding-bottom: 1.5rem !important;
  }

  /* Feature grid: single column */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Upgrade section: headings and text */
  #services-upgrade .container > p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #services-hero h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  /* Tier card: tighten padding */
  .tier-card {
    padding: 1.5rem;
  }
  .tier-card-number {
    font-size: 2.25rem;
  }
}
