  :root {
    --primary: #2563EB;
    --secondary: #0F172A;
    --accent: #06B6D4;
    --success: #10B981;
  }
  
  * { scroll-behavior: smooth; }
  
  [x-cloak] { display: none !important; }
  
  body { font-family: 'Plus Jakarta Sans', sans-serif; overflow-x: hidden; }
  
  .font-display { font-family: 'Syne', sans-serif; }
  
  /* Glassmorphism */
  .glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
  }
  .glass-dark {
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .glass-light {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  
  /* Gradient text */
  .gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .gradient-text-2 {
    background: linear-gradient(135deg, #06B6D4, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Mesh gradient backgrounds */
  .mesh-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(16,185,129,0.10) 0%, transparent 50%);
  }
  .mesh-bg-dark {
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.20) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(16,185,129,0.15) 0%, transparent 50%);
  }
  
  /* Grid pattern */
  .grid-pattern {
    background-image: linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .dark .grid-pattern {
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  }
  
  /* Dot pattern */
  .dot-pattern {
    background-image: radial-gradient(rgba(37,99,235,0.2) 1px, transparent 1px);
    background-size: 30px 30px;
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb { background: #2563EB; border-radius: 3px; }
  .dark ::-webkit-scrollbar-track { background: #0F172A; }
  
  /* Gradient border */
  .gradient-border {
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #2563EB, #06B6D4) border-box;
  }
  .dark .gradient-border {
    background: linear-gradient(#1E293B, #1E293B) padding-box,
                linear-gradient(135deg, #2563EB, #06B6D4) border-box;
  }
  
  /* Glow effects */
  .glow-blue { box-shadow: 0 0 40px rgba(37,99,235,0.3), 0 0 80px rgba(37,99,235,0.1); }
  .glow-cyan { box-shadow: 0 0 40px rgba(6,182,212,0.3), 0 0 80px rgba(6,182,212,0.1); }
  .text-glow { text-shadow: 0 0 30px rgba(37,99,235,0.5); }
  
  /* Noise texture overlay */
  .noise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
  }
  
  /* Premium card hover */
  .card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(37,99,235,0.25);
  }
  
  /* Btn styles */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }
  .btn-primary:hover {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,99,235,0.4);
  }
  .btn-primary svg { flex-shrink: 0; }
  
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #2563EB !important;
    padding: 13px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #2563EB;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
  }
  .btn-secondary:hover {
    background: #2563EB;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,99,235,0.3);
  }
  
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(37,99,235,0.08);
    color: #2563EB !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(37,99,235,0.2);
    cursor: pointer;
    text-decoration: none;
  }
  .btn-ghost:hover {
    background: rgba(37,99,235,0.15);
    color: #2563EB !important;
    transform: translateY(-2px);
  }
