/* ============================================================
   ENKAURA — World-Class IT Solutions Website
   Complete Stylesheet
   ============================================================ */

/* ─── CSS Custom Properties ─── */
:root {
  /* Background */
  --bg-primary: #050a15;
  --bg-secondary: #0a1628;
  --bg-tertiary: #0f1d35;
  --bg-card: rgba(13, 27, 55, 0.6);
  
  /* Text */
  --text-primary: #e8edf5;
  --text-secondary: #b8c5d6;
  --text-muted: #7a8da6;
  
  /* Brand Blues (from Enkaura logo gradient) */
  --accent-1: #1a7aab;   /* deep brand */
  --accent-2: #2e9dd4;   /* medium brand */
  --accent-3: #3ab4e9;   /* brand left */
  --accent-4: #32d0e9;   /* brand mid */
  --accent-5: #2aebeb;   /* brand right */
  --brand-gradient: linear-gradient(90deg, #3ab4e9, #2aebeb);
  
  /* Forge orange */
  --forge-orange: #FF6D00;
  --forge-glow: rgba(255, 109, 0, 0.3);
  
  /* Glow effects */
  --glow-sm: 0 0 10px rgba(58, 180, 233, 0.15);
  --glow-md: 0 0 20px rgba(58, 180, 233, 0.2);
  --glow-lg: 0 0 40px rgba(58, 180, 233, 0.25);
  --glow-xl: 0 0 60px rgba(58, 180, 233, 0.3);
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(58, 180, 233, 0.3);
  
  /* Layout */
  --nav-height: 80px;
  --container-max: 1400px;
  --section-padding: 120px;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-med: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ─── Light Mode Overrides ─── */
[data-theme="light"] {
  /* Background */
  --bg-primary: #f5f7fb;
  --bg-secondary: #eaeff6;
  --bg-tertiary: #dfe5ef;
  --bg-card: rgba(255, 255, 255, 0.75);

  /* Text */
  --text-primary: #141b2d;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Brand Blues — slightly deeper for white backgrounds */
  --accent-1: #1a6d9a;
  --accent-2: #2589be;
  --accent-3: #2e9dd4;
  --accent-4: #2193c5;
  --accent-5: #1eb5c0;

  /* Glow effects — muted for light */
  --glow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 8px rgba(46, 157, 212, 0.08);
  --glow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 16px rgba(46, 157, 212, 0.1);
  --glow-lg: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 24px rgba(46, 157, 212, 0.1);
  --glow-xl: 0 6px 24px rgba(0, 0, 0, 0.1), 0 0 32px rgba(46, 157, 212, 0.1);

  /* Glass — darker tint on light bg */
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-bg-hover: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-hover: rgba(46, 157, 212, 0.4);
}

/* Light mode — nav background */
[data-theme="light"] .nav::before {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Light mode — mobile nav */
[data-theme="light"] .nav-links {
  background: #ffffff;
}

/* Light mode — dropdown panel */
[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Light mode — loading screen */
[data-theme="light"] .loader {
  background: var(--bg-primary);
}

/* Light mode — cursor glow */
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(46, 157, 212, 0.1), transparent 70%);
}

/* Light mode — glow orbs — soft colored ambient blobs */
[data-theme="light"] .glow-orb {
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: blur(0px);
}

/* Light mode — hide grid lines */
[data-theme="light"] .grid-bg {
  display: none;
}

/* Light mode — noise overlay */
[data-theme="light"] .noise { opacity: 0.02; }

/* Light mode — three.js particles visible as soft dark specks */
[data-theme="light"] #three-canvas {
  opacity: 0.9;
  mix-blend-mode: multiply;
  filter: saturate(1.6) brightness(0.75);
}

/* Light mode — tier card number watermark */
[data-theme="light"] .tier-card-number { color: var(--text-muted); }

/* Light mode — table headers */
[data-theme="light"] .comparison-table thead th {
  background: rgba(234, 239, 246, 0.9);
}
[data-theme="light"] .comparison-table tbody td:first-child {
  background: rgba(245, 247, 251, 0.95);
}

/* Light mode — scrollbar */
[data-theme="light"]::-webkit-scrollbar-track { background: var(--bg-primary); }
[data-theme="light"]::-webkit-scrollbar-thumb { background: #c0cfe0; }
[data-theme="light"]::-webkit-scrollbar-thumb:hover { background: #a0b4cc; }

/* Light mode — selection */
[data-theme="light"] ::selection {
  background: var(--accent-3);
  color: #ffffff;
}

/* Light mode — tracking metric bg */
[data-theme="light"] .tracking-metric {
  background: rgba(0, 0, 0, 0.02);
}

/* Light mode — logo glow */
[data-theme="light"] .logo-icon {
  box-shadow: 0 1px 6px rgba(46, 157, 212, 0.15);
}
[data-theme="light"] .logo-img {
  filter: drop-shadow(0 1px 3px rgba(46, 157, 212, 0.2));
}
[data-theme="light"] .nav-logo:hover .logo-icon {
  box-shadow: 0 0 16px rgba(46, 157, 212, 0.35), 0 0 32px rgba(46, 157, 212, 0.15);
}

/* Light mode — pipeline/timeline hover subtle bg */
[data-theme="light"] .pipeline-stage:hover {
  background: rgba(46, 157, 212, 0.04);
}
[data-theme="light"] .comparison-table tbody tr:hover {
  background: rgba(46, 157, 212, 0.04);
}
[data-theme="light"] .hardware-table tr:hover td {
  background: rgba(46, 157, 212, 0.04);
}

/* Light mode — form select arrow */
[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
}

/* Light mode — timeline/pipeline travel dots & orbital dots */
[data-theme="light"] .timeline-travel-dot,
[data-theme="light"] .pipeline-travel-dot {
  box-shadow: 0 0 14px var(--accent-3), 0 0 28px rgba(46, 157, 212, 0.4);
}

[data-theme="light"] .orbital-dot-1 {
  box-shadow: 0 0 10px var(--accent-3), 0 0 20px rgba(46, 157, 212, 0.35);
}
[data-theme="light"] .orbital-dot-2 {
  box-shadow: 0 0 8px var(--accent-5), 0 0 16px rgba(30, 181, 192, 0.35);
}
[data-theme="light"] .orbital-dot-3 {
  box-shadow: 0 0 8px var(--accent-4), 0 0 16px rgba(33, 147, 197, 0.35);
}

/* Light mode — timeline dots hover glow */
[data-theme="light"] .timeline-item:hover .timeline-dot {
  box-shadow: 0 0 20px rgba(46, 157, 212, 0.4), 0 0 40px rgba(46, 157, 212, 0.2);
}
[data-theme="light"] .timeline-detail {
  background: rgba(255, 255, 255, 0.97);
}
[data-theme="light"] .pipeline-stage:hover .pipeline-icon {
  box-shadow: 0 0 20px rgba(46, 157, 212, 0.4), 0 0 40px rgba(46, 157, 212, 0.2);
}

/* Light mode — CSS particles fallback — darker for visibility */
[data-theme="light"] .particle {
  background: var(--accent-2);
  opacity: 0;
}

/* Light mode — page transition cols */
[data-theme="light"] .page-transition .col {
  background: var(--accent-3);
}

/* Light mode — marquee dots visible */
[data-theme="light"] .marquee-item .sep {
  box-shadow: 0 0 6px rgba(46, 157, 212, 0.5);
}

/* Light mode — hero badge dot */
[data-theme="light"] .hero-badge .dot {
  box-shadow: 0 0 0 0 rgba(46, 157, 212, 0.4);
}

/* Light mode — tier card hover radial */
[data-theme="light"] .tier-card::after {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(46, 157, 212, 0.08), transparent 60%);
}

/* Light mode — dropdown item icon hover */
[data-theme="light"] .dropdown-item:hover .dropdown-item-icon {
  box-shadow: 0 0 12px rgba(46, 157, 212, 0.3);
}

/* ─── Nav Toggle Group (Search + Theme) ─── */
.nav-toggle-group {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Temporary header controls: keep only Search + User. */
.theme-toggle,
.lang-toggle {
  display: none !important;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 0;
  margin-left: -1px;
  background: var(--glass-bg);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--accent-4);
  z-index: 1;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 0 10px 10px 0;
  margin-left: -1px;
  background: var(--glass-bg);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--accent-4);
  z-index: 1;
}

.lang-toggle svg {
  width: 18px;
  height: 18px;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-left: 0;
  background: var(--glass-bg);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--accent-4);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

.search-toggle.active {
  background: var(--glass-bg-hover);
  border-color: var(--accent-4);
  color: var(--accent-4);
}

/* ─── Search Overlay ─── */
.search-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 1.5rem 2rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-overlay.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.search-container {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(58, 180, 233, 0.08);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-shortcut {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}

.search-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-results:empty {
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:hover,
.search-result-item.active {
  background: rgba(58, 180, 233, 0.08);
  color: var(--text-primary);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.12), rgba(42, 235, 235, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-text {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-title mark {
  background: none;
  color: var(--accent-4);
  font-weight: 700;
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-3);
  background: rgba(58, 180, 233, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-empty {
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(5, 10, 21, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="light"] .search-container {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-backdrop {
  background: rgba(255, 255, 255, 0.4);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  position: absolute;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

@media (max-width: 768px) {
  .nav-toggle-group {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    margin-left: 0;
  }
  .search-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px 0 0 14px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-sm);
    border-right: none;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 0 14px 14px 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-sm);
    border-left: none;
  }
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--accent-3);
  color: #050a15;
}

a {
  color: var(--accent-4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-5);
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-3);
}

/* ─── Container ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ─── Canvas Background ─── */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Page Transition Overlay ─── */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  display: flex;
}

.page-transition .col {
  flex: 1;
  background: var(--accent-1);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-med);
  display: flex;
  align-items: center;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 21, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  opacity: 1;
  transition: none;
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  position: absolute;
  left: 2rem;
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  transition: background var(--transition-fast);
}

.nav-logo:hover {
  background: transparent;
  color: var(--text-primary);
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: transparent;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(58, 180, 233, 0.2);
  position: relative;
  perspective: 600px;
  transition: box-shadow 0.4s var(--ease-out-expo), border-radius 0.4s ease;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  backface-visibility: hidden;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.3));
  transition: transform 0.5s var(--ease-spring), filter 0.4s ease;
  transform: rotateY(0deg);
}

