/* ═══════════════════════════════════════════════════════════════
   NarneTech Effects Layer — scroll reveals, 3D tilt, aurora hero,
   glass chips, shine buttons, scroll progress.
   Purely additive: decorates existing markup (nt-effects.js adds
   the classes), never replaces content. Honors reduced motion.
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ──────────────────────────────────────── */
#ntScrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #4154f1, #2db6fa, #7186f9);
    z-index: 2000;
    pointer-events: none;
    transition: transform .08s linear;
}

/* ── Scroll reveal (added by nt-effects.js) ───────────────────── */
.nt-reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
    transition: opacity .8s cubic-bezier(.22,.61,.36,1),
                transform .8s cubic-bezier(.22,.61,.36,1),
                filter .8s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--nt-d, 0ms);
    will-change: opacity, transform;
}

    .nt-reveal.nt-in {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }

/* ── 3D tilt cards (pointer-fine devices, js-driven) ──────────── */
.nt-tilt {
    transform-style: preserve-3d;
    transition: transform .18s ease-out, box-shadow .3s ease;
    position: relative;
}

    .nt-tilt.nt-tilting {
        transition: box-shadow .3s ease; /* rotation driven per-frame by JS */
        box-shadow: 0 24px 50px rgba(1, 41, 112, .18);
        z-index: 2;
    }

    html[data-theme="dark"] .nt-tilt.nt-tilting {
        box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(65, 84, 241, .22);
    }

    /* cursor-tracked spotlight glare */
    .nt-tilt::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        transition: opacity .3s ease;
        background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%),
                    rgba(65, 84, 241, .14), transparent 65%);
    }

    .nt-tilt.nt-tilting::after {
        opacity: 1;
    }

/* ── Hero: aurora background, grid, orbs ──────────────────────── */
.nt-hero {
    position: relative;
    overflow: hidden;
}

.nt-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.nt-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    animation: nt-blob-drift 16s ease-in-out infinite alternate;
    will-change: transform;
}

.nt-blob-1 {
    width: 480px;
    height: 480px;
    left: -140px;
    top: -160px;
    background: radial-gradient(circle, rgba(65, 84, 241, .55), transparent 70%);
}

.nt-blob-2 {
    width: 420px;
    height: 420px;
    right: -120px;
    top: 10%;
    background: radial-gradient(circle, rgba(45, 182, 250, .45), transparent 70%);
    animation-delay: -6s;
}

.nt-blob-3 {
    width: 360px;
    height: 360px;
    left: 34%;
    bottom: -180px;
    background: radial-gradient(circle, rgba(113, 134, 249, .4), transparent 70%);
    animation-delay: -11s;
}

@keyframes nt-blob-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(46px, -34px, 0) scale(1.12); }
    100% { transform: translate3d(-36px, 30px, 0) scale(.94); }
}

/* faint engineering grid that fades toward the bottom */
.nt-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(65, 84, 241, .07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(65, 84, 241, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
}

html[data-theme="dark"] .nt-grid {
    background-image: linear-gradient(rgba(113, 134, 249, .09) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(113, 134, 249, .09) 1px, transparent 1px);
}

.nt-hero .container {
    position: relative;
    z-index: 1;
}

/* ── Hero content polish ──────────────────────────────────────── */
.nt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--nt-primary, #4154f1);
    background: rgba(65, 84, 241, .09);
    border: 1px solid rgba(65, 84, 241, .22);
    width: fit-content;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

html[data-theme="dark"] .nt-badge {
    color: #9fb0ff;
    background: rgba(65, 84, 241, .16);
    border-color: rgba(113, 134, 249, .35);
}

.nt-badge .nt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: nt-pulse 2.2s ease-out infinite;
}

@keyframes nt-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.nt-hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem) !important;
    line-height: 1.22;
    letter-spacing: -.5px;
}

.nt-hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
}

.nt-hero-lead {
    margin-top: 14px;
    max-width: 560px;
    font-size: .98rem;
    color: var(--nt-muted, #6c7a99);
}

/* animated gradient sweep on selected words */
.nt-grad-text {
    background: linear-gradient(90deg, #4154f1, #2db6fa, #7186f9, #4154f1);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nt-grad-slide 7s linear infinite;
}

@keyframes nt-grad-slide {
    to { background-position: 280% 0; }
}

/* trust chips under the CTAs */
.nt-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.nt-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--nt-heading, #012970);
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--nt-border, rgba(1,41,112,.1));
    backdrop-filter: blur(8px);
}

    .nt-trust-chip i {
        color: var(--nt-primary, #4154f1);
    }

html[data-theme="dark"] .nt-trust-chip {
    color: #dfe6ff;
    background: rgba(255, 255, 255, .05);
}

/* ── CTA button shine + ghost variant ─────────────────────────── */
.nt-btn-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .nt-btn-shine::before {
        content: "";
        position: absolute;
        top: 0;
        left: -80%;
        width: 55%;
        height: 100%;
        transform: skewX(-22deg);
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
        transition: left .6s ease;
        z-index: 1;
        pointer-events: none;
    }

    .nt-btn-shine:hover::before {
        left: 130%;
    }

.nt-btn-ghost {
    background: transparent !important;
    color: var(--nt-primary, #4154f1) !important;
    border: 2px solid var(--nt-primary, #4154f1);
    box-shadow: none !important;
}

    .nt-btn-ghost:hover {
        background: rgba(65, 84, 241, .1) !important;
    }

html[data-theme="dark"] .nt-btn-ghost {
    color: #9fb0ff !important;
    border-color: #5a6cf3;
}

/* ── Floating glass chips around the 3D hero stage ────────────── */
.nt-float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--nt-heading, #012970);
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(65, 84, 241, .25);
    box-shadow: 0 10px 28px rgba(1, 41, 112, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    animation: nt-float 6s ease-in-out infinite;
    pointer-events: none;
}

    .nt-float-chip i {
        color: var(--nt-primary, #4154f1);
        font-size: .95rem;
    }

html[data-theme="dark"] .nt-float-chip {
    color: #eef2ff;
    background: rgba(18, 26, 54, .7);
    border-color: rgba(113, 134, 249, .35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

@keyframes nt-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@media (max-width: 575px) {
    .nt-float-chip { display: none; }
}

/* (section-header underline flourish removed — the symmetric eyebrow
   dashes in nt-components.css are the single, consistent accent line) */

/* ── Counts: gradient numbers pop ─────────────────────────────── */
.counts .count-box span {
    background: linear-gradient(120deg, #012970, #4154f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .counts .count-box span {
    background: linear-gradient(120deg, #9fb0ff, #2db6fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Reduced motion: calm everything down ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .nt-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .nt-blob,
    .nt-badge .nt-dot,
    .nt-grad-text,
    .nt-float-chip {
        animation: none !important;
    }

    .nt-tilt,
    .nt-tilt.nt-tilting {
        transform: none !important;
    }

    #ntScrollProgress {
        display: none;
    }
}