/* Animated gradient bg for hero */
  .hero-gradient {
    background: linear-gradient(-45deg, #EFF6FF, #F0FDFF, #ECFDF5, #EFF6FF);
    background-size: 400% 400%;
    animation: gradient 12s ease infinite;
  }
  .dark .hero-gradient {
    background: linear-gradient(-45deg, #0F172A, #0C1628, #051014, #0F172A);
    background-size: 400% 400%;
    animation: gradient 12s ease infinite;
  }

  /* Modern hero */
  .hero-modern {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  }
  .dark .hero-modern {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #0a1018 100%);
  }
  .hero-beam {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 55% at 15% -5%, rgba(37,99,235,0.14), transparent 55%),
      radial-gradient(ellipse 55% 45% at 85% 10%, rgba(6,182,212,0.12), transparent 50%),
      radial-gradient(ellipse 40% 35% at 50% 100%, rgba(16,185,129,0.08), transparent 55%);
  }
  .dark .hero-beam {
    background:
      radial-gradient(ellipse 70% 55% at 15% -5%, rgba(37,99,235,0.22), transparent 55%),
      radial-gradient(ellipse 55% 45% at 85% 10%, rgba(6,182,212,0.15), transparent 50%),
      radial-gradient(ellipse 40% 35% at 50% 100%, rgba(16,185,129,0.1), transparent 55%);
  }
  .hero-grid-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  }
  .dark .hero-grid-fade {
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(37,99,235,0.15);
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
    backdrop-filter: blur(8px);
  }
  .dark .hero-badge {
    color: #93c5fd;
    background: rgba(15,23,42,0.7);
    border-color: rgba(96,165,250,0.2);
  }
  .hero-stat {
    padding: 0 1.25rem;
    border-left: 1px solid rgba(148,163,184,0.35);
  }
  .hero-stat:first-child { border-left: none; padding-left: 0; }
  .hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.25);
  }
  .dark .hero-chip {
    color: #cbd5e1;
    background: rgba(30,41,59,0.6);
    border-color: rgba(71,85,105,0.5);
  }
  .hero-browser {
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,0.25);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 25px 60px -12px rgba(15,23,42,0.18), 0 0 0 1px rgba(255,255,255,0.5) inset;
    overflow: hidden;
    backdrop-filter: blur(12px);
  }
  .dark .hero-browser {
    background: rgba(15,23,42,0.88);
    border-color: rgba(71,85,105,0.45);
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.45), 0 0 40px rgba(37,99,235,0.06);
  }
  .hero-browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
    background: rgba(248,250,252,0.9);
  }
  .dark .hero-browser-bar { background: rgba(30,41,59,0.5); border-color: rgba(71,85,105,0.4); }
  .hero-code {
    padding: 20px 22px 24px;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow: hidden;
  }
  @media (min-width: 1024px) { .hero-code { font-size: 13px; } }
  .hero-code .c-kw { color: #7c3aed; }
  .hero-code .c-fn { color: #2563eb; }
  .hero-code .c-str { color: #059669; }
  .hero-code .c-cm { color: #94a3b8; }
  .hero-code .c-var { color: #0891b2; }
  .dark .hero-code .c-kw { color: #c4b5fd; }
  .dark .hero-code .c-fn { color: #93c5fd; }
  .dark .hero-code .c-str { color: #6ee7b7; }
  .dark .hero-code .c-var { color: #67e8f9; }
  .hero-mini-card {
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: 0 12px 30px rgba(15,23,42,0.1);
  }
  .dark .hero-mini-card {
    background: #1e293b;
    border-color: rgba(71,85,105,0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  }
  .hero-glow-ring {
    position: absolute;
    inset: -24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37,99,235,0.45), rgba(6,182,212,0.3), rgba(16,185,129,0.25));
    filter: blur(32px);
    opacity: 0.7;
    z-index: -1;
  }
  .hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
  }
  .hero-visual-stack { position: relative; min-height: 420px; }
  @media (min-width: 1024px) { .hero-visual-stack { min-height: 520px; } }
  .hero-browser-wrap { position: relative; z-index: 2; margin-top: 76px; }
  .hero-float-above {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 2px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
  }
  @media (min-width: 640px) { .hero-float-above { gap: 10px; } }
  .hero-float-above .hero-mini-card { padding: 10px 12px; }
  @media (min-width: 640px) { .hero-float-above .hero-mini-card { padding: 14px 16px; } }
  .hero-float-orbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .hero-browser-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37,99,235,0.5), rgba(6,182,212,0.4), rgba(16,185,129,0.35));
    -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;
    pointer-events: none;
  }
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(148,163,184,0.2);
    background: linear-gradient(180deg, rgba(248,250,252,0.5), rgba(241,245,249,0.9));
  }
  .dark .hero-metrics { background: linear-gradient(180deg, rgba(30,41,59,0.3), rgba(15,23,42,0.6)); }
  .hero-metric-box {
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(148,163,184,0.15);
    text-align: center;
  }
  .dark .hero-metric-box { background: rgba(30,41,59,0.7); border-color: rgba(71,85,105,0.35); }
  .hero-progress-wrap { padding: 0 18px 18px; }
  .hero-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }
  .dark .hero-progress-track { background: #334155; }
  .hero-progress-fill {
    height: 100%;
    border-radius: 999px;
    display: block;
  }
  .hero-orbit {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: 0 8px 20px rgba(15,23,42,0.1);
    flex-shrink: 0;
  }
  .dark .hero-orbit {
    background: #1e293b;
    border-color: rgba(71,85,105,0.45);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .hero-stat-card {
    border-radius: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    backdrop-filter: blur(8px);
    min-width: 100px;
  }
  .dark .hero-stat-card {
    background: rgba(30,41,59,0.65);
    border-color: rgba(71,85,105,0.4);
  }
  .hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(148,163,184,0.2);
    backdrop-filter: blur(6px);
  }
  .dark .hero-trust {
    background: rgba(30,41,59,0.5);
    border-color: rgba(71,85,105,0.35);
  }
  .hero-chip-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,246,255,0.9));
    border: 1px solid rgba(37,99,235,0.12);
    box-shadow: 0 4px 14px rgba(37,99,235,0.06);
  }
  .dark .hero-chip-icon {
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.85));
    border-color: rgba(96,165,250,0.15);
  }

  /* Hero — mobile (desktop unchanged) */
  @media (max-width: 1023px) {
    .hero-modern {
      min-height: auto !important;
      align-items: flex-start;
      padding-top: 5.5rem;
      padding-bottom: 2.5rem;
    }
    .hero-visual-stack {
      min-height: 0;
      margin-top: 0.5rem;
    }
    .hero-browser-wrap {
      margin-top: 0;
      animation: none !important;
    }
    .hero-browser {
      border-radius: 16px;
    }
    .hero-browser-bar {
      padding: 10px 12px;
      gap: 6px;
    }
    .hero-browser-title {
      flex: 1;
      min-width: 0;
      text-align: center;
      font-size: 10px !important;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .hero-code {
      padding: 12px 14px 14px;
      font-size: 10px;
      line-height: 1.55;
    }
    .hero-code-hide-mobile { display: none; }
    .hero-metrics {
      padding: 12px 14px;
      gap: 8px;
    }
    .hero-metric-box {
      padding: 8px 6px;
      border-radius: 10px;
    }
    .hero-metric-box .text-xl { font-size: 1rem; }
    .hero-metric-label { font-size: 9px; letter-spacing: 0.02em; }
    .hero-progress-wrap {
      padding: 0 14px 14px;
      gap: 8px;
    }
    .hero-glow-ring {
      inset: -10px;
      opacity: 0.45;
      filter: blur(24px);
    }
    .hero-orb { opacity: 0.2 !important; }
    .hero-stat-card {
      padding: 10px 12px;
      min-width: 0;
    }
    .hero-stat-card .text-2xl { font-size: 1.35rem; }
    .hero-trust {
      flex-direction: row;
      align-items: center;
      padding: 10px 14px;
    }
    .hero-chip-icon {
      font-size: 11px;
      padding: 6px 10px;
    }
    .hero-badge {
      font-size: 12px;
      padding: 6px 12px;
      margin-bottom: 1.25rem !important;
    }
    .hero-mobile-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 14px;
    }
    .hero-mobile-cards .hero-mini-card {
      padding: 12px;
    }
    .hero-mobile-orbs {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 12px;
    }
    .hero-mockup {
      opacity: 1 !important;
      transform: none !important;
      visibility: visible !important;
    }
    .hero-browser-wrap {
      isolation: isolate;
    }
    .hero-glow-ring {
      z-index: 0;
    }
    .hero-browser {
      position: relative;
      z-index: 1;
    }
    .hero-browser-bar {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
    }
    .hero-browser-title {
      flex: none;
      width: 100%;
      text-align: center;
    }
    .hero-grid {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .hero-left { display: contents; }
    .hero-content-primary { order: 1; }
    .hero-mockup { order: 2; }
    .hero-content-secondary { order: 3; }
  }
  @media (min-width: 1024px) {
    .hero-mobile-cards,
    .hero-mobile-orbs { display: none; }
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }
    .hero-left { display: block; }
    .hero-content-primary,
    .hero-content-secondary,
    .hero-mockup { order: unset; }
  }
  
  /* Number counter animation */
  .counter { font-variant-numeric: tabular-nums; }
  
  /* Service card gradient border on hover */
  .service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
  }
  .dark .service-card {
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  }
  .service-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 20px 60px rgba(37,99,235,0.12), 0 0 0 1px rgba(37,99,235,0.1);
    transform: translateY(-6px);
  }
  .dark .service-card:hover {
    border-color: rgba(37,99,235,0.35);
    box-shadow: 0 20px 60px rgba(37,99,235,0.2), 0 0 0 1px rgba(37,99,235,0.3);
  }
  
  /* Timeline */
  .timeline-line {
    background: linear-gradient(to bottom, #2563EB, #06B6D4);
  }
  
  /* Tag badge */
  .tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }
  .tag-blue { background: rgba(37,99,235,0.1); color: #2563EB; }
  .tag-cyan { background: rgba(6,182,212,0.1); color: #0891B2; }
  .tag-green { background: rgba(16,185,129,0.1); color: #059669; }
  .tag-purple-overlay { background: rgba(147,51,234,0.25); color: #e9d5ff; }
  .tag-orange-overlay { background: rgba(234,88,12,0.25); color: #fed7aa; }
  .tag-yellow-overlay { background: rgba(234,179,8,0.25); color: #fef08a; }
  
  /* Marquee */
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .marquee-track { animation: marquee 30s linear infinite; display: flex; gap: 48px; }
  .marquee-track:hover { animation-play-state: paused; }
  
  /* Sticky header transition */
  .header-scrolled {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04) !important;
  }
  .dark .header-scrolled {
    background: rgba(15,23,42,0.9) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.3) !important;
  }
  /* Inner pages: white nav on dark hero (desktop only — mobile header is always solid) */
  @media (min-width: 1024px) {
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-text { color: #fff !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-text span { color: #7dd3fc !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-sub { color: rgba(255,255,255,0.55) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .nav-link { color: rgba(255,255,255,0.92) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.12) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-icon-btn { color: rgba(255,255,255,0.85) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-icon-btn:hover { background: rgba(255,255,255,0.12) !important; }
    #main-header.header-on-dark:not(.header-scrolled) .mobile-menu-bar { background: #fff !important; }
  }
  .nav-link.active {
    color: #2563EB !important;
    background: #EFF6FF !important;
  }
  .dark .nav-link.active {
    color: #60A5FA !important;
    background: rgba(37, 99, 235, 0.15) !important;
  }
  .mobile-menu-panel a.active,
  .mobile-menu-panel button.active {
    background: #EFF6FF !important;
    color: #2563EB !important;
  }
  .dark .mobile-menu-panel a.active,
  .dark .mobile-menu-panel button.active {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #60A5FA !important;
  }
  
  /* Input styles */
  .form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.1);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #0F172A;
    outline: none;
  }
  .dark .form-input {
    background: #1E293B;
    border-color: rgba(255,255,255,0.1);
    color: white;
  }
  .form-input:focus { border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
  .form-input::placeholder { color: #94A3B8; }
  
  .currency-input { position: relative; }
  .currency-prefix {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #64748B;
    pointer-events: none;
    z-index: 1;
  }
  .dark .currency-prefix { color: #94A3B8; }
  .currency-field { padding-left: 38px; }
  .currency-input:focus-within .currency-field {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  }
  
  /* Section spacing */
  .section { padding: 100px 0; }
  @media (max-width: 768px) { .section { padding: 60px 0; } }
  
  /* Dark mode transitions */
  * { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease; }
  
  /* Floating orb animations */
  @keyframes orb1 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px, 10px) scale(0.95); } }
  @keyframes orb2 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-25px, 15px) scale(1.03); } 66% { transform: translate(15px,-25px) scale(0.97); } }
  @keyframes orb3 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px, 25px) scale(1.04); } 66% { transform: translate(-30px,-10px) scale(0.96); } }
  
  .orb-1 { animation: orb1 12s ease-in-out infinite; }
  .orb-2 { animation: orb2 15s ease-in-out infinite; }
  .orb-3 { animation: orb3 18s ease-in-out infinite; }
  
  /* Icon box */
  .icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .service-hero-icon {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  }
  
  /* Testimonial card */
  .testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
  }
  .dark .testimonial-card {
    background: #1E293B;
    border-color: rgba(255,255,255,0.06);
  }
  .testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(37,99,235,0.1); }
  
  /* Carousel (testimonials + team) */
  .testimonials-carousel,
  .team-carousel { position: relative; }
  .testimonials-track,
  .team-track { will-change: transform; }
  .team-carousel-card {
    padding: 1.25rem 0.75rem;
    border-radius: 1.25rem;
    transition: transform 0.3s ease;
  }
  .team-carousel-card:hover { transform: translateY(-4px); }

  /* Services page category filter */
  .service-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .dark .service-category-pill {
    background: #1E293B;
    border-color: rgba(255,255,255,0.08);
    color: #CBD5E1;
  }
  .service-category-pill:hover,
  .service-category-pill.is-active {
    background: #2563EB;
    border-color: #2563EB;
    color: white;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  }
  .footer-service-link { line-height: 1.4; }
  .carousel-btn {
    width: 48px; height: 48px; border-radius: 14px;
    background: white; border: 1px solid rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #2563EB; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  }
  .dark .carousel-btn { background: #1E293B; border-color: rgba(255,255,255,0.08); color: #60A5FA; }
  .carousel-btn:hover { background: #2563EB; color: white; transform: scale(1.05); box-shadow: 0 8px 25px rgba(37,99,235,0.3); }
  .carousel-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: #CBD5E1; transition: all 0.3s ease; cursor: pointer;
  }
  .dark .carousel-dot { background: #475569; }
  .carousel-dot.active { width: 28px; background: #2563EB; }
  .dark .carousel-dot.active { background: #60A5FA; }
  
  /* Blog card */
  .blog-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s ease;
  }
  .dark .blog-card { border-color: rgba(255,255,255,0.06); }
  .blog-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
  .blog-card img { width: 100%; height: 12rem; object-fit: cover; display: block; }
  .blog-card .thumb-sm { height: 8rem; }
  .team-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
  .featured-img { width: 100%; object-fit: cover; display: block; border-radius: 1.5rem; }
  .map-img { width: 100%; height: 13rem; object-fit: cover; border-radius: 1rem; display: block; }
  .hero-dashboard-img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
  .about-img { width: 100%; height: 280px; object-fit: cover; border-radius: 1.25rem; }
  
  /* Portfolio card */
  .portfolio-card { border-radius: 20px; overflow: hidden; position: relative; }
  .portfolio-card.cursor-pointer { cursor: pointer; }
  .portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1;
    pointer-events: none;
    transition: background 0.4s ease;
  }
  .portfolio-card:hover::after { background: rgba(15, 23, 42, 0.55); }
  .portfolio-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.55) 65%, rgba(15,23,42,0.15) 100%);
    opacity: 1; transition: all 0.4s ease;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
    z-index: 2;
  }
  .portfolio-card:hover .overlay {
    background: linear-gradient(to top, rgba(15,23,42,0.99) 0%, rgba(15,23,42,0.7) 75%, rgba(15,23,42,0.35) 100%);
  }
  .portfolio-card:hover img { transform: scale(1.08); }
  .portfolio-card img { transition: transform 0.6s ease; width: 100%; height: 280px; object-fit: cover; display: block; }
  .portfolio-card .overlay .tag { font-weight: 600; }
  .portfolio-card .overlay .tag-blue { background: rgba(37,99,235,0.35); color: #bfdbfe; }
  .portfolio-card .overlay .tag-cyan { background: rgba(6,182,212,0.35); color: #a5f3fc; }
  .portfolio-card .overlay .tag-green { background: rgba(16,185,129,0.35); color: #a7f3d0; }
  .portfolio-card .overlay .tag-purple-overlay { background: rgba(147,51,234,0.35); color: #e9d5ff; }
  .portfolio-card .overlay .tag-orange-overlay { background: rgba(234,88,12,0.35); color: #fed7aa; }
  .portfolio-card .overlay .tag-yellow-overlay { background: rgba(234,179,8,0.35); color: #fef08a; }
  .portfolio-card .overlay h4 { color: #fff; }
  .portfolio-card .overlay p { color: #bfdbfe; }
  .portfolio-card .overlay .text-success-400 { color: #4ade80; }

  /* Portfolio detail modal */
  .portfolio-modal-backdrop {
    position: fixed; inset: 0; z-index: 9990;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
  }
  .portfolio-modal-panel {
    position: relative; width: 100%; max-width: 680px;
    max-height: min(88vh, 780px);
    background: #fff; border-radius: 20px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.28);
    overflow: hidden; display: flex; flex-direction: column;
  }
  .dark .portfolio-modal-panel {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
  }
  .portfolio-modal-scroll {
    flex: 1; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
  }
  .dark .portfolio-modal-header {
    background: #1e293b;
    border-bottom-color: rgba(148, 163, 184, 0.15);
  }
  .portfolio-modal-header-text { min-width: 0; flex: 1; }
  .portfolio-modal-header-label {
    display: block;
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #2563eb; margin-bottom: 0.25rem;
  }
  .dark .portfolio-modal-header-label { color: #60a5fa; }
  .portfolio-modal-header-title {
    font-family: 'Syne', system-ui, sans-serif; font-weight: 700;
    font-size: 1.25rem; line-height: 1.3;
    color: #0f172a; margin: 0 0 0.5rem;
  }
  .dark .portfolio-modal-header-title { color: #f8fafc; }
  .portfolio-modal-header-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  }
  .portfolio-modal-close {
    flex-shrink: 0;
    width: 2.25rem; height: 2.25rem; border-radius: 9999px;
    background: #f1f5f9; color: #475569;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
  }
  .portfolio-modal-close:hover { background: #e2e8f0; color: #0f172a; }
  .dark .portfolio-modal-close {
    background: rgba(15, 23, 42, 0.85); color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  /* Portfolio slider (Fiverr-style) */
  .portfolio-modal-slider {
    flex-shrink: 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .portfolio-modal-slider-stage {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #1e293b;
  }
  .portfolio-modal-slide {
    position: absolute; inset: 0;
    margin: 0;
  }
  .portfolio-modal-slide img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    background: #0f172a;
  }
  .portfolio-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 2.25rem; height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, transform 0.2s;
  }
  .portfolio-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
  }
  .portfolio-slider-nav--prev { left: 0.625rem; }
  .portfolio-slider-nav--next { right: 0.625rem; }
  .portfolio-slider-counter {
    position: absolute; bottom: 0.625rem; right: 0.625rem; z-index: 5;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
  }
  .portfolio-modal-thumbs {
    display: flex; gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: #f8fafc;
  }
  .portfolio-modal-thumbs::-webkit-scrollbar { display: none; }
  .dark .portfolio-modal-thumbs { background: #0f172a; }
  .portfolio-modal-thumb {
    flex: 0 0 auto;
    width: 56px; height: 42px;
    padding: 0; border: 2px solid transparent;
    border-radius: 6px; overflow: hidden;
    cursor: pointer; opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
    background: #e2e8f0;
  }
  .portfolio-modal-thumb:hover { opacity: 0.9; }
  .portfolio-modal-thumb.is-active {
    opacity: 1;
    border-color: #2563eb;
  }
  .dark .portfolio-modal-thumb { background: #334155; }
  .dark .portfolio-modal-thumb.is-active { border-color: #3b82f6; }
  .portfolio-modal-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }

  .portfolio-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .portfolio-modal-stat {
    font-size: 0.75rem; font-weight: 700; color: #10b981;
  }
  .dark .portfolio-modal-stat { color: #34d399; }
  .portfolio-modal-tech {
    font-size: 0.8125rem; color: #64748b; margin: 0 0 0.875rem;
    line-height: 1.5;
  }
  .dark .portfolio-modal-tech { color: #94a3b8; }
  .portfolio-modal-excerpt {
    font-size: 0.9375rem; line-height: 1.6;
    color: #475569; margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .dark .portfolio-modal-excerpt {
    color: #cbd5e1;
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }
  .portfolio-modal-article {
    font-size: 0.875rem; line-height: 1.65; color: #64748b;
  }
  .dark .portfolio-modal-article { color: #94a3b8; }
  .portfolio-modal-article h2 {
    font-family: 'Syne', system-ui, sans-serif; font-weight: 700;
    font-size: 1.0625rem; color: #0f172a;
    margin: 1.25rem 0 0.5rem;
  }
  .dark .portfolio-modal-article h2 { color: #f1f5f9; }
  .portfolio-modal-article h2:first-child { margin-top: 0; }
  .portfolio-modal-article p { margin-bottom: 0.75rem; }
  .portfolio-modal-article p.text-xl {
    font-size: 0.9375rem !important; margin-bottom: 0.875rem;
  }
  .portfolio-modal-article ul {
    list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem;
  }
  .portfolio-modal-article li { margin-bottom: 0.25rem; }
  .portfolio-modal-article > div {
    font-size: 0.8125rem !important;
    padding: 0.875rem 1rem !important; margin: 1rem 0 !important;
    border-radius: 12px !important;
  }
  body.portfolio-modal-open { overflow: hidden; }

  @media (max-width: 640px) {
    .portfolio-modal-backdrop { padding: 0.5rem; align-items: flex-end; }
    .portfolio-modal-panel {
      max-width: 100%; max-height: 92vh;
      border-radius: 16px 16px 0 0;
    }
    .portfolio-modal-header { padding: 0.875rem 1rem; }
    .portfolio-modal-header-title { font-size: 1.1rem; }
    .portfolio-modal-body { padding: 1rem 1rem 1.25rem; }
    .portfolio-modal-slider-stage { height: 200px; }
    .portfolio-slider-nav { width: 2rem; height: 2rem; }
    .portfolio-modal-thumb { width: 48px; height: 36px; }
  }
  
  /* Steps */
  .step-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
  }
  .dark .step-card {
    background: #1E293B;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  }
  .step-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(37,99,235,0.1); }
  
  /* FAQ */
  .faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .dark .faq-item { border-bottom-color: rgba(255,255,255,0.06); }

  /* Loading shimmer for images */
  .img-placeholder {
    background: linear-gradient(90deg, #f0f4ff 25%, #e8eeff 50%, #f0f4ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  .dark .img-placeholder {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f5e 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }

  /* Mobile menu */
  .mobile-menu-panel {
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    max-height: calc(100dvh - 5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .dark .mobile-menu-panel {
    background: #0f172a;
    border-top-color: rgba(255,255,255,0.08);
  }
  .mobile-menu-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
  }
  .mobile-menu-scroll::-webkit-scrollbar { width: 6px; }
  .mobile-menu-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
  }
  .dark .mobile-menu-scroll::-webkit-scrollbar-thumb { background: #475569; }
  body.mobile-menu-open { overflow: hidden; }
  #main-header.header-mobile-menu-open {
    background: #fff !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
  }
  .dark #main-header.header-mobile-menu-open {
    background: #0f172a !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
  }
  
  /* Tech badge */
  .tech-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px;
    background: white; border: 1px solid rgba(0,0,0,0.08);
    font-size: 14px; font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .dark .tech-badge { background: #1E293B; border-color: rgba(255,255,255,0.08); color: #E2E8F0; }
  .tech-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.3); }
  
  /* Stat card */
  .stat-card {
    text-align: center; padding: 36px 24px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
  }
  .dark .stat-card { background: #1E293B; border-color: rgba(255,255,255,0.06); }
  .stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(37,99,235,0.12); }

  /* Mega menu */
  .mega-menu-wrap { position: relative; }
  .mega-menu-panel {
    position: absolute; top: 100%; left: 50%; margin-left: -360px;
    min-width: 720px; z-index: 100;
    background: white; border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(37,99,235,0.08);
    padding: 28px; margin-top: 4px;
  }
  .mega-menu-panel::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
  }
  .dark .mega-menu-panel {
    background: #1E293B; border-color: rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  }

  /* Swiper-like testimonial */
  .testimonials-wrapper { overflow: hidden; }
  
  /* Custom checkbox */
  .custom-checkbox { width: 18px; height: 18px; border: 2px solid #CBD5E1; border-radius: 5px; cursor: pointer; }

  /* Page hero pattern */
  .page-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0F172A 100%);
    position: relative; overflow: hidden;
  }
  
  /* Animated underline */
  .animated-underline {
    position: relative; display: inline-block;
  }
  .animated-underline::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #2563EB, #06B6D4);
    transition: width 0.4s ease;
  }
  .animated-underline:hover::after { width: 100%; }
  
  /* WhatsApp float */
  .whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(37,211,102,0.5); }
  
  /* Scroll to top */
  .scroll-top {
    position: fixed; bottom: 96px; right: 28px; z-index: 999;
    width: 44px; height: 44px; border-radius: 12px;
    background: #2563EB; color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
  }
  .scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,99,235,0.5); }

  /* Responsive adjustments */
  @media (max-width: 1023px) {
    #main-header {
      background: rgba(255,255,255,0.98) !important;
      backdrop-filter: blur(20px) !important;
      box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04) !important;
    }
    .dark #main-header {
      background: rgba(15,23,42,0.98) !important;
      box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.25) !important;
    }
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-text { color: #0f172a !important; }
    .dark #main-header.header-on-dark:not(.header-scrolled) .header-logo-text { color: #fff !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-text span { color: #2563eb !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-logo-sub { color: #64748b !important; }
    .dark #main-header.header-on-dark:not(.header-scrolled) .header-logo-sub { color: #94a3b8 !important; }
    #main-header.header-on-dark:not(.header-scrolled) .header-icon-btn { color: #475569 !important; }
    .dark #main-header.header-on-dark:not(.header-scrolled) .header-icon-btn { color: #94a3b8 !important; }
    #main-header.header-on-dark:not(.header-scrolled) .mobile-menu-bar { background: #334155 !important; }
    .dark #main-header.header-on-dark:not(.header-scrolled) .mobile-menu-bar { background: #cbd5e1 !important; }
    .page-hero h1 { font-size: 2.25rem !important; line-height: 1.2 !important; }
    .page-hero p { font-size: 1rem !important; }
    .section h2.font-display { font-size: 1.875rem !important; line-height: 1.25 !important; }
    .testimonials-carousel .overflow-hidden,
    .team-carousel .overflow-hidden { margin-left: 2.5rem; margin-right: 2.5rem; }
    .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
    .scroll-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
    .form-card-pad { padding: 1.5rem !important; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
    .header-logo-sub { display: none; }
  }
  @media (max-width: 640px) {
    h1.hero-title { font-size: 1.875rem !important; line-height: 1.15 !important; }
    .mega-menu-panel { min-width: 320px; left: 0; margin-left: 0; }
    .stat-card { padding: 24px 16px; }
    .step-card { padding: 20px 16px; }
    .tag { font-size: 12px; padding: 5px 12px; }
    .portfolio-card .overlay { padding: 1rem !important; }
    .carousel-btn { width: 36px; height: 36px; }
    .testimonials-carousel .overflow-hidden,
    .team-carousel .overflow-hidden { margin-left: 2rem; margin-right: 2rem; }
  }

/* ── Form toast notifications ─────────────────────────────────── */
.form-toast-root {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.form-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px -12px rgb(15 23 42 / 0.25), 0 0 0 1px rgb(15 23 42 / 0.04);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.dark .form-toast {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 40px -12px rgb(0 0 0 / 0.5);
}

.form-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.form-toast.is-leaving {
  transform: translateX(120%);
  opacity: 0;
}

.form-toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-toast--success .form-toast-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.form-toast--error .form-toast-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.form-toast-icon svg { width: 1.125rem; height: 1.125rem; }

.form-toast-body { flex: 1; min-width: 0; }

.form-toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.125rem;
}

.dark .form-toast-title { color: #f8fafc; }

.form-toast-text {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.dark .form-toast-text { color: #94a3b8; }

.form-toast-close {
  background: none;
  border: none;
  padding: 0.25rem;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0.375rem;
  flex-shrink: 0;
  line-height: 0;
  transition: color 0.15s, background 0.15s;
}

.form-toast-close:hover {
  color: #64748b;
  background: #f1f5f9;
}

.dark .form-toast-close:hover { background: #334155; color: #cbd5e1; }

/* ── Inline form success (contact & quote) ────────────────────── */
.form-success-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: formSuccessIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgb(16 185 129 / 0.55);
}

.form-success-icon svg { width: 2rem; height: 2rem; }

.form-success-panel h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.dark .form-success-panel h3 { color: #f8fafc; }

.form-success-panel p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 22rem;
}

.dark .form-success-panel p { color: #94a3b8; }

.form-success-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.dark .form-success-reset {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.form-success-reset:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 4px 12px rgb(37 99 235 / 0.12);
}

.form-fields-hidden { display: none !important; }

.form-submit-loading {
  opacity: 0.65;
  pointer-events: none;
}

.form-btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: formSpin 0.7s linear infinite;
}

@keyframes formSpin {
  to { transform: rotate(360deg); }
}