/* ========================================
   we2systems — Premium Dark Theme
   Refined, clean, modern design
   ======================================= */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Colors */
    --color-primary: #0ea5e9;
    --color-primary-hover: #38bdf8;
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-purple: #a855f7;
    --color-emerald: #10b981;
    --color-dark-950: #f8fafc;
    --color-dark-900: #ffffff;
    --color-dark-800: #f1f5f9;
    --color-dark-700: #e2e8f0;
    --color-dark-600: #cbd5e1;
    --color-dark-500: #94a3b8;
    --color-text: #1e293b;
    --color-text-muted: #475569;
    --color-text-faint: #94a3b8;

    /* Typography — fluid rem scale (base 16px) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
    --fs-sm: clamp(0.8125rem, 0.78rem + 0.18vw, 0.875rem);
    --fs-base: clamp(0.9375rem, 0.88rem + 0.25vw, 1rem);
    --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
    --fs-xl: clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem);
    --fs-2xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.5rem);
    --fs-3xl: clamp(1.75rem, 1.5rem + 1.2vw, 1.875rem);
    --fs-4xl: clamp(2rem, 1.6rem + 1.8vw, 2.25rem);
    --fs-5xl: clamp(2.5rem, 1.8rem + 3vw, 3rem);
    --fs-6xl: clamp(3rem, 2rem + 4vw, 3.75rem);
    --fs-7xl: clamp(3.5rem, 2.2rem + 5vw, 4.5rem);

    /* Layout */
    --max-width: 1200px;
    --section-padding: clamp(4rem, 3rem + 3vw, 7rem);

    /* Shadows */
    --glow: 0 0 25px rgba(14, 165, 233, 0.35);
    --glow-lg: 0 0 50px rgba(14, 165, 233, 0.2);
    --glow-accent: 0 0 25px rgba(99, 102, 241, 0.35);

    /* Section separator */
    --section-border: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* fixed nav height (80px) + breathing room */
    font-size: 16px; /* Explicit base — prevents Cloudflare/CDN re-scaling */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    background-color: #ffffff;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* --- Section Separators (glassmorphism divider) --- */
.section-divider {
    border: none;
    border-bottom: var(--section-border);
    position: relative;
}
.section-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(14, 165, 233, 0.2) 30%,
        rgba(99, 102, 241, 0.15) 50%,
        rgba(14, 165, 233, 0.2) 70%,
        transparent
    );
    pointer-events: none;
}

/* --- Fluid Typography Overrides --- */
.fluid-h1 { font-size: var(--fs-7xl); }
.fluid-h2 { font-size: var(--fs-5xl); }
.fluid-h3 { font-size: var(--fs-4xl); }
.fluid-h4 { font-size: var(--fs-3xl); }
.fluid-body { font-size: var(--fs-lg); }
.fluid-sm { font-size: var(--fs-sm); }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: rgba(14,165,233,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,165,233,0.6); }

