/* ============================================================
   SharpCodeIT — THEME V3 "Aurora Studio" (loads after theme-v2.css)
   FULL TRANSFORMATION LAYER
   Every section becomes a floating rounded sheet on the dotted
   canvas. 3D tiles, marquee trust strip, premium dark slabs,
   glowing CTA, spotlight + tilt cards. Red/black/white concept.
   ============================================================ */

:root {
  --v3-ink: #0c0c0e;
  --v3-line: #e4e4e8;
  --v3-radius: 28px;
  --v3-gap: 18px;
  --v3-glow-red: rgba(220, 38, 38, 0.16);
  --v3-glow-blue: rgba(59, 130, 246, 0.10);
  --v3-glow-violet: rgba(139, 92, 246, 0.10);
  --v3-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --v3-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --v3-sheet-shadow: 0 1px 2px rgba(12,12,14,0.04), 0 18px 44px rgba(12,12,14,0.06);
}

/* ---------- KILL the v2 dashed page rails (they cut across slabs) ---------- */
@media (min-width: 1200px) {
  body::before, body::after { display: none !important; }
}

/* ---------- Ambient aurora orbs (fixed, ultra subtle) ---------- */
.v3-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.v3-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.8;
  will-change: transform;
}
.v3-aurora .a1 {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, var(--v3-glow-red), transparent 65%);
  animation: v3Drift1 26s ease-in-out infinite alternate;
}
.v3-aurora .a2 {
  width: 460px; height: 460px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, var(--v3-glow-blue), transparent 65%);
  animation: v3Drift2 32s ease-in-out infinite alternate;
}
.v3-aurora .a3 {
  width: 380px; height: 380px;
  top: 42%; left: 58%;
  background: radial-gradient(circle, var(--v3-glow-violet), transparent 65%);
  animation: v3Drift3 38s ease-in-out infinite alternate;
}
@keyframes v3Drift1 { to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes v3Drift2 { to { transform: translate(80px, -60px) scale(1.1); } }
@keyframes v3Drift3 { to { transform: translate(-70px, -90px) scale(0.9); } }

main, .footer-section { position: relative; z-index: 1; }
.navbar-main { z-index: 1050; }
.mega-menu { background: #fff; z-index: 1100; }

/* ---------- Scroll progress bar ---------- */
.v3-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 3000;
  pointer-events: none;
}
.v3-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-500), var(--red-700), #f97316);
  border-radius: 0 99px 99px 0;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  transition: width 0.08s linear;
}

/* ---------- Smart navbar (compact, with logo) ---------- */
.navbar-main {
  padding: 0.5rem 0.65rem;
  max-width: 1230px;
  transition: transform 0.45s var(--v3-ease-out), padding 0.35s var(--v3-ease-out),
              box-shadow 0.35s ease, background 0.35s ease, top 0.35s ease;
}
.navbar-main.v3-nav-hidden { transform: translateY(calc(-100% - 22px)); }
.navbar-main .navbar-logo,
.navbar-main.scrolled .navbar-logo { height: 40px; }
.navbar-main .nav-link {
  font-size: 0.93rem;
  padding: 0.48rem 1.05rem !important;
}
.navbar-main .btn-red {
  font-size: 0.88rem !important;
  padding: 0.55rem 1.3rem !important;
}
.navbar-main.scrolled { padding: 0.4rem 0.65rem; }
@media (max-width: 991.98px) {
  .navbar-main .navbar-logo,
  .navbar-main.scrolled .navbar-logo { height: 35px; }
}

/* ============================================================
   SECTION SYSTEM — floating rounded sheets & slabs
   Light sections: white sheets. Dark sections: ink slabs.
   All separated by canvas gaps, matching the footer treatment.
   ============================================================ */
.mesh-section,
.gray-section,
.pattern-section,
section.section-padding[style*="background:#f7f9fd"],
section.section-padding[style*="background:#f8f9fb"],
section[style*="background:linear-gradient(180deg,#f7f9fd"] {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--v3-line) !important;
  border-radius: var(--v3-radius);
  margin: 0 14px var(--v3-gap);
  box-shadow: var(--v3-sheet-shadow);
  overflow: hidden;
}

/* faint red bloom inside every white sheet */
.mesh-section::before,
.gray-section::before,
.pattern-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px circle at 85% -10%, rgba(220,38,38,0.05), transparent 60%),
    radial-gradient(520px circle at 8% 110%, rgba(59,130,246,0.04), transparent 60%);
  pointer-events: none;
}
.mesh-section > .container,
.gray-section > .container,
.pattern-section > .container { position: relative; z-index: 1; }

