:root {
    --bg-0: #03040a;
    --bg-1: #070b14;
    --bg-2: #0c1220;
    --bg-card: rgba(14, 20, 40, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.45);
    --text-primary: #f0f2ff;
    --text-secondary: #94a3b8;
    --text-muted: #7b82a8;
    --accent-blue: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #22d3ee;
    --accent-mid: #818cf8;
    --grad-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-text: linear-gradient(90deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
    --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-huge: 'Archivo Black', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 36px;
    --transition: 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    scroll-snap-type: y proximity;
}

body {
    background: var(--bg-0);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px;
    /* Enhanced space for modern header navigation */
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

/* Enhanced Global Typography Scales */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    display: inline-block;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--grad-main);
    display: inline-block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 104px 0;
    position: relative;
    scroll-snap-align: start;
    scroll-margin-top: 96px;
}


/* ===========================================
   ULTRA COMPACT CONTACT CARDS
=========================================== */

.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.contact-card {
    position: relative;

    padding: 16px;

    min-height: 145px;

    border-radius: 14px;

    background: linear-gradient(180deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .012));

    border: 1px solid rgba(255, 255, 255, .07);

    overflow: hidden;

    transition: .3s cubic-bezier(.16, 1, .3, 1);
}

.contact-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background: radial-gradient(circle at top right,
            rgba(99, 102, 241, .12),
            transparent 65%);

    opacity: 0;

    transition: .3s;
}

.contact-card:hover {
    transform: translateY(-4px);

    border-color: rgba(99, 102, 241, .35);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, .30),
        0 0 20px rgba(99, 102, 241, .08);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-section {
    padding-top: 120px;
}

/* ICON */

.contact-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 10px;

    background: linear-gradient(135deg,
            rgba(99, 102, 241, .14),
            rgba(168, 85, 247, .10));

    border: 1px solid rgba(99, 102, 241, .22);

    transition: .3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);

    box-shadow:
        0 8px 20px rgba(99, 102, 241, .18);
}

.contact-icon svg {
    width: 18px;
    height: 18px;

    color: #8b5cf6;

    stroke-width: 2.3;
}

/* TEXT */

.contact-card h3 {
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 6px;

    line-height: 1.25;
}

.contact-card a,
.contact-card p {
    display: block;

    color: #94a3b8;

    font-size: 13px;

    line-height: 1.5;

    text-decoration: none;

    word-break: break-word;

    transition: .25s;
}

.contact-card:hover a,
.contact-card:hover p {
    color: #e2e8f0;
}

/* MOBILE */
@media (max-width:768px) {

    .contact-detail-grid {

        display: flex;

        overflow-x: auto;
        overflow-y: hidden;

        gap: 14px;

        padding: 4px 20px 10px;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .contact-detail-grid::-webkit-scrollbar {
        display: none;
    }

    .contact-card {

        flex: 0 0 82%;

        min-width: 82%;

        min-height: auto;

        scroll-snap-align: center;

        padding: 18px;
    }

}

.contact-section {
    padding-top: 88px;
}

.contact-header .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.contact-header .section-label {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 0;
}

.contact-header h2 {
    margin: 8px 0 14px;
}

.contact-header p {
    margin-top: 0;
}

.contact-header {
    margin-bottom: 22px;
}

.calendly-card {
    margin-top: 24px;
}

.contact-dots {

    display: none;
}

@media(max-width:768px) {

    .contact-dots {

        display: flex;

        justify-content: center;

        gap: 8px;

        margin-top: 16px;
    }

    .contact-dot {

        width: 8px;
        height: 8px;

        border-radius: 50%;

        background: #4b5563;

        transition: .3s;
    }

    .contact-dot.active {

        width: 28px;

        border-radius: 50px;

        background: linear-gradient(90deg,
                #6366f1,
                #a855f7);
    }

}


/* Global Header Shell Framework */
/* ===========================
   PREMIUM NAVBAR
=========================== */


nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(3, 4, 10, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: .3s ease;

    padding: 0 24px;
}

nav.scrolled {
    background: rgba(3, 4, 10, .95);
    border-bottom: 1px solid rgba(99, 102, 241, .25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.nav-inner {

    max-width: 1440px;
    width: 100%;

    margin: 0 auto;

    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

/* ---------------- Logo ---------------- */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;

    flex: 0 0 auto;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}




/* ---------------- Center Menu ---------------- */

.nav-links {

    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    min-width: 0;
}

.nav-links a {

    position: relative;

    text-decoration: none;

    color: #aab3c5;

    font-size: 15px;
    font-weight: 600;

    padding: 10px 16px;

    border-radius: 12px;

    white-space: nowrap;

    transition: .25s;
}

.nav-links a:hover {

    color: #fff;

    background: rgba(255, 255, 255, .04);
}

.nav-links a.active {

    color: #fff;

    background: linear-gradient(135deg,
            rgba(99, 102, 241, .18),
            rgba(168, 85, 247, .18));

    border: 1px solid rgba(99, 102, 241, .35);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .03),
        0 0 20px rgba(99, 102, 241, .18);
}

/* ---------------- CTA ---------------- */

.nav-cta {

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.nav-cta .btn {

    white-space: nowrap;

    padding: 14px 26px;

    border-radius: 14px;

    font-size: 16px;
    font-weight: 700;

    min-width: 210px;
}

/* ---------------- Shrink on Scroll ---------------- */

nav.scrolled .nav-inner {
    height: 70px;
}

nav.scrolled .logo-img {
    width: 38px;
    height: 38px;
}

nav.scrolled .logo-text {
    font-size: 1.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease, background 0.25s ease;
    transform-origin: center;
}

.hamburger.active span {
    background: #fff;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-glow-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: var(--grad-main);
    opacity: 0.3;
}

/* Dimmed backdrop behind the slide-in drawer */
body.mobile-nav-locked {
    overflow: hidden;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 8, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navigation Drawer — slides in from the right, half the viewport */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: 50%;
    z-index: 999;
    background: rgba(3, 4, 10, 0.98);
    backdrop-filter: blur(30px);
    padding: 110px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--border);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mobile-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.14));
    border-left: 2px solid var(--accent-blue);
    padding-left: 12px;
}

/* Standard Design System Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: var(--bg-glass);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 12px 24px;
}

.btn-ghost:hover {
    color: var(--text-primary);
}



/* Glassmorphic Layout Components */
.glass-glow {
    position: relative;
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.glass-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--grad-main);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.glass-glow:hover::before {
    opacity: 0.7;
}

.glass-glow:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.18);
    border-color: transparent;
}