/* --- Selection --- */
::selection { background: rgba(14,165,233,0.3); color: #fff; }

/* --- Glass Panels / Nav --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 200ms ease, backdrop-filter 200ms ease, border-bottom-color 200ms ease, box-shadow 200ms ease;
}
.glass-panel.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

/* --- Animated gradient border --- */
@keyframes gradient-x {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.animate-gradient-x {
    animation: gradient-x 4s ease infinite;
}

/* --- Text Gradient --- */
.text-gradient {
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-animate {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
    background-size: 300% 100%;
    animation: gradient-text-shift 5s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes gradient-text-shift {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* --- Hero staggered word reveal --- */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(6px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1),
                transform 0.7s cubic-bezier(.16,1,.3,1),
                filter 0.7s cubic-bezier(.16,1,.3,1);
}
.hero-word.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-subtitle {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s, filter 0.8s ease 0.9s;
}
.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s;
}
.hero-desc.visible { opacity: 1; transform: translateY(0); }

/* --- Hero Mesh Gradient Background --- */
.hero-mesh-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 75% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 50% 90%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 90% 40% at 80% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
}

/* --- Hero Noise / Grain Texture Overlay --- */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Hero Aurora / Northern Lights --- */
.hero-aurora {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 80%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.hero-aurora-band {
    position: absolute;
    width: 200%;
    height: 100%;
    filter: blur(90px);
    opacity: 0;
    animation: aurora-drift 12s ease-in-out infinite alternate;
}
.hero-aurora-band:nth-child(1) {
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(14, 165, 233, 0.28) 25%,
        rgba(99, 102, 241, 0.22) 50%,
        rgba(168, 85, 247, 0.18) 72%,
        transparent 90%);
    top: 8%;
    animation-delay: 0s;
    animation-duration: 12s;
}
.hero-aurora-band:nth-child(2) {
    background: linear-gradient(90deg,
        transparent 10%,
        rgba(99, 102, 241, 0.2) 30%,
        rgba(14, 165, 233, 0.25) 55%,
        rgba(168, 85, 247, 0.14) 75%,
        transparent 88%);
    top: 28%;
    animation-delay: -4s;
    animation-duration: 15s;
}
.hero-aurora-band:nth-child(3) {
    background: linear-gradient(90deg,
        transparent 18%,
        rgba(168, 85, 247, 0.16) 38%,
        rgba(14, 165, 233, 0.2) 58%,
        rgba(99, 102, 241, 0.14) 78%,
        transparent 93%);
    top: 2%;
    animation-delay: -8s;
    animation-duration: 18s;
}
.hero-aurora-band:nth-child(4) {
    background: linear-gradient(90deg,
        transparent 22%,
        rgba(14, 165, 233, 0.12) 42%,
        rgba(99, 102, 241, 0.18) 62%,
        transparent 82%);
    top: 50%;
    animation-delay: -2s;
    animation-duration: 20s;
}
@keyframes aurora-drift {
    0% {
        transform: translateX(-25%) skewX(-6deg) scaleY(1);
        opacity: 0.55;
    }
    40% {
        opacity: 1;
        transform: translateX(-8%) skewX(3deg) scaleY(1.4);
    }
    100% {
        transform: translateX(8%) skewX(-4deg) scaleY(0.85);
        opacity: 0.65;
    }
}

/* --- Hero Metrics Dashboard Chart Animations --- */
@keyframes chart-draw {
    from { stroke-dashoffset: 350; opacity: 0; }
    to   { stroke-dashoffset: 0;   opacity: 1; }
}
.chart-line-draw {
    stroke-dasharray: 350;
    stroke-dashoffset: 350;
    opacity: 0;
    animation: chart-draw 1.6s cubic-bezier(.4,0,.2,1) 1.8s forwards;
}

@keyframes bar-rise {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}
.deploy-bar {
    transform-origin: bottom;
    transform-box: fill-box;
    transform: scaleY(0);
    opacity: 0;
    animation: bar-rise 0.55s cubic-bezier(.34,1.56,.64,1) 1.8s both;
}

@keyframes event-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
#hero-event-stream > div {
    opacity: 0;
    animation: event-fade-in 0.4s ease both;
}
#hero-event-stream > div:nth-child(1) { animation-delay: 2.4s; }
#hero-event-stream > div:nth-child(2) { animation-delay: 2.6s; }
#hero-event-stream > div:nth-child(3) { animation-delay: 2.8s; }

/* --- Metrics Strip --- */
.metrics-strip {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.metrics-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,0.03) 50%, transparent 100%);
    pointer-events: none;
}
.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    line-height: 1;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}
.metric-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.08) 70%, transparent);
    align-self: stretch;
}

/* --- Hero Perspective Grid --- */
.hero-perspective-grid {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    perspective: 400px;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, black 20%, transparent 70%);
}
.hero-perspective-grid-inner {
    position: absolute;
    inset: 0;
    transform: rotateX(55deg);
    transform-origin: center bottom;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-scroll 20s linear infinite;
}
@keyframes grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* --- Hero Mouse-follow Spotlight --- */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        600px circle at var(--hero-mouse-x, 50%) var(--hero-mouse-y, 50%),
        rgba(14, 165, 233, 0.06),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-spotlight.active {
    opacity: 1;
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* --- Glow Cards (Glassmorphism) --- */
.glow-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.5s cubic-bezier(.16,1,.3,1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}
.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at 50% 50%,
        rgba(14, 165, 233, 0.18),
        transparent 70%
    );
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 40px rgba(14, 165, 233, 0.12), 0 20px 60px -15px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-4px);
}
.glow-card > * { position: relative; z-index: 1; }


