/* Font family Segoe UI */

/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Brand Colors */
    --primary: #8376F8;
    --primary-light: #A89CFF;
    --primary-glow: rgba(131, 118, 248, 0.5);
    --bg-white: #FFFFFF;
    --bg-soft: #F6F5FF;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --accent: #6B5CFF;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Animation & Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Fluid Spacing & Typography (Mobile-First) */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(1.5rem, 4vw, 3rem);
    --space-lg: clamp(3rem, 8vw, 6rem);
    --space-xl: clamp(5rem, 12vw, 10rem);

    /* Breakpoints (For reference in JS if needed) */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-laptop: 1024px;
    --bp-desktop: 1280px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

/* Global Glowing Spectrum Background */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    animation: floatGlow 25s infinite alternate ease-in-out;
    opacity: 0.85;
}

body::before {
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(131, 118, 248, 0.45) 0%, rgba(107, 92, 255, 0.15) 40%, rgba(131, 118, 248, 0) 70%);
    top: -15vw;
    left: -15vw;
}

body::after {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.3) 40%, rgba(6, 182, 212, 0) 70%);
    bottom: -15vw;
    right: -10vw;
    animation-delay: -12s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8vw, 12vh) scale(1.1); }
    66% { transform: translate(-8vw, 6vh) scale(0.9); }
    100% { transform: translate(0, -8vh) scale(1.05); }
}

img,
svg,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
    /* Bold for headings per request, Segoe UI has 800 */
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

p,
span,
a,
div,
li {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

h1 span, h2 span, h3 span, h4 span,
.blur-word {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    letter-spacing: inherit !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   ANIMATIONS UTILITIES
   ========================================= */

.blur-text-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    gap: 0.2rem 0.6rem;
    white-space: normal;
}

@media (min-width: 1025px) {
    .section-header .blur-text-container {
        flex-wrap: nowrap;
    }
}

.blur-word {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(40px);
    display: inline-block;
    will-change: transform, opacity, filter;
    /* Transition is handled via inline style delay in JS, or class toggle */
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-word.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger Fade-In for Layouts */
.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Optional scale animate */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 0px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 0px var(--primary-glow);
    }
}

/* =========================================
   LAYOUT STRATEGY & CONTAINERS
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-md);
    align-items: center;
}

.soft-bg {
    background-color: #faf9ff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(131, 118, 248, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(240, 148, 51, 0.03) 0px, transparent 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.glass-morphism {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(131, 118, 248, 0.15);
}

/* Glassmorphic Background Art */
.glass-shape {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: 0;
    pointer-events: none;
    animation: floatShape 15s infinite alternate ease-in-out;
}

/* Default/White glass */
.glass-shape.shape-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
}

/* MacOS Tahoe-inspired Colored Glass Variants */
.glass-shape.shape-purple {
    background: linear-gradient(135deg, rgba(131, 118, 248, 0.35), rgba(107, 92, 255, 0.05));
    border-color: rgba(131, 118, 248, 0.25);
    box-shadow: 0 10px 40px rgba(131, 118, 248, 0.15);
}

.glass-shape.shape-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.05));
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
}

.glass-shape.shape-orange {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.35), rgba(220, 39, 67, 0.05));
    border-color: rgba(240, 148, 51, 0.25);
    box-shadow: 0 10px 40px rgba(240, 148, 51, 0.15);
}

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-40px) rotate(30deg); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8376F8, #9F8CFF);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #6B5CFF, #A89CFF);
    box-shadow: 0 10px 30px rgba(131, 118, 248, 0.35);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bg-soft);
}

.btn-full {
    width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: clamp(0.75rem, 2vw, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    transition: all var(--transition-smooth);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 255, 0.35);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(131, 118, 248, 0.12), 0 1px 6px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: clamp(0.2rem, 1vw, 0.4rem) var(--space-sm);
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem; /* Fallback if image fails */
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand-img {
    height: auto;
    max-height: clamp(45px, 6vw, 60px);
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.6vw, 2rem);
    flex-wrap: nowrap;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--primary);
}

.nav-links .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    background: rgba(131, 118, 248, 0.05);
    border: 1px solid rgba(131, 118, 248, 0.1);
    border-radius: 50%;
    cursor: pointer;
    width: 48px; /* Bigger hit area for touch */
    height: 48px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.menu-toggle span:first-child {
    top: 18px;
}

.menu-toggle span:last-child {
    bottom: 18px;
}

.menu-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--primary);
}

.menu-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--primary);
}

/* =========================================
   PAGE HEROES (Isolated 3D Containers)
   ========================================= */
.hero {
    min-height: calc(100vh - 80px);
    padding-top: clamp(120px, 15vw, 150px);
    padding-bottom: var(--space-md);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 80% 0%, rgba(131, 118, 248, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 148, 51, 0.05) 0%, transparent 60%);
    background-color: transparent;
}