/* Dark sections — premium ink slabs */
.dark-section {
  border-radius: var(--v3-radius);
  margin: 0 14px var(--v3-gap);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background-color: #0a0a0c;
  background-image:
    radial-gradient(720px circle at 14% 0%, rgba(220, 38, 38, 0.13), transparent 55%),
    radial-gradient(560px circle at 88% 100%, rgba(59, 130, 246, 0.08), transparent 55%),
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}
/* red hairline across the top of dark slabs */
.dark-section::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.7), transparent);
  pointer-events: none;
}

/* CTA + consult wrappers stay on canvas */
.consult-banner-section { padding: 0 0 var(--v3-gap); }

/* page-hero: let stat pills & badges overflow (base css clips them) */
.page-hero { overflow: visible; }

/* ecommerce landing: harmonize full-bleed dark slabs with the sheet system */
.urgency-bar {
  position: relative;
  z-index: 40;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 92px auto 12px;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ecom-hero {
  margin: 0 14px;
  border-radius: var(--v3-radius);
  overflow: hidden;
}
.ecom-hero { padding-top: 3.5rem !important; }
.final-cta {
  margin: 0 14px var(--v3-gap);
  border-radius: var(--v3-radius);
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .ecom-hero { margin: 0 8px; }
  .final-cta { margin: 0 8px var(--v3-gap); }
}
@media (max-width: 575.98px) {
  .ecom-hero { margin: 0 6px; }
  .final-cta { margin: 0 6px var(--v3-gap); }
}

/* ============================================================
   HERO — animated gradient headline + shimmer badge
   ============================================================ */
.text-gradient,
.hero-title .text-gradient {
  background: linear-gradient(90deg, var(--red-600), #f97316, var(--red-500), var(--red-700), var(--red-600));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: v3GradFlow 7s ease-in-out infinite;
}
@keyframes v3GradFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-badge {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(12,12,14,0.05), 0 8px 24px rgba(12,12,14,0.05);
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60%;
  left: -80%;
  background: linear-gradient(105deg, transparent 20%, rgba(220,38,38,0.08) 50%, transparent 80%);
  animation: v3Shimmer 3.6s ease-in-out infinite;
}
@keyframes v3Shimmer { 0% { left: -80%; } 55%, 100% { left: 130%; } }

.hero-description { max-width: 560px; }
.hero-stats .hero-stat h3 { transition: transform 0.3s var(--v3-ease-spring); }
.hero-stat:hover h3 { transform: translateY(-3px) scale(1.06); }

.ai-terminal {
  animation: v3Float 6s ease-in-out infinite;
  box-shadow: 0 2px 4px rgba(12,12,14,0.06), 0 30px 70px rgba(12,12,14,0.16);
}
@keyframes v3Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   3D AI CORE — hero visual (replaces the terminal)
   ============================================================ */
.ai-core-scene {
  position: relative;
  height: 500px;
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-core-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg));
  transition: transform 0.25s ease-out;
}