/* --- Numbered card labels --- */
.card-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Space Grotesk', var(--font-heading, sans-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(99,102,241,0.05));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    user-select: none;
}

/* --- Service Card Redesign --- */
.service-card {
    border-left: 3px solid transparent;
    transition: transform 400ms cubic-bezier(.16,1,.3,1), box-shadow 400ms ease, border-color 400ms ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.service-card.border-l-blue { border-left-color: #3B82F6; }
.service-card.border-l-green { border-left-color: #10B981; }
.service-card.border-l-amber { border-left-color: #F59E0B; }

/* Animated border glow per-card accent */
.service-card.border-l-blue:hover {
    border-left-color: #60A5FA;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), -4px 0 25px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.06);
}
.service-card.border-l-green:hover {
    border-left-color: #34D399;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), -4px 0 25px rgba(16,185,129,0.15), 0 0 60px rgba(16,185,129,0.06);
}
.service-card.border-l-amber:hover {
    border-left-color: #FBBF24;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), -4px 0 25px rgba(245,158,11,0.15), 0 0 60px rgba(245,158,11,0.06);
}

/* SVG illustration tilt on hover */
.service-card .scrolly-trigger {
    transition: transform 400ms cubic-bezier(.16,1,.3,1);
}
.service-card:hover .scrolly-trigger {
    transform: perspective(600px) rotateX(4deg) rotateY(-3deg) scale(1.03);
}

/* Card number badge lift */
.service-card .card-number-badge {
    transition: opacity 300ms ease, transform 300ms ease;
}
.service-card:hover .card-number-badge {
    opacity: 1;
    transform: translateY(-2px);
    color: rgba(148, 163, 184, 0.6);
}

/* Bullet check icons pulse on card hover */
.service-card .fa-check {
    transition: transform 300ms ease, filter 300ms ease;
}
.service-card:hover .fa-check {
    transform: scale(1.3);
    filter: drop-shadow(0 0 4px currentColor);
}

/* --- Muted numbered badge for service cards --- */
.card-number-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(71, 85, 105, 0.6);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 4px 8px;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em;
}

/* --- Icon Glow --- */
.icon-glow { position: relative; }
.icon-glow::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: inherit;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.4s;
}
.glow-card:hover .icon-glow::after { opacity: 0.65; }

/* --- Service Card SVG Radial Glow --- */
.scrolly-trigger {
    position: relative;
}
.scrolly-trigger::before {
    content: '';
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: -1;
}
.scrolly-trigger.active::before {
    opacity: 1;
}
/* Platform Engineering — blue glow */
[data-scrolly="k8s"]::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}
/* Data Security — indigo glow */
[data-scrolly="shield"]::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}
/* Data Protection — purple glow */
[data-scrolly="backup"]::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

/* --- Scroll-triggered animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* --- Infinite marquee --- */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 30s linear infinite;
    width: max-content;
    will-change: transform;
}
.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

/* --- CTA button pulse glow --- */
.btn-glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(14,165,233,0.25), 0 0 60px rgba(14,165,233,0.06); }
    50% { box-shadow: 0 0 30px rgba(14,165,233,0.45), 0 0 80px rgba(99,102,241,0.15); }
}