.logo-icon .icon-home {
  width: 18px;
  height: 18px;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.5s var(--ease-spring);
  transform: rotateY(180deg);
  color: #3ab4e9;
  filter: drop-shadow(0 0 4px rgba(58, 180, 233, 0.4));
}

.nav-logo:hover .logo-icon {
  box-shadow: 0 0 24px rgba(42, 235, 235, 0.6), 0 0 48px rgba(58, 180, 233, 0.2);
  border-radius: 50%;
}

.nav-logo:hover .logo-img {
  transform: rotateY(-180deg);
}

.nav-logo:hover .logo-icon .icon-home {
  transform: rotateY(0deg);
}

/* Logo hover ring pulse */
.logo-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--accent-5);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-spring);
}

.nav-logo:hover .logo-icon::after {
  opacity: 0.7;
  transform: scale(1.15);
  animation: ring-breathe 1.2s ease-in-out infinite;
}

@keyframes ring-breathe {
  0%, 100% { transform: scale(1.15); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 0.3; }
}

/* Logo text hover — glitch-reveal */
.nav-logo .logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}

.nav-logo .logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}

.nav-logo:hover .logo-text {
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--accent-5), var(--accent-3), var(--accent-5));
  background-size: 200% 100%;
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  animation: logo-color-sweep 0.8s ease forwards;
}

/* Underline beam on hover */
.nav-logo .logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-5), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
  transform-origin: left;
}

.nav-logo:hover .logo-text::after {
  transform: scaleX(1);
}

@keyframes logo-color-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

/* Remove old sparkle pseudo-elements — replaced by ring pulse */
.nav-logo::before,
.nav-logo::after {
  content: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-3);
  border-radius: 1px;
}

.nav-cta {
  padding: 0.65rem 1.5rem !important;
  background: var(--brand-gradient) !important;
  color: white !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: var(--glow-md);
  transition: all var(--transition-fast) !important;
  margin-left: 1rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-lg) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Story Slideshow ─── */
.story-slideshow {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  min-height: 500px;
  margin-top: var(--nav-height);
  overflow: hidden;
  z-index: 2;
  background: #000;
  cursor: pointer;
}

.story-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 6s ease-out;
  z-index: 1;
  overflow: hidden; /* Prevent video bleeding on edges if container has radius */
}

.story-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.story-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.story-slide.exiting {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 3;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 4rem 4rem;
  z-index: 2;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s var(--ease-out-expo) 0.3s;
}

.story-slide.active .story-content {
  opacity: 1;
  transform: translateY(0);
}

.story-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-5);
  background: var(--bg-primary);
  border: 1px solid rgba(42, 235, 235, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.story-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.story-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 500px;
}

/* Story top bar — indicators + play/pause */
.story-top-bar {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 4rem));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.story-indicators {
  flex: 1;
  display: flex;
  gap: 6px;
}

.story-playpause {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 0;
  position: relative;
}

.story-playpause:hover {
  color: #fff;
  transform: scale(1.15);
}

.story-playpause svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.story-playpause .icon-pause {
  opacity: 1;
  transform: scale(1);
}

.story-playpause .icon-play {
  opacity: 0;
  transform: scale(0.7);
}

.story-playpause.is-paused .icon-pause {
  opacity: 0;
  transform: scale(0.7);
}

.story-playpause.is-paused .icon-play {
  opacity: 1;
  transform: scale(1);
}

.story-indicator {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
}

.story-indicator:hover {
  background: rgba(255, 255, 255, 0.4);
}

.story-indicator-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3ab4e9, #2aebeb);
  border-radius: 4px;
  transition: none;
}

.story-indicator.completed .story-indicator-fill {
  width: 100%;
}

.story-indicator.active .story-indicator-fill {
  transition: none;
}

/* Hover pause visual cue */
.story-slideshow.paused .story-content {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .story-slideshow {
    height: calc(100vh - 64px);
    min-height: 400px;
    margin-top: 64px;
  }

  .story-content {
    padding: 2rem 1.5rem 2.5rem;
  }

  .story-content h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .story-content p {
    font-size: 0.95rem;
  }

  .story-top-bar {
    bottom: 1rem;
    width: min(320px, calc(100% - 2rem));
    gap: 8px;
  }
}

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero > .container {
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-4);
  margin-bottom: 2rem;
  backdrop-filter: none;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-5);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(42, 235, 235, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(42, 235, 235, 0); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line span {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(20px);
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-4);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(58, 180, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 235, 235, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ─── 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;
}

/* ─── 3D Tier Visualization ─── */
.tier-3d-container {
  width: 100%;
  height: 400px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}

.tier-3d-canvas {
  width: 100%;
  height: 100%;
}

/* ─── Comparison Table ─── */
.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 — gradient background */
.feature-card--delivery {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #050e1f 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}

.feature-card--delivery::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.feature-card--delivery:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

@keyframes card-blob-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.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;
}

.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;
  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: inherit;
}

[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%);
}

/* ─── Enhanced Feature Cards (same style as delivery) ─── */
.feature-card--enhanced {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Per-card gradient backgrounds */
.feature-card--security {
  background: linear-gradient(135deg, #08091e 0%, #0d1030 60%, #080f28 100%);
  border-color: rgba(100, 120, 255, 0.15);
}

.feature-card--security::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 30%, rgba(100, 120, 255, 0.14) 0%, transparent 70%);
  animation: card-blob-pulse 7s ease-in-out infinite 1s;
  pointer-events: none;
}