/* ----- Neural connection lines ----- */
.ai-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.ai-link-base {
  stroke: rgba(220, 38, 38, 0.14);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ai-link-pulse {
  stroke: rgba(220, 38, 38, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 14 130;
  stroke-dashoffset: 144;
  animation: aiDataPulse 3.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(220, 38, 38, 0.6));
}
.ai-link-pulse.lp2 { animation-delay: 0.8s; stroke: rgba(59, 130, 246, 0.75); filter: drop-shadow(0 0 4px rgba(59,130,246,0.6)); }
.ai-link-pulse.lp3 { animation-delay: 1.6s; stroke: rgba(249, 115, 22, 0.75); filter: drop-shadow(0 0 4px rgba(249,115,22,0.6)); }
.ai-link-pulse.lp4 { animation-delay: 2.4s; stroke: rgba(34, 197, 94, 0.75); filter: drop-shadow(0 0 4px rgba(34,197,94,0.6)); }
@keyframes aiDataPulse { to { stroke-dashoffset: 0; } }

/* ----- Crimson Ripple S Mark (open ripple engine) ----- */
.sr-logo {
  position: absolute;
  top: 50%; left: 50%;
  width: min(88%, 470px);
  transform: translate(-50%, -50%);
  container-type: inline-size;
  pointer-events: none;
  z-index: 1;
}
.sr-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  pointer-events: auto;
  cursor: pointer;
}
.sr-stage {
  position: absolute; inset: 0;
  animation: srShimmer 6.5s ease-in-out infinite alternate;
}
@keyframes srShimmer {
  from { filter: brightness(1) saturate(1); }
  to   { filter: brightness(1.08) saturate(1.14); }
}
.sr-stage svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.sr-glow  { filter: blur(6px);  opacity: .95; }
.sr-bloom { filter: blur(16px); opacity: .60; }
.sr-core {
  animation: srCorePulse 4.5s ease-in-out infinite;
  transform-origin: 500px 500px;
}
@keyframes srCorePulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* the white-hot brand S */
.sr-letter {
  position: absolute; inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: srBreathe 4.2s ease-in-out infinite;
}
.sr-letter svg {
  width: 26cqw;
  height: auto;
  display: block;
}
@keyframes srBreathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 1.1cqw rgba(255,255,255,.92))
            drop-shadow(0 0 4cqw rgba(255,74,58,.75))
            drop-shadow(0 0 9.5cqw rgba(255,36,56,.50));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 1.7cqw rgba(255,255,255,1))
            drop-shadow(0 0 5.4cqw rgba(255,96,80,.95))
            drop-shadow(0 0 12cqw rgba(255,36,56,.68));
  }
}
/* drifting embers */
.sr-spark {
  position: absolute;
  top: 50%; left: 50%;
  width: 1.4cqw; height: 1.4cqw;
  margin: -0.7cqw;
  border-radius: 50%;
  z-index: 4;
  background: #fff;
  box-shadow: 0 0 1.5cqw #fff, 0 0 3.5cqw var(--c);
  pointer-events: none;
  animation: srOrbit var(--t) linear infinite, srTwinkle 2.6s ease-in-out var(--d) infinite;
}
.sr-spark.p1 { --a: 20deg;  --r: 37cqw; --t: 15s; --d: 0s;    --c: #ff2438; }
.sr-spark.p2 { --a: 130deg; --r: 30cqw; --t: 20s; --d: -1.2s; --c: #ff5a3a; }
.sr-spark.p3 { --a: 240deg; --r: 41cqw; --t: 26s; --d: -0.5s; --c: #ffffff; }
.sr-spark.p4 { --a: 320deg; --r: 26cqw; --t: 17s; --d: -2s;   --c: #ff8f86; }
@keyframes srOrbit {
  from { transform: rotate(var(--a)) translateX(var(--r)); }
  to   { transform: rotate(calc(var(--a) + 360deg)) translateX(var(--r)); }
}
@keyframes srTwinkle {
  0%, 100% { opacity: .95; }
  50% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-stage, .sr-letter, .sr-spark, .sr-core { animation: none !important; }
}

/* ----- Concentric rings ----- */
.ai-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.ai-ring.r1 {
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border: 1.5px dashed rgba(220, 38, 38, 0.35);
  animation: aiRingSpin 28s linear infinite;
}
.ai-ring.r2 {
  width: 350px; height: 350px;
  margin: -175px 0 0 -175px;
  border: 1px solid rgba(12, 12, 14, 0.08);
}
.ai-ring.r3 {
  width: 440px; height: 440px;
  margin: -220px 0 0 -220px;
  border: 1px dashed rgba(12, 12, 14, 0.10);
  animation: aiRingSpin 60s linear infinite reverse;
}
@keyframes aiRingSpin { to { transform: rotate(360deg); } }

/* ----- Orbiting satellites (clean 2D orbits) ----- */
.ai-orbiter {
  position: absolute;
  top: 50%; left: 50%;
  pointer-events: none;
  animation: aiRingSpin 12s linear infinite;
}
.ai-orbiter.ob1 { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
.ai-orbiter.ob2 { width: 350px; height: 350px; margin: -175px 0 0 -175px; animation-duration: 20s; animation-direction: reverse; }
.ai-orbiter.ob3 { width: 440px; height: 440px; margin: -220px 0 0 -220px; animation-duration: 34s; }
.ai-sat {
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8a8a, var(--red-600));
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.9), 0 0 30px rgba(220, 38, 38, 0.4);
}
.ai-sat.sat-blue {
  background: radial-gradient(circle at 30% 30%, #93c5fd, #2563eb);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9), 0 0 30px rgba(59, 130, 246, 0.4);
}
.ai-sat.sat-orange {
  width: 9px; height: 9px;
  background: radial-gradient(circle at 30% 30%, #fdba74, #ea580c);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

/* ----- Core: black & white brand tile (matches the logo mark) ----- */
.ai-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 165px; height: 165px;
  margin: -82px 0 0 -82px;
  border-radius: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 70% 85%, rgba(255,255,255,0.06), transparent 50%),
    linear-gradient(150deg, #3a3a41 0%, #131316 52%, #000000 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -16px 28px rgba(0,0,0,0.65),
    0 0 0 6px rgba(12, 12, 14, 0.05),
    0 30px 70px rgba(12, 12, 14, 0.4);
  animation: aiCoreBreathe 4.5s ease-in-out infinite;
}
@keyframes aiCoreBreathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -16px 28px rgba(0,0,0,0.65), 0 0 0 6px rgba(12,12,14,0.05), 0 30px 70px rgba(12,12,14,0.38); }
  50% { transform: translateY(-9px) scale(1.03); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -16px 28px rgba(0,0,0,0.65), 0 0 0 10px rgba(12,12,14,0.04), 0 42px 84px rgba(12,12,14,0.45); }
}
.ai-core svg {
  width: 46%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 10px rgba(255,255,255,0.35));
  animation: aiLogoFlash 4.5s ease-in-out infinite;
}
@keyframes aiLogoFlash {
  0%, 100% { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 5px rgba(255,255,255,0.25)); }
  50% { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 15px rgba(255,255,255,0.8)); }
}
/* diagonal light sweep across the tile */
.ai-core-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.05) 56%, transparent 64%);
  background-size: 320% 100%;
  background-position: 130% 0;
  animation: aiShineSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aiShineSweep {
  0%, 55% { background-position: 130% 0; }
  90%, 100% { background-position: -130% 0; }
}
/* expanding pulse rings — neutral ink with a red whisper */
.ai-core-pulse {
  position: absolute;
  inset: 0;
  border-radius: 30%;
  border: 2px solid rgba(12, 12, 14, 0.35);
  opacity: 0;
  animation: aiPulseOut 3.4s ease-out infinite;
  pointer-events: none;
}
.ai-core-pulse.d2 { animation-delay: 1.7s; border-color: rgba(220, 38, 38, 0.35); }
@keyframes aiPulseOut {
  0% { opacity: 0; transform: scale(0.94); }
  12% { opacity: 0.75; }
  100% { opacity: 0; transform: scale(1.9); }
}