/* --- Shared button system --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9999px;
    color: #ffffff;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    animation: glow-pulse 3s ease-in-out infinite;
    transition: transform 300ms ease, opacity 300ms ease;
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-4px); opacity: 0.92; }

.btn-primary-health {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9999px;
    color: #ffffff;
    background: linear-gradient(to right, var(--color-emerald), var(--color-primary));
    animation: glow-pulse-health 3s ease-in-out infinite;
    transition: transform 300ms ease, opacity 300ms ease;
    text-decoration: none;
}
.btn-primary-health:hover { transform: translateY(-4px); opacity: 0.92; }
@keyframes glow-pulse-health {
    0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,0.25), 0 0 60px rgba(16,185,129,0.06); }
    50% { box-shadow: 0 0 30px rgba(16,185,129,0.45), 0 0 80px rgba(14,165,233,0.15); }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: transparent;
    transition: border-color 300ms ease, color 300ms ease, transform 200ms ease;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.btn-outline-health {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    color: #047857;
    border: 1px solid #a7f3d0;
    background: rgba(16, 185, 129, 0.06);
    transition: border-color 300ms ease, color 300ms ease, background 300ms ease, transform 200ms ease;
    text-decoration: none;
}
.btn-outline-health:hover {
    border-color: #6ee7b7;
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

/* --- Terminal hero styles --- */
.terminal-line {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.terminal-line.visible { opacity: 1; transform: translateY(0); }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #38bdf8;
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Section divider glow --- */
.section-glow-top { position: relative; }
.section-glow-top::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.25), transparent);
}

/* --- Stats counter --- */
.stat-number { font-variant-numeric: tabular-nums; }

/* --- Floating orb animations --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(-15px); }
}
.animate-float-slow { animation: float-slow 10s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 7s ease-in-out infinite; }

/* --- Grid background for sections --- */
.bg-grid-dark {
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(14,165,233,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Footer glow --- */
.footer-glow { position: relative; }
.footer-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.2), transparent);
}

/* --- Partner logos (grayscale → color on hover) --- */
.marquee-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.5;
    transition: opacity 400ms ease, filter 400ms ease, transform 400ms ease;
    will-change: filter, opacity;
}
.marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.08);
}
.marquee-wrap:hover .marquee-logo {
    opacity: 0.65;
    filter: grayscale(0.5) brightness(0.85);
}
.marquee-wrap:hover .marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}
/* Color logos keep same grayscale treatment */
.marquee-logo-color {
    filter: grayscale(1) brightness(0.7);
    opacity: 0.5;
}
.marquee-logo-color:hover {
    filter: grayscale(0) brightness(1) saturate(1.1);
    opacity: 1;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .animate-gradient-x, .text-gradient-animate, .marquee-track,
    .btn-glow-pulse, .animate-float-slow, .animate-float-medium,
    .animate-ping-slow, .hero-aurora-band, .hero-perspective-grid-inner, .animate-bounce-slow { animation: none; }
    .hero-word, .hero-subtitle, .hero-desc,
    .fade-up, .fade-left { opacity: 1; transform: none; filter: none; transition: none; }
    .glow-card { transition: none; }
    .process-line-animate { animation: none; }
}

/* --- Slow Ping for Process Steps --- */
@keyframes ping-slow {
    0% { transform: scale(1); opacity: 0.3; }
    75%, 100% { transform: scale(1.6); opacity: 0; }
}
.animate-ping-slow {
    animation: ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}


/* --- Process Line Draw Animation --- */
@keyframes process-line-draw {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}
.process-line-animate {
    animation: process-line-draw 1.5s ease-out 0.5s both;
}

/* --- Process Timeline --- */
.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 40px;
}
/* Mobile: vertical left-side line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 19px;
    width: 2px;
    background: rgba(0, 0, 0, 0.15);
}
.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
}
.process-step-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}
.process-step-content {
    flex: 1;
    padding-top: 2px;
}

/* Desktop: horizontal 4-column grid */
@media (min-width: 768px) {
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding-left: 0;
    }
    /* Horizontal connecting line */
    .process-timeline::before {
        top: 19px;
        bottom: auto;
        left: calc(12.5% + 20px);
        right: calc(12.5% + 20px);
        width: auto;
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
    }
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0 16px;
    }
    .process-step-badge {
        margin-bottom: 20px;
    }
    .process-step-content {
        padding-top: 0;
    }
}

/* --- Card Shine Sweep --- */
.glow-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: none;
    z-index: 0;
    pointer-events: none;
}
.glow-card:hover::after {
    animation: card-shine 0.8s ease forwards;
}
@keyframes card-shine {
    0% { left: -60%; }
    100% { left: 120%; }
}