.feature-card--security:hover {
  border-color: rgba(100, 120, 255, 0.45);
  box-shadow: 0 0 30px rgba(100, 120, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--cloud {
  background: linear-gradient(135deg, #050d1e 0%, #071428 60%, #050e22 100%);
  border-color: rgba(58, 180, 233, 0.15);
}

.feature-card--cloud::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 20%, rgba(58, 180, 233, 0.13) 0%, transparent 70%);
  animation: card-blob-pulse 8s ease-in-out infinite 2s;
  pointer-events: none;
}

.feature-card--cloud:hover {
  border-color: rgba(58, 180, 233, 0.45);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.22), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--scalable {
  background: linear-gradient(135deg, #041614 0%, #071e1a 60%, #051812 100%);
  border-color: rgba(42, 235, 180, 0.15);
}

.feature-card--scalable::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 85% 60% at 70% 80%, rgba(42, 235, 180, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6.5s ease-in-out infinite 0.5s;
  pointer-events: none;
}

.feature-card--scalable:hover {
  border-color: rgba(42, 235, 180, 0.45);
  box-shadow: 0 0 30px rgba(42, 235, 180, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--regional {
  background: linear-gradient(135deg, #050f12 0%, #071620 60%, #051218 100%);
  border-color: rgba(42, 235, 235, 0.15);
}

.feature-card--regional::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 75% 65% at 40% 50%, rgba(42, 235, 235, 0.11) 0%, transparent 70%);
  animation: card-blob-pulse 9s ease-in-out infinite 3s;
  pointer-events: none;
}

.feature-card--regional:hover {
  border-color: rgba(42, 235, 235, 0.45);
  box-shadow: 0 0 30px rgba(42, 235, 235, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--pricing {
  background: linear-gradient(135deg, #100e00 0%, #1a1600 60%, #141100 100%);
  border-color: rgba(235, 200, 42, 0.15);
}

.feature-card--pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 35%, rgba(235, 200, 42, 0.1) 0%, transparent 70%);
  animation: card-blob-pulse 7.5s ease-in-out infinite 1.5s;
  pointer-events: none;
}

.feature-card--pricing:hover {
  border-color: rgba(235, 200, 42, 0.4);
  box-shadow: 0 0 30px rgba(235, 200, 42, 0.18), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--disaster {
  background: linear-gradient(135deg, #140408 0%, #1e050c 60%, #180408 100%);
  border-color: rgba(233, 80, 80, 0.15);
}

.feature-card--disaster::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 75% 55% at 35% 65%, rgba(233, 80, 80, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 8.5s ease-in-out infinite 2.5s;
  pointer-events: none;
}

.feature-card--disaster:hover {
  border-color: rgba(233, 80, 80, 0.4);
  box-shadow: 0 0 30px rgba(233, 80, 80, 0.18), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--monitoring {
  background: linear-gradient(135deg, #021414 0%, #031e1e 60%, #021818 100%);
  border-color: rgba(42, 235, 235, 0.15);
}

.feature-card--monitoring::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 90% 50% at 50% 40%, rgba(42, 235, 235, 0.1) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite 4s;
  pointer-events: none;
}

.feature-card--monitoring:hover {
  border-color: rgba(42, 235, 235, 0.45);
  box-shadow: 0 0 30px rgba(42, 235, 235, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ── About page card types ── */
.feature-card--infra {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--infra::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--infra:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--hw {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--hw::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--hw:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--doc {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--doc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--doc:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--lock {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--lock::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--lock:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--badge {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--badge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--badge:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--checklist {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--checklist::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--checklist:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-card--audit {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}
.feature-card--audit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.feature-card--audit:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.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;
}

.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;
  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;
}

/* Shimmer streak across pill */
.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 */
.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;
}

/* Enhanced card hover */
.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%);
}

/* ─── Security Shield Animation ─── */
.security-anim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.security-shield-svg {
  width: 65px;
  height: 80px;
  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 horizontally */
.shield-scan {
  animation: shield-scan-sweep 3s ease-in-out infinite 3s;
}

@keyframes shield-scan-sweep {
  0%, 100% { transform: translateX(-14px); opacity: 0.25; }
  50% { transform: translateX(14px); opacity: 0.65; }
}

/* 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: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.scale-svg {
  width: 190px;
  height: 90px;
  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: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.globe-svg {
  width: 90px;
  height: 90px;
  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: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pricing-svg {
  width: 80px;
  height: 90px;
  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: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.disaster-svg {
  width: 190px;
  height: 90px;
  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: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.monitor-svg {
  width: 200px;
  height: 90px;
  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: inherit;
}

[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%);
}

/* ─── Orbital Animation (About Page) ─── */
.orbital-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.orbital-ring-1 {
  inset: 0;
  border: 1px solid var(--glass-border);
  animation: orbit-spin 20s linear infinite;
}

.orbital-ring-2 {
  inset: 20px;
  border: 1px solid rgba(58, 180, 233,0.15);
  animation: orbit-spin 15s linear reverse infinite;
}

.orbital-ring-3 {
  inset: 40px;
  border: 1px solid rgba(42, 235, 235,0.1);
  animation: orbit-spin 25s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbital-dot {
  position: absolute;
  border-radius: 50%;
}

.orbital-dot-1 {
  width: 10px;
  height: 10px;
  top: -5px;
  left: calc(50% - 5px);
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3), 0 0 24px rgba(58, 180, 233,0.3);
  animation: dot-pulse 2s ease-in-out infinite;
}

.orbital-dot-2 {
  width: 8px;
  height: 8px;
  bottom: -4px;
  left: calc(50% - 4px);
  background: var(--accent-5);
  box-shadow: 0 0 10px var(--accent-5), 0 0 20px rgba(42, 235, 235,0.3);
  animation: dot-pulse 2.5s ease-in-out 0.5s infinite;
}

.orbital-dot-3 {
  width: 7px;
  height: 7px;
  top: calc(50% - 3.5px);
  left: -3.5px;
  background: var(--accent-4);
  box-shadow: 0 0 10px var(--accent-4), 0 0 20px rgba(50, 208, 233,0.3);
  animation: dot-pulse 3s ease-in-out 1s infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.7); }
}

.orbital-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

/* ─── Timeline (Implementation) ─── */
/* ─── Implementation Accordion Cards ─── */
.timeline {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* When a phase is expanded, give a touch more breathing room below the
   detail panel so the next phase card visibly drops a few pixels. */
.timeline-col > .timeline-detail { margin-bottom: 0.75rem; }

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
}
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-item.is-visible:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.timeline-item.is-visible.expanded {
  border-color: var(--accent-3);
  box-shadow: 0 8px 32px rgba(58, 180, 233, 0.12);
  transform: translateY(0);
  z-index: 10;
}

.timeline-item {
  cursor: pointer;
  user-select: none;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.timeline-item:hover .timeline-dot::before,
.timeline-item.expanded .timeline-dot::before { transform: scale(1); }

.timeline-item:hover .timeline-dot,
.timeline-item.expanded .timeline-dot {
  border-color: var(--accent-5);
  box-shadow: 0 0 16px rgba(58, 180, 233, 0.3), 0 0 32px rgba(42, 235, 235, 0.1);
  transform: scale(1.08);
}

.timeline-row h4 {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-item.expanded .timeline-row h4 {
  white-space: normal;
}

.timeline-chevron {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
  margin-left: auto;
}
.timeline-item.expanded .timeline-chevron {
  transform: rotate(180deg); color: var(--accent-4);
}
.timeline-item:hover .timeline-chevron { color: var(--accent-3); }

/* Detail panel — in-flow grid row spanning all columns */
.timeline-detail {
  grid-column: 1 / -1;
  overflow: hidden;
  margin-top: -2rem;
  background: rgba(13, 27, 55, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(58, 180, 233, 0.1);
}

.timeline-detail-inner {
  padding: 1.25rem 1.5rem;
}

.timeline-detail-inner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* Detail list — single column when expanded to full width */
.timeline-details {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.timeline-details li {
  padding: 0.45rem 0; padding-left: 1.1rem; position: relative;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  border-bottom: 1px solid var(--glass-border);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
/* The last list item should not stack a stray divider against the panel's
   bottom border — it visually doubled the line and broke the rounded corner. */
.timeline-details li:last-child { border-bottom: 0; }
.timeline-item.expanded .timeline-details li {
  transform: translateX(0); opacity: 1;
}
.timeline-item.expanded .timeline-details li:nth-child(1) { transition-delay: 0.05s; }
.timeline-item.expanded .timeline-details li:nth-child(2) { transition-delay: 0.1s; }
.timeline-item.expanded .timeline-details li:nth-child(3) { transition-delay: 0.15s; }
.timeline-item.expanded .timeline-details li:nth-child(4) { transition-delay: 0.2s; }
.timeline-item.expanded .timeline-details li:nth-child(5) { transition-delay: 0.25s; }
.timeline-details li:last-child { border-bottom: none; }
.timeline-details li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-gradient);
}

/* Responsive: stack on small screens.
   At narrow widths we flatten the column wrappers so phases render
   in numerical order (1,2,3,4,5,6) rather than column-major order. */
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; gap: 0.5rem; }
  .timeline-col { display: contents; }
  .timeline-item { order: var(--phase-order, 0); }
  .timeline-detail { order: var(--phase-order, 0); }
  .timeline-row { padding: 0.65rem 0.85rem; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; margin-top: 0.75rem; gap: 0.4rem; }
  .timeline-row { padding: 0.55rem 0.75rem; }
}

/* ─── Tier Detail Page ─── */
.tier-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  position: relative;
}

.tier-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tier-hero-info {
  z-index: 2;
}

.tier-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-3);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

.tier-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all var(--transition-med);
}

.detail-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-sm);
}

.detail-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent-4);
}

.detail-card ul {
  list-style: none;
}

.detail-card li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-3);
}

/* Hardware Table */
.hardware-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hardware-table th,
.hardware-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.hardware-table th {
  color: var(--accent-4);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hardware-table td {
  color: var(--text-secondary);
}

.hardware-table tr:hover td {
  background: rgba(58, 180, 233, 0.03);
}

.optional-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(255, 152, 0, 0.1);
  color: #FFB74D;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

/* ─── About Page ─── */
.about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.value-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all var(--transition-med);
  opacity: 0;
  transform: translateY(20px);
}

.value-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-sm);
}

.value-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;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ─── Contact Page ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1.5rem 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-cell-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cell-map {
  display: flex;
  align-self: stretch;
}

.contact-cell-map .contact-map-inline {
  flex: 1;
  min-height: 220px;
  margin-top: 0;
  height: auto;
}

.whats-next-card {
  flex: 1;
}

.whats-next-card .epic-pulse-ring {
  left: auto;
  right: calc(1.75rem + 24px);
  transform: translate(50%, -50%);
}

@keyframes epicPulseRight {
  0% {
    transform: translate(50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.whats-next-card .epic-pulse-ring {
  animation-name: epicPulseRight;
}

.whats-next-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 10px rgba(58, 180, 233, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.form-group label .form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.15), rgba(42, 235, 235, 0.08));
  font-size: 0.7rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-4);
  box-shadow: 0 0 0 3px rgba(58, 180, 233, 0.1), 0 0 20px rgba(58, 180, 233, 0.05);
  background: rgba(58, 180, 233, 0.03);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus),
.form-group select:hover:not(:focus) {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899b5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  background: rgba(58, 180, 233, 0.04);
}

[data-theme="light"] .form-group input:hover:not(:focus),
[data-theme="light"] .form-group textarea:hover:not(:focus),
[data-theme="light"] .form-group select:hover:not(:focus) {
  background: rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ─── Epic Contact Map ─── */
.contact-map-epic {
  position: relative;
  margin-top: 3rem;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  border: 1px solid rgba(58, 180, 233, 0.25);
  background: var(--bg-card);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-map-epic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.08) 25%, transparent 50%, rgba(42, 235, 235, 0.06) 75%, transparent 100%);
  animation: epicCardSpin 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.contact-map-epic::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: var(--bg-card);
  z-index: 0;
}

.contact-map-epic:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 40px rgba(58, 180, 233, 0.15), 0 0 80px rgba(42, 235, 235, 0.06), 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Map Glow */
.map-glow {
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(58, 180, 233, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(42, 235, 235, 0.1), transparent 60%);
  transition: opacity 0.4s ease;
}

.contact-map-epic:hover .map-glow {
  opacity: 0.5;
}

/* Map Border Light Trail */
.map-border-light {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.map-border-light::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(58, 180, 233, 0.9), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 16px 6px rgba(58, 180, 233, 0.35);
  offset-path: path('M10,0 H calc(100%-10) Q 100%,0 100%,10 V calc(100%-10) Q 100%,100% calc(100%-10),100% H10 Q0,100% 0,calc(100%-10) V10 Q0,0 10,0 Z');
  animation: epicBorderTrace 6s linear infinite;
}

/* Map iframe */
.contact-map-epic iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  filter: grayscale(0.5) brightness(0.75) contrast(1.15) saturate(0.8);
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-map-epic:hover iframe {
  filter: grayscale(0) brightness(0.95) contrast(1.05) saturate(1);
}

[data-theme="light"] .contact-map-epic iframe {
  filter: grayscale(0.25) brightness(1) contrast(1.05);
}

[data-theme="light"] .contact-map-epic:hover iframe {
  filter: none;
}

[data-theme="light"] .contact-map-epic {
  border-color: rgba(58, 180, 233, 0.2);
}

[data-theme="light"] .contact-map-epic::after {
  background: var(--bg-primary);
}

/* Map Overlay – Pin & Label */
.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.contact-map-epic:hover .map-overlay {
  opacity: 0;
}

.map-pin {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mapPinBounce 2s ease-in-out infinite;
}

.map-pin svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-4);
  filter: drop-shadow(0 2px 8px rgba(58, 180, 233, 0.5));
}

.map-pin-pulse {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(58, 180, 233, 0.4);
  animation: mapPinPulse 2s ease-out infinite;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mapPinPulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateX(-50%) scale(4);
    opacity: 0;
  }
}

