/* =========================================================
   TurtlTech — Liquid Glass Design System (iOS 26 inspired)
   ========================================================= */

:root{
  --accent: #7C5CFC;
  --accent2: #3ED9C9;
  --accent3: #FF6E5A;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --glass-blur: 22px;
  --glass-sat: 220%;
  --glass-fill-top: rgba(255, 255, 255, .16);
  --glass-fill-mid: rgba(255,255,255,.05);
  --glass-fill-bottom: rgba(20,26,50,.72);
  --glass-border: rgba(255,255,255,.22);
  --glass-border-hover: rgba(255,255,255,.5);

  /* Solid, always-legible panel fill used behind dropdown/mega menus and mobile menu,
     so text never fights with whatever is scrolling underneath it. */
  --panel-fill: #12162c;
  --panel-fill-2: #0b0e20;
  --text-primary: #F4F6FF;
  --text-muted: #B9C0E0;
}


/* =========================================================
   MEGA MENU INNER LINKS & HOVER HIGHLIGHT (Based on Image)
   ========================================================= */

/* 1. Base styling for the links inside the mega columns */
.mega-col ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  border-radius: 0.5rem; /* 8px rounded corners */
  text-decoration: none !important;
  transition: all 0.25s ease;
  font-weight: 500;
}
/* Remove underlines from mega menu industry links */
.mega-industry {
  text-decoration: none !important; /* Removes the underline */
}

/* Optional: If you also want to ensure the top-level nav links never underline */
.nav-link, 
.nav-link-mega,
.mega-col ul li a {
  text-decoration: none !important;
}

/* Ensure hover states don't bring the underline back */
.mega-industry:hover,
.nav-link:hover,
.mega-col ul li a:hover {
  text-decoration: none;
 
  padding: auto;
}
/* 2. The Purple Highlight on Hover (Matching the image) */
.mega-col ul li:hover > a {
  background-color: rgba(124, 92, 252, 0.22);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 252, 0.35);
}

/* =========================================================
   NESTED FLYOUT CART (The glass panel on the right)
   ========================================================= */

/* Ensure the parent is positioned relative so the flyout anchors to it */
.mega-item-flyout {
  position: relative;
}

/* Caret rotation on hover */
.flyout-caret {
  transition: transform 0.3s ease;
}
.mega-item-flyout:hover .flyout-caret {
  transform: rotate(-90deg); /* Rotates arrow to point right */
}

/* Using the element hierarchy */
footer li a {
  
  color: white!important
  ;
  text-decoration: none;
}
.leading-relaxed{
  color: white!important;
  text-decoration: none;  
}
footer .social-ic {
  color: white !important;
  text-decoration: none;
  
}

footer p {
  color: white !important;
  text-decoration: none;
}
main {
  margin-top: 100px !important;
}

/* Using the element hierarchy */
footer li a {
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease; /* Adds a smooth fade effect */
}

/* Hover effect for list links */
footer li a:hover {
  color: #cbd5e1 !important; /* Changes to a light grayish-white */
  text-decoration: underline; /* Adds underline on hover */
}

.leading-relaxed {
  color: white !important;
  text-decoration: none;
  
}

footer .social-ic {
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease; 
}

/* Hover effect for social icons */
footer .social-ic:hover {
  color: #38bdf8 !important; /* Changes to a bright blue (adjust as needed) */
  transform: scale(1.1); /* Optional: Adds a slight "zoom" pop effect to icons */
}

footer p {
  color: white !important;
  text-decoration: none;
}