.hero-content {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content .subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Strict Container for 3D elements on the right */
.hero-3d-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* The actual canvas element */
.three-canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* Standard Page Title Hero */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 4rem;
    text-align: center;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(131, 118, 248, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
}

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

.page-hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   STORY SECTION (Home & Process Page)
   ========================================= */
.story-sequence {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.story-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate rows */
.story-step:nth-child(even) .story-text {
    order: 2;
}

.story-step:nth-child(even) .story-visual {
    order: 1;
}

.step-label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.story-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.story-visual {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Story Animations CSS */
.mock-graph.flat {
    width: 60%;
    height: 4px;
    background: #e0e0e0;
    position: absolute;
    bottom: 30%;
}

.mock-icons.low .icon-placeholder {
    width: 30px;
    height: 30px;
    background: #ccc;
    border-radius: 50%;
    position: absolute;
    opacity: 0.5;
}

.mock-icons.low .icon-placeholder:nth-child(1) {
    top: 20%;
    left: 30%;
}

.mock-icons.low .icon-placeholder:nth-child(2) {
    top: 50%;
    right: 30%;
}

.network-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.network-nodes .node {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--primary);
}

.network-nodes .center-node {
    width: 25px;
    height: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
}

.network-nodes .node:nth-child(1) {
    top: 20%;
    left: 20%;
}

.network-nodes .node:nth-child(5) {
    bottom: 20%;
    right: 20%;
}

.network-nodes .line {
    position: absolute;
    background: var(--primary-light);
    height: 2px;
    width: 0;
    transition: width 1.5s ease;
}

.story-step.visible .network-nodes .line {
    width: 100px;
}

.network-nodes .line:nth-child(2) {
    top: 35%;
    left: 25%;
    transform: rotate(45deg);
    transform-origin: left center;
}

.network-nodes .line:nth-child(4) {
    bottom: 35%;
    right: 25%;
    transform: rotate(45deg);
    transform-origin: right center;
}

.bars-container {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 60%;
    padding-bottom: 20px;
}

.bars-container .bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-step.visible .bar-1 {
    height: 30%;
}

.story-step.visible .bar-2 {
    height: 50%;
    transition-delay: 0.2s;
}

.story-step.visible .bar-3 {
    height: 75%;
    transition-delay: 0.4s;
}

.story-step.visible .bar-4 {
    height: 100%;
    transition-delay: 0.6s;
}

.followers-count {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.success-dashboard {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.stat-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.stat-box.primary {
    background: var(--primary);
    color: white;
}

.stat-box.filled {
    background: var(--bg-soft);
    justify-content: flex-start;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.check-icon {
    width: 20px;
    height: 20px;
}

/* =========================================
   CUSTOM PROCESS ANIMATIONS (CSS Infographics)
   ========================================= */

/* Step 1: Strategy Analysis (Magnifying Glass / Scanner) */
.anim-scanner {
    position: relative;
    width: 120px;
    height: 120px;
}

.anim-scanner .document {
    position: absolute;
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(131, 118, 248, 0.4);
    border-radius: 8px;
    top: 10px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    gap: 10px;
}

.anim-scanner .doc-line {
    width: 60%;
    height: 6px;
    background: rgba(131, 118, 248, 0.2);
    border-radius: 4px;
}

.anim-scanner .doc-line:nth-child(2) {
    width: 40%;
}

.anim-scanner .doc-line:nth-child(3) {
    width: 70%;
}

.anim-scanner .scanner-bar {
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    left: 10px;
    top: 5px;
    animation: scanMove 2s ease-in-out infinite alternate;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(110px);
    }
}

/* Step 2: Growth Planning (Roadmap) */
.anim-roadmap {
    position: relative;
    width: 160px;
    height: 120px;
}

.anim-roadmap .road {
    position: absolute;
    width: 100%;
    height: 100%;
    border-bottom: 4px dashed rgba(131, 118, 248, 0.3);
    border-left: 4px dashed rgba(131, 118, 248, 0.3);
    border-top: 4px dashed rgba(131, 118, 248, 0.3);
    border-radius: 30px 0 0 30px;
    top: 10px;
    left: 30px;
    width: 100px;
    height: 80px;
}

.anim-roadmap .target {
    position: absolute;
    right: 15px;
    bottom: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: pulseTarget 1.5s infinite;
}

.anim-roadmap .traveler {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    top: 5px;
    right: 30px;
    animation: travelRoad 4s linear infinite;
}

@keyframes pulseTarget {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(107, 92, 255, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(107, 92, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(107, 92, 255, 0);
    }
}

@keyframes travelRoad {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    25% {
        transform: translate(-100px, 0);
    }

    50% {
        transform: translate(-100px, 80px);
    }

    75% {
        transform: translate(0, 80px);
        opacity: 1;
    }

    85%,
    100% {
        transform: translate(0, 80px);
        opacity: 0;
    }
}

/* Step 3: Campaign Execution (Multi-Channel Distribution) */
.anim-campaign-dist {
    position: relative;
    width: 160px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-campaign-dist .hub {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    z-index: 3;
    left: 20px;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: pulseHub 2s infinite alternate;
}

.anim-campaign-dist .channel-node {
    width: 16px;
    height: 16px;
    background: rgba(131, 118, 248, 0.4);
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    right: 20px;
}

.anim-campaign-dist .node-top { top: 20px; }
.anim-campaign-dist .node-mid { top: 62px; right: 10px; }
.anim-campaign-dist .node-bot { bottom: 20px; }

.anim-campaign-dist .connection {
    position: absolute;
    border-top: 2px dashed rgba(131, 118, 248, 0.3);
    left: 40px;
    z-index: 1;
    transform-origin: left center;
}

.anim-campaign-dist .conn-top { width: 95px; top: 70px; transform: rotate(-28deg); }
.anim-campaign-dist .conn-mid { width: 105px; top: 70px; transform: rotate(-3deg); }
.anim-campaign-dist .conn-bot { width: 95px; top: 70px; transform: rotate(28deg); }

.anim-campaign-dist .packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    left: 35px;
    top: 66px;
    z-index: 4;
    box-shadow: 0 0 8px var(--accent);
    opacity: 0;
}

.anim-campaign-dist .p-top { animation: deployTop 2.5s infinite linear; }
.anim-campaign-dist .p-mid { animation: deployMid 2.5s infinite linear; animation-delay: 0.8s; }
.anim-campaign-dist .p-bot { animation: deployBot 2.5s infinite linear; animation-delay: 1.6s; }

@keyframes pulseHub {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
    100% { transform: scale(1.15); box-shadow: 0 0 25px var(--primary-glow); }
}

@keyframes deployTop {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { transform: translate(84px, -45px); opacity: 1; }
    100% { transform: translate(84px, -45px); opacity: 0; }
}

@keyframes deployMid {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { transform: translate(105px, -5px); opacity: 1; }
    100% { transform: translate(105px, -5px); opacity: 0; }
}

@keyframes deployBot {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { transform: translate(84px, 45px); opacity: 1; }
    100% { transform: translate(84px, 45px); opacity: 0; }
}

/* Step 4: Data Optimization (Analytics Dashboard & Dials) */
.anim-dashboard-dials {
    position: relative;
    width: 160px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.anim-dashboard-dials .dash-screen {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(131, 118, 248, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: flex-end;
}

.anim-dashboard-dials .dash-line {
    width: 120px;
    height: 30px;
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    bottom: 15px;
    left: -10px;
    animation: dashWave 4s linear infinite;
    filter: drop-shadow(0 0 5px var(--accent));
}

.anim-dashboard-dials .dials-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100px;
}

.anim-dashboard-dials .dial-track {
    width: 100%;
    height: 6px;
    background: rgba(131, 118, 248, 0.2);
    border-radius: 3px;
    position: relative;
}

.anim-dashboard-dials .dial-knob {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: -3px;
    box-shadow: 0 0 8px var(--primary-glow);
    animation: moveDial 3s ease-in-out infinite alternate;
}

.anim-dashboard-dials .dial-track:nth-child(1) .dial-knob { left: 10%; animation-delay: 0s; }
.anim-dashboard-dials .dial-track:nth-child(2) .dial-knob { left: 80%; animation-delay: -1s; }
.anim-dashboard-dials .dial-track:nth-child(3) .dial-knob { left: 40%; animation-delay: -2s; }

@keyframes dashWave {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-20px) scaleY(1.5); }
    100% { transform: translateX(0) scaleY(1); }
}

@keyframes moveDial {
    0% { transform: translateX(0); }
    100% { transform: translateX(40px); }
}

/* Step 5: Business Scaling (Exponential Growth) */
.anim-growth {
    position: relative;
    width: 160px;
    height: 120px;
    border-left: 2px solid rgba(131, 118, 248, 0.3);
    border-bottom: 2px solid rgba(131, 118, 248, 0.3);
    display: flex;
    align-items: flex-end;
    padding: 0 0 10px 10px;
    gap: 12px;
}

.anim-growth .growth-bar {
    width: 20px;
    background: linear-gradient(to top, rgba(131, 118, 248, 0.2), var(--primary));
    border-radius: 4px 4px 0 0;
    animation: growBars 3s infinite ease-out;
    transform-origin: bottom;
}

.anim-growth .growth-bar:nth-child(1) {
    height: 20px;
}

.anim-growth .growth-bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.2s;
}

.anim-growth .growth-bar:nth-child(3) {
    height: 60px;
    animation-delay: 0.4s;
}

.anim-growth .growth-bar:nth-child(4) {
    height: 100px;
    animation-delay: 0.6s;
    background: linear-gradient(to top, var(--primary), var(--accent));
    box-shadow: 0 -5px 15px rgba(107, 92, 255, 0.4);
    border: 1px solid var(--accent);
}

@keyframes growBars {

    0%,
    15% {
        transform: scaleY(0.1);
        opacity: 0.5;
    }

    50%,
    85% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0.1);
        opacity: 0.5;
    }
}

/* =========================================
   SERVICES / CARDS GRID
   ========================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .services-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .services-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.service-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    height: 100%;
    will-change: transform;
}

.service-card .glow-bg {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(40px);
    top: -50px;
    right: -50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    /* default lift before JS tilt overrides */
    animation: borderGlow 2s infinite;
}