/* --- Nav Active Link --- */
.nav-link-active {
    color: #0f172a !important;
    border-bottom: 1px solid currentColor;
    transition: color 200ms ease, border-bottom-color 200ms ease;
}

/* --- Smooth hover for nav links --- */
#header a {
    transition: color 200ms ease, border-bottom-color 200ms ease;
}

/* --- Footer link hover underline --- */
footer ul a {
    position: relative;
}
footer ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #38bdf8;
    transition: width 0.3s ease;
}
footer ul a:hover::after {
    width: 100%;
}

/* --- Scroll Progress Bar shimmer --- */
#scroll-progress {
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #a855f7, #0ea5e9);
    background-size: 200% 100%;
    animation: gradient-x 3s linear infinite;
}

/* --- Improved mobile spacing --- */
@media (max-width: 768px) {
    .font-heading { letter-spacing: -0.02em; }
}

/* --- Contact Form --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-input {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0f172a;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
    resize: none;
}
.form-input::placeholder {
    color: #94a3b8;
}
.form-input:focus {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: field-shake 0.4s ease;
}
@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}
#form-success {
    animation: fade-in-up 0.5s ease forwards;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll to Top Button --- */
#scrollTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #334155;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 250ms ease, transform 250ms ease, background 250ms ease, color 250ms ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    pointer-events: none;
}
#scrollTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#scrollTop:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
}

/* --- Scrollytelling: piece-by-piece build animations --- */
.scrolly-piece {
    opacity: 0;
    transform: translateY(12px) scale(0.85);
    transition: opacity 0.6s cubic-bezier(.16,1,.3,1),
                transform 0.6s cubic-bezier(.16,1,.3,1);
}
.scrolly-line {
    transform: translateY(0) scale(1);
}
.scrolly-trigger.active .scrolly-piece {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Sticky Fast-Action Bar --- */
#fast-action-bar {
    transition: transform 350ms cubic-bezier(.16,1,.3,1), opacity 350ms ease;
    opacity: 0;
}
#fast-action-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.fast-action-inner {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* --- Lottie-style Shield Animations --- */
.shield-breathe {
    animation: shield-breathe 4s ease-in-out infinite;
}
@keyframes shield-breathe {
    0%, 100% { fill-opacity: 0.05; stroke-opacity: 1; }
    50% { fill-opacity: 0.1; stroke-opacity: 0.7; }
}
.shield-pulse-outer {
    animation: shield-pulse-outer 3s ease-in-out infinite;
}
@keyframes shield-pulse-outer {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.02); }
}
.lock-glow-pulse {
    animation: lock-glow 2.5s ease-in-out infinite;
}
@keyframes lock-glow {
    0%, 100% { opacity: 0; r: 6; }
    50% { opacity: 0.2; r: 10; }
}
.crypto-float-1 { animation: crypto-drift-1 6s ease-in-out infinite; }
.crypto-float-2 { animation: crypto-drift-2 7s ease-in-out infinite; }
.crypto-float-3 { animation: crypto-drift-3 5s ease-in-out infinite; }
@keyframes crypto-drift-1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.25; }
    50% { transform: translate(3px, -4px); opacity: 0.1; }
}
@keyframes crypto-drift-2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(-4px, 3px); opacity: 0.08; }
}
@keyframes crypto-drift-3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.15; }
    50% { transform: translate(2px, 5px); opacity: 0.05; }
}

/* --- Lottie-style Backup/Sync Animations --- */
.db-breathe {
    animation: db-breathe 3.5s ease-in-out infinite;
}
@keyframes db-breathe {
    0%, 100% { fill-opacity: 0.08; }
    50% { fill-opacity: 0.15; }
}
.db-glow-ring {
    animation: db-glow-ring 3s ease-in-out infinite;
}
@keyframes db-glow-ring {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.15; }
}