/* ----- Floating glass chips ----- */
.ai-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--v3-ink);
  box-shadow: 0 2px 4px rgba(12,12,14,0.06), 0 14px 34px rgba(12,12,14,0.12);
  white-space: nowrap;
  animation: aiChipFloat 6s ease-in-out infinite;
}
.ai-chip i {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, var(--red-500), var(--red-700));
  box-shadow: 0 4px 10px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.ai-chip.c2 i { background: linear-gradient(145deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 10px rgba(59,130,246,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.ai-chip.c3 i { background: linear-gradient(145deg, #f97316, #c2410c); box-shadow: 0 4px 10px rgba(249,115,22,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.ai-chip.c4 i { background: linear-gradient(145deg, #22c55e, #15803d); box-shadow: 0 4px 10px rgba(34,197,94,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
/* chips anchored to the neural line endpoints (20,15 / 83,26 / 17,70 / 81,78) */
.ai-chip { transform: translate(-50%, -50%); }
.ai-chip.c1 { top: 15%; left: 20%; animation-delay: 0s; }
.ai-chip.c2 { top: 26%; left: 83%; animation-delay: 1.6s; }
.ai-chip.c3 { top: 70%; left: 17%; animation-delay: 0.9s; }
.ai-chip.c4 { top: 78%; left: 81%; animation-delay: 2.3s; }
@keyframes aiChipFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ----- Status pill ----- */
.ai-status-pill {
  position: absolute;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--v3-ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px rgba(12,12,14,0.3);
}
.ai-status-dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: aiwPing 2s ease-out infinite;
}

/* ----- Particles ----- */
.ai-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  opacity: 0.5;
  animation: aiTwinkle 4s ease-in-out infinite;
}
.ai-particle.p1 { top: 14%; left: 38%; animation-delay: 0s; }
.ai-particle.p2 { top: 30%; left: 12%; width: 4px; height: 4px; background: #3b82f6; animation-delay: 0.7s; }
.ai-particle.p3 { top: 62%; right: 10%; animation-delay: 1.4s; }
.ai-particle.p4 { bottom: 30%; left: 24%; width: 4px; height: 4px; background: #f97316; animation-delay: 2.1s; }
.ai-particle.p5 { top: 8%; right: 26%; width: 5px; height: 5px; animation-delay: 2.8s; }
.ai-particle.p6 { bottom: 12%; right: 34%; width: 4px; height: 4px; background: #3b82f6; animation-delay: 3.5s; }
@keyframes aiTwinkle {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(1); }
  50% { opacity: 0.9; transform: translateY(-10px) scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-ring, .ai-orbiter, .ai-link-pulse, .ai-core, .ai-core svg,
  .ai-core-shine, .ai-core-pulse, .ai-chip { animation: none !important; }
}

/* ============================================================
   TRUST STRIP — transformed into a seamless marquee on canvas
   ============================================================ */
.trust-strip {
  background: transparent !important;
  border: none !important;
  padding: 0.4rem 0 1.6rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust-strip .container { max-width: none; padding: 0; }
.trust-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.9rem;
  width: max-content;
}
.trust-strip-inner.v3-marquee { animation: v3Marquee 26s linear infinite; }
.trust-strip:hover .trust-strip-inner.v3-marquee { animation-play-state: paused; }
@keyframes v3Marquee { to { transform: translateX(-50%); } }

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f3f46;
  box-shadow: 0 1px 2px rgba(12,12,14,0.05);
  transition: transform 0.3s var(--v3-ease-spring), border-color 0.25s ease, box-shadow 0.3s ease, color 0.25s ease;
}
.trust-strip-item:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--v3-ink);
  box-shadow: 0 12px 26px rgba(12,12,14,0.10);
}
.trust-strip-item i {
  color: #fff;
  background: linear-gradient(145deg, var(--red-500), var(--red-700));
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(220,38,38,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   SERVICE MINI CARDS — 3D tiles with sliding arrow
   ============================================================ */
.service-card-mini {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  gap: 0.9rem;
  padding: 1.15rem 2.4rem 1.15rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--v3-line);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 1px 2px rgba(12,12,14,0.04);
  transition: transform 0.35s var(--v3-ease-out), box-shadow 0.35s ease,
              border-color 0.3s ease, background 0.3s ease;
}
.service-card-mini:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.4);
  background: #fff;
  box-shadow: 0 2px 4px rgba(12,12,14,0.05), 0 22px 44px rgba(12,12,14,0.12),
              0 0 0 4px rgba(220, 38, 38, 0.05);
}
/* 3D icon tile */
.service-card-mini i {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 13px;
  font-size: 1.25rem;
  color: var(--red-600);
  background: linear-gradient(160deg, #fff5f5, #fee2e2);
  border: 1px solid #fecaca;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 3px 8px rgba(220,38,38,0.10);
  transition: transform 0.4s var(--v3-ease-spring), box-shadow 0.35s ease;
}
.service-card-mini:hover i {
  color: #fff;
  background: linear-gradient(150deg, var(--red-500), var(--red-700));
  border-color: var(--red-600);
  transform: translateY(-3px) rotate(-6deg) scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 22px rgba(220,38,38,0.42);
}
.service-card-mini span { transition: color 0.25s ease; }
.service-card-mini:hover span { color: var(--v3-ink); }
/* sliding arrow */
.service-card-mini::after {
  content: '\2192';
  position: absolute;
  right: 1rem;
  top: 50%;
  translate: 8px -50%;
  font-size: 1rem;
  font-weight: 800;
  color: var(--red-600);
  opacity: 0;
  transition: opacity 0.28s ease, translate 0.32s var(--v3-ease-spring);
}
.service-card-mini:hover::after { opacity: 1; translate: 0 -50%; }
/* center the incomplete last row of the services grid */
#services .row { justify-content: center; }

/* ============================================================
   SPOTLIGHT + 3D TILT SYSTEM
   ============================================================ */
.expertise-card, .case-card, .glass-card, .process-timeline-card,
.dark-card, .saas-card, .contact-info-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.service-card-mini::before,
.expertise-card::before,
.case-card::before,
.glass-card::before,
.process-timeline-card::before,
.saas-card::before,
.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(220, 38, 38, 0.07), transparent 65%);
  transition: opacity 0.35s ease;
}
.dark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.07), transparent 65%);
  transition: opacity 0.35s ease;
}
.v3-spot:hover::before { opacity: 1; }
.service-card-mini > *, .expertise-card > *, .case-card > *,
.glass-card > *, .process-timeline-card > *, .dark-card > *,
.saas-card > *, .contact-info-card > * { position: relative; z-index: 1; }