.service-card:hover .glow-bg {
    opacity: 1;
}

.service-card h3,
.service-card p,
.service-icon,
.service-card .btn,
.service-card ul {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
    /* text pops out smoothly on tilt */
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(131, 118, 248, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Disable hover effects on touch devices */
@media (hover: none) {

    .service-card,
    .service-card:hover {
        transform: none !important;
        animation: none !important;
        box-shadow: var(--glass-shadow);
    }

    .service-card .glow-bg {
        opacity: 0.5;
        /* Always show slightly on touch */
    }
}

/* =========================================
   IMPACT STATS / GROWTH METRICS CARDS
   ========================================= */
.impact {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
}

/* Base: 3-column card grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

/* Individual stat card */
.stat-item {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(131, 118, 248, 0.2);
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(131, 118, 248, 0.2);
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    /* Make the last card span full width when 3 items in 2-col grid */
    .stats-grid .stat-item:last-child:nth-child(odd) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .stats-grid .stat-item:last-child:nth-child(odd) {
        grid-column: span 1;
        max-width: 100%;
    }
    .stat-item {
        padding: 2rem 1.5rem;
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .stat-number {
        font-size: 2.8rem;
    }
}

/* =========================================
   CONTACT SECTION / PAGE
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: stretch;
}

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

.contact-info-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-info-wrapper h2 {
    font-family: 'Segoe UI', sans-serif;
}

.contact-info-wrapper p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-3d-container {
    flex: 1;
    width: 100%;
    min-height: 300px;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper {
    padding: 3rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
    resize: vertical;
}

#submit-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

.hidden {
    display: none !important;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid rgba(131, 118, 248, 0.4);
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.checkbox-label input:checked+.checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Callback fields reveal */
.callback-fields {
    background: rgba(131, 118, 248, 0.04);
    border: 1px solid rgba(131, 118, 248, 0.15);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================
   FOOTER
   ========================================= */
/* =========================================
   SITE FOOTER (5-COLUMN PREMIUM REDESIGN)
   ========================================= */

.site-footer {
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-col {
    padding-right: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(131, 118, 248, 0.08);
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(131, 118, 248, 0.3);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive Breakpoints */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 2rem;
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
        margin-bottom: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .footer-brand-col {
        grid-column: span 1;
    }
    .site-footer {
        padding: var(--space-lg) 0 var(--space-md);
    }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE-FIRST PRINCIPLES)
   ========================================= */

@media (max-width: 992px) {

    .split-grid,
    .contact-grid,
    .story-step {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .story-step:nth-child(even) .story-text {
        order: 1;
    }

    .story-step:nth-child(even) .story-visual {
        order: 2;
    }

    .hero {
        align-items: flex-start;
        padding-top: clamp(100px, 12vw, 120px);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Constrain 3D space on Mobile so it doesn't push content below fold immensely */
    .hero-3d-container {
        height: 350px;
    }


}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-right: -0.5rem;
    }

    .nav-links {
        /* Position dropdown below the pill navbar */
        position: fixed;
        top: calc(clamp(0.75rem, 2vw, 1.5rem) + clamp(45px, 6vw, 60px) + 0.75rem);
        left: var(--space-sm);
        right: var(--space-sm);
        width: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(200, 200, 255, 0.4);
        box-shadow: 0 15px 50px rgba(131, 118, 248, 0.16), 0 5px 20px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 1100;
    }

    .nav-links.active {
        max-height: 80vh;
        padding: var(--space-sm);
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }

    .nav-links a:not(.btn) {
        display: block;
        padding: 1.25rem 0.5rem;
        border-bottom: 1px solid rgba(131, 118, 248, 0.1);
        font-size: 1.1rem;
        text-align: center;
        color: var(--text-dark);
    }

    .nav-links a.active {
        color: var(--primary);
        font-weight: 700;
    }

    .nav-links .btn {
        margin-top: 1.5rem;
        width: 100%;
        padding: 1rem;
    }
}

}

@media (max-width: 480px) {
    .navbar {
        top: 0.75rem;
        width: 96%;
    }

    .nav-brand-img {
        height: 48px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 0.5rem;
        width: calc(100% - 1rem); /* 0.5rem margin on each side */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .navbar .container {
        padding: 0.4rem 0.8rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .nav-brand-img {
        height: 55px; /* Taller height for mobile to allow stacked logo reading */
    }

    .nav-links {
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-3d-container {
        height: 280px;
    }

    /* Smallest explicitly */
}

/* =========================================
   GSAP CARD STACK
   ========================================= */
.card-swap-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.card-swap-container {
    position: relative;
    width: 440px;
    height: 480px;
    perspective: 1200px;
    margin-top: 2rem;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    border-radius: 28px;
    opacity: 0;
    overflow: hidden;
    will-change: transform, opacity;
}

/* New White Glass Class logic */
.glass-morphism.card-glow {
    background: 
        radial-gradient(circle at 100% 0%, rgba(131, 118, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 245, 255, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(131, 118, 248, 0.2);
    box-shadow: 0 20px 50px rgba(131, 118, 248, 0.15);
    /* Soft shadow with purple hint */
    color: var(--text-dark);
}

.card-top-bar {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    /* purple dot */
    margin-right: 0.8rem;
    box-shadow: 0 0 10px rgba(131, 118, 248, 0.5);
    /* purple glow */
}

.card-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: var(--primary);
    /* purple icon */
    font-weight: bold;
}

.card-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    /* Align content typical */
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    overflow: hidden;
}

.card-bg-number {
    position: absolute;
    font-size: 16rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(131, 118, 248, 0.4) 0%, rgba(131, 118, 248, 0) 100%);
    /* soft purple gradient text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    /* less opaque on white background */
    z-index: 0;
    bottom: -20px;
    right: 15px;
    transform: rotate(-5deg);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 90%;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.card-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   CARD VISUALIZATIONS (Desktop Fill)
   ========================================= */
.card-visual {
    flex: 1;
    /* Take up remaining space between top bar and bottom content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    opacity: 0.8;
}

/* 1. Automation Path (Card 1) */
.automation-path {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.automation-path .node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(131, 118, 248, 0.1);
    border: 2px solid rgba(131, 118, 248, 0.4);
    box-shadow: 0 0 10px rgba(131, 118, 248, 0.2);
    position: relative;
    z-index: 2;
}

.automation-path .node.primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.automation-path .path-line {
    flex: 1;
    height: 2px;
    background: rgba(131, 118, 248, 0.2);
    margin: 0 -5px;
    z-index: 1;
}

.automation-path .path-line.active-path {
    background: linear-gradient(90deg, rgba(131, 118, 248, 0.2), var(--primary));
}

/* 2. Bar Chart (Card 2) */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    width: 100%;
    justify-content: center;
}

.bar-chart .bar {
    width: 32px;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}

.bar-chart .bar.active {
    background: linear-gradient(180deg, var(--primary), rgba(131, 118, 248, 0.2));
    box-shadow: 0 -5px 15px var(--primary-glow);
}

/* 3. UI Toggles (Card 3) */
.ui-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(131, 118, 248, 0.1);
}

.label-line {
    height: 8px;
    width: 60%;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 4px;
}

.label-line.short {
    width: 40%;
}

.toggle {
    width: 40px;
    height: 22px;
    background: rgba(131, 118, 248, 0.2);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.toggle.active::after {
    left: 20px;
}

/* 4. Server Stack (Card 4) */
.server-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.server-unit {
    height: 32px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(131, 118, 248, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.server-unit::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(131, 118, 248, 0.3);
    margin-right: 8px;
}

.server-unit::after {
    content: '';
    width: 30px;
    height: 4px;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 2px;
}

.server-unit.active {
    background: rgba(131, 118, 248, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(131, 118, 248, 0.15);
}

.server-unit.active::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

@media (max-width: 768px) {
    .card-visual {
        display: none;
    }

    .card-swap-wrapper {
        margin-top: 40px;
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .stack-card {
        height: auto;
        min-height: 260px;
        padding: 28px;
        border-radius: 18px;
        overflow: visible;
    }

    .glass-morphism.card-glow {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }

    .card-top-bar {
        padding: 0;
        padding-bottom: 0.8rem;
        margin-bottom: 1rem;
    }
}


/* =========================================
   HORIZONTAL SCROLL SERVICES
   ========================================= */

.svc-horizontal-scroll {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2rem 0 4rem;
}

.svc-scroll-track {
    display: flex;
    gap: 2rem;
    padding: 0 calc(50vw - 600px);
    /* Align first card with container */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scroll-behavior: smooth;
}

.svc-scroll-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Webkit */
}

@media (max-width: 1240px) {
    .svc-scroll-track {
        padding: 0 2rem;
    }
}

.modern-card {
    flex: 0 0 400px;
    /* Fixed width for horizontal scrolling */
    scroll-snap-align: center;
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Vibrant Color Themes */
.card-vibrant-purple {
    --accent: #8376F8;
    --accent-light: rgba(131, 118, 248, 0.1);
    --accent-glow: rgba(131, 118, 248, 0.4);
}

.card-vibrant-cyan {
    --accent: #22b8d0;
    --accent-light: rgba(34, 184, 208, 0.1);
    --accent-glow: rgba(34, 184, 208, 0.4);
}

.card-vibrant-orange {
    --accent: #E0960A;
    --accent-light: rgba(224, 150, 10, 0.1);
    --accent-glow: rgba(224, 150, 10, 0.4);
}

.card-vibrant-green {
    --accent: #10b981;
    --accent-light: rgba(16, 185, 129, 0.1);
    --accent-glow: rgba(16, 185, 129, 0.4);
}

.modern-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card:hover .modern-card-icon {
    transform: scale(1.15) rotate(-8deg);
    background: var(--accent);
    color: #fff;
}

.modern-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.modern-card-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.modern-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-features li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.modern-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.modern-link span {
    transition: transform 0.3s ease;
}

.modern-card:hover .modern-link {
    gap: 1rem;
}

.modern-card:hover .modern-link span {
    transform: translateX(4px);
}

/* Background Gradients */
.modern-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, var(--accent-light) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.modern-card:hover .modern-card-bg {
    opacity: 0.6;
    background: radial-gradient(circle at 100% 100%, var(--accent-light) 0%, #fff 100%);
}

@media (max-width: 480px) {
    .modern-card {
        flex: 0 0 46vw;
        padding: 1.5rem 1rem;
        min-height: 220px;
    }

    .modern-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .modern-card-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .modern-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .modern-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .modern-features {
        display: none; /* Hide feature list on small mobile to save space */
    }

    .modern-link {
        font-size: 0.85rem;
    }
}

/* Services Page Infinite Marquee */
.svc-marquee-container {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    /* Gradient mask for smooth fade-in/out edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.svc-marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

/* Ensure cards maintain width in flex track */
.svc-marquee-track .modern-card {
    flex: 0 0 350px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Pause and pop on hover */
.svc-marquee-container:hover .svc-marquee-track {
    animation-play-state: paused;
}

.svc-marquee-track .modern-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Move by half the track width (one full set of cards) */
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
    .svc-marquee-container {
        padding: 1rem 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .svc-marquee-track {
        gap: 1.5rem;
        animation: none; /* Disable infinite scroll on mobile */
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    /* Hide the duplicated cards used for infinite loop */
    .svc-marquee-track .modern-card:nth-child(n+5) {
        display: none;
    }

    .svc-marquee-track .modern-card {
        flex: 1 1 auto;
        min-width: 100%;
    }
}

/* ---- Pricing variant (legacy — kept for safety) ---- */
.pricing-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 3.5rem;
}

.pricing-plan-header {
    margin-bottom: 1.5rem;
    width: 100%;
}

.plan-label {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}

.plan-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.plan-price span {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.plan-price em {
    font-style: normal;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.recommended-card {
    border-color: var(--primary) !important;
    box-shadow: 0 16px 48px rgba(131, 118, 248, 0.15), inset 0 0 0 2px var(--primary) !important;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 248, 255, 0.98) 100%) !important;
}

.recommended-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1.5rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 12px rgba(131, 118, 248, 0.35);
}

/* =========================================
   PRICING SECTION — PREMIUM REDESIGN
   ========================================= */

.pricing-section {
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

/* Decorative ambient blobs */
.pricing-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.pricing-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(131, 118, 248, 0.1), transparent 70%);
    top: -200px;
    left: -200px;
}

.pricing-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 92, 255, 0.08), transparent 70%);
    bottom: -150px;
    right: -150px;
}

.pricing-section .container {
    position: relative;
    z-index: 1;
}

/* Header */
.pricing-header {
    margin-bottom: 4rem;
}

.pricing-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(131, 118, 248, 0.1);
    border: 1px solid rgba(131, 118, 248, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
}

/* Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Card base */
.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(131, 118, 248, 0.12);
    border-radius: 28px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.38s ease,
        border-color 0.3s ease;
    box-shadow: 0 4px 24px rgba(131, 118, 248, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(131, 118, 248, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(131, 118, 248, 0.28);
}

/* Featured Growth card */
.pricing-card-featured {
    background: linear-gradient(145deg, #6B5CFF 0%, #9F8CFF 100%);
    border-color: transparent;
    box-shadow: 0 24px 70px rgba(107, 92, 255, 0.35), 0 6px 20px rgba(107, 92, 255, 0.2);
    transform: translateY(-12px);
    /* floats above the others */
}

.pricing-card-featured:hover {
    transform: translateY(-18px);
    box-shadow: 0 32px 90px rgba(107, 92, 255, 0.45), 0 8px 24px rgba(107, 92, 255, 0.25);
    border-color: transparent;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
    border-radius: 0 0 16px 16px;
}

/* Plan icon */
.plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-icon svg {
    width: 24px;
    height: 24px;
}

.plan-icon-base {
    background: rgba(131, 118, 248, 0.1);
    color: var(--primary);
}

.plan-icon-growth {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.plan-icon-enterprise {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Card top section */
.pricing-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plan-name {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0;
}

.pricing-card-featured .plan-name {
    color: #fff;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.pricing-card-featured .plan-desc {
    color: rgba(255, 255, 255, 0.78);
}

/* Price block */
.plan-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-top: 0.5rem;
}

.plan-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: 0.4rem;
}

.pricing-card-featured .plan-currency {
    color: rgba(255, 255, 255, 0.7);
}

.plan-amount {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-dark);
}

.pricing-card-featured .plan-amount {
    color: #fff;
}

.plan-custom {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.plan-period {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    align-self: flex-end;
    padding-bottom: 0.5rem;
}

.pricing-card-featured .plan-period {
    color: rgba(255, 255, 255, 0.7);
}

/* Divider */
.pricing-card .plan-features {
    border-top: 1px solid rgba(131, 118, 248, 0.1);
    padding-top: 1.5rem;
    list-style: none;
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.pricing-card-featured .plan-features {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.pricing-card-featured .plan-features li {
    color: #fff;
}

.feat-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pricing-card-featured .feat-check {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.feat-x {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #9CA3AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.feat-muted {
    opacity: 0.45;
}

/* CTA Buttons */
.plan-btn {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.plan-btn-outline {
    border: 2px solid rgba(131, 118, 248, 0.3);
    color: var(--primary);
    background: transparent;
}

.plan-btn-outline:hover {
    background: rgba(131, 118, 248, 0.06);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 118, 248, 0.12);
}

.plan-btn-primary {
    background: #fff;
    color: #6B5CFF;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.plan-btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* Trust bar */
.pricing-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(131, 118, 248, 0.12);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.pricing-trust span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .pricing-card-featured {
        grid-column: span 2;
        transform: none;
        max-width: 500px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .plan-name {
        font-size: 1.1rem;
    }

    .plan-amount {
        font-size: 1.8rem;
    }

    .plan-features li {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .pricing-card-featured {
        grid-column: span 2;
        max-width: 100%;
        transform: none;
    }

    .pricing-trust {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

/* Reveal animation helpers (scroll into view) */
.reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-element[data-reveal="slide-up"] {
    transform: translateY(40px);
}

.reveal-element[data-reveal="fade-in"] {
    transform: translateY(0);
}

.reveal-element.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile — make cards shorter so scrolling isn't too long */
@media (max-width: 900px) {
    .stack-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 2rem;
    }

    .stack-item {
        height: 380px;
    }

    .stack-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
        border-radius: 14px;
    }

    .stack-body h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .stack-item {
        height: 430px;
        margin-bottom: 1rem;
    }

    .stack-card-inner {
        padding: 1.6rem 1.5rem;
    }

    .stack-icon {
        display: none;
        /* hide icon to save space on tiny screens */
    }
}

/* Industries Banner */
.industries-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-badge {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-dark);
    display: inline-block;
}

.industry-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(131, 118, 248, 0.25);
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* =========================================
   CASE STUDIES — PREMIUM REDESIGN
   ========================================= */

/* Section wrapper */
.cs-section {
    background: var(--bg-white);
}

/* Eyebrow label above title */
.cs-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(131, 118, 248, 0.1);
    border: 1px solid rgba(131, 118, 248, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.cs-header {
    margin-bottom: 4rem;
}

.cs-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 520px;
    margin: 0 auto;
    margin-top: 0.75rem;
}

/* Grid: 3 cols → 2 → 1 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Card outer shell */
.case-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(131, 118, 248, 0.12);
    box-shadow: 0 4px 24px rgba(131, 118, 248, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.38s ease;
    will-change: transform;
    overflow: hidden;
}

/* Hover lift */
.case-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 60px rgba(131, 118, 248, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(131, 118, 248, 0.35);
}

/* Subtle top accent stripe on hover */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

/* Inner content padded area */
.cs-card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.25rem;
}

/* Top row: icon + tag + company */
.cs-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brand icon circle */
.cs-brand-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-brand-icon svg {
    width: 22px;
    height: 22px;
}

/* Icon color themes per industry */
.cs-icon-ecom {
    background: rgba(255, 140, 80, 0.12);
    color: #E8720C;
    transition: all 0.3s ease;
}

.case-card:hover .cs-icon-ecom {
    background: #E8720C;
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.cs-icon-fintech {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    transition: all 0.3s ease;
}

.case-card:hover .cs-icon-fintech {
    background: #059669;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.cs-icon-saas {
    background: rgba(131, 118, 248, 0.12);
    color: var(--primary);
    transition: all 0.3s ease;
}

.case-card:hover .cs-icon-saas {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.cs-icon-health {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    transition: all 0.3s ease;
}

.case-card:hover .cs-icon-health {
    background: #DC2626;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.cs-icon-startup {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.cs-icon-ai {
    background: rgba(99, 102, 241, 0.12);
    color: #6366F1;
}

/* Industry tag pill */
.cs-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.25rem;
}

.cs-tag-ecom {
    background: rgba(255, 140, 80, 0.12);
    color: #E8720C;
}

.cs-tag-fintech {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.cs-tag-saas {
    background: rgba(131, 118, 248, 0.12);
    color: var(--primary);
}

.cs-tag-health {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.cs-tag-startup {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.cs-tag-ai {
    background: rgba(99, 102, 241, 0.12);
    color: #6366F1;
}

/* Company name */
.cs-company {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Challenge / Solution blocks */
.cs-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.cs-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cs-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cs-block p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Result divider + metric */
.cs-result {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(131, 118, 248, 0.12);
}

/* Large metric number */
.cs-metric {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter 0.3s ease;
    letter-spacing: -0.02em;
}

/* Case Study Metric Gradients */
.cs-metric-ecom {
    background: linear-gradient(135deg, #FF6B00, #FF3D00);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-fintech {
    background: linear-gradient(135deg, #10B981, #34D399);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-saas {
    background: linear-gradient(135deg, #8376F8, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-health {
    background: linear-gradient(135deg, #FB7185, #E11D48);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-startup {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-ai {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-purple {
    background: linear-gradient(135deg, #8376F8, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-cyan {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    -webkit-background-clip: text;
    background-clip: text;
}

.cs-metric-emerald {
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Counting animation state */
.cs-metric.is-counting {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    transition: transform 0.1s ease-out;
}

/* Brighter metric on card hover */
.case-card:hover .cs-metric {
    filter: brightness(1.15) saturate(1.2);
    transform: scale(1.03) translateX(3px);
}

.cs-metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* touch/hover-none: disable lift */
@media (hover: none) {

    .case-card,
    .case-card:hover {
        transform: none !important;
        box-shadow: 0 4px 24px rgba(131, 118, 248, 0.07) !important;
    }

    .case-card::before {
        opacity: 0 !important;
    }
}

/* ==========================================
   RESPONSIVE — Tablet 2-col, Mobile 1-col
   ========================================== */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 640px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cs-card-inner {
        padding: 1.25rem;
    }

    .case-title {
        font-size: 1.1rem;
    }

    .case-desc {
        font-size: 0.85rem;
    }

    .cs-metric {
        font-size: 2rem;
    }
}

/* Audit Form */
.audit-list {
    margin-top: 2rem;
}

.audit-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.audit-form-wrapper {
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.custom-form .form-group {
    margin-bottom: 1.2rem;
}

.custom-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-form input,
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-soft);
    transition: var(--transition-fast);
}

.custom-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 3rem;
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Why Choose Us / SEO Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.why-item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.why-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.placeholder-img {
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 600;
    color: var(--text-dark);
}

.read-more:hover {
    color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Switched to right side as it's standard for chat widgets */
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform var(--transition-fast);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .industries-flex {
        gap: clamp(0.5rem, 2vw, 0.75rem);
        justify-content: center;
    }

    .industry-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}


/* =========================================
   UI FIXES: NAVBAR & PREMIUM SAAS CARDS
   ========================================= */

/* Removed Floating Pill Navbar Overrides to restore full width */

/* Fix Hero Card Stack UI - Restored Old Style */
.premium-card {
    background: linear-gradient(145deg, #ffffff, #f6f5ff);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(131, 118, 248, 0.4);
    box-shadow: 0 20px 50px rgba(131, 118, 248, 0.15);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.premium-card.active {
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(131, 118, 248, 0.25);
}

.premium-card .card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.premium-card .card-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-top-bar {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(131, 118, 248, 0.15);
    /* sublte purple divide */
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    /* purple dot */
    margin-right: 0.8rem;
    box-shadow: 0 0 10px rgba(131, 118, 248, 0.5);
    /* purple glow */
}

.card-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: var(--primary);
    /* purple icon */
    font-weight: bold;
}

.card-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    /* Align content typical */
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    overflow: hidden;
}

.card-bg-number {
    position: absolute;
    font-size: 16rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(131, 118, 248, 0.4) 0%, rgba(131, 118, 248, 0) 100%);
    /* soft purple gradient text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    /* less opaque on white background */
    z-index: 0;
    bottom: -20px;
    right: 15px;
    transform: rotate(-5deg);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 90%;
}

/* =========================================
   CARD VISUALIZATIONS (Desktop Fill)
   ========================================= */
.card-visual {
    flex: 1;
    /* Take up remaining space between top bar and bottom content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    opacity: 0.8;
}

/* 1. Automation Path (Card 1) */
.automation-path {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.automation-path .node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(131, 118, 248, 0.1);
    border: 2px solid rgba(131, 118, 248, 0.4);
    box-shadow: 0 0 10px rgba(131, 118, 248, 0.2);
    position: relative;
    z-index: 2;
}

.automation-path .node.primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.automation-path .path-line {
    flex: 1;
    height: 2px;
    background: rgba(131, 118, 248, 0.2);
    margin: 0 -5px;
    z-index: 1;
}

.automation-path .path-line.active-path {
    background: linear-gradient(90deg, rgba(131, 118, 248, 0.2), var(--primary));
}

/* 2. Bar Chart (Card 2) */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    width: 100%;
    justify-content: center;
}

.bar-chart .bar {
    width: 32px;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}

.bar-chart .bar.active {
    background: linear-gradient(180deg, var(--primary), rgba(131, 118, 248, 0.2));
    box-shadow: 0 -5px 15px var(--primary-glow);
}

/* 3. UI Toggles (Card 3) */
.ui-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(131, 118, 248, 0.1);
}

.label-line {
    height: 8px;
    width: 60%;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 4px;
}

.label-line.short {
    width: 40%;
}

.toggle {
    width: 40px;
    height: 22px;
    background: rgba(131, 118, 248, 0.2);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.toggle.active::after {
    left: 20px;
}

/* 4. Server Stack (Card 4) */
.server-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.server-unit {
    height: 32px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(131, 118, 248, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.server-unit::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(131, 118, 248, 0.3);
    margin-right: 8px;
}

.server-unit::after {
    content: '';
    width: 30px;
    height: 4px;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 2px;
}

.server-unit.active {
    background: rgba(131, 118, 248, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(131, 118, 248, 0.15);
}

.server-unit.active::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

@media (max-width: 768px) {
    .card-visual {
        display: none;
    }

    .card-swap-wrapper {
        margin-top: var(--space-md);
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 350px;
    }

    .stack-card {
        height: auto;
        min-height: clamp(240px, 40vh, 320px);
        padding: var(--space-sm);
        border-radius: var(--radius-md);
        overflow: visible;
        width: 100%;
        max-width: 450px;
    }

    .glass-morphism.card-glow {
        box-shadow: 0 15px 40px rgba(131, 118, 248, 0.1);
    }

    .card-top-bar {
        padding: 0 0 0.75rem 0;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(131, 118, 248, 0.1);
    }

    .premium-card .card-content h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .premium-card .card-content p {
        font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
        line-height: 1.5 !important;
    }
}

/* =========================================
   PREMIUM SERVICES SECTION — Bento Grid
   ========================================= */

/* Section wrapper */
.svc-section {
    background: var(--bg-white);
}

/* Eyebrow label */
.svc-eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(131, 118, 248, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.svc-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0.5rem auto 0;
}

/* Bento Grid */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

/* Wide card spans 2 columns */
.svc-card--wide {
    grid-column: span 2;
}

/* Card base */
.svc-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: stretch;
    min-height: 280px;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(131, 118, 248, 0.1);
}

/* Top accent bar */
.svc-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    border-radius: 28px 28px 0 0;
}

/* Inner content area */
.svc-card-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Top row: icon + badge */
.svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Icon container */
.svc-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(131, 118, 248, 0.12);
}

/* Metric badge */
.svc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: rgba(131, 118, 248, 0.08);
    border: 1px solid rgba(131, 118, 248, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Card title */
.svc-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

/* Card description */
.svc-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Feature tags row */
.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.svc-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(131, 118, 248, 0.06);
    border: 1px solid rgba(131, 118, 248, 0.18);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    transition: background 0.2s ease, transform 0.2s ease;
}

.svc-tag:hover {
    background: rgba(131, 118, 248, 0.12);
    transform: translateY(-1px);
}

/* CTA link */
.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: auto;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.svc-cta:hover {
    gap: 0.6rem;
    opacity: 0.85;
}

/* ---- Visual side (wide cards only) ---- */
.svc-visual {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Bar chart visual (Card 1 — Marketing) */
.svc-visual--marketing {
    align-items: flex-end;
    padding-bottom: 3rem;
}

.svc-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
    width: 100%;
    justify-content: center;
}

@keyframes svcBarGrow {
    from {
        height: 0 !important;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.svc-bar {
    flex: 1;
    max-width: 32px;
    background: rgba(131, 118, 248, 0.15);
    border-radius: 8px 8px 0 0;
    animation: svcBarGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.svc-bar--active {
    background: linear-gradient(180deg, #8376F8, rgba(131, 118, 248, 0.3));
    box-shadow: 0 -8px 20px rgba(131, 118, 248, 0.35);
}

/* AI orbit visual (Card 4 — AI) */
.svc-visual--ai {
    overflow: hidden;
}

.ai-orbit {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #8376F8);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
    z-index: 2;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.65);
        transform: scale(1.08);
    }
}

.ai-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.25);
    animation: aiSpin linear infinite;
}

.ai-ring--1 {
    width: 80px;
    height: 80px;
    border-color: rgba(16, 185, 129, 0.3);
    animation-duration: 6s;
}

.ai-ring--2 {
    width: 130px;
    height: 130px;
    border-color: rgba(131, 118, 248, 0.2);
    animation-duration: 10s;
    animation-direction: reverse;
}

@keyframes aiSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ai-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.ai-dot--1 {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: aiOrbit1 6s linear infinite;
}

.ai-dot--2 {
    bottom: 10px;
    right: 20px;
    background: #8376F8;
    box-shadow: 0 0 8px rgba(131, 118, 248, 0.6);
    animation: aiOrbit2 10s linear infinite reverse;
}

.ai-dot--3 {
    top: 30%;
    left: 6px;
    background: #10B981;
    animation: aiOrbit3 8s linear infinite;
}

@keyframes aiOrbit1 {
    from {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

@keyframes aiOrbit2 {
    from {
        transform: rotate(0deg) translateX(65px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(65px) rotate(-360deg);
    }
}

@keyframes aiOrbit3 {
    from {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

/* Bottom CTA strip */
.svc-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .svc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .svc-card--wide {
        grid-column: span 2;
    }

    .svc-visual {
        display: none;
    }

    .svc-card {
        min-height: auto;
    }

    .svc-card-inner {
        padding: 2rem 1.75rem;
    }

    .svc-title {
        font-size: 1.35rem;
    }

    .svc-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .svc-top {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .svc-bottom-cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* =========================================
   GROWTH CALCULATOR
   ========================================= */
.calc-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3.5rem;
    border-radius: 24px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.calc-input {
    background: var(--bg-soft) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    height: 54px;
    /* Force uniform height across inputs/selects */
    box-sizing: border-box;
    -webkit-appearance: none;
    /* Remove default OS styling for selects */
    appearance: none;
    color: var(--text-dark) !important;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.calc-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.calc-input option {
    background: var(--bg-white);
    color: var(--text-dark);
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: var(--bg-white) !important;
    box-shadow: 0 0 0 3px rgba(131, 118, 248, 0.1);
}

/* Custom dropdown arrow since we removed appearance */
select.calc-input {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2rem top 50% !important;
    background-size: 0.65rem auto !important;
}

.calc-range {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.range-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--primary);
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-soft);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateX(10px);
    background: var(--bg-white);
    box-shadow: var(--glass-shadow);
}

.result-icon {
    font-size: 2rem;
}

.result-content h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.result-number {
    font-size: 1.8rem;
    font-weight: 800;
}

/* =========================================
   INSTAGRAM POP-UP
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 420px;
    padding: 3rem 2.5rem 2.5rem;
    background: #ffffff !important;
    border-radius: 28px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111;
    transform: rotate(90deg);
}

.insta-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 16px 32px rgba(220, 39, 67, 0.25);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header h3 {
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
    color: #111;
    font-weight: 800;
}

.modal-content p {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-actions .btn {
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #8376F8, #5A4AF0);
    box-shadow: 0 8px 20px rgba(131, 118, 248, 0.4);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(131, 118, 248, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .calc-container {
        padding: 1.5rem;
    }

    .result-card:hover {
        transform: none;
    }
}

/* GLOBAL RESPONSIVE FIXES */
@media (max-width: 1024px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .card-swap-container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .card-swap-container {
        max-width: 100%;
        height: 380px;
    }
    .stack-card {
        transform-origin: top center;
    }
}