.service-card:hover p,
.service-card:hover li {
    color: #ffffff !important;
}


/* Structural Grid Architecture definitions */
.services-grid,
.case-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

/* Section Typographic Configurations */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-wrap: balance;
    max-width: 100%;
    margin: 12px auto 20px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.mobile-nav .btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

.mobile-nav .btn-primary:hover {
    color: #ffffff !important;
}

/* Contact page new css */


.contact-header {
    text-align: left;
    margin: 0 0 42px;
    max-width: 100%;
}

.contact-header h2 {
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 18px 0 20px;
}

.contact-header p {
    max-width: 620px;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.contact-header .section-label {
    justify-content: flex-start;
}

.contact-header .breadcrumb {
    margin-bottom: 18px;
}

/* ==========================================
   CONTACT PAGE MOBILE HERO
========================================== */

@media (max-width:768px) {

    .contact-header {
        margin-bottom: 28px;
    }

    .contact-header .breadcrumb {
        justify-content: center !important;
        margin-bottom: 14px;
    }

    .contact-header .section-label {
        justify-content: center;
        margin-bottom: 14px;
    }

    .contact-header h2 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.05;
        letter-spacing: -1px;
        text-align: center;
        margin: 12px 0 18px;
    }

    .contact-header p {
        max-width: 100%;
        text-align: center;
        font-size: 17px;
        line-height: 1.8;
        margin: 0 auto;
    }

}

/* Index / Landing Hero Architecture */
#hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    scroll-snap-align: start;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 10s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: rgba(99, 102, 241, 0.18);
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.14);
    bottom: -100px;
    left: 50px;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(34, 211, 238, 0.08);
    top: 30%;
    left: 45%;
    animation-delay: -6s;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(620px, 1.2fr) minmax(520px, 0.8fr);
    gap: 32px;
    align-items: center;
}

.hero-left {
    width: 100%;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--accent-mid);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(44px, 5vw, 80px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2.5px;
    color: #fff;
    max-width: none;
    white-space: normal;
    margin: 0 0 24px;
}

/* ==========================================================
   Desktop / Mobile Heading Switch
   ========================================================== */

.mobile-heading {
    display: none;
}

@media (max-width:640px) {

    .desktop-heading {
        display: none;
    }

    .mobile-heading {
        display: block;
    }

}



/* Hero headline accent color — forced to a plain solid color instead of the
   background-clip:text gradient technique used elsewhere. That clip-text
   approach depends on several things lining up correctly across browsers
   and can silently fail to nothing; a plain `color` value cannot fail. */
.hero-h1 .gradient-text {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #a78bfa !important;
}

.hero-sub {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    width: fit-content;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg-0);
    margin-left: -10px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 15px;
    color: var(--text-secondary);
}

.trust-text strong {
    color: var(--text-primary);
    font-size: 16px;
}

/* Interactive Live Dashboard HUD Mockup components */
.dashboard {
    position: relative;
    isolation: isolate;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);

    transform: scale(1.06);
    transform-origin: center;
}

.dashboard::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(99, 102, 241, .35);
    opacity: 0;
    animation: dashboardGlowFade 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    will-change: opacity;
}

.dashboard-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.db-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.dashboard-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.db-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.db-metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
}

.db-metric-val {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
}

.db-metric-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.08);
    transform-origin: center;
}

/* Service Card Architectures */
.service-card {
    padding: 48px 40px;
    border-radius: var(--r-lg);
    z-index: 1;
}

.service-icon {
    width: 64px;
    height: 56px;
    border-radius: 16px;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 32px;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-display);
    color: #ffffff;
}

.service-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-mid);
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    gap: 14px;
    color: var(--text-primary);
}

/* Industry Card Components */
.industry-card {
    padding: 36px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.industry-card:hover {
    border-color: var(--border-glow);
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-4px) translateX(4px);
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.4);
}

.industry-icon {
    font-size: 38px;
    line-height: 1;
    margin-top: 2px;
}

.industry-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-display);
    color: #fff;
}

.industry-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Case Studies Layout Structural Contexts */
.case-card {
    display: flex;
    flex-direction: column;

    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);

    overflow: hidden;

    min-height: 650px;
    /* Desktop */
    height: auto;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.case-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}

.case-body {
    padding: 28px;
}

.case-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.case-body p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.result-chip {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 10px;
    padding: 12px;
}

.result-val {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-display);
}

.result-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* Methodology Blueprint Roadmap Arrays */
.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 32px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    opacity: 0.7;
}

.process-step {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    font-family: var(--font-display);
    box-shadow: 0 0 0 6px var(--bg-0), 0 0 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.step-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 32px 36px;
    flex: 1;
    transition: var(--transition);
}

.process-step:hover .step-body {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.02);
}

.step-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-display);
    color: #fff;
}

.step-body p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Leadership Section UI mapping components */
.team-section {
    padding: 140px 0;
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.team-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.1);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 26px;
    font-family: var(--font-display);
    margin-bottom: 28px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.team-card h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.role {
    color: #a78bfa;
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    color: #c4b5fd;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.socials a:hover {
    color: white;
}

/* Testimonials Structural Array elements */
.test-card {
    padding: 40px;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.test-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.test-quote {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.test-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.test-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Form Component Wrapper Elements */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 48px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-size: 16px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Automated Overlay Application HUD elements */
#chatButton {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .1);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
    transition: var(--transition);
}

#chatButton:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, .4);
}