.map-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem;
  background: rgba(10, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(58, 180, 233, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .map-label {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(58, 180, 233, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* About page Deliver + Compliance cards: one shared background and border color */
.about-deliver-grid .feature-card--infra,
.about-deliver-grid .feature-card--hw,
.about-deliver-grid .feature-card--security,
.about-deliver-grid .feature-card--scalable,
.about-deliver-grid .feature-card--monitoring,
.about-deliver-grid .feature-card--disaster,
.about-compliance-grid .feature-card--doc,
.about-compliance-grid .feature-card--lock,
.about-compliance-grid .feature-card--badge,
.about-compliance-grid .feature-card--checklist,
.about-compliance-grid .feature-card--cis,
.about-compliance-grid .feature-card--monitoring,
.about-compliance-grid .feature-card--audit {
  background: linear-gradient(135deg, #050d1e 0%, #091929 60%, #071520 100%);
  border-color: rgba(58, 180, 233, 0.15);
}

.about-deliver-grid .feature-card--infra::before,
.about-deliver-grid .feature-card--hw::before,
.about-deliver-grid .feature-card--security::before,
.about-deliver-grid .feature-card--scalable::before,
.about-deliver-grid .feature-card--monitoring::before,
.about-deliver-grid .feature-card--disaster::before,
.about-compliance-grid .feature-card--doc::before,
.about-compliance-grid .feature-card--lock::before,
.about-compliance-grid .feature-card--badge::before,
.about-compliance-grid .feature-card--checklist::before,
.about-compliance-grid .feature-card--cis::before,
.about-compliance-grid .feature-card--monitoring::before,
.about-compliance-grid .feature-card--audit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 70%, rgba(58, 180, 233, 0.12) 0%, transparent 70%);
  animation: card-blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.about-deliver-grid .feature-card--infra:hover,
.about-deliver-grid .feature-card--hw:hover,
.about-deliver-grid .feature-card--security:hover,
.about-deliver-grid .feature-card--scalable:hover,
.about-deliver-grid .feature-card--monitoring:hover,
.about-deliver-grid .feature-card--disaster:hover,
.about-compliance-grid .feature-card--doc:hover,
.about-compliance-grid .feature-card--lock:hover,
.about-compliance-grid .feature-card--badge:hover,
.about-compliance-grid .feature-card--checklist:hover,
.about-compliance-grid .feature-card--cis:hover,
.about-compliance-grid .feature-card--monitoring:hover,
.about-compliance-grid .feature-card--audit:hover {
  border-color: rgba(58, 180, 233, 0.4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(1.012);
}
.map-label-city {
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-label-coords {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Epic FAQ Cards ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.faq-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.06) 25%, transparent 50%, rgba(42, 235, 235, 0.04) 75%, transparent 100%);
  animation: epicCardSpin 14s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: var(--bg-card);
  z-index: 0;
}

.faq-card:hover {
  border-color: rgba(58, 180, 233, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.1), 0 15px 35px rgba(0, 0, 0, 0.12);
}

.faq-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(58, 180, 233, 0.12), transparent 60%);
  transition: opacity 0.3s ease;
}

.faq-card:hover .faq-card-glow {
  opacity: 1;
}

.faq-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.12), rgba(42, 235, 235, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(58, 180, 233, 0.1);
}

.faq-card:hover .faq-icon {
  background: var(--brand-gradient);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 20px rgba(58, 180, 233, 0.35);
  border-color: transparent;
}

.faq-card h4 {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.faq-card:hover h4 {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-card p {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

[data-theme="light"] .faq-card:hover {
  box-shadow: 0 0 25px rgba(58, 180, 233, 0.08), 0 12px 30px rgba(0, 0, 0, 0.06);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all var(--transition-med);
}

.contact-info-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-sm);
}

/* ─── Epic Info Cards (shared) ─── */
.contact-info-card--epic {
  position: relative;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.08), rgba(42, 235, 235, 0.04));
  border-color: rgba(58, 180, 233, 0.25);
  overflow: hidden;
  cursor: pointer;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 1.75rem;
}

.contact-info-card--epic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.12) 25%, transparent 50%, rgba(42, 235, 235, 0.08) 75%, transparent 100%);
  animation: epicCardSpin 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.contact-info-card--epic::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: var(--bg-card);
  z-index: 0;
}

.contact-info-card--epic:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 0 60px rgba(42, 235, 235, 0.08), 0 20px 40px rgba(0,0,0,0.15);
}

/* Aurora Background */
.epic-aurora {
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  z-index: 1;
  opacity: 0.4;
  background:
    linear-gradient(120deg, rgba(58,180,233,0.15) 0%, transparent 40%),
    linear-gradient(240deg, rgba(42,235,235,0.12) 0%, transparent 40%),
    linear-gradient(0deg, rgba(120,80,220,0.08) 0%, transparent 40%);
  background-size: 200% 200%;
  animation: epicAurora 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes epicAurora {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
  33% { background-position: 100% 30%, 0% 70%, 30% 0%; }
  66% { background-position: 50% 100%, 50% 0%, 100% 50%; }
}

/* Border Light Trail */
.epic-border-light {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.epic-border-light::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(58,180,233,0.9), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(58,180,233,0.4);
  offset-path: path('M8,0 H calc(100%-8) Q 100%,0 100%,8 V calc(100%-8) Q 100%,100% calc(100%-8),100% H8 Q0,100% 0,calc(100%-8) V8 Q0,0 8,0 Z');
  animation: epicBorderTrace 4s linear infinite;
}

@keyframes epicBorderTrace {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Pulse Rings */
.epic-pulse-ring {
  position: absolute;
  top: 50%;
  left: calc(1.75rem + 24px);
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(58, 180, 233, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: epicPulse 3s ease-out infinite;
}

.epic-pulse-ring--2 { animation-delay: 1s; }
.epic-pulse-ring--3 { animation-delay: 2s; }

@keyframes epicPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* Glassmorphism Depth Layers */
.epic-glass {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(58,180,233,0.06);
  pointer-events: none;
  z-index: 1;
}

.epic-glass--1 {
  inset: -3px -4px -4px -3px;
  background: rgba(58,180,233,0.02);
  backdrop-filter: blur(2px);
}

.epic-glass--2 {
  inset: -6px -8px -8px -6px;
  background: rgba(42,235,235,0.01);
  backdrop-filter: blur(4px);
  border-radius: 18px;
}

/* Particle Container */
.epic-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}

.epic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}

/* Epic Card Content */
.epic-card-content {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info-card--epic .contact-info-icon {
  background: var(--brand-gradient);
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(58, 180, 233, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-info-card--epic:hover .contact-info-icon {
  box-shadow: 0 4px 25px rgba(58, 180, 233, 0.5), 0 0 40px rgba(42,235,235,0.15);
  transform: scale(1.05);
}

/* Epic Card Icon SVG animation */
.epic-icon-wrap {
  position: relative;
  overflow: visible;
}

.epic-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.epic-icon-wrap .icon-static {
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.epic-icon-wrap .icon-hover {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.8);
}

.contact-info-card--epic:hover .icon-static {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.contact-info-card--epic:hover .icon-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.contact-info-card--epic:hover .anim-path {
  animation: epicLetterSlide 0.6s 0.2s ease forwards;
}

@keyframes epicLetterSlide {
  to { stroke-dashoffset: 0; }
}

/* Epic Card Highlight Text */
.epic-highlight {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Epic Card CTA */
.epic-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-4);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.contact-info-card--epic:hover .epic-cta {
  opacity: 1;
  transform: translateX(0);
}

@keyframes epicCardSpin {
  to { transform: rotate(360deg); }
}

[data-theme="light"] .contact-info-card--epic {
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.06), rgba(42, 235, 235, 0.03));
}

[data-theme="light"] .contact-info-card--epic::after {
  background: var(--bg-primary);
}

[data-theme="light"] .epic-aurora {
  opacity: 0.25;
}

[data-theme="light"] .epic-glass--1,
[data-theme="light"] .epic-glass--2 {
  background: rgba(58,180,233,0.03);
}

.contact-info-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;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ─── Footer ─── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  background: linear-gradient(90deg, transparent 0%, rgba(5, 10, 21, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand .nav-logo {
  position: relative;
  left: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-4);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.footer-legal a:hover {
  color: var(--accent-4);
}

.footer-legal-sep {
  color: var(--glass-border-hover);
  font-size: 0.7rem;
  user-select: none;
}

/* ─── Footer Contact Section ─── */
.footer-contact {
  margin-top: 1.25rem;
}

.footer-contact-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-email-form {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.footer-email-input {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  width: 340px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.footer-email-input::placeholder {
  color: var(--text-muted);
}

.footer-email-input:focus {
  border-color: var(--accent-4);
  background: rgba(255, 255, 255, 0.08);
}

.footer-email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  font-weight: 600;
  color: #fff;
  background: var(--brand-gradient);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: filter var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.footer-email-btn:hover {
  filter: brightness(1.15);
}

/* Shared submit popup */
.enkaura-popup-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}

.enkaura-popup {
  min-width: 260px;
  max-width: min(420px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid rgba(58, 180, 233, 0.35);
  color: #e8edf5;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.enkaura-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.enkaura-popup__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(42, 235, 235, 0.2);
  color: var(--accent-3);
}

.enkaura-popup--error {
  border-color: rgba(255, 107, 107, 0.45);
}

.enkaura-popup--error .enkaura-popup__icon {
  background: rgba(255, 107, 107, 0.22);
  color: #ff8d8d;
}

.enkaura-popup__text {
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .enkaura-popup-root {
    right: 0.75rem;
    left: 0.75rem;
    align-items: stretch;
  }

  .enkaura-popup {
    min-width: 0;
    width: 100%;
  }
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-social-link:hover {
  transform: translateY(-2px);
}
.footer-social-link[aria-label="Facebook"]:hover {
  border-color: #1877F2;
  color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.footer-social-link[aria-label="YouTube"]:hover {
  border-color: #FF0000;
  color: #FF0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.footer-social-link[aria-label="Instagram"]:hover {
  border-color: #E4405F;
  color: #E4405F;
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}
.footer-social-link[aria-label="WhatsApp"]:hover {
  border-color: #25D366;
  color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.footer-social-link[aria-label="X"]:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .footer-social-link[aria-label="X"]:hover {
  border-color: #000;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.footer-social-link[aria-label="Enkaura Community"]:hover {
  border-color: var(--accent-3);
  box-shadow: 0 4px 12px rgba(58, 180, 233, 0.3);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* Enkaura logo in social links — theme-aware */
.footer-social-link .enkaura-social-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.footer-social-link .enkaura-logo-dark { display: inline; }
.footer-social-link .enkaura-logo-light { display: none; }
[data-theme="light"] .footer-social-link .enkaura-logo-dark { display: none; }
[data-theme="light"] .footer-social-link .enkaura-logo-light { display: inline; }

[data-theme="light"] .footer-email-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .footer-email-input:focus {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-social-link {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ─── Scroll Animations ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"].visible {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="fade-right"].visible {
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate="scale"].visible {
  transform: scale(1);
}

/* Staggered children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

[data-stagger].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.15s; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.1s; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.25s; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.3s; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 0.35s; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 0.4s; }
[data-stagger].visible > *:nth-child(9) { transition-delay: 0.45s; }

[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* On compact screens/reduced-motion mode, JS sets this class to prevent
   delayed reveal flicker where cards briefly appear then animate again. */
.reveal-no-anim [data-animate],
.reveal-no-anim [data-stagger] > *,
.reveal-no-anim .tier-card,
.reveal-no-anim .value-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ─── Floating Particles (CSS fallback) ─── */
.particles-css {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-3);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ─── Ambient glow orbs ─── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-2);
  top: -10%;
  right: -10%;
  animation: orbit-1 20s ease-in-out infinite;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-3);
  bottom: -10%;
  left: -5%;
  animation: orbit-2 25s ease-in-out infinite;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-5);
  top: 50%;
  left: 40%;
  animation: orbit-3 30s ease-in-out infinite;
}

@keyframes orbit-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-50px, 80px); }
  50% { transform: translate(-100px, 30px); }
  75% { transform: translate(-30px, -50px); }
}

@keyframes orbit-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(70px, -60px); }
  66% { transform: translate(30px, -100px); }
}

@keyframes orbit-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.08; }
  50% { transform: translate(-80px, 60px); opacity: 0.15; }
}

/* ─── Grid lines background ─── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(58, 180, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 180, 233, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ─── Loading Screen ─── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  opacity: 0;
  animation: loader-fade-in 0.6s ease forwards;
}

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: loader-fade-in 0.6s ease 0.2s forwards;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-5));
  border-radius: 1px;
  animation: loader-progress 1.5s var(--ease-out-expo) 0.4s forwards;
}

@keyframes loader-fade-in {
  to { opacity: 1; }
}

@keyframes loader-progress {
  to { width: 100%; }
}

/* ─── Floating CTA ─── */
.scroll-top {
  position: fixed;
  bottom: calc(2rem + 56px + 0.85rem); /* sits above the chat widget (56px) */
  right: calc(2rem + 4px); /* offset 4px right so 48px button centres over 56px chat btn */
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9001; /* above chat widget */
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  color: var(--accent-4);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--accent-3);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 180, 233, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .tier-hero-content {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 64px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: auto;
    right: -100%;
    transform: none;
    flex: none;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    flex-direction: column;
    background: rgba(5, 10, 21, 0.98);
    backdrop-filter: blur(30px);
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition-med);
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .tiers-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .tier-card {
    padding: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* ─── Marquee ─── */
.marquee-section {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee-item .sep {
  width: 8px;
  height: 8px;
  background: var(--accent-5);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── 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;
}

/* ─── Noise Texture Overlay ─── */

/* ─── Delivery Pipeline ─── */
.delivery-pipeline {
  margin-top: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.delivery-pipeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3ab4e9, #2aebeb, transparent);
}

.delivery-pipeline::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 2px;
  background: var(--accent-3);
}

.pipeline-stage {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
  transition: all var(--transition-med);
}

.pipeline-stage:hover {
  background: rgba(58, 180, 233, 0.02);
  border-radius: 16px;
}

.pipeline-number {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-3);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.pipeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.pipeline-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.pipeline-stage:hover .pipeline-icon::before {
  transform: scale(1);
}

.pipeline-stage:hover .pipeline-icon {
  border-color: var(--accent-5);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.4), 0 0 60px rgba(42, 235, 235, 0.15);
  transform: scale(1.1);
}

/* Pipeline travel dot */
.pipeline-travel-dot {
  position: absolute;
  left: 22px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-5);
  z-index: 2;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: top 0.5s var(--ease-out-expo), opacity 0.3s ease;
  box-shadow: 0 0 20px var(--accent-5), 0 0 40px rgba(42, 235, 235, 0.3);
}