/* OR targeting the specific class (Better for specificity) */
.footer-link {
  color: white; /* No !important used here, so hover doesn't need it either */
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effect for the specific class */
.footer-link:hover {
  color: #cbd5e1; 
  text-decoration: underline;
}

/* OR targeting the specific class (Better for specificity) */
.footer-link {
  color: white;
  text-decoration: none;
}

/* Remove default list padding/margin in the flyout */
.mega-flyout, 
.mega-flyout ul {
  list-style: none;
  margin: 0;
}

/* Show the flyout when hovering over the parent item */
.mega-item-flyout:hover .mega-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* ===== Base ===== */
::selection { background: var(--accent); color: #070A17; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(124,92,252,0.16), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 30%, rgba(62,217,201,0.12), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 50% 90%, rgba(124,92,252,0.10), transparent 60%),
    #070A17;
  background-attachment: fixed;
}

/* ===== Ambient aurora backdrop (gives the glass something to refract) ===== */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; height: 100vh; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; will-change: transform; }
.aurora-1 { width: 680px; height: 680px; top: -160px; left: -140px; background: radial-gradient(circle, var(--accent), transparent 70%); animation: drift1 26s ease-in-out infinite; }
.aurora-2 { width: 620px; height: 620px; top: 15%; right: -200px; background: radial-gradient(circle, var(--accent2), transparent 70%); animation: drift2 30s ease-in-out infinite; }
.aurora-3 { width: 580px; height: 580px; bottom: -220px; left: 28%; background: radial-gradient(circle, var(--accent3), transparent 70%); animation: drift3 34s ease-in-out infinite; opacity: .35; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,60px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-60px) scale(1.12); } }

/* Repeating aurora field so glass cards deep down the page also have color to catch */
.aurora-field { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 420px at 8% 15%, rgba(124,92,252,.16), transparent 65%),
    radial-gradient(520px 420px at 92% 30%, rgba(62,217,201,.14), transparent 65%),
    radial-gradient(560px 460px at 15% 55%, rgba(255,110,90,.10), transparent 65%),
    radial-gradient(560px 460px at 88% 68%, rgba(124,92,252,.14), transparent 65%),
    radial-gradient(600px 480px at 20% 92%, rgba(62,217,201,.13), transparent 65%);
}