#chatButton span:first-child {
    color: #818cf8;
    font-size: 20px;
    animation: pulseAI 2s infinite;
}

#chatWindow {
    position: fixed;
    bottom: 115px;
    right: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    width: 400px;
    height: 620px;
    background: rgba(9, 13, 26, .9);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(99, 102, 241, .3);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

#chatWindow.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#chatHeader {
    padding: 20px 24px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

#chatMessages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#chatInputSection,
#emailSection {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, 0.2);
}

/* Global Utilities & Keyframes */
#backToTop {
    position: fixed;
    bottom: 85px;
    left: 32px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(15, 20, 40, .9);
    color: #818cf8;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes dashboardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes dashboardGlowFade {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulseAI {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

/* Universal Footer Framework elements */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    background: var(--bg-1);
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 20px 0 28px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(6px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

/* ============================================
   EXTENDED DESIGN SYSTEM — Page Heroes, Badges,
   FAQ, CTA Bands, Stats, Comparison, Contact
   ============================================ */

/* Sub-page hero (Services, Industries, Case Studies, Process, Contact) */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 200px 0 100px;
    text-align: center;
    scroll-snap-align: start;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .section-label {
    display: block;
}

.page-hero h1 {
    font-family: var(--font-huge);
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 400;
    margin: 16px 0 22px;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.page-hero .lead {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-hero .hero-actions {
    justify-content: center;
    margin-top: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-mid);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Generic stat strip (reused across pages) */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 72px 0;
}

.stat-box {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.stat-box .stat-num {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.stat-box .stat-lbl {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Case study image gradient variants */
.case-img-1 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
}

.case-img-2 {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.15));
}

.case-img-3 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.12));
}

.case-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(3, 4, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.case-quote {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    border-left: 2px solid var(--accent-blue);
    padding-left: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.case-meta .case-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.case-meta .case-person strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.case-meta .case-person span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Why-choose-us comparison */
.compare-wrap {
    max-width: 900px;
    margin: 64px auto 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.compare-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row.head {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.compare-row span {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
}

.compare-row span:first-child {
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
}

.compare-yes {
    color: #22d3ee !important;
    font-weight: 800 !important;
}

.compare-no {
    color: var(--text-muted) !important;
}

/* FAQ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 26px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-mid);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-mid);
    transition: var(--transition);
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
    background: var(--grad-main);
    color: #fff;
    border-color: transparent;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer.open {
    max-height: 320px;
}

.faq-answer p {
    padding: 0 4px 26px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
}

/* CTA band */
.cta-band {
    margin: 0;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    scroll-snap-align: start;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(99, 102, 241, 0.12), transparent);
}

.cta-band .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.cta-band p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

.cta-band .hero-actions {
    justify-content: center;
}

/* Contact detail cards */
.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.contact-detail-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
}

.contact-detail-card .cd-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-detail-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.contact-detail-card p,
.contact-detail-card a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.6;
}

.contact-detail-card a:hover {
    color: var(--accent-mid);
}

.calendly-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--r-lg);
    padding: 32px;
    margin: 40px 0;
}

.calendly-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 6px;
}

.calendly-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Process page extras */
.process-hero-note {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}

/* Service detail extras */
.service-card ul.service-points {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card ul.service-points li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-card ul.service-points li::before {
    content: '✓';
    color: var(--accent-cyan);
    font-weight: 800;
    flex-shrink: 0;
}

/* Carousel dot rows (services / industries / case-studies) are injected by
   JS on every screen size, but should only be visible once the matching
   grid actually becomes a swipeable mobile carousel (see the max-width:768px
   rules further down that give them their real layout/appearance). */
.services-dots {
    display: none;
}

/* Industry extras */
.industry-card .industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.industry-card .industry-tags span {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
}


/* ==========================================================
   MOBILE SERVICES CAROUSEL
   ========================================================== */

@media (max-width:768px) {

    .services-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        /* ONLY this changed */
        padding: 5px 20px 15px;

        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 300px;
        min-width: 300px;
        min-height: 240px;
        /* or your original value */
        padding: 24px;
        scroll-snap-align: center;
    }

    /* Smaller icon */

    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-bottom: 18px;
    }

    /* Smaller title */

    .service-card h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    /* Smaller description */

    .service-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Link */

    .service-link {
        margin-top: 18px;
        font-size: 15px;
    }

    /* Slider dots */

    .services-dots {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 20px auto 0;
        padding: 0;
    }

    .service-dot {
        width: 8px;
        height: 8px;
        border-radius: 50px;
        background: #4b5563;
        transition: .3s;
    }

    .service-dot.active {
        width: 28px;
        background: linear-gradient(90deg, #6366f1, #a855f7);
    }

}


/* ==========================================================
   MOBILE INDUSTRIES & CASE-STUDIES CAROUSEL
   Same one-card-at-a-time swipe pattern as the services
   carousel above, applied to the industries grid and the
   case-studies grid. Dots are generated by main.js and reuse
   the .services-dots / .service-dot styling defined above.
   ========================================================== */

/* Case study result chips grid (moved above its @media overrides
   so the mobile gap/margin below aren't silently cancelled by cascade order) */
.case-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}