.pipeline-travel-dot.active {
  opacity: 1;
}

.pipeline-content {
  flex: 1;
  padding: 0.5rem 0;
}

.pipeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.pipeline-stage:hover .pipeline-content h3 {
  color: var(--accent-4);
}

.pipeline-content > p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pipeline-details {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.pipeline-details li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.pipeline-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-3);
}

/* ─── Tracking Demo ─── */
.tracking-demo {
  margin-top: 3rem;
}

.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tracking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-5), var(--accent-3));
  background-size: 200% 100%;
  animation: tracking-shimmer 3s linear infinite;
}

@keyframes tracking-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tracking-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tracking-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.tracking-status-dot.active {
  background: #00E676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tracking-project-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tracking-metric {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.tracking-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-4);
  margin-bottom: 0.25rem;
}

.tracking-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.tracking-bar {
  height: 4px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.tracking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-5));
  border-radius: 2px;
  transition: width 1.5s var(--ease-out-expo);
}

.tracking-timeline-mini {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  position: relative;
  padding: 1rem 0;
}

.tracking-timeline-mini::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-border);
  transform: translateY(-50%);
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tracking-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.tracking-step.completed .tracking-step-dot {
  background: var(--accent-5);
  border-color: var(--accent-5);
  box-shadow: 0 0 8px rgba(42, 235, 235, 0.3);
}

.tracking-step.active .tracking-step-dot {
  background: #00E676;
  border-color: #00E676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tracking-step span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.tracking-step.completed span,
.tracking-step.active span {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .pipeline-details {
    grid-template-columns: 1fr;
  }

  .pipeline-number {
    display: none;
  }

  .tracking-timeline-mini {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }

  .tracking-step span {
    font-size: 0.6rem;
  }
}

/* ─── Market Page ─── */
.market-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  width: fit-content;
}

.market-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.market-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.market-tab.active::before {
  opacity: 1;
}

.market-tab.active {
  color: white;
  box-shadow: 0 4px 20px rgba(46, 157, 212, 0.3);
}

.market-tab:not(.active):hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.market-tab-icon,
.market-tab-text {
  position: relative;
  z-index: 1;
}

.market-panel {
  display: none;
}

.market-panel.active {
  display: block;
  animation: panel-fade-in 0.5s var(--ease-out-expo);
}

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-med);
  position: relative;
}

.market-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-lg);
}

.market-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brand-gradient);
  color: white;
  z-index: 2;
}

.market-card-badge.merch-badge {
  background: linear-gradient(135deg, #7C4DFF, #536DFE);
}

.market-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.05), rgba(42, 235, 235, 0.02));
  border-bottom: 1px solid var(--glass-border);
}

.market-card-body {
  padding: 1.5rem;
}

.market-card-body h4 {
  margin-bottom: 0.5rem;
}

.market-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.market-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-4);
}

.market-stock {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.market-stock.in-stock {
  background: rgba(0, 230, 118, 0.1);
  color: #00E676;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.market-stock.limited {
  background: rgba(255, 152, 0, 0.1);
  color: #FFB74D;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.sell-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.merch-seller {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.merch-seller span {
  color: var(--accent-4);
}

@media (max-width: 768px) {
  .market-tabs {
    width: 100%;
    flex-direction: column;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .sell-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Nav Dropdown Menus (Expanding Header) ─── */
.nav-dropdown {
  position: static;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring);
  opacity: 1;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Full-width expanding panel below the nav */
.dropdown-menu {
  position: fixed;
  top: calc(var(--nav-height) + var(--banner-height, 0px));
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(5, 10, 21, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* Top glow line */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.nav-dropdown.dropdown-open > .dropdown-menu {
  max-height: 90px;
  opacity: 1;
  pointer-events: auto;
  padding: 1rem 2rem;
  transition: max-height 0.45s var(--ease-out-expo),
              opacity 0.35s var(--ease-out-expo),
              padding 0.45s var(--ease-out-expo);
}

.nav-dropdown.dropdown-open > .dropdown-menu::before {
  opacity: 1;
}

/* Exit animation — items fade up in reverse stagger */
.nav-dropdown.dropdown-closing .dropdown-item {
  opacity: 0;
  transform: translateY(-8px);
  transition-delay: 0s;
}
.nav-dropdown.dropdown-closing .dropdown-item:nth-child(1) {
  transition-delay: 0.06s;
}
.nav-dropdown.dropdown-closing .dropdown-item:nth-child(2) {
  transition-delay: 0.03s;
}
.nav-dropdown.dropdown-closing > .dropdown-menu::before {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Switch animation — smooth crossfade when moving between sub-menus */
.nav-dropdown.dropdown-switching > .dropdown-menu {
  transition: none;
  max-height: 90px;
  opacity: 1;
  pointer-events: auto;
  padding: 1rem 2rem;
}

/* Kill outgoing menu instantly when switching */
.nav-dropdown.dropdown-switch-kill > .dropdown-menu {
  transition: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 2rem !important;
  pointer-events: none !important;
}
.nav-dropdown.dropdown-switch-kill .dropdown-item {
  transition: none !important;
  opacity: 0 !important;
}

/* Dropdown items — inline row */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary) !important;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  white-space: nowrap;
}

/* Staggered entrance */
.nav-dropdown.dropdown-open .dropdown-item {
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown.dropdown-open .dropdown-item:nth-child(1) {
  transition-delay: 0.06s;
}
.nav-dropdown.dropdown-open .dropdown-item:nth-child(2) {
  transition-delay: 0.12s;
}
.nav-dropdown.dropdown-open .dropdown-item:nth-child(3) {
  transition-delay: 0.18s;
}
.nav-dropdown.dropdown-open .dropdown-item:nth-child(4) {
  transition-delay: 0.24s;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.08), rgba(42, 235, 235, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.dropdown-item:hover {
  color: var(--text-primary) !important;
}

.dropdown-item:hover::before {
  opacity: 1;
}

/* Active dropdown sub-item (current page) */
.dropdown-item.active {
  color: var(--text-primary) !important;
}
.dropdown-item.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.18), rgba(42, 235, 235, 0.08));
  border: 1px solid rgba(58, 180, 233, 0.35);
}
.dropdown-item.active .dropdown-item-title {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.12), rgba(42, 235, 235, 0.06));
  border: 1px solid rgba(58, 180, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.dropdown-item:hover .dropdown-item-icon {
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(58, 180, 233, 0.3);
  transform: scale(1.05);
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  position: relative;
  z-index: 1;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-item:hover .dropdown-item-desc {
  color: var(--text-secondary);
}

/* Dropdown divider */
.dropdown-divider {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--glass-border);
  margin: 0 0.25rem;
}

/* Mobile dropdown behavior */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    flex-basis: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    border-left: 2px solid var(--accent-3);
    border-radius: 0 12px 12px 0;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.3s ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover > .dropdown-menu {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0;
  }

  .nav-dropdown.mobile-open > .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.5rem;
  }

  .dropdown-item {
    opacity: 1;
    transform: none;
    padding: 0.65rem 0.75rem;
  }

  .dropdown-item-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* ─── Noise Texture Overlay (original) ─── */

/* ─── Cookie Consent Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent-4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.cookie-btn--accept {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
}

.cookie-btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(58, 180, 233, 0.3);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.cookie-btn--reject:hover {
  border-color: var(--accent-4);
  color: var(--accent-4);
}

.cookie-btn--settings {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.6rem 0.5rem;
}

.cookie-btn--settings:hover {
  color: var(--accent-4);
}

/* ─── Cookie Settings Modal ─── */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 10002;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal.visible {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.cookie-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cookie-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cookie-modal-close:hover {
  border-color: var(--accent-4);
  color: var(--accent-4);
}

.cookie-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Cookie category items */
.cookie-category {
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-fast);
}

.cookie-category:hover {
  border-color: var(--glass-border-hover);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-category-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-category-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.3rem;
}

.cookie-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(58, 180, 233, 0.1);
  color: var(--accent-4);
  border: 1px solid rgba(58, 180, 233, 0.2);
  white-space: nowrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--glass-border-hover);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #3ab4e9, #2aebeb);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ─── Legal Pages Styles ─── */
.legal-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: center;
}