@media (hover: hover) and (pointer: fine) {
  .v3-tilt {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    transition: transform 0.18s ease-out, box-shadow 0.4s ease, border-color 0.3s ease;
  }
  .v3-tilt:hover { transition: transform 0.06s linear, box-shadow 0.4s ease; }
}

/* Expertise cards */
.expertise-card {
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.35s var(--v3-ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}
.expertise-card:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 2px 4px rgba(12,12,14,0.05), 0 24px 48px rgba(12,12,14,0.10);
}
.expertise-icon { transition: transform 0.4s var(--v3-ease-spring), box-shadow 0.35s ease; }
.expertise-card:hover .expertise-icon {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.05);
}

/* Case cards */
.case-card {
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  transition: transform 0.4s var(--v3-ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform;
}
.case-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 3px 6px rgba(12,12,14,0.05), 0 30px 60px rgba(12,12,14,0.14);
}
.case-img { overflow: hidden; position: relative; }
.case-img i { transition: transform 0.5s var(--v3-ease-out); }
.case-card:hover .case-img i { transform: scale(1.25) rotate(-5deg); }
.case-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--v3-ease-out);
}
.case-card:hover .case-img::after { transform: translateX(110%); }

/* ============================================================
   BUTTONS — shine sweep + press depth
   ============================================================ */