@media (max-width: 768px) {

    .industries-grid,
    .case-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 5px 20px 15px;
        scrollbar-width: none;
    }

    .industries-grid::-webkit-scrollbar,
    .case-grid::-webkit-scrollbar {
        display: none;
    }

    .industry-card {
        flex: 0 0 84vw;
        min-width: 84vw;
        max-width: 340px;
        scroll-snap-align: center;
        flex-direction: column;
        gap: 16px;
        padding: 28px 24px;
    }

    .industry-icon {
        font-size: 32px;
    }

    .industry-card h3 {
        font-size: 19px;
    }

    .industry-card p {
        font-size: 14.5px;
    }

    .case-card {
        min-height: auto;
        flex: 0 0 86vw;
        min-width: 86vw;
        max-width: 380px;
        scroll-snap-align: center;
    }

    .case-img {
        height: 90px;
        font-size: 36px;
    }

    .case-tag {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 10.5px;
    }

    .case-body {
        padding: 20px;
    }

    .case-body h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .case-body p {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .case-results {
        gap: 12px;
        margin: 18px 0;
    }

    .result-chip {
        padding: 10px;
    }

    .result-val {
        font-size: 18px;
    }

    .case-quote {
        font-size: 13px;
        padding-left: 12px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .case-meta {
        margin-top: 18px;
        padding-top: 18px;
    }

    .case-meta .case-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .case-meta .case-person strong {
        font-size: 13px;
    }

    .case-meta .case-person span {
        font-size: 11px;
    }
}


/* ==========================================================
   PREMIUM TRUST SECTION (AutoLinix)
   Replace the old trust-banner design
   ========================================================== */

/* Main Section */
.trust-section {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(180deg, #05070f 0%, #090d18 100%);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
}

/* Background Glow */
.trust-section::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #6366f122 0%, transparent 70%);
    top: -350px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Section Heading */
.trust-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.trust-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8b93b4;
    text-transform: uppercase;
}

.trust-header h2 {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

/* Cards Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Individual Card */
.trust-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(18px);
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}

/* Top Glow Line */
.trust-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transform: scaleX(0);
    transition: .35s;
}

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

.trust-card:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow:
        0 25px 60px rgba(99, 102, 241, .22),
        inset 0 0 30px rgba(99, 102, 241, .05);
}

/* Icons */
.trust-card i {
    font-size: 22px;
    color: #7c8cff;
    margin-bottom: 16px;
    transition: .35s;
}

.trust-card:hover i {
    transform: scale(1.15);
    color: #ffffff;
}

/* Numbers */
.trust-card h3 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

/* Rating Stars */
.stars {
    color: #FFD54A;
    font-size: 18px;
    letter-spacing: 5px;
    margin-bottom: 14px;
}

/* Labels */
.trust-card p {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Security Pills */
.security-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
    position: relative;
    z-index: 2;
}

/* Individual Pill */
.security-pills span {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #b8c2d6;
    font-size: 12px;
    font-weight: 600;
    transition: .35s;
}

.security-pills span:hover {
    background: rgba(99, 102, 241, .12);
    border-color: #6366f1;
    color: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1000px) {

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width:640px) {

    .trust-section {
        padding: 50px 0;
    }

    .trust-header {
        margin-bottom: 28px;
    }

    .trust-header h2 {
        font-size: 28px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .trust-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .trust-card i {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .trust-card h3 {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .stars {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .trust-card p {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .security-pills {
        margin-top: 24px;
        gap: 8px;
    }

    .security-pills span {
        padding: 8px 12px;
        font-size: 10px;
    }

}




/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 560px;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact layout (moved above its @media override so the
   single-column mobile rule below isn't cancelled by cascade order) */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

@media (max-width: 900px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .services-grid,
    .case-grid,
    .testimonials-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-detail-grid {
        grid-template-columns: 1fr;
    }

    .compare-row {
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 16px 20px;
    }

    .section {
        padding: 68px 0;
    }

    .page-hero {
        padding: 160px 0 80px;
    }
}

/* Form row (moved above its @media override so the single-column
   mobile rule below isn't cancelled by cascade order) */
.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 96px 0 48px;
    }

    .breadcrumb {
        margin-bottom: 14px;
    }

    .hero-h1 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.05;
        letter-spacing: -1.5px;
        text-align: center;
        max-width: 100%;
    }

    .hero-actions,
    .cta-band .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .cta-band .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .case-grid,
    .testimonials-grid,
    .industries-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .db-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .footer-col h4 {
        font-size: 12.5px;
        margin-bottom: 16px;
    }

    .footer-col a {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    #chatWindow {
        width: calc(100vw - 32px);
        right: 16px;
        height: 70vh;
        bottom: 100px;
    }

    #chatButton {
        right: 16px;
        bottom: 20px;
        padding: 14px 18px;
        font-size: 14px;
    }

    #chatButton span:last-child {
        display: none;
    }

    #backToTop {
        left: 16px;
        bottom: 90px;
    }

    .compare-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
        padding: 16px;
    }

    .compare-row span:first-child {
        text-align: center;
    }

    .process-line {
        left: 22px;
    }

    .process-step {
        gap: 16px;
        padding: 22px 0;
    }

    .step-num {
        width: 44px;
        height: 44px;
        font-size: 15px;
        box-shadow: 0 0 0 4px var(--bg-0), 0 0 20px rgba(99, 102, 241, 0.5);
    }

    .step-body {
        padding: 18px 20px;
    }

    .step-body h3 {
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.25;
    }

    .step-body p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .nav-inner {
        height: 72px;
    }

    body {
        padding-top: 72px;
    }
}