.legal-hero .section-label {
  margin-bottom: 1rem;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.legal-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.legal-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color var(--transition-fast);
}

.legal-section:hover {
  border-color: var(--glass-border-hover);
}

.legal-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(58,180,233,0.15), rgba(42,235,235,0.1));
  color: var(--accent-4);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section ul, .legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.legal-section li::marker {
  color: var(--accent-4);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-section a {
  color: var(--accent-4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-highlight {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(58,180,233,0.06), rgba(42,235,235,0.04));
  border-left: 3px solid var(--accent-4);
  border-radius: 0 10px 10px 0;
  margin: 1rem 0;
}

.legal-highlight p {
  margin-bottom: 0;
  font-weight: 500;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(58,180,233,0.08), rgba(42,235,235,0.05));
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--glass-border);
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner-actions {
    justify-content: center;
    width: 100%;
  }
  .cookie-modal {
    width: 95%;
    padding: 1.5rem;
  }
  .legal-section {
    padding: 1.25rem 1.25rem;
  }
}

/* ========== Solutions Page ========== */
.solutions-hero {
  text-align: center;
  padding-bottom: 2rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.solution-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent-3), var(--accent-4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.solution-card:hover::before {
  opacity: 1;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(58, 180, 233, 0.1);
}

.solution-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}
.solution-card-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.solution-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.solution-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-card-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}
.solution-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
}

.solution-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.solution-tag {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.1), rgba(42, 235, 235, 0.1));
  color: var(--accent-3);
  border: 1px solid rgba(58, 180, 233, 0.2);
}

/* Process Steps */
.solutions-process {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 1rem;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: relative;
  transition: all 0.35s ease;
}
.process-step:hover {
  border-color: var(--accent-3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(58, 180, 233, 0.08);
}

.process-step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-connector {
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.process-connector::before {
  content: '';
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  opacity: 0.4;
}
.process-connector::after {
  content: '';
  position: absolute;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent-4);
  border-right: 2px solid var(--accent-4);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* Stats */
.solutions-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.solutions-stat {
  text-align: center;
}
.solutions-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.solutions-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Solutions responsive */
@media (max-width: 900px) {
  .solutions-process {
    flex-direction: column;
    gap: 0;
  }
  .process-connector {
    width: 100%;
    min-width: unset;
    height: 32px;
  }
  .process-connector::before {
    width: 2px;
    height: 100%;
  }
  .process-connector::after {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%) rotate(135deg);
  }
  .solutions-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solutions-stat-number {
    font-size: 2.25rem;
  }
  .solution-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Top Announcement Banner ── */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  min-height: 40px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.top-banner-hidden {
  transform: translateY(-100%);
}
.top-banner-text {
  line-height: 1.4;
}
.top-banner-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin-left: 0.35rem;
}
.top-banner-link:hover {
  opacity: 0.85;
}
.top-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.top-banner-close:hover {
  opacity: 1;
}
.nav {
  top: var(--banner-height, 0);
}

/* ── Community Page ── */
.community-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.community-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.community-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.community-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.community-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.community-category:hover {
  border-color: var(--accent-3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(58,180,233,0.12);
}
.community-category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.community-category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.community-category-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.community-category-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--accent-4);
  font-family: 'JetBrains Mono', monospace;
}
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.community-post {
  display: flex;
  gap: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.community-post:hover {
  border-color: var(--accent-3);
  box-shadow: 0 4px 20px rgba(58,180,233,0.08);
}
.community-post-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.community-post-content {
  flex: 1;
  min-width: 0;
}
.community-post-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.community-post-author {
  font-weight: 600;
  font-size: 0.9rem;
}
.community-post-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag-qa { background: rgba(58,180,233,0.15); color: var(--accent-3); }
.tag-showcase { background: rgba(42,235,235,0.15); color: var(--accent-4); }
.tag-announcement { background: rgba(255,170,50,0.15); color: #ffaa32; }
.tag-resource { background: rgba(120,200,80,0.15); color: #78c850; }
.community-post-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-left: auto;
}
.community-post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.community-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.community-post-footer {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.community-post-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.community-post-stat svg {
  opacity: 0.5;
}
@media (max-width: 900px) {
  .community-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .community-categories {
    grid-template-columns: 1fr;
  }
  .community-stats {
    gap: 1.5rem;
  }
  .community-post {
    flex-direction: column;
    gap: 0.75rem;
  }
  .community-post-time {
    margin-left: 0;
  }
}

/* ── Community Interactive System ── */

/* Auth Bar */
.comm-auth-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.comm-auth-guest,
.comm-auth-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.comm-auth-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}
.comm-auth-btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}
.comm-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.comm-user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Modal */
.comm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.comm-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.comm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  z-index: 10011;
  width: 90%;
  max-width: 440px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.comm-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.comm-modal-lg {
  max-width: 560px;
}
.comm-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.comm-modal-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}
.comm-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.comm-field {
  margin-bottom: 1.1rem;
}
.comm-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comm-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.comm-input:focus {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(58,180,233,0.15);
}
.comm-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a1b3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.comm-error {
  color: #f44;
  font-size: 0.82rem;
  margin: 0.5rem 0;
  min-height: 1.2em;
}
.comm-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.comm-switch a {
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 600;
}
.comm-switch a:hover {
  text-decoration: underline;
}