/* --- Live Status Widget --- */
.status-widget-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 300ms ease, box-shadow 300ms ease;
}
.status-widget-card:hover {
    border-color: rgba(52, 211, 153, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(52, 211, 153, 0.05);
}
.status-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot-ping {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: status-ping 2s ease-in-out infinite;
}
@keyframes status-ping {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.8); }
}
.status-metric {
    padding: 4px 0;
}
.status-bar {
    width: 3px;
    border-radius: 1px;
    background: #34d399;
    transition: height 400ms ease;
}

/* --- CTA Form --- */
.assessment-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.assessment-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.35);
}
/* --- Hero Floating Terminal --- */
.hero-floating-terminal {
    animation: terminal-float 6s ease-in-out infinite;
}
@keyframes terminal-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Hero Float Badge --- */
.hero-float-badge {
    animation: badge-float 5s ease-in-out infinite;
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}

/* --- Enhanced fade-in-up for zig-zag sections --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* ========================================
   ASYMMETRIC ZIG-ZAG LAYOUT SYSTEM
   Breaks the "everything centered" pattern
   ======================================== */

/* --- Section Glassmorphism Separator --- */
section + section,
div[id="stats"] + section {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    position: relative;
}
section + section::before,
div[id="stats"] + section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(14, 165, 233, 0.18) 25%,
        rgba(99, 102, 241, 0.12) 50%,
        rgba(14, 165, 233, 0.18) 75%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

/* Override for sections that already have ::before (section-glow-top) */
.section-glow-top + section::before,
section + .section-glow-top::before {
    top: 0;
}

/* --- Max-Width Constraint (prevents ultrawide stretch) --- */
.max-w-screen-xl {
    max-width: 1200px;
}

/* --- Process Section: Left-align header on desktop --- */
@media (min-width: 768px) {
    .process-header-left {
        text-align: left !important;
        margin-left: 0 !important;
    }
    .process-header-left h2 {
        justify-content: flex-start !important;
    }
    .process-header-left p {
        max-width: 36rem;
    }
}

/* --- Why Us Section: Left-align header on desktop --- */
@media (min-width: 768px) {
    .why-header-left {
        text-align: left !important;
        margin-left: 0 !important;
    }
    .why-header-left h2 {
        justify-content: flex-start !important;
    }
    .why-header-left p {
        margin-left: 0 !important;
    }
}

/* --- Mobile: Revert all to center-aligned (< 768px) --- */
@media (max-width: 767px) {
    .process-header-left,
    .why-header-left {
        text-align: center !important;
    }
    .process-header-left h2,
    .why-header-left h2 {
        justify-content: center !important;
    }
    .why-header-left p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* ==============================================
   1. KINETIC TYPOGRAPHY — Hero H1
   Scales aggressively with vw on ultrawide
   ============================================== */
.hero-kinetic-h1 {
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
}
@media (min-width: 1600px) {
    .hero-kinetic-h1 {
        font-size: clamp(4rem, 2vw + 3rem, 6.5rem);
        letter-spacing: -0.03em;
    }
}
@media (min-width: 2200px) {
    .hero-kinetic-h1 {
        font-size: clamp(5rem, 3vw + 2rem, 8rem);
        letter-spacing: -0.04em;
    }
}

/* ==============================================
   2. MINI TERMINAL — Platform Engineering card
   ============================================== */
.mini-terminal {
    background: #0a0e1a;
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mini-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mini-terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.7;
}
.mini-terminal-title {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.5);
    margin-left: 8px;
}
.mini-terminal-body {
    padding: 10px 14px;
    font-size: 10.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}
.mini-t-prompt {
    color: #22c55e;
    font-weight: 600;
}
.mini-t-muted {
    color: #475569;
}
.mini-t-ok {
    color: #34d399;
}

/* ==============================================
   3. SCROLL-TRIGGERED GLOW — Cards pulse once
   ============================================== */
.glow-card {
    position: relative;
}
.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at 50% 50%,
        rgba(14, 165, 233, 0.18),
        transparent 70%
    );
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fade-up.visible .glow-card::before,
.fade-left.visible .glow-card::before {
    animation: scroll-glow-pulse 1.2s ease-out forwards;
}
@keyframes scroll-glow-pulse {
    0% { opacity: 0; transform: scale(0.95); }
    40% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1); }
}