@media (max-width: 420px) {
    .hero-badge {
        font-size: 12px;
    }

    .db-metrics {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .db-metric-val {
        font-size: 15px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

/* ============================================
   MISSING CORE COMPONENT STYLES
   (Hero visual dashboard, chat widget internals,
   activity feed, success popup)
   ============================================ */

/* Hero visual & floating cards */
.hero-visual {
    position: relative;
}

.floating-card {
    position: absolute;
    z-index: 3;
    background: rgba(15, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--r-md);
    padding: 16px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: dashboardFloat 6s ease-in-out infinite;
}

.fc1 {
    top: -24px;
    left: -24px;
    animation-delay: -1s;
}

.fc2 {
    bottom: -20px;
    right: -20px;
    animation-delay: -3s;
}

.fc-val {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #4ade80;
}

.fc2 .fc-val {
    color: var(--accent-cyan);
}

.fc-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Dashboard traffic-light dots */
.db-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.db-dot:nth-child(1) {
    background: #f87171;
}

.db-dot:nth-child(2) {
    background: #fbbf24;
}

.db-dot:nth-child(3) {
    background: #4ade80;
}

/* Bar chart */
.db-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 90px;
    margin-top: 12px;
}

.db-bar-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.db-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    animation: barGrow 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Workflow section + node flow */
.workflow-section {
    padding-top: 4px;
}

.wf-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.wf-flow {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-node {
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
}

.wf-node.done {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.wf-node.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    animation: pulse 1.6s ease-in-out infinite;
}

.wf-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* Live activity feed */
.activity-feed {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-item span:nth-child(2) {
    flex: 1;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ad-green {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.ad-blue {
    background: #60a5fa;
    box-shadow: 0 0 8px #60a5fa;
}

.ad-purple {
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Chat widget message internals */
.bot-msg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 8px auto 8px 0;
    max-width: 85%;
    animation: messagePop 0.25s ease;
}

.typing {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    width: fit-content;
}

.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.call-btn {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.whatsapp-btn {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #22c55e;
}

.book-btn {
    background: var(--grad-main);
    color: #fff;
}

.chat-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

@keyframes messagePop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat window scaffolding */
#chatMessages input,
#emailSection input,
#chatInputSection input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

#chatMessages input:focus,
#emailSection input:focus,
#chatInputSection input:focus {
    border-color: var(--accent-blue);
}

#emailSection button,
#chatInputSection button {
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

#emailSection button:hover,
#chatInputSection button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

#emailSection button:disabled,
#chatInputSection button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#emailError {
    font-size: 12px;
    color: #f87171;
    padding: 0 24px 12px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.fade-in {
    opacity: 1;
    animation: messagePop 0.4s ease;
}

/* Success popup */
.success-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(3, 4, 10, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.success-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--r-lg);
    padding: 48px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: messagePop 0.3s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--grad-main);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.success-box h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 24px;
}

.success-box button {
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.success-box button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ============================================
   FINAL GAP FILLS — scroll reveal, trust banner,
   contact layout, case results, avatars, footer
   ============================================ */

/* Scroll reveal animation */
.animate-in {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        transition: opacity 0.4s ease;
        transform: none;
        filter: none;
        clip-path: none;
    }
}

/* Trust banner */
.trust-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-1);
    padding: 48px 0;
    position: relative;
    z-index: 5;
    scroll-snap-align: start;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.trust-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.trust-lbl {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.contact-info h2 {
    font-size: clamp(32px, 4vw, 44px);
    margin: 14px 0 8px;
    font-family: var(--font-display);
    font-weight: 800;
}

.form-group {
    margin-bottom: 20px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.result-chip div:last-child {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* Dashboard metric color variants */
.db-metric-val.blue {
    color: #818cf8;
}

.db-metric-val.purple {
    color: #c084fc;
}

.db-metric-val.cyan {
    color: #22d3ee;
}

/* Hero avatar color variants */
.avatar.av1 {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.avatar.av2 {
    background: linear-gradient(135deg, #a855f7, #c084fc);
}

.avatar.av3 {
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
}

.avatar.av4 {
    background: linear-gradient(135deg, #f472b6, #fb7185);
}

.avatar.av5 {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
}

/* Nav additional bits */
.hero-left {
    position: relative;
    z-index: 1;
}

.chat-title {
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-display);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ============================================
   ADVANCED INTERACTIONS
   Scroll progress, spotlight cards, magnetic
   buttons, staggered reveals, carousel, tabs,
   marquee, calculator, animated timeline
   ============================================ */

/* Scroll progress bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-text);
    z-index: 2000;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* Cursor spotlight on cards */
.spot {
    position: relative;
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
}

.spot::after {
    content: '';
    position: absolute;
    top: var(--my);
    left: var(--mx);
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.06) 45%, transparent 70%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 0;
}

.spot:hover::after {
    opacity: 1;
}

.spot>* {
    position: relative;
    z-index: 1;
}

/* Magnetic buttons */
.btn-primary {
    will-change: transform;
}

/* Staggered grid reveal delays */
.services-grid>*:nth-child(1),
.industries-grid>*:nth-child(1),
.case-grid>*:nth-child(1),
.testimonials-grid>*:nth-child(1),
.stat-strip>*:nth-child(1),
.team-grid>*:nth-child(1) {
    transition-delay: 0s;
}

.services-grid>*:nth-child(2),
.industries-grid>*:nth-child(2),
.case-grid>*:nth-child(2),
.testimonials-grid>*:nth-child(2),
.stat-strip>*:nth-child(2),
.team-grid>*:nth-child(2) {
    transition-delay: 0.08s;
}

.services-grid>*:nth-child(3),
.industries-grid>*:nth-child(3),
.case-grid>*:nth-child(3),
.testimonials-grid>*:nth-child(3),
.stat-strip>*:nth-child(3),
.team-grid>*:nth-child(3) {
    transition-delay: 0.16s;
}

.services-grid>*:nth-child(4),
.industries-grid>*:nth-child(4),
.stat-strip>*:nth-child(4) {
    transition-delay: 0.24s;
}

.services-grid>*:nth-child(5),
.industries-grid>*:nth-child(5) {
    transition-delay: 0.32s;
}

.services-grid>*:nth-child(6),
.industries-grid>*:nth-child(6) {
    transition-delay: 0.4s;
}

.process-step:nth-child(2) .step-body {
    transition-delay: 0.05s;
}

.process-step:nth-child(3) .step-body {
    transition-delay: 0.1s;
}

.process-step:nth-child(4) .step-body {
    transition-delay: 0.15s;
}

.process-step:nth-child(5) .step-body {
    transition-delay: 0.2s;
}

.faq-item:nth-child(2) {
    transition-delay: 0.05s;
}

.faq-item:nth-child(3) {
    transition-delay: 0.1s;
}

.faq-item:nth-child(4) {
    transition-delay: 0.15s;
}

.faq-item:nth-child(5) {
    transition-delay: 0.2s;
}

/* Animated fill process line */
.process-line-fill {
    position: absolute;
    left: 32px;
    top: 40px;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
    z-index: 1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    transition: height 0.15s linear;
}

/* Testimonial carousel */
.carousel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    min-height: 260px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--grad-main);
    width: 26px;
    border-radius: 6px;
}

.carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.carousel-arrow:hover {
    color: #fff;
    border-color: var(--accent-blue);
    background: rgba(99, 102, 241, 0.1);
}

/* Integrations marquee */
.marquee-wrap {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    padding: 8px 0;
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marqueeScroll 16s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
    transition: var(--transition);
}

.marquee-item i {
    font-size: 24px;
    color: var(--accent-mid);
}

.marquee-item:hover {
    opacity: 1;
    color: var(--text-primary);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ROI Calculator */
.calc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.calc-inputs {
    padding: 48px;
}

.calc-output {
    padding: 48px;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.08));
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
}

.calc-field {
    margin-bottom: 32px;
}

.calc-field label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.calc-field label span {
    color: var(--accent-mid);
    font-family: var(--font-display);
    font-size: 15px;
}

.calc-field input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    accent-color: var(--accent-blue);
}

.calc-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad-main);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.calc-out-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.calc-out-val {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 28px;
}

.calc-sub {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.calc-sub-item .calc-sub-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.calc-sub-item .calc-sub-lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.calc-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tabbed service explorer */
.tabs-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.tab-btn.active {
    background: var(--grad-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: messagePop 0.4s ease;
}

.tab-panel-text h3 {
    font-size: 28px;
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 16px;
}

.tab-panel-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.tab-panel-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
}

.tab-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.tab-metric-row:last-child {
    border-bottom: none;
}

.tab-metric-row span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.tab-metric-row span:last-child {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent-cyan);
    font-size: 16px;
}

/* Live form validation states */
.form-group input.valid,
.form-group textarea.valid {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.04);
}

.form-group input.invalid {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.04);
}

.char-counter {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .calc-wrap {
        grid-template-columns: 1fr;
    }

    .calc-output {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .tab-panel.active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .calc-inputs,
    .calc-output {
        padding: 28px;
    }

    .tabs-nav {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   PAGE TRANSITION SYSTEM
   ============================================ */
#pageTransition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 50%, #14112c 0%, #05060e 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
}

#pageTransition.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#pageTransition .pt-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.55);
    transform: scale(0.65);
    opacity: 0;
    animation: ptPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#pageTransition .pt-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.35);
    animation: ptRing 1.4s ease-out infinite;
}

/* Safety net: if JS ever fails to load/run, this overlay must never stay
   stuck on screen forever. Pure-CSS auto-dismiss as a backstop — the JS-driven
   hide (adding .hidden) always happens well before this fires in normal use. */
@keyframes pageTransitionAutoDismiss {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

#pageTransition {
    animation: pageTransitionAutoDismiss 0.01s linear 1.2s forwards;
}

@keyframes ptPop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ptRing {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE POLISH
   ============================================ */

@media (max-width: 640px) {

    /* Floating hero cards — tuck in to avoid overflow/overlap */
    .floating-card {
        padding: 9px 13px;
    }

    .fc1 {
        top: -12px;
        left: -8px;
    }

    .fc2 {
        bottom: -12px;
        right: -8px;
    }

    .fc-val {
        font-size: 15px;
    }

    .fc-lbl {
        font-size: 9px;
    }

    /* Process timeline fill must match mobile line position */
    .process-line-fill {
        left: 22px;
    }

    /* Hero trust row wraps cleanly on narrow phones */
    .hero-trust {
        flex-wrap: wrap;
        gap: 12px 20px;
        width: 100%;
    }

    /* ROI calculator sub-stats wrap instead of squeezing */
    .calc-sub {
        flex-wrap: wrap;
        gap: 16px;
    }

    .calc-sub-item {
        flex: 1 1 30%;
        min-width: 90px;
    }

    /* Marquee tighter on small screens */
    .marquee-track {
        gap: 34px;
        animation-duration: 22s;
    }

    .marquee-item {
        font-size: 13px;
    }

    .marquee-item i {
        font-size: 19px;
    }

    /* Stat boxes: less padding so 2-up grid breathes */
    .stat-box {
        padding: 22px 10px;
    }

    /* Tabs nav: allow full-width equal buttons on very small screens */
    .tabs-nav {
        gap: 8px;
    }

    /* Carousel padding tighter */
    .carousel {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .stat-strip {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .trust-grid .trust-item:last-child {
        grid-column: 1 / -1;
    }

    .hero-badge {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }

    .calc-sub-item {
        flex: 1 1 45%;
        min-width: 0;
    }

    .db-metrics {
        gap: 8px;
    }

    .dashboard {
        width: 88%;
    }

    .footer-top {
        gap: 24px 10px;
    }

    .footer-col h4 {
        font-size: 11.5px;
        margin-bottom: 12px;
    }

    .footer-col a {
        font-size: 12.5px;
        margin-bottom: 10px;
    }

    .testimonials-grid,
    .services-grid,
    .industries-grid,
    .case-grid {
        gap: 20px;
    }

    .page-hero {
        padding: 30px 0 40px;
    }

    .page-hero .lead {
        font-size: 15.5px;
    }

    /* ROI calculator: compact, app-like sizing so it never reads as
       oversized or forces horizontal scroll on small phones */
    .calc-wrap {
        border-radius: var(--r-md);
        margin: 0 4px;
    }

    .calc-inputs,
    .calc-output {
        padding: 22px 18px;
    }

    .calc-field {
        margin-bottom: 22px;
    }

    .calc-field label {
        font-size: 12.5px;
        line-height: 1.4;
        gap: 4px 8px;
        flex-wrap: wrap;
    }

    .calc-field label span {
        font-size: 13px;
        white-space: nowrap;
    }

    .calc-out-label {
        font-size: 12px;
    }

    .calc-out-val {
        font-size: clamp(30px, 10vw, 40px);
        margin-bottom: 20px;
    }

    .calc-sub {
        gap: 8px;
        margin-bottom: 20px;
    }

    .calc-sub-item .calc-sub-num {
        font-size: 16px;
    }

    .calc-sub-item .calc-sub-lbl {
        font-size: 10.5px;
    }

    .calc-note {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* Prevent any accidental horizontal scroll from decorative elements */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.hero-orb,
.marquee-wrap,
.db-chart {
    max-width: 100%;
}

/* ============================================
   PRELOADER / LOADING ANIMATION
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: radial-gradient(ellipse 120% 90% at 50% 30%, #0b0e22 0%, #050614 55%, #03040a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.5s;
}

#preloader.hidden {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}

#preloader.hidden .preloader-core {
    transform: translateY(-24px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Ambient background layer */
.preloader-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.preloader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.preloader-orb.o1 {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
    animation: preloaderDrift1 9s ease-in-out infinite;
}

.preloader-orb.o2 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    right: -100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    animation: preloaderDrift2 11s ease-in-out infinite;
}

.preloader-orb.o3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
    animation: preloaderPulseWide 4s ease-in-out infinite;
}

.preloader-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
}

.preloader-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes preloaderDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 40px) scale(1.12);
    }
}

@keyframes preloaderDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, -50px) scale(1.1);
    }
}