.grad-text {
  background: linear-gradient(90deg, #7C5CFC, #3ED9C9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text2 {
  background: linear-gradient(90deg, #3ED9C9, #7C5CFC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Nav ===== */
.nav-link { position: relative; transition: color .25s var(--ease); padding: 6px 2px; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: linear-gradient(90deg,#7C5CFC,#3ED9C9); transition: width .3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.glass-nav {
  position: relative; z-index: 45;
  background: linear-gradient(155deg, var(--glass-fill-top), var(--glass-fill-mid) 40%, var(--glass-fill-bottom));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.35), 0 20px 50px -20px rgba(0,0,0,.7);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; isolation: isolate; overflow: hidden;
}
.glass-nav::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; z-index: 1; mix-blend-mode: overlay;
}
.glass-nav:hover::before { opacity: 1; }
.glass-nav:hover { border-color: var(--glass-border-hover); }
.header-shell { transition: top .3s var(--ease), padding .3s var(--ease); position: relative; }
.header-shell::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 96px;
  background: linear-gradient(180deg, rgba(7,10,23,.92) 0%, rgba(7,10,23,.75) 55%, rgba(7,10,23,0) 100%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  pointer-events: none; z-index: -1;
}
.header-shell.scrolled .glass-nav { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.35), 0 24px 60px -18px rgba(0,0,0,.85); }

.logo-txt { font-weight: 600; letter-spacing: .02em; color: #cbd5e1; font-size: .95rem; }

/* ===== Hero backdrop ===== */
.hero-grid {
  background-image:
    linear-gradient(rgba(124,92,252,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,252,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  /* mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%); */
}
.hero-glow {
  background: radial-gradient(circle at 75% 20%, rgba(124,92,252,0.25), transparent 45%),
              radial-gradient(circle at 15% 70%, rgba(62,217,201,0.15), transparent 40%);
}

/* ===== 3D Isometric Cube (hero) ===== */
.scene { position: relative; width: 100%; max-width: 460px; height: 420px; perspective: 1200px; }

.iso-cube { position: absolute; width: 140px; height: 140px; transform-style: preserve-3d; animation: floaty 6s ease-in-out infinite; }
.iso-cube span { position: absolute; inset: 0; border-radius: 14px; }
.iso-cube span:nth-child(1) { background: linear-gradient(135deg,#7C5CFC,#5A3FE0); transform: rotateY(0deg) translateZ(70px); box-shadow: 0 0 40px rgba(124,92,252,.5); }
.iso-cube span:nth-child(2) { background: linear-gradient(135deg,#3ED9C9,#2AA69B); transform: rotateY(90deg) translateZ(70px); opacity: .85; }
.iso-cube span:nth-child(3) { background: linear-gradient(135deg,#232A4D,#121834); transform: rotateX(90deg) translateZ(70px); opacity: .9; }

.cube-a { top: 20px; left: 40%; animation-delay: 0s; transform: rotateX(-20deg) rotateY(35deg); }
.cube-b { top: 160px; left: 5%; width: 100px; height: 100px; animation-delay: 1.4s; transform: rotateX(-20deg) rotateY(35deg) scale(.9); }
.cube-c { top: 230px; left: 55%; width: 90px; height: 90px; animation-delay: 2.8s; transform: rotateX(-20deg) rotateY(35deg) scale(.8); }

@keyframes floaty {
  0%, 100% { transform: rotateX(-20deg) rotateY(35deg) translateY(0px); }
  50% { transform: rotateX(-20deg) rotateY(45deg) translateY(-18px); }
}

.orbit-ring {
  position: absolute; top: 50%; left: 50%; width: 380px; height: 380px;
  border: 1px dashed rgba(124,92,252,0.25); border-radius: 50%;
  transform: translate(-50%,-50%) rotateX(70deg);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotateX(70deg) rotate(360deg); } }

.ping-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #3ED9C9; box-shadow: 0 0 16px #3ED9C9; }
.ping-dot.pd1 { top: 10%; right: 10%; animation: ping-slow 3s ease-in-out infinite; }
.ping-dot.pd2 { bottom: 15%; left: 8%; background: #FF6E5A; box-shadow: 0 0 16px #FF6E5A; animation: ping-slow 3s ease-in-out infinite 1.2s; }
@keyframes ping-slow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .4; } }

/* mini logo cube */
.cube-mini { position: relative; width: 20px; height: 20px; display: inline-block; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(35deg); }
.cube-mini span { position: absolute; inset: 0; border-radius: 4px; }
.cube-mini span:nth-child(1) { background: #7C5CFC; transform: translateZ(10px); }
.cube-mini span:nth-child(2) { background: #3ED9C9; transform: rotateY(90deg) translateZ(10px); }
.cube-mini span:nth-child(3) { background: #232A4D; transform: rotateX(90deg) translateZ(10px); }

/* =========================================================
   Liquid glass card system — shared by every card type
   ========================================================= */
.feature-chip, .case-card, .testi-card, .price-card, .blog-card, .flow-node, .cta-panel {
  background: linear-gradient(155deg, var(--glass-fill-top), var(--glass-fill-mid) 45%, var(--glass-fill-bottom));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.35),
    inset 1px 0 0 rgba(255,255,255,.12),
    inset -1px 0 0 rgba(255,255,255,.06),
    0 18px 40px -18px rgba(0,0,0,.6);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease-spring), box-shadow .45s var(--ease), border-color .4s var(--ease), background .4s var(--ease), filter .4s var(--ease);
  will-change: transform;
}

/* cursor-tracked specular highlight — the "liquid" part */
.feature-chip::before, .case-card::before, .testi-card::before, .price-card::before, .blog-card::before, .flow-node::before, .cta-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.45), transparent 58%);
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none; z-index: 1;
  mix-blend-mode: overlay;
}
.feature-chip:hover::before, .case-card:hover::before, .testi-card:hover::before,
.price-card:hover::before, .blog-card:hover::before, .flow-node:hover::before, .cta-panel:hover::before { opacity: 1; }

/* top hairline shine — reads as a beveled glass edge */
.feature-chip::after, .case-card::after, .testi-card::after, .price-card::after, .blog-card::after, .flow-node::after {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  opacity: .8; z-index: 1;
}

/* shared hover pop — every glass card gets brighter, lifts, and its rim lights up */
.feature-chip:hover, .case-card:hover, .testi-card:hover, .price-card:hover, .blog-card:hover, .flow-node:hover, .cta-panel:hover {
  border-color: var(--glass-border-hover);
  filter: brightness(1.08);
}

/* ===== Feature chips ===== */
.feature-chip { padding: 1.75rem; border-radius: 18px; }
.feature-chip:hover {
  border-color: rgba(124,92,252,.6);
  transform: translateY(-8px) scale(1.015);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.4), 0 26px 55px -18px rgba(124,92,252,.5);
}
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,252,.25), rgba(62,217,201,.18)); color: #C4B5FD; margin-bottom: 1rem;
  transition: transform .35s var(--ease-spring), color .3s;
  border: 1px solid rgba(255,255,255,.1);
}
.feature-chip:hover .icon-badge { transform: rotate(-8deg) scale(1.1); color: #3ED9C9; }
.feature-chip h3, .case-card h3, .testi-card p, .price-card h3 { color: #fff; }
.feature-chip p, .case-card p { color: #CBD3F0; }

.priority-badge {
  position: absolute; top: -12px; right: 18px; font-size: .68rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px; letter-spacing: .04em; z-index: 20;
  background: linear-gradient(90deg, #7C5CFC, #3ED9C9); color: #070A17;
  box-shadow: 0 6px 18px -4px rgba(124,92,252,.7), 0 0 0 3px #070A17;
  white-space: nowrap;
}
/* the badge is a ribbon that sits ABOVE the card edge, so the card that hosts it
   must not clip its own overflow — override the shared overflow:hidden for this variant */
.feature-chip-priority, .case-card-priority { overflow: visible !important; }
/* cards carrying a priority badge: badge now floats above the card as a ribbon (see .priority-badge), so no extra top padding is needed */
.feature-chip-priority, .case-card-priority { padding-top: 1.75rem; margin-top: 14px; }
.feature-chip-priority, .case-card-priority {
  border-color: rgba(124,92,252,.55) !important;
  box-shadow: 0 0 0 1px rgba(124,92,252,.25), 0 20px 45px -16px rgba(124,92,252,.5), inset 0 1px 0 rgba(255,255,255,.15) !important;
}

/* ===== Flow diagram ===== */
.flow-scene { position: relative; height: 500px; }
.flow-node {
  position: absolute; width: 200px; padding: 14px 16px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.flow-node:hover {
  border-color: rgba(62,217,201,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 26px 55px -18px rgba(62,217,201,.4);
}
.node-title { font-weight: 600; color: #fff; font-size: .9rem; position: relative; z-index: 2; }
.node-sub { font-size: .72rem; color: #A6AFD6; line-height: 1.3; position: relative; z-index: 2; }
.node-waf { top: 20px; left: 0; }
.node-lb { top: 20px; right: 0; }
.node-pods { bottom: 20px; left: 0; }
.node-fw { bottom: 20px; right: 0; }
.flow-cube-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.cube-flow { position: static !important; width: 90px; height: 90px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

@media (max-width: 767px) {
  .flow-scene { height: auto; }
  .flow-node { position: static; width: 100%; margin-bottom: 12px; }
  .flow-cube-center { position: static; transform: none; margin: 20px auto; display: flex; justify-content: center; }
  .flow-lines { display: none; }
}

/* ===== Flow steps: static grid variant used on service/industry detail pages =====
   (flow-node is intentionally position:absolute for the homepage/process diagram —
   these pages need a normal in-flow grid card instead, hence a dedicated class) */
.flow-step {
  position: relative; padding: 1.75rem; border-radius: 18px;
  background: linear-gradient(155deg, var(--glass-fill-top), var(--glass-fill-mid) 45%, var(--glass-fill-bottom));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 18px 40px -18px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-spring), box-shadow .45s var(--ease), border-color .4s var(--ease);
}
.flow-step:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }

/* ===== Case cards ===== */
.case-card { padding: 1rem; border-radius: 20px; }
.case-card:hover {
  border-color: rgba(124,92,252,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 30px 65px -20px rgba(124,92,252,.5);
}
.case-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: transform .35s var(--ease-spring); box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); position: relative; z-index: 2; }
.case-card:hover .case-icon { transform: rotate(6deg) scale(1.08); }
.learn-link { font-size: .85rem; color: #3ED9C9; font-weight: 600; transition: color .25s var(--ease); position: relative; z-index: 2; display: inline-block; }
.learn-link:hover { color: #A78BFA; transform: translateX(2px); }

/* ===== Testimonials ===== */
.testi-card { padding: 2rem; border-radius: 20px; }
.testi-card:hover {
  border-color: rgba(62,217,201,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 26px 55px -18px rgba(62,217,201,.45);
}
.testi-card p { color: #E7EAF6; position: relative; z-index: 2; }
.testi-card > div { position: relative; z-index: 2; }
.avatar-ring { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#7C5CFC,#3ED9C9); padding: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 2; transition: transform .35s var(--ease-spring), box-shadow .35s; }
.testi-card:hover .avatar-ring { transform: scale(1.08); box-shadow: 0 0 22px rgba(124,92,252,.5); }
.avatar-ring .avatar-init {
  width: 100%; height: 100%; border-radius: 50%; background: #0D1226; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600;
}
.stars { color: #FBBF24; letter-spacing: 2px; font-size: .85rem; white-space: nowrap; transition: transform .3s var(--ease-spring), text-shadow .3s; display: inline-block; }
.testi-card:hover .stars { transform: scale(1.06); text-shadow: 0 0 12px rgba(251,191,36,.6); }

/* ===== Pricing ===== */
.price-card { padding: 2.25rem; border-radius: 22px; display: flex; flex-direction: column; }
.price-card:hover {
  border-color: rgba(124,92,252,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 30px 65px -20px rgba(124,92,252,.45);
}
.price-card-pro {
  background: linear-gradient(160deg, rgba(62,217,201,.55), rgba(124,92,252,.55));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.1);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.1);
  border: 1px solid rgba(255,255,255,.5);
  margin-top: -14px; margin-bottom: -14px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), 0 30px 70px -20px rgba(124,92,252,.65);
}
@media (max-width: 767px) { .price-card-pro { margin-top: 0; margin-bottom: 0; } }
.price-card-pro:hover { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), 0 34px 80px -18px rgba(124,92,252,.8); }
.tier-btn { margin-top: auto; text-align: center; padding: .75rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all .3s var(--ease); position: relative; z-index: 2; }
.tier-btn-outline { border: 1px solid rgba(255,255,255,.2); color: #F1F3FB; background: rgba(255,255,255,.04); }
.tier-btn-outline:hover { border-color: #7C5CFC; color: #fff; background: rgba(124,92,252,.18); transform: translateY(-2px); }
.tier-btn-solid { background: rgba(7,10,23,.85); color: #fff; backdrop-filter: blur(8px); }
.tier-btn-solid:hover { background: #000; box-shadow: 0 8px 24px -6px rgba(0,0,0,.5); transform: translateY(-2px); }

/* ===== CTA panel ===== */
.cta-panel {
  padding: 4rem 2rem; border-radius: 32px;
  background: linear-gradient(135deg, rgba(124,92,252,.22), var(--glass-fill-mid) 40%, rgba(62,217,201,.12));
  border: 1px solid rgba(124,92,252,.35);
}
.cta-panel:hover { border-color: rgba(124,92,252,.55); transform: translateY(-4px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 30px 70px -20px rgba(124,92,252,.45); }
.cta-cube { position: absolute; top: 24px; right: 30px; width: 34px; height: 34px; opacity: .8; z-index: 2; }
.cta-panel h2, .cta-panel p, .cta-panel .flex { position: relative; z-index: 2; }

/* ===== Footer ===== */
.footer-link { transition: color .25s var(--ease); }
.footer-link:hover { color: #3ED9C9; }
.social-ic {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: .8rem;
  transition: all .3s var(--ease-spring);
  backdrop-filter: blur(8px);
}
.social-ic:hover { border-color: #7C5CFC; color: #fff; background: rgba(124,92,252,.18); transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px -8px rgba(124,92,252,.5); }

/* ===== Scroll reveal ===== */
/* Default: fully visible. Only hidden once JS confirms it's ready to animate,
   so content never gets stuck invisible if JS is slow, blocked, or a screenshot
   is captured before the observer fires. */
[data-reveal] { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); }
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Nav / footer logos ===== */
.nav-logo { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); transition: filter .3s, transform .3s var(--ease-spring); }
.nav-logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(124,92,252,.5)); }

.footer-logo { width: 200px; opacity: .9; transition: opacity .3s, filter .3s; }
.footer-logo:hover { opacity: 1; filter: drop-shadow(0 0 10px rgba(62,217,201,.4)); }

.logo-chip {
  display: flex; align-items: center; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 12px;
  background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  position: relative; overflow: hidden; isolation: isolate;
  transition: all .35s var(--ease-spring);
}
.logo-chip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(160px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.4), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: overlay;
}
.logo-chip:hover::before { opacity: 1; }
.logo-chip img { height: 20px; width: auto; opacity: .85; transition: all .3s; position: relative; z-index: 1; }
.logo-chip:hover { background: linear-gradient(155deg, rgba(124,92,252,.3), rgba(255,255,255,.03)); border-color: rgba(124,92,252,.55); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 30px -12px rgba(124,92,252,.55); }
.logo-chip:hover img { opacity: 1; filter: drop-shadow(0 0 8px rgba(124,92,252,.7)); }

.badge-chip {
  display: flex; align-items: center; justify-content: center;
  padding: .5rem .75rem; border-radius: 12px;
  background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  transition: all .35s var(--ease-spring);
}
.badge-chip img { height: 24px; width: auto; }
.badge-chip:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 30px -10px rgba(124,92,252,.5); }

.case-thumb {
  width: 100%; height: 150px; object-fit: cover; border-radius: 14px; margin-bottom: 1.25rem;
  filter: saturate(.9) brightness(.9); transition: filter .4s, transform .4s var(--ease); position: relative; z-index: 2;
}
.case-card:hover .case-thumb { filter: saturate(1.15) brightness(1); transform: scale(1.02); }

.blog-card { display: block; padding: 1.5rem; border-radius: 18px; }
.blog-card:hover {
  border-color: rgba(124,92,252,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 24px 50px -18px rgba(124,92,252,.45);
}
.blog-card h3 { color: #fff; position: relative; z-index: 2; }
.blog-tag { font-size: .7rem; font-family: 'IBM Plex Mono', monospace; color: #3ED9C9; text-transform: uppercase; letter-spacing: .08em; position: relative; z-index: 2; display: inline-block; }

/* CTA / phone buttons get a touch of glass too */
a.rounded-full { -webkit-tap-highlight-color: transparent; }

/* =========================================================
   Hero live visual
   ========================================================= */
.hero-visual-frame {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/3;
  border-radius: 22px; overflow: hidden; z-index: 2;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 30px 70px -20px rgba(124,92,252,.55);
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease);
}
.hero-visual-frame:hover { transform: translateY(-6px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), 0 36px 80px -18px rgba(124,92,252,.7); }
.hero-visual-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.85); }
.hero-visual-glow {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(124,92,252,.35), transparent 45%, rgba(7,10,23,.55) 100%);
  mix-blend-mode: normal;
}
.hero-live-chip, .hero-stat-chip {
  position: absolute; display: flex; align-items: center; gap: 6px;
  padding: .45rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #fff;
  background: linear-gradient(155deg, rgba(255,255,255,.25), rgba(255,255,255,.06));
  backdrop-filter: blur(14px) saturate(200%); -webkit-backdrop-filter: blur(14px) saturate(200%);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(0,0,0,.6);
}
.hero-live-chip { top: 14px; left: 14px; }
.hero-stat-chip { font-family: 'IBM Plex Mono', monospace; }
.hero-stat-uptime { bottom: 14px; left: 14px; color: #3ED9C9; }
.hero-stat-secure { top: 14px; right: 14px; color: #C4B5FD; }
.hero-stat-secure b { color: #fff; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ED9C9; box-shadow: 0 0 8px #3ED9C9; animation: ping-slow 1.6s ease-in-out infinite; }
.scene .cube-a { top: -30px; left: -10px; z-index: 3; }
.scene .cube-b { top: auto; bottom: -20px; right: -10px; left: auto; z-index: 3; }

/* =========================================================
   Mega menu (desktop)
   ========================================================= */
.mega-trigger { position: relative; }
.nav-link-mega { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
.mega-caret { transition: transform .3s var(--ease); }
.mega-trigger.mega-open .mega-caret { transform: rotate(180deg); }
.mega-trigger.mega-open .nav-link-mega { color: #fff; }
.mega-trigger.mega-open .nav-link::after { width: 100%; }

.stack-chip {
  display: inline-block; transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.stack-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent2, #3ED9C9);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(62,217,201,.45);
}
.mega-panel-wrap { position: relative; z-index: 40; }
.mega-backdrop {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(5,7,16,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
  pointer-events: none;
}
.mega-backdrop.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s var(--ease), visibility 0s linear 0s;
}
.mega-panel {
  position: absolute; top: 14px; left: 0; right: 0;
  border-radius: 22px; padding: 1.75rem;
  background: linear-gradient(155deg, var(--glass-fill-top), var(--glass-fill-mid) 45%, var(--glass-fill-bottom));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.35),
    inset 1px 0 0 rgba(255,255,255,.12),
    inset -1px 0 0 rgba(255,255,255,.06),
    0 18px 40px -18px rgba(0,0,0,.6),
    0 30px 70px -20px rgba(0,0,0,.75);
  isolation: isolate;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
  transition: opacity .3s var(--ease), transform .35s var(--ease-spring), visibility 0s linear .3s, box-shadow .45s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  pointer-events: none;
}
.mega-trigger.mega-open ~ .mega-panel-wrap .mega-panel[data-mega-panel],
.mega-panel-wrap .mega-panel.is-open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear 0s;
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 2rem; }
.mega-grid-industries { grid-template-columns: repeat(3, 1fr); gap: .5rem 1.5rem; }
.mega-col-title {
  display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); margin-bottom: .9rem;
}
.mega-col ul { display: flex; flex-direction: column; gap: 2px; }
.mega-col li > a, .mega-item-flyout > a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: .5rem .6rem; border-radius: 10px; font-size: .875rem; color: var(--text-muted);
  transition: background .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}
.mega-col li > a:hover, .mega-item-flyout:hover > a {
  background: rgba(124,92,252,.22); color: var(--text-primary); padding-left: .85rem;
}
.flyout-caret { transition: transform .25s var(--ease); opacity: .6; }
.mega-item-flyout { position: relative; }
.mega-item-flyout:hover .flyout-caret { transform: translateX(2px); opacity: 1; }
.mega-flyout {
  position: absolute; top: -8px; left: calc(100% + 10px); min-width: 230px;
  background: linear-gradient(155deg, var(--glass-fill-top), transparent 45%), var(--panel-fill-2);
  backdrop-filter: blur(24px) saturate(220%); -webkit-backdrop-filter: blur(24px) saturate(220%);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: .6rem;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.4), 0 24px 55px -18px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  z-index: 5;
}
.mega-item-flyout:hover .mega-flyout {
  opacity: 1; visibility: visible; transform: translateX(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear 0s;
}
.mega-col-feature { display: flex; }
.mega-feature-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(124,92,252,.4); isolation: isolate;
  box-shadow: 0 20px 45px -16px rgba(124,92,252,.5);
  transition: transform .4s var(--ease-spring), box-shadow .35s var(--ease);
}
.mega-feature-card:hover { transform: translateY(-4px); box-shadow: 0 26px 55px -14px rgba(124,92,252,.65); }
.mega-feature-card img { width: 100%; height: 100px; object-fit: cover; filter: brightness(.7) saturate(1.1); transition: transform .5s var(--ease); }
.mega-feature-card:hover img { transform: scale(1.06); }
.mega-feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,10,23,.95), rgba(7,10,23,.35) 65%, rgba(7,10,23,.05) 100%); z-index: 1; }
.mega-feature-text { position: absolute; left: .9rem; right: .9rem; bottom: .8rem; z-index: 2; display: flex; flex-direction: column; gap: .3rem; }
.mega-feature-title { color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.25; }
.mega-feature-sub { color: #3ED9C9; font-size: .72rem; line-height: 1.35; }
.mega-feature-card .priority-badge { top: 10px; right: 10px; z-index: 3; }

.mega-industry {
  display: flex; align-items: center; gap: 10px; padding: .55rem .6rem; border-radius: 10px;
  font-size: .85rem; color: var(--text-muted); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.mega-industry svg { flex-shrink: 0; color: var(--accent); transition: color .25s var(--ease); }
.mega-industry:hover { background: rgba(124,92,252,.22); color: var(--text-primary); transform: translateX(3px); }
.mega-industry:hover svg { color: var(--accent2); }

@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-col-feature { display: none; }
}

.mega-industry a{
  text-decoration: none !important;
}
/* =========================================================
   Mobile menu
   ========================================================= */
.mobile-menu-btn { position: relative; width: 34px; height: 26px; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s var(--ease-spring), opacity .25s var(--ease), top .35s var(--ease-spring);
}
.mobile-menu-btn span:nth-child(1) { top: 2px; }
.mobile-menu-btn span:nth-child(2) { top: 12px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end;
  background: rgba(4,6,16,.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s linear 0s; }
.mobile-menu-panel {
  width: min(88vw, 380px); height: 100%; overflow-y: auto; padding: 1.75rem 1.5rem 2.5rem;
  background: linear-gradient(165deg, var(--panel-fill), var(--panel-fill-2));
  backdrop-filter: blur(24px) saturate(200%); -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu-overlay.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #fff; background: rgba(255,255,255,.05); }
.mobile-link {
  display: block; padding: .85rem .3rem; color: #E7EAF6; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.mobile-link:hover { color: #3ED9C9; padding-left: .5rem; }
.mobile-accordion { border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-accordion summary {
  display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer;
  padding: .85rem .3rem; color: #E7EAF6; font-weight: 500;
}
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion summary svg { transition: transform .3s var(--ease); color: #7C5CFC; }
.mobile-accordion[open] summary svg { transform: rotate(180deg); }
.mobile-accordion-body { display: flex; flex-direction: column; gap: 2px; padding: 0 .3rem .9rem 1rem; }
.mobile-accordion-body a { padding: .55rem .5rem; border-radius: 8px; font-size: .9rem; color: #A6AFD6; transition: background .2s, color .2s; }
.mobile-accordion-body a:hover { background: rgba(124,92,252,.15); color: #fff; }

/* ===== Responsive tweaks ===== */
@media (max-width: 1024px) {
  .scene { height: 340px; max-width: 380px; }
}
@media (max-width: 640px) {
  .scene { height: 280px; }
  .iso-cube { width: 90px !important; height: 90px !important; }
  .cta-cube { display: none; }
  .aurora-blob { filter: blur(60px); opacity: .25; }
  .hero-visual-frame { max-width: 300px; }
  .hero-live-chip, .hero-stat-chip { font-size: .62rem; padding: .35rem .6rem; }
}
@media (max-width: 480px) {
  .mobile-menu-panel { width: 100vw; }
}

/* ===== Contact form ===== */
.contact-input {
  width: 100%; padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; color: #F1F3FB;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-input::placeholder { color: #6B7394; }
.contact-input:focus {
  outline: none; border-color: rgba(124,92,252,.7); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(124,92,252,.22);
}
textarea.contact-input { resize: vertical; }
select.contact-input { color-scheme: dark; }

/* ===== Blog / Case Study pages ===== */
.reveal { animation: revealIn .7s ease both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.prose-blog p { max-width: 68ch; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card, .cs-card { display: block; }
.blog-card:hover, .cs-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,92,252,0.18); }

/* ===== Service/industry page hero image ===== */
.hero-media { position: relative; margin: 2.5rem auto 0; max-width: 640px; }
.hero-media img {
  width: 100%; height: 260px; object-fit: cover; border-radius: 22px;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.4), 0 30px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(124,92,252,.15);
}
@media (min-width: 768px) { .hero-media img { height: 340px; } }

/* ===== Blog sidebar (categories / tags / related) ===== */
.blog-sidebar-card {
  padding: 1.5rem; border-radius: 18px;
  background: linear-gradient(155deg, var(--glass-fill-top), var(--glass-fill-mid) 45%, var(--glass-fill-bottom));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
  border: 1px solid var(--glass-border);
}
.blog-sidebar-card h4 { color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: 1rem; }
.sidebar-cat-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  color: #CBD3F0; font-size: .9rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .25s ease;
}
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: #3ED9C9; }
.sidebar-tag {
  display: inline-block; padding: .4rem .9rem; margin: 0 .4rem .5rem 0; border-radius: 999px;
  border: 1px solid var(--glass-border); color: #CBD3F0; font-size: .78rem; font-family: 'IBM Plex Mono', monospace;
  transition: all .25s ease;
}
.sidebar-tag:hover { color: #070A17; background: linear-gradient(90deg,#7C5CFC,#3ED9C9); border-color: transparent; }
.related-post-card { display: flex; gap: .9rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.related-post-card:last-child { border-bottom: none; }
.related-post-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; border: 1px solid var(--glass-border); }
.related-post-card .rp-title { color: #EAEFFF; font-size: .84rem; font-weight: 600; line-height: 1.35; }
.related-post-card:hover .rp-title { color: #3ED9C9; }
.related-post-card .rp-date { color: #8A93BF; font-size: .72rem; margin-top: .25rem; display: block; }