/* Toolbar */
.comm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.comm-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.comm-filter {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.comm-filter:hover {
  border-color: var(--accent-3);
  color: var(--text-primary);
}
.comm-filter.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.comm-new-post-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Clickable posts */
.comm-post-clickable {
  cursor: pointer;
}
.comm-post-clickable:active {
  transform: scale(0.995);
}

/* Avatar (text-based) */
.community-post-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

/* Tag additions */
.tag-general { background: rgba(140,140,180,0.15); color: var(--text-secondary); }
.tag-collab { background: rgba(200,120,255,0.15); color: #c878ff; }

/* Thread View */
.comm-thread {
  max-width: 800px;
  margin: 0 auto;
}
.comm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 1.5rem;
}
.comm-back-btn:hover {
  border-color: var(--accent-3);
  color: var(--accent-3);
}
.comm-thread-post {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
}
.comm-thread-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.comm-thread-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.comm-thread-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.comm-thread-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.comm-thread-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.comm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.comm-like-btn:hover {
  border-color: #f44;
  color: #f44;
}
.comm-like-btn.liked {
  border-color: #f44;
  color: #f44;
  background: rgba(255,68,68,0.08);
}
.comm-like-btn.liked svg {
  fill: #f44;
}

/* Replies */
.comm-replies-header {
  margin: 2rem 0 1rem;
}
.comm-replies-header h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.comm-replies {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comm-reply {
  display: flex;
  gap: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.comm-reply:hover {
  border-color: rgba(58,180,233,0.2);
}
.comm-reply-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}
.comm-reply-content {
  flex: 1;
  min-width: 0;
}
.comm-reply-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.comm-reply-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.comm-reply-like {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}
.comm-no-replies {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
}

/* Reply form */
.comm-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: flex-end;
}
.comm-reply-input {
  resize: vertical;
  min-height: 60px;
}
.comm-login-prompt {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.comm-login-prompt a {
  color: var(--accent-3);
  font-weight: 600;
  text-decoration: none;
}
.comm-login-prompt a:hover {
  text-decoration: underline;
}

/* Empty state */
.comm-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.comm-empty p:first-child {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .comm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .comm-filters {
    justify-content: center;
  }
  .comm-new-post-btn {
    justify-content: center;
  }
  .comm-modal {
    padding: 1.5rem;
    width: 95%;
  }
  .comm-thread-post {
    padding: 1.25rem;
  }
  .comm-thread-title {
    font-size: 1.15rem;
  }
  .comm-reply {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── FAQ Expandable ── */
.faq-card {
  cursor: pointer;
}
.faq-card .faq-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(58,180,233,0.1);
  border: 1px solid rgba(58,180,233,0.2);
  color: var(--accent-3);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.35s, background 0.3s;
  line-height: 1;
}
.faq-card.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.faq-card .faq-q-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.faq-card .faq-q-row h4 {
  margin-bottom: 0;
}
.faq-card p {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
}
.faq-card.open p {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* ── Accessibility: Skip to Content ── */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--brand-gradient);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  transition: top 0.3s, opacity 0.3s;
}
.skip-to-content:focus {
  top: 0;
  opacity: 1;
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

/* ── User Auth Nav Button ── */
.nav-user-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  flex-shrink: 0;
}
.nav-user-btn:hover {
  border-color: var(--accent-3);
  box-shadow: 0 0 12px rgba(58,180,233,0.2);
}
.nav-user-btn.logged-in {
  border-color: var(--accent-3);
}
.nav-user-avatar-letter {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

/* User Dropdown — styles in base.css */

/* Auth Modal styles moved to base.css */

/* Profile page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 2rem;
}
.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}
.profile-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.25rem;
}
.profile-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
}
.profile-stat-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-3);
}
.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0;
}
.profile-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.2rem;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text-primary); }
.profile-tab.active {
  color: var(--accent-3);
  border-bottom-color: var(--accent-3);
}
.profile-section { display: none; }
.profile-section.active { display: block; }
.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .profile-edit-grid { grid-template-columns: 1fr; }
}

/* ── Contact Form Validation ── */
.form-group { position: relative; }
.form-group .auth-hint { position: absolute; bottom: -18px; left: 0; }
.form-asterisk { color: #f44; margin-left: 2px; }

/* ── Booking Section ── */
.booking-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.booking-card:hover {
  border-color: var(--accent-3);
  box-shadow: 0 8px 32px rgba(58,180,233,0.1);
}
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.booking-slot {
  padding: 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.booking-slot:hover {
  border-color: var(--accent-3);
}
.booking-slot.selected {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.booking-slot-day {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}
.booking-slot-time {
  font-size: 0.78rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .nav-user-dropdown { width: 240px; right: 0.5rem; }
}

/* ── Chat Widget ── */
.chat-widget-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(58,180,233,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  color: #fff;
}
.chat-widget-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(58,180,233,0.55); }
.chat-widget-btn svg { width: 26px; height: 26px; }
.chat-widget-badge {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--bg-primary);
}
.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 370px;
  max-height: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.chat-window.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-header-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
}
.chat-header h4 { margin: 0; font-size: 0.95rem; flex: 1; }
.chat-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.2rem; padding: 0;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  max-height: 340px; min-height: 200px;
}
.chat-msg {
  max-width: 85%; padding: 0.6rem 0.9rem;
  border-radius: 12px; font-size: 0.88rem; line-height: 1.45;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.chat-msg.bot {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--brand-gradient);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot ul,
.chat-msg.bot ol {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0.1rem;
  padding-left: 1.15rem;
  list-style-position: outside;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-msg.bot li {
  display: list-item !important;
  margin: 0.18rem 0;
  padding: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-msg.bot a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--glass-border);
  display: flex; gap: 0.5rem;
}
.chat-input {
  flex: 1; border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 0.55rem 0.85rem;
  background: var(--bg-primary); color: var(--text-primary);
  font-family: inherit; font-size: 0.85rem; outline: none;
}
.chat-input:focus { border-color: var(--accent-3); }
.chat-send {
  background: var(--brand-gradient); border: none;
  border-radius: 10px; padding: 0 0.75rem;
  cursor: pointer; color: #fff;
  display: flex; align-items: center;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-typing { font-size: 0.8rem; color: var(--text-muted); padding: 0 0.5rem; }
.chat-typing .dots { display: inline-block; }
.chat-typing .dots span {
  display: inline-block; width: 4px; height: 4px; background: var(--text-muted);
  border-radius: 50%; margin: 0 1px;
  animation: chatBounce 1.4s infinite;
}
.chat-typing .dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatBounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
@media (max-width: 500px) {
  .chat-window { right: 0.5rem; left: 0.5rem; width: auto; bottom: 5.5rem; }
  .chat-widget-btn { bottom: 1.2rem; right: 1.2rem; width: 48px; height: 48px; }
}

/* ── Calculator Page ── */
.calc-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.calc-row {
  display: flex; gap: 1rem; margin-bottom: 1.25rem;
  align-items: end;
}
.calc-row .form-group { flex: 1; margin-bottom: 0; }
.calc-result {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
 background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.calc-breakdown-item {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
@media (max-width: 600px) {
  .calc-row { flex-direction: column; }
  .calc-breakdown { grid-template-columns: 1fr; }
}

/* ── Status Page ── */
.status-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.status-item:hover { border-color: var(--accent-3); }
.status-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.status-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}
.status-badge.operational { background: rgba(74,222,128,0.15); color: #4ade80; }
.status-badge.degraded   { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-badge.down       { background: rgba(248,113,113,0.15); color: #f87171; }
.status-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.status-overall {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.status-overall-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.status-uptime-bar {
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
  max-width: 400px;
  margin: 0.75rem auto 0;
}
.status-uptime-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ── RTL Support ── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-toggle-group { flex-direction: row-reverse; }
[dir="rtl"] .nav-logo { left: auto; right: 2rem; }
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .skip-to-content { left: auto; right: 1rem; }
[dir="rtl"] .search-input { direction: rtl; }
[dir="rtl"] .contact-grid { direction: rtl; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ════════════════════════════════════════════════════════════════
   TIGHTER VERTICAL RHYTHM — home + about (and its 4 sub-pages)
   Halves the gap between sections so e.g. "TRUSTED BY INDUSTRY
   LEADERS" sits closer to "METHODOLOGY" above it.
   ════════════════════════════════════════════════════════════════ */
body[data-page="home"] {
  --section-padding: 60px;
}
@media (max-width: 768px) {
  body[data-page="home"] {
    --section-padding: 40px;
  }
}
@media (max-width: 480px) {
  body[data-page="home"] {
    --section-padding: 30px;
  }
}

/* About-family pages need an even tighter rhythm because their
   sections are visually sparser than home. Cut padding further AND
   shrink the oversized hero + inner block margins that dominate the
   perceived "distance between containers" on these pages. */
body[data-page="about"],
body[data-page="mission"],
body[data-page="vision"],
body[data-page="values"],
body[data-page="goals"] {
  --section-padding: 40px;
}
@media (max-width: 768px) {
  body[data-page="about"],
  body[data-page="mission"],
  body[data-page="vision"],
  body[data-page="values"],
  body[data-page="goals"] {
    --section-padding: 28px;
  }
}
@media (max-width: 480px) {
  body[data-page="about"],
  body[data-page="mission"],
  body[data-page="vision"],
  body[data-page="values"],
  body[data-page="goals"] {
    --section-padding: 20px;
  }
}

/* Halve the empty space inside the about hero so the next section
   sits closer to the headline instead of below a 70vh slab. */
body[data-page="about"] .about-hero,
body[data-page="mission"] .about-hero,
body[data-page="vision"] .about-hero,
body[data-page="values"] .about-hero,
body[data-page="goals"] .about-hero {
  min-height: 0;
  padding-bottom: 1.5rem;
}

/* Halve the dominant inner-block margins inside about-family
   sections so headings sit closer to their grids/cards. */
body[data-page="about"] .timeline,
body[data-page="mission"] .timeline,
body[data-page="vision"] .timeline,
body[data-page="values"] .timeline,
body[data-page="goals"] .timeline,
body[data-page="mission"] .mission-drive-grid {
  margin-top: 1.5rem;
}
body[data-page="values"] .values-sequence-line {
  margin-top: 2rem;
}

/* Halve the hard-coded paddings on home-only sections that don't
   use --section-padding, so they shrink in step with the rest. */
body[data-page="home"] .trusted-section {
  padding-top: 40px;
  padding-bottom: 50px;
}
body[data-page="home"] .tq-section {
  padding: 3rem 0 2.5rem;
}

/* ════════════════════════════════════════════════════════════════
   FINAL NAV + HEADER/FOOTER REFINEMENTS
   Keep dropdown arrow visually attached to its title button, and
   tighten header/footer behavior on tablet + mobile.
   ════════════════════════════════════════════════════════════════ */

/* Arrow button should feel like a segment of the same control */
.nav-links {
  gap: 0.85rem;
}

/* Text + arrow are one visual unit — container holds hover/active state */
.nav-links li.nav-dropdown {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  position: relative;
  border-radius: 8px;
}

.nav-links li.nav-dropdown > a {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0;
  padding-right: 0.14rem !important;
  background: transparent !important;
}

[dir="rtl"] .nav-links li.nav-dropdown > a {
  border-radius: 0;
  padding-right: 1.25rem;
  padding-left: 0.14rem !important;
  background: transparent !important;
}

.nav-links li.nav-dropdown > .dropdown-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-left: 0;
  padding: 0 1.25rem 0 0.08rem !important;
  line-height: 0;
  cursor: pointer;
  color: var(--text-secondary);
  align-self: stretch;
}

[dir="rtl"] .nav-links li.nav-dropdown > .dropdown-arrow-btn {
  border: none;
  border-radius: 0;
  margin-left: 0;
  margin-right: 0;
}

.nav-links li.nav-dropdown > .dropdown-arrow-btn > .dropdown-arrow {
  opacity: 1;
  color: var(--text-secondary);
}

/* Hover/open: background on the LI container, children stay transparent */
.nav-links li.nav-dropdown:hover,
.nav-links li.nav-dropdown.dropdown-open,
.nav-links li.nav-dropdown.mobile-open {
  background: var(--glass-bg-hover);
}

.nav-links li.nav-dropdown:hover > a,
.nav-links li.nav-dropdown.dropdown-open > a,
.nav-links li.nav-dropdown.mobile-open > a,
.nav-links li.nav-dropdown:hover > .dropdown-arrow-btn,
.nav-links li.nav-dropdown.dropdown-open > .dropdown-arrow-btn,
.nav-links li.nav-dropdown.mobile-open > .dropdown-arrow-btn {
  background: transparent !important;
  color: var(--text-primary);
}

/* Active state: container highlight + blue bar centred under text+arrow */
.nav-links li.nav-dropdown:has(> a.active) {
  background: var(--glass-bg-hover);
}

.nav-links li.nav-dropdown:has(> a.active) > a,
.nav-links li.nav-dropdown:has(> a.active) > .dropdown-arrow-btn {
  color: var(--text-primary);
}

.nav-links li.nav-dropdown:has(> a.active)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-3);
  border-radius: 1px;
}

/* Suppress old ::after that was only on the <a> half */
.nav-links li.nav-dropdown > a.active::after {
  display: none !important;
}

.nav-links li.nav-dropdown > .dropdown-arrow-btn:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ── Tablet nav: same hamburger + slide-in panel as mobile ── */
  .nav-logo {
    position: static !important;
    left: auto !important;
    flex: 1 1 auto;
    padding: 0.25rem 0 !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 0;
    flex-shrink: 0;
  }

  .nav-toggle-group {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto;
    margin-left: 0;
    gap: 0;
    flex-shrink: 0;
  }

  .nav-toggle-group .theme-toggle,
  .nav-toggle-group .lang-toggle,
  .nav-toggle-group .nav-user-btn { display: none !important; }

  .nav-toggle-group .search-toggle {
    display: flex !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none;
  }

  html .nav-links {
    position: fixed !important;
    top: 0;
    left: auto;
    right: -100%;
    transform: none;
    flex: none;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    flex-direction: column;
    background: rgba(5, 10, 21, 0.98);
    backdrop-filter: blur(30px);
    padding: 0 1rem 1.25rem !important;
    gap: 0.65rem !important;
    transition: right var(--transition-med);
    border-left: none !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
  }

  html .nav-links.open { right: 0 !important; }

  .mobile-nav-user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: -12.65rem;
    padding-top: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0.25rem;
    width: 100%;
  }

  .mobile-nav-user-header .nav-user-btn {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    font-size: 1.75rem !important;
    flex-shrink: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-nav-user-header .nav-user-btn svg {
    width: 40px !important;
    height: 40px !important;
  }

  .footer {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  /* ── Footer tab layout (tablet + mobile) ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
  }

  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand > p { text-align: center; }

  .footer-contact { width: 100%; text-align: center; }
  .footer-contact-label { text-align: center; }
  .footer-contact-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .footer-email-form { width: 100%; }
  .footer-email-input { width: 100% !important; flex: 1 1 auto; }

  .footer-socials { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
  .footer-social-link { width: 44px !important; height: 44px !important; border-radius: 10px !important; }
  .footer-social-link svg { width: 20px !important; height: 20px !important; }
  .footer-social-link .enkaura-social-logo { width: 20px !important; height: 20px !important; }

  .footer-col { display: contents; }
  .footer-col:nth-child(2) > h4 { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .footer-col:nth-child(3) > h4 { grid-column: 2; grid-row: 2; justify-content: center; }
  .footer-col:nth-child(4) > h4 { grid-column: 3; grid-row: 2; justify-content: flex-end; }

  .footer-col h4 {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.6rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    transition: color 0.2s;
  }

  .footer-col h4::after {
    display: inline-block;
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 5px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .footer-col.open > h4::after { transform: rotate(180deg); }
  .footer-col.open > h4 { color: var(--accent-3); }

  .footer-col ul {
    grid-row: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer-col:nth-child(2) > ul { grid-column: 1; }
  .footer-col:nth-child(3) > ul { grid-column: 2; }
  .footer-col:nth-child(4) > ul { grid-column: 3; }

  .footer-col.open ul { max-height: 300px; }
  .footer-col li { margin-bottom: 0; }

  .footer-col a {
    display: block;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }

  .footer-col:nth-child(2) > ul a { text-align: left;   padding-left: 0.9rem; }
  .footer-col:nth-child(3) > ul a { text-align: center; }
  .footer-col:nth-child(4) > ul a { text-align: right;  padding-right: 0.9rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: none;
  }

  .footer-bottom > p:first-of-type  { order: 3; }
  .footer-bottom > .footer-legal    { order: 1; }
  .footer-bottom > p:last-of-type   { display: none; }

  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.25rem;
    justify-items: start;
    width: 100%;
  }

  .footer-legal .footer-legal-sep { display: none; }
  .footer-legal a { font-size: 0.9rem; }
  .footer-legal a:nth-of-type(1) { grid-area: 1 / 1; }
  .footer-legal a:nth-of-type(2) { grid-area: 2 / 1; }
  .footer-legal a:nth-of-type(3) { grid-area: 1 / 2; }
  .footer-legal a:nth-of-type(4) { grid-area: 2 / 2; }

  .scroll-top { display: none !important; }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.6rem 0.85rem !important;
  }

  /* Remove inner padding — outer .nav padding is enough */
  .nav-inner {
    padding: 0 !important;
  }

  /* Logo: in-flow, flush left, fills available space to push group+hamburger right */
  .nav-logo {
    position: static !important;
    left: auto !important;
    flex: 1 1 auto;
    padding: 0.25rem 0 !important;
  }

  [dir="rtl"] .nav-logo {
    right: auto !important;
  }

  /* Hamburger/X: same size as search button, no border */
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 0;
    flex-shrink: 0;
  }

  /* nav-toggle-group: restore to in-flow in the nav bar, show ONLY search toggle */
  .nav-toggle-group {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto;
    margin-left: 0;
    gap: 0;
    flex-shrink: 0;
  }

  /* Hide theme, lang, and user buttons from the nav bar on mobile
     (they appear inside the open panel instead) */
  .nav-toggle-group .theme-toggle,
  .nav-toggle-group .lang-toggle,
  .nav-toggle-group .nav-user-btn {
    display: none !important;
  }

  /* Show search toggle as a standalone icon button in the nav bar — no border */
  .nav-toggle-group .search-toggle {
    display: flex !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none;
  }

  /* Full-width slide-in panel.
     padding-top is set to 0 here — a JS-injected spacer div handles
     the exact nav height. html .nav-links beats rtl-mobile.css's 5rem !important
     via higher specificity (tag + class > class alone). */
  html .nav-links {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 1rem 1.25rem !important;
    gap: 0.65rem !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: none !important;
  }

  /* RTL: full-width, slide from left */
  html[dir="rtl"] .nav-links {
    width: 100vw !important;
    max-width: 100vw !important;
    border-right: none !important;
  }

  /* ── Mobile nav panel header: user icon + icon row ── */
  .mobile-nav-user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: -12.65rem; /* cancel the flex gap from .nav-links so header sits flush against spacer */
    padding-top: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0.25rem;
    width: 100%;
  }

  /* User icon: centered */
  .mobile-nav-user-header .nav-user-btn {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    font-size: 1.75rem !important;
    flex-shrink: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-nav-user-header .nav-user-btn svg {
    width: 40px !important;
    height: 40px !important;
  }

  /* Icon row: theme + lang centered */
  .mobile-nav-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .mobile-nav-icon-row button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-sm);
    border: 1px solid var(--glass-border) !important;
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  /* Regular (non-dropdown) nav items: full width */
  .nav-links > li:not(.nav-dropdown) {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .nav-links > li:not(.nav-dropdown) > a,
  .nav-links > li:not(.nav-dropdown) > button {
    width: 100%;
    text-align: left;
  }

  [dir="rtl"] .nav-links > li:not(.nav-dropdown) > a,
  [dir="rtl"] .nav-links > li:not(.nav-dropdown) > button {
    text-align: right;
  }

  /* Get Started button: text centered within its full-width button */
  .nav-links > li > .nav-cta {
    justify-content: center !important;
    text-align: center !important;
  }

  /* ── Mobile nav list items: arrow on far right, whole row is clickable ── */
  .nav-links li.nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    position: relative;
  }

  /* The text link only takes as much space as its content */
  .nav-links li.nav-dropdown > a {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    border-radius: 8px 0 0 8px;
    padding-right: 0.5rem !important;
  }

  [dir="rtl"] .nav-links li.nav-dropdown > a {
    border-radius: 0 8px 8px 0;
    padding-right: 1rem !important;
    padding-left: 0.5rem !important;
  }

  /* Arrow button fills remaining row space → any click right of text opens submenu */
  .nav-links li.nav-dropdown > .dropdown-arrow-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto;
    padding: 0 0.75rem 0 0 !important;
    border-radius: 0 8px 8px 0;
    justify-content: flex-end !important;
  }

  [dir="rtl"] .nav-links li.nav-dropdown > .dropdown-arrow-btn {
    border-radius: 8px 0 0 8px;
    padding: 0 0 0 0.75rem !important;
    justify-content: flex-start !important;
  }

  /* Search overlay: full screen width, flush below nav bar */
  .search-overlay {
    padding: 0 !important;
  }

  /* Hide the Ctrl+K keyboard shortcut hint — not relevant on touch devices */
  .search-shortcut {
    display: none;
  }

  .search-container {
    max-width: 100% !important;
    border-radius: 0 0 16px 16px !important;
  }

  .footer {
    margin-top: 2.2rem;
    padding-top: 2.3rem;
    padding-bottom: 1.5rem;
  }

  /* Brand row-1; tab-headers row-2; tab-content row-3 */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
  }

  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand > p { text-align: center; }

  /* Contact: stack email then socials */
  .footer-contact { width: 100%; text-align: center; }
  .footer-contact-label { text-align: center; }
  .footer-contact-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .footer-email-form { width: 100%; }
  .footer-email-input { width: 100% !important; flex: 1 1 auto; }

  /* Socials: bigger touch targets */
  .footer-socials { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
  .footer-social-link { width: 44px !important; height: 44px !important; border-radius: 10px !important; }
  .footer-social-link svg { width: 20px !important; height: 20px !important; }
  .footer-social-link .enkaura-social-logo { width: 20px !important; height: 20px !important; }

  /* ── Footer tabs (mobile) ── */
  /* col wrapper dissolves into grid so h4 + ul participate directly */
  .footer-col { display: contents; }

  /* h4 headings in row 2, each pinned to its column */
  .footer-col:nth-child(2) > h4 { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .footer-col:nth-child(3) > h4 { grid-column: 2; grid-row: 2; justify-content: center; }
  .footer-col:nth-child(4) > h4 { grid-column: 3; grid-row: 2; justify-content: flex-end; }

  /* Tab h4 style */
  .footer-col h4 {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.6rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    transition: color 0.2s;
  }

  /* Small chevron after label */
  .footer-col h4::after {
    display: inline-block;
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 5px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  /* Rotate chevron when tab is open */
  .footer-col.open > h4::after { transform: rotate(180deg); }

  /* Active tab heading — Enkaura brand colour */
  .footer-col.open > h4 { color: var(--accent-3); }

  /* uls — each pinned to its own column in row 3; collapsed by default */
  .footer-col ul {
    grid-row: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Each ul occupies only its column */
  .footer-col:nth-child(2) > ul { grid-column: 1; }
  .footer-col:nth-child(3) > ul { grid-column: 2; }
  .footer-col:nth-child(4) > ul { grid-column: 3; }

  /* Expand only the open panel */
  .footer-col.open ul { max-height: 300px; }

  .footer-col li { margin-bottom: 0; }

  /* Default link style */
  .footer-col a {
    display: block;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }

  /* Links align toward the heading that opened them */
  .footer-col:nth-child(2) > ul a { text-align: left;   padding-left: 0.9rem; }
  .footer-col:nth-child(3) > ul a { text-align: center; }
  .footer-col:nth-child(4) > ul a { text-align: right;  padding-right: 0.9rem; }

  /* ── Footer bottom: reorder + 2-col legal ── */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: none;
  }

  /* © 2026 last, legal first — Engineered tagline hidden on mobile */
  .footer-bottom > p:first-of-type  { order: 3; }
  .footer-bottom > .footer-legal    { order: 1; }
  .footer-bottom > p:last-of-type   { display: none; }

  /* Legal: 2-column grid — cookies on left, privacy/terms on right */
  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.25rem;
    justify-items: start;
    width: 100%;
  }

  .footer-legal .footer-legal-sep { display: none; }
  .footer-legal a { font-size: 0.9rem; }
  .footer-legal a:nth-of-type(1) { grid-area: 1 / 1; }
  .footer-legal a:nth-of-type(2) { grid-area: 2 / 1; }
  .footer-legal a:nth-of-type(3) { grid-area: 1 / 2; }
  .footer-legal a:nth-of-type(4) { grid-area: 2 / 2; }

  /* Hide scroll-to-top on mobile */
  .scroll-top { display: none !important; }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.55rem 0.75rem !important;
  }

  /* Keep the search toggle always visible in the mobile nav bar */
  .nav-toggle-group .search-toggle {
    display: flex !important;
  }

  .footer {
    padding-top: 2rem;
  }
}