@keyframes preloaderPulseWide {

    0%,
    100% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Core content */
.preloader-core {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-ring-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.preloader-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 2.5;
}

.preloader-ring-progress {
    fill: none;
    stroke: url(#preloaderRingGradient);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s ease-out;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.65));
}

.preloader-ring-glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 72%);
    animation: preloaderGlowBreathe 2.4s ease-in-out infinite;
}

@keyframes preloaderGlowBreathe {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

.preloader-core-icon {
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    overflow: visible;
}

.preloader-core-icon .core-hex {
    fill: none;
    stroke: url(#preloaderRingGradient);
    stroke-width: 2;
    stroke-linejoin: round;
    transform-origin: 30px 30px;
    animation: coreHexSpin 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}

.preloader-core-icon .core-dot {
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: coreDotPulse 1.7s ease-in-out infinite;
}

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

@keyframes coreDotPulse {

    0%,
    100% {
        opacity: 0.55;
        r: 3.4;
    }

    50% {
        opacity: 1;
        r: 5;
    }
}

@keyframes preloaderLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.preloader-percent {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted, #7d8299);
    font-variant-numeric: tabular-nums;
}

.preloader-percent b {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 13px;
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.preloader-brand-text {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f4f5fb;
    background: linear-gradient(100deg, #f4f5fb 30%, #c7cbff 45%, #f4f5fb 60%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloaderShimmer 2.6s linear infinite;
}

@keyframes preloaderShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -20% center;
    }
}

.preloader-tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
}

@media (prefers-reduced-motion: reduce) {

    .preloader-orb,
    .preloader-ring-glow,
    .preloader-core-icon .core-hex,
    .preloader-core-icon .core-dot,
    .preloader-brand-text {
        animation: none;
    }
}

@media (max-width: 640px) {
    .preloader-ring-wrap {
        width: 72px;
        height: 72px;
    }

    .preloader-core-icon {
        width: 24px;
        height: 24px;
    }

    .preloader-brand-text {
        font-size: 13px;
    }

    .preloader-orb.o1,
    .preloader-orb.o2 {
        width: 300px;
        height: 300px;
    }
}

/* Safety net: same principle as #pageTransition above — must never trap the
   UI if JS fails to run. JS-driven hide always happens first in normal use. */
@keyframes preloaderAutoDismiss {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

#preloader {
    animation: preloaderAutoDismiss 0.01s linear 3s forwards;
}

/* ============================================
   EDITORIAL / BOLD CREATIVE LAYER
   (Zentry-inspired: huge type, mono labels,
   marquee bands, clip-path panels, index numbers)
   ============================================ */

/* Big scrolling text marquee (headline-scale, ghost outline style) */
.text-marquee {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    background: var(--bg-1);
    position: relative;
    z-index: 5;
}

.text-marquee-track {
    display: inline-flex;
    gap: 0;
    animation: textMarqueeScroll 13s linear infinite;
    will-change: transform;
}

.text-marquee-track span {
    font-family: var(--font-huge);
    font-size: clamp(28px, 5vw, 56px);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    padding: 0 28px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

.text-marquee-track span::after {
    content: '◆';
    font-size: 0.35em;
    -webkit-text-stroke: 0;
    color: var(--accent-mid);
}

.text-marquee-track span.filled {
    -webkit-text-stroke: 0;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@keyframes textMarqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.text-marquee:hover .text-marquee-track {
    animation-play-state: paused;
}

/* Section index numbers (editorial page-numbering feel) */
.sec-index {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.sec-index b {
    color: var(--text-secondary);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 64px;
    text-align: left;
}

.section-header-row .section-label,
.section-header-row h2 {
    margin: 0;
}

.section-header-row h2 {
    text-align: left;
}

.section-header-row .sec-index-big {
    font-family: var(--font-huge);
    font-size: clamp(40px, 6vw, 88px);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--border-glow);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Clip-path panel — performant, GPU-friendly masked reveal (no WebGL) */
.clip-panel {
    position: relative;
    clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.08));
    border: 1px solid var(--border);
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
}

.clip-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(99, 102, 241, 0.25), transparent 60%);
    pointer-events: none;
}