.btn-red, .btn-dark, .btn-white, .btn-red-outline {
  position: relative;
  overflow: hidden;
}
.btn-red::after, .btn-dark::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  left: -70%;
  background: linear-gradient(105deg, transparent 15%, rgba(255,255,255,0.28) 50%, transparent 85%);
  transform: skewX(-18deg);
  transition: left 0.6s var(--v3-ease-out);
  pointer-events: none;
}
.btn-red:hover::after, .btn-dark:hover::after { left: 130%; }
.btn:active { transform: scale(0.965) !important; }
.btn .bi-arrow-right { transition: transform 0.3s var(--v3-ease-spring); display: inline-block; }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

/* ============================================================
   SECTION CHROME — labels + gradient title accents
   ============================================================ */
.section-label {
  background: #fff;
  transition: transform 0.3s var(--v3-ease-spring), box-shadow 0.3s ease;
}
.section-label:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(12,12,14,0.10); }

.section-title { position: relative; }
.text-center .section-title::after {
  content: '';
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 99px;
  margin: 0.95rem auto 0;
  background: linear-gradient(90deg, var(--red-600), #f97316);
  box-shadow: 0 2px 8px rgba(220,38,38,0.35);
}
.dark-section .text-center .section-title::after {
  background: linear-gradient(90deg, var(--red-500), #fb923c);
}

/* ============================================================
   CONSULT BANNER — glow + depth
   ============================================================ */
.consult-banner {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.consult-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 85% 20%, rgba(255,255,255,0.14), transparent 60%);
  pointer-events: none;
}
.consult-banner-icon { animation: v3Wiggle 4s ease-in-out infinite; }
@keyframes v3Wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  90% { transform: rotate(-10deg) scale(1.08); }
  94% { transform: rotate(9deg) scale(1.08); }
  98% { transform: rotate(-4deg); }
}

/* ============================================================
   DARK CARDS + FEATURES
   ============================================================ */
.dark-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--v3-ease-out), border-color 0.3s ease, background 0.3s ease;
}
.dark-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(255, 255, 255, 0.045);
}
.feature-icon-box { transition: transform 0.4s var(--v3-ease-spring), box-shadow 0.35s ease; }
.dark-card:hover .feature-icon-box {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.45);
}

/* ============================================================
   COUNTER SECTION — glass tiles inside the ink slab
   ============================================================ */
.counter-section { padding: 4rem 0; }
.counter-item {
  text-align: center;
  border-radius: 20px;
  padding: 1.8rem 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s var(--v3-ease-out), border-color 0.3s ease,
              background 0.3s ease, box-shadow 0.35s ease;
}
.counter-item:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 30px rgba(220,38,38,0.12);
}
.counter-icon {
  width: 52px; height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(150deg, var(--red-500), var(--red-700));
  box-shadow: 0 8px 20px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.4s var(--v3-ease-spring);
}
.counter-item:hover .counter-icon { transform: translateY(-4px) scale(1.12) rotate(-5deg); }
.dark-section .counter-item h3,
.dark-section .counter-item .counter-value {
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-timeline-card {
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.35s var(--v3-ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}
.process-timeline-step:hover .process-timeline-card {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 24px 48px rgba(12,12,14,0.10);
}
.process-timeline-num { transition: transform 0.35s var(--v3-ease-spring), box-shadow 0.3s ease; }
.process-timeline-step:hover .process-timeline-num {
  transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.10);
}
.process-timeline-icon { transition: transform 0.4s var(--v3-ease-spring); }
.process-timeline-step:hover .process-timeline-icon { transform: rotate(-8deg) scale(1.12); }

/* ============================================================
   TECH TAGS
   ============================================================ */
.tech-tag {
  transition: transform 0.25s var(--v3-ease-spring), box-shadow 0.25s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tech-tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--v3-ink);
  color: #fff;
  border-color: var(--v3-ink);
  box-shadow: 0 10px 22px rgba(12,12,14,0.16);
  cursor: default;
}

/* ============================================================
   FAQ ACCORDION — brand colors instead of Bootstrap blue
   ============================================================ */