/* ==============================================
   4. LIVE STATUS — Pulsing glow indicator
   ============================================== */
.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
    animation: live-pulse 2s ease-in-out infinite;
}
.live-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.3);
    animation: live-ring 2s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 14px rgba(52, 211, 153, 0.9), 0 0 30px rgba(52, 211, 153, 0.3); transform: scale(1.15); }
}
@keyframes live-ring {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* ==============================================
   5. TERMINAL COPY BUTTON
   ============================================== */
.terminal-copy-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}
.terminal-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.15);
}
.terminal-copy-btn.copied {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.08);
}

/* ==============================================
   6. MOBILE TERMINAL RESPONSIVENESS
   ============================================== */
@media (max-width: 640px) {
    #terminal-body {
        font-size: 11px;
        padding: 12px 10px;
        min-height: 220px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hero-floating-terminal {
        margin: 0 -8px;
    }
    .mini-terminal-body {
        font-size: 9px;
        padding: 8px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mini-terminal {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==============================================
   7. STICKY HEADER — Enhanced header-active state
   ============================================== */
.glass-panel.header-active {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(14, 165, 233, 0.12);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.03),
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 60px rgba(14, 165, 233, 0.04);
}

/* ==============================================
   9. PROCESS PATH — CSS-only step connectors
   ============================================== */
.process-path-line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    z-index: 0;
    overflow: hidden;
}
.process-path-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}
.process-path-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #0ea5e9,
        #6366f1 40%,
        #a855f7 70%,
        #0ea5e9
    );
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
    transition: width 1.8s cubic-bezier(.16,1,.3,1);
}
.process-path-line.active::after {
    width: 100%;
}
/* Node dots on the path */
.process-path-node {
    position: absolute;
    top: 27px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.process-path-node.lit {
    border-color: var(--node-color, #0ea5e9);
    box-shadow: 0 0 10px var(--node-color, rgba(14, 165, 233, 0.5));
    background: var(--node-color, #0ea5e9);
}
.process-path-node:nth-child(2) { left: calc(12.5% - 6px); --node-color: #0ea5e9; }
.process-path-node:nth-child(3) { left: calc(37.5% - 6px); --node-color: #6366f1; }
.process-path-node:nth-child(4) { left: calc(62.5% - 6px); --node-color: #a855f7; }
.process-path-node:nth-child(5) { left: calc(87.5% - 6px); --node-color: #0ea5e9; }
/* Mobile: vertical path */
@media (max-width: 767px) {
    .process-path-line,
    .process-path-node {
        display: none;
    }
}

/* ==============================================
   10. BRACKET LABELS — [ 01 ] monospaced + glow
   ============================================== */
.bracket-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(14, 165, 233, 0.7);
    text-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}
.bracket-label::before {
    content: '[ ';
    color: rgba(14, 165, 233, 0.35);
}
.bracket-label::after {
    content: ' ]';
    color: rgba(14, 165, 233, 0.35);
}
/* Accent variant */
.bracket-label--accent {
    color: rgba(99, 102, 241, 0.7);
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
.bracket-label--accent::before,
.bracket-label--accent::after {
    color: rgba(99, 102, 241, 0.35);
}
/* Purple variant */
.bracket-label--purple {
    color: rgba(168, 85, 247, 0.7);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}
.bracket-label--purple::before,
.bracket-label--purple::after {
    color: rgba(168, 85, 247, 0.35);
}

/* ==============================================
   11. FORM SUCCESS — Animated checkmark
   ============================================== */
.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    animation: success-card-in 0.6s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes success-card-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.success-checkmark-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.success-checkmark-ring svg {
    width: 100%;
    height: 100%;
}
.success-ring-circle {
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    animation: ring-draw 0.8s ease-out 0.2s forwards;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
}
.success-check-path {
    fill: none;
    stroke: #34d399;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: check-draw 0.4s ease-out 0.8s forwards;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}
@keyframes ring-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}
.success-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
    animation: success-glow-pulse 2s ease-in-out infinite;
}
@keyframes success-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ==============================================
   12. PRELOADER
   ============================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(14, 165, 233, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: preloader-spin 0.7s linear infinite;
}
@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}

/* ==============================================
   13A0. ACTIVE NAV STATE
   ============================================== */
.nav-active {
    background: rgba(14, 165, 233, 0.08) !important;
    color: #0ea5e9 !important;
    font-weight: 600;
}

/* ==============================================
   13A. PLATFORMS NAV DROPDOWN
   ============================================== */
.platforms-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: auto;
    min-width: 100px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}
.platforms-dropdown.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
/* Arrow pointer */
.platforms-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.08);
}
.platforms-platform-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}
.platforms-platform-item:hover {
    background: #f8fafc;
}
/* Mobile accordion */
.mobile-platforms-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    opacity: 0;
}
.mobile-platforms-sub.open {
    max-height: 200px;
    opacity: 1;
}
#platforms-chevron-mobile {
    transition: transform 0.25s ease;
}
#platforms-chevron-mobile.rotated {
    transform: rotate(180deg);
}