.clip-panel h3 {
    font-family: var(--font-huge);
    font-size: clamp(30px, 4vw, 52px);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.clip-panel p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.clip-panel .hero-actions {
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Bold squared CTA variant (editorial-style button) */
.btn-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-mono:hover {
    background: #fff;
    color: #05060e;
    border-color: #fff;
}

/* Outline stat numbers (huge, ghost text) */
.stat-box.ghost .stat-num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-mid);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    font-family: var(--font-huge);
    font-size: clamp(34px, 4vw, 52px);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header-row .sec-index-big {
        display: none;
    }

    .clip-panel {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        padding: 56px 28px;
    }
}

@media (max-width: 640px) {
    .text-marquee-track span {
        font-size: 26px;
        padding: 0 18px;
        gap: 18px;
    }
}

/* ============================================
   IMPACT LAYER — custom cursor, 3D tilt, grain,
   split-text reveal, parallax, scroll cue
   ============================================ */

/* Cinematic film-grain overlay, sitewide, near-zero cost */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    opacity: 0.035;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px;
}

/* 3D tilt for spotlight cards, driven by JS-set --rx/--ry custom properties */
.spot {
    --rx: 0deg;
    --ry: 0deg;
}

.glass-glow.spot:hover {
    transform: perspective(900px) translateY(-6px) rotateX(var(--rx)) rotateY(var(--ry));
}