.accordion-button:not(.collapsed) {
  background: #fef2f2;
  color: var(--red-700);
  box-shadow: none;
}
.accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.accordion-button:not(.collapsed)::after {
  filter: hue-rotate(140deg) saturate(3);
}
.accordion-body { color: #52525b; line-height: 1.75; font-size: 0.95rem; }

/* ============================================================
   INDUSTRY CARDS (homepage)
   ============================================================ */
.industry-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  padding: 1.5rem 1.1rem 1.3rem;
  box-shadow: 0 1px 2px rgba(12,12,14,0.04);
  transition: transform 0.35s var(--v3-ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 2px 4px rgba(12,12,14,0.05), 0 22px 44px rgba(12,12,14,0.10);
}
.industry-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--red-600);
  background: linear-gradient(160deg, #fff5f5, #fee2e2);
  border: 1px solid #fecaca;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 3px 8px rgba(220,38,38,0.10);
  transition: transform 0.4s var(--v3-ease-spring), box-shadow 0.35s ease;
}
.industry-card:hover i {
  color: #fff;
  background: linear-gradient(150deg, var(--red-500), var(--red-700));
  border-color: var(--red-600);
  transform: translateY(-3px) rotate(-6deg) scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 22px rgba(220,38,38,0.42);
}
.industry-card h6 {
  color: var(--v3-ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.industry-card p {
  font-size: 0.78rem;
  color: #6b6b74;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   FLYTRO SPOTLIGHT (homepage product banner)
   ============================================================ */
.fly-spotlight {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 2.75rem 3rem;
  color: #fff;
  background:
    radial-gradient(640px circle at 88% 0%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(520px circle at 0% 100%, rgba(220, 38, 38, 0.16), transparent 55%),
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(135deg, #0b1c3d 0%, #0a0a0c 70%);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 26px 60px rgba(10, 20, 50, 0.35);
}
.fly-spotlight-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.9rem;
}
.fly-spotlight h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fly-spotlight p {
  color: #b6c2d9;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}
.fly-spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.25rem;
}
.fly-spotlight-stats div { display: flex; flex-direction: column; }
.fly-spotlight-stats strong {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fly-spotlight-stats span {
  font-size: 0.72rem;
  color: #7d8aa3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fly-spotlight-visual {
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.fly-spotlight-visual img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 20px 44px rgba(59, 130, 246, 0.35));
  animation: v3Float 6s ease-in-out infinite;
  border-radius: 24px;
}
@media (max-width: 991.98px) {
  .fly-spotlight { flex-direction: column; text-align: center; padding: 2.25rem 1.5rem; }
  .fly-spotlight p { margin-inline: auto; }
  .fly-spotlight-stats { justify-content: center; gap: 1.25rem; }
  .fly-spotlight .d-flex { justify-content: center; }
}

/* ============================================================
   CTA SECTION — premium red slab (no more diagonal stripes)
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--v3-radius);
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 45%, #991b1b 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  box-shadow: 0 26px 60px rgba(220, 38, 38, 0.30), inset 0 1px 0 rgba(255,255,255,0.16);
}
.cta-section::after {
  background:
    radial-gradient(560px circle at 88% 12%, rgba(255,255,255,0.13), transparent 60%),
    radial-gradient(480px circle at 8% 95%, rgba(0,0,0,0.22), transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
}
.cta-section::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: v3Float 9s ease-in-out infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section { border: 1px solid rgba(255, 255, 255, 0.06); }
.footer-section::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.6), transparent);
}
.footer-links a { position: relative; display: inline-block; }
.footer-links a::before {
  content: '\2192\00a0';
  opacity: 0;
  margin-left: -14px;
  transition: opacity 0.22s ease, margin 0.22s ease;
  color: var(--red-500);
}
.footer-links a:hover::before { opacity: 1; margin-left: 0; }
.footer-links a:hover { padding-left: 0; }

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
.v3-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--v3-ease-out), transform 0.7s var(--v3-ease-out);
}
.v3-reveal.v3-in { opacity: 1; transform: none; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, .form-select:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE SYSTEM
   ============================================================ */
@media (max-width: 1199.98px) {
  :root { --v3-radius: 24px; }
}

@media (max-width: 991.98px) {
  .hero-section { padding-top: 112px; }
  .page-hero { padding: 118px 0 44px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 200px; justify-content: center; }
  .mesh-section, .gray-section, .pattern-section, .dark-section { margin: 0 8px var(--v3-gap); }
  .consult-banner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .consult-banner-content { flex-direction: column; text-align: center; }
  .v3-aurora span { filter: blur(70px); }
}

@media (max-width: 767.98px) {
  :root { --v3-radius: 20px; --v3-gap: 14px; }
  h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  h2 { font-size: clamp(1.55rem, 6.2vw, 2.1rem); }
  .section-subtitle { font-size: 0.95rem; }
  .section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .trust-strip { padding-bottom: 1.2rem; }
  .trust-strip-inner.v3-marquee { animation-duration: 18s; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
  }
  .hero-stats .hero-stat { padding: 0.6rem 0.25rem; }

  .process-timeline { flex-direction: column; gap: 1.1rem; }
  .process-timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
  }
  .process-timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: -18px;
    border-left: 2px dashed #d6d6dc;
  }
  .process-timeline-num { flex-shrink: 0; position: relative; z-index: 1; }
  .process-timeline-card { flex: 1; }

  .counter-section { padding: 3rem 0; }
  .counter-item { padding: 1.2rem 0.6rem 1rem; }
  .cta-section .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 575.98px) {
  .hero-section { padding-top: 100px; }
  .page-hero { padding: 106px 0 36px; }
  .hero-title { line-height: 1.12; }
  .hero-description { font-size: 0.95rem; }
  .hero-actions .btn { min-width: 100%; }
  .btn-lg { padding: 0.7rem 1.3rem; font-size: 0.95rem; }
  .mesh-section, .gray-section, .pattern-section, .dark-section { margin: 0 6px var(--v3-gap); }
  .expertise-card { flex-direction: column; }
  .v3-aurora .a3 { display: none; }
  .section-padding { padding-top: 3rem; padding-bottom: 3rem; }
  .consult-banner { padding: 1.5rem 1.25rem; }
  .consult-banner .btn { width: 100%; }
  .flash-alert { top: 84px; border-radius: 18px; }
  .case-card:hover, .service-card-mini:hover, .expertise-card:hover { transform: none; }
}

@media (hover: none) {
  .v3-tilt { transform: none !important; }
  .v3-spot::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-aurora, .hero-badge::after, .case-img::after { display: none; }
  .ai-terminal { animation: none; }
  .trust-strip-inner.v3-marquee { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .v3-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   AI BRAND MARK — crimson ripple edition (matches the hero mark)
   Dark tile, white-hot S with red glow, crimson ripple rings.
   Applies to the chat launcher, panel header, and msg avatars.
   ============================================================ */
.aiw-s {
  border-radius: 30%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 36, 56, 0.55), rgba(122, 7, 22, 0.25) 55%, transparent 75%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%),
    linear-gradient(150deg, #2a1214 0%, #120608 52%, #000000 100%);
  border: 1.5px solid rgba(255, 143, 134, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -6px 10px rgba(0,0,0,0.6),
    0 0 16px rgba(255, 36, 56, 0.5);
  animation: aiwSFloat 2.8s ease-in-out infinite, aiwSGlowSR 2.8s ease-in-out infinite;
}
@keyframes aiwSGlowSR {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -6px 10px rgba(0,0,0,0.6), 0 0 12px rgba(255,36,56,0.4); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -6px 10px rgba(0,0,0,0.6), 0 0 24px rgba(255,36,56,0.75), 0 0 8px rgba(255,255,255,0.3); }
}
/* white-hot S glyph glow (matches hero srBreathe) */
.aiw-s svg {
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.9))
          drop-shadow(0 0 6px rgba(255,74,58,0.8));
}
/* crimson ripple rings dissolving outward */
.aiw-s .aiw-ripple {
  border-radius: 30%;
  border: 1.5px solid rgba(255, 36, 56, 0.65);
  box-shadow: 0 0 12px rgba(255, 36, 56, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.08);
}
.aiw-head-avatar.aiw-s {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -6px 10px rgba(0,0,0,0.6),
              0 0 0 3px rgba(255, 36, 56, 0.25), 0 0 16px rgba(255, 36, 56, 0.45);
}

/* ---------- "Ask AI" LAUNCHER — crimson ember pill ---------- */
.aiw-launcher {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.30), transparent 42%),
    radial-gradient(circle at 75% 90%, rgba(0,0,0,0.35), transparent 55%),
    linear-gradient(140deg, #ff4343 0%, #e01326 48%, #8a0a18 100%);
  border: 1px solid rgba(255, 170, 160, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 10px 28px rgba(220, 16, 40, 0.45);
  animation: aiwLauncherGlow 2.8s ease-in-out infinite;
}
@keyframes aiwLauncherGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 26px rgba(220, 16, 40, 0.40); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 40px rgba(255, 36, 56, 0.70), 0 0 18px rgba(255, 90, 74, 0.45); }
}
.aiw-launcher:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 16px 44px rgba(255, 36, 56, 0.75);
}
.aiw-launcher-text {
  text-shadow: 0 1px 2px rgba(90, 4, 16, 0.6);
  letter-spacing: 0.01em;
}
/* white-hot S floats free inside the pill — no tile box */
.aiw-launcher .aiw-s {
  background: transparent;
  border: none;
  box-shadow: none;
  animation: aiwSFloat 2.8s ease-in-out infinite;
}
.aiw-launcher .aiw-s svg {
  width: 62%;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.95))
          drop-shadow(0 0 7px rgba(255,255,255,0.55))
          drop-shadow(0 1px 2px rgba(90,4,16,0.5));
}
/* white ripples dissolving over the crimson pill */
.aiw-launcher .aiw-ripple {
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
/* spinning dashed halo goes white */
.aiw-launcher-ring {
  border: 1.5px dashed rgba(255, 200, 195, 0.65);
}
/* status dot ring matches the new pill color */
.aiw-launcher-status {
  border-color: #8a0a18;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