/* Flush-left dropdown override (no centering) */
.platforms-dropdown.flush-left {
    left: 0;
    transform: translateY(-6px) !important;
}
.platforms-dropdown.flush-left.open {
    transform: translateY(0) !important;
}
.platforms-dropdown.flush-left::before {
    left: 40px;
    right: auto;
    transform: rotate(45deg);
}

/* Solutions nav dropdown (wider, 2-col grid) */
.solutions-dropdown {
    min-width: 540px;
    left: 0;
    transform: translateY(-6px) !important;
}
.solutions-dropdown.open {
    transform: translateY(0) !important;
}
.solutions-dropdown::before {
    left: 80px;
    right: auto;
    transform: rotate(45deg);
}
#solutions-chevron-mobile {
    transition: transform 0.25s ease;
}
#solutions-chevron-mobile.rotated {
    transform: rotate(180deg);
}
.mobile-solutions-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    opacity: 0;
}
.mobile-solutions-sub.open {
    max-height: 600px;
    opacity: 1;
}

/* ==============================================
   13. MOBILE MENU ANIMATION
   ============================================== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.mobile-menu.mobile-menu-open {
    max-height: 900px;
    opacity: 1;
}

/* ==============================================
   14. TERMINAL HORIZONTAL SCROLL INDICATOR
   ============================================== */
@media (max-width: 767px) {
    .terminal-body,
    [class*="terminal"] pre,
    [class*="terminal"] code {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
    }
    .terminal-body::-webkit-scrollbar,
    [class*="terminal"] pre::-webkit-scrollbar {
        height: 4px;
    }
    .terminal-body::-webkit-scrollbar-track,
    [class*="terminal"] pre::-webkit-scrollbar-track {
        background: transparent;
    }
    .terminal-body::-webkit-scrollbar-thumb,
    [class*="terminal"] pre::-webkit-scrollbar-thumb {
        background: rgba(14, 165, 233, 0.3);
        border-radius: 4px;
    }
}

/* ===================== FAQ SECTION ===================== */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.06); }
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 200ms ease;
}
.faq-btn:hover { color: #0ea5e9; }
.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #94a3b8;
    transition: transform 280ms cubic-bezier(.4,0,.2,1), background 200ms ease, color 200ms ease;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
    background: #e0f2fe;
    color: #0ea5e9;
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(.4,0,.2,1);
}
.faq-body-inner {
    padding-bottom: 1.375rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.75;
    max-width: 680px;
}



/* ===================== PAGE TRANSITION VEIL ===================== */
#page-veil {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9998;
    opacity: 1;
    transition: opacity 320ms cubic-bezier(.4, 0, .2, 1);
}
#page-veil.veil-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===================== SCROLL-DOWN INDICATOR ===================== */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* ===================== LIVE STATUS BADGE (Platforms nav) ===================== */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px 1px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    line-height: 1.6;
    vertical-align: middle;
}
.live-dot {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #10b981;
    flex-shrink: 0;
}
.live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #10b981;
    animation: live-dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes live-dot-ping {
    0% { transform: scale(1); opacity: 0.6; }
    75%, 100% { transform: scale(2.4); opacity: 0; }
}