.spot:not(.glass-glow):hover {
    transform: perspective(900px) translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry));
}

/* Hero split-text reveal — each line/word animates in with stagger */
.split-line {
    overflow: hidden;
    display: block;
}

.split-word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-h1.split-ready .split-word {
    transition-delay: calc(var(--i) * 0.04s);
    transform: translateY(0);
    opacity: 1;
}

/* Mouse-reactive parallax layer for hero orbs */
.hero-orb {
    transition: transform 0.3s ease-out;
}

/* Scroll cue indicator */
.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    opacity: 0.7;
}

.scroll-cue span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-cue .cue-line {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, var(--accent-mid), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-cue .cue-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: scrollCueDrop 1.8s ease-in-out infinite;
}

@keyframes scrollCueDrop {
    to {
        top: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .split-word {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .scroll-cue .cue-line::after {
        animation: none;
    }
}

@media (max-width: 900px) {
    .scroll-cue {
        display: none;
    }
}

/* ============================================
   HERO CINEMATIC ENTRANCE + KINETIC DETAILS
   ============================================ */

/* Hero elements start hidden, staged entrance triggered by JS after preloader exits */
.hero-badge,
.hero-rotator,
.hero-sub,
.hero-actions,
.hero-trust,
.hero-visual {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual {
    transform: translateX(40px) translateY(0);
}

.hero-entrance-ready .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.02s;
}

.hero-entrance-ready .hero-rotator {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.09s;
}

.hero-entrance-ready .hero-sub {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.16s;
}

.hero-entrance-ready .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.23s;
}

.hero-entrance-ready .hero-trust {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-entrance-ready .hero-visual {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition-delay: 0.14s;
}

/* Critical safety net: hero content must NEVER stay invisible if JS fails to
   run or throws before reaching the point where it adds .hero-entrance-ready.
   This forces full visibility a short moment after load regardless of JS. */
@keyframes heroContentSafetyReveal {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-badge,
.hero-rotator,
.hero-sub,
.hero-actions,
.hero-trust,
.hero-visual {
    animation: heroContentSafetyReveal 0.01s linear 2s forwards;
}

/* Rotating outcome word line beneath the hero eyebrow */
.hero-rotator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.hero-rotator .rot-window {
    position: relative;
    height: 1.4em;
    overflow: hidden;
    min-width: 150px;
    display: inline-block;
}

.hero-rotator .rot-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    white-space: nowrap;
}

.hero-rotator .rot-word.current {
    opacity: 1;
    transform: translateY(0);
}

.hero-rotator .rot-word.exiting {
    opacity: 0;
    transform: translateY(-100%);
}

/* Second counter-scrolling marquee row for depth */
.text-marquee.reverse {
    background: var(--bg-0);
}

.text-marquee.reverse .text-marquee-track {
    animation-direction: reverse;
    animation-duration: 15s;
}

.text-marquee.reverse .text-marquee-track span {
    -webkit-text-stroke-color: rgba(139, 92, 246, 0.22);
}

/* Premium animated nav underline */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {

    .hero-badge,
    .hero-rotator,
    .hero-sub,
    .hero-actions,
    .hero-trust,
    .hero-visual,
    .rot-word {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   FINAL CASCADE-ORDER SAFETY NET
   (guarantees these mobile collapses always win,
   regardless of where any earlier rule for the
   same selector was defined in this file)
   ============================================ */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-detail-grid {
        grid-template-columns: 1fr;
    }

    .compare-row {
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 16px 20px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .case-grid,
    .testimonials-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {

    .services-grid,
    .case-grid,
    .testimonials-grid,
    .industries-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .compare-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
        padding: 16px;
    }

    /* Dashboard mockup: clear right-to-left entrance on phones */
    .hero-visual {
        transform: translateX(85px) translateY(0);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hero-entrance-ready .hero-visual {
        transform: translateX(0) translateY(0);
    }

    /* Dashboard mockup: wide + short fit on phones (wins over the later
       unscoped .db-chart/.wf-label/.wf-flow/.wf-node/.activity-feed base
       rules further down this file) */
    .dashboard {
        width: 84%;
        margin: 0 auto;
        animation: dashboardFloat 5s ease-in-out infinite;
    }

    .dashboard-bar {
        padding: 10px 14px;
    }

    .db-title {
        font-size: 10px;
    }

    .dashboard-body {
        padding: 14px;
        gap: 10px;
    }

    .db-metrics {
        gap: 8px;
    }

    .db-metric {
        padding: 10px 4px;
    }

    .db-metric-val {
        font-size: 17px;
    }

    .db-metric-lbl {
        font-size: 8px;
        margin-top: 3px;
        letter-spacing: 0.02em;
    }

    .wf-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .db-chart {
        height: 44px;
        gap: 3px;
        margin-top: 6px;
    }

    .workflow-section {
        padding-top: 0;
    }

    .wf-flow {
        gap: 5px;
    }

    .wf-node {
        font-size: 10px;
        padding: 5px 8px;
        border-radius: 7px;
    }

    .wf-arrow {
        font-size: 10px;
    }

    .activity-feed {
        display: none;
    }
}

@media (max-width: 480px) {
    .dashboard {
        width: 88%;
    }
}