:root {
    color-scheme: dark;
    --cursor-x: 50vw;
    --cursor-y: 35vh;
    --cursor-size: 28rem;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
            radial-gradient(circle at top left, rgba(93, 104, 255, 0.24), transparent 24%),
            radial-gradient(circle at top right, rgba(217, 70, 239, 0.18), transparent 22%),
            radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.10), transparent 18%),
            linear-gradient(180deg, #020617 0%, #0f172a 55%, #111827 100%);
}

header,
main {
    position: relative;
    z-index: 10;
}

.title-display {
    font-family: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 92%);
    pointer-events: none;
}

.cursor-bubble {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    transform: translate3d(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%), 0);
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    opacity: 0.65;
    filter: blur(28px);
    background:
            radial-gradient(circle at 35% 35%, rgba(255,255,255,0.055), transparent 28%),
            radial-gradient(circle at 50% 50%, rgba(93,104,255,0.12), rgba(217,70,239,0.08) 38%, rgba(34,211,238,0.05) 58%, transparent 74%);
    mix-blend-mode: screen;
    will-change: transform;
}

.cursor-bubble::before {
    content: '';
    position: absolute;
    inset: 16%;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.025), transparent 70%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0.55;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.42);
}

.shine {
    position: relative;
}

.shine::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}

.card {
    transition:
            transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
            box-shadow 0.32s ease,
            border-color 0.32s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px) scale(1.012);
}

.card-brand:hover {
    box-shadow:
            0 32px 72px rgba(93, 104, 255, 0.30),
            0 0 0 1px rgba(93, 104, 255, 0.35);
}

.card-accent:hover {
    box-shadow:
            0 32px 72px rgba(217, 70, 239, 0.30),
            0 0 0 1px rgba(217, 70, 239, 0.35);
}

.card-cyan:hover {
    box-shadow:
            0 32px 72px rgba(34, 211, 238, 0.30),
            0 0 0 1px rgba(34, 211, 238, 0.35);
}

.card .orb-reveal {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .orb-reveal {
    opacity: 1;
}

.card:hover .badge-num {
    background: linear-gradient(135deg, #5d68ff, #d946ef);
    color: white;
    transition: background 0.3s ease, color 0.3s ease;
}

.neon-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.08em;
    cursor: default;
}

.neon-title .word {
    display: inline-flex;
    margin-right: 0.32em;
    color: #ffffff;
    transition:
            color 0.18s ease,
            text-shadow 0.18s ease,
            transform 0.18s ease,
            filter 0.18s ease;
    will-change: transform, text-shadow, color;
}

.neon-title .word:hover {
    color: #d8ccff;
    text-shadow:
            0 0 8px rgba(216, 204, 255, 0.98),
            0 0 18px rgba(196, 181, 253, 0.95),
            0 0 36px rgba(139, 92, 246, 0.88),
            0 0 60px rgba(93, 104, 255, 0.72);
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.18);
}

.service-icon {
    transition:
            transform 0.3s ease,
            background 0.3s ease,
            color 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
    border: 1px solid transparent;
}

.card:hover .service-icon {
    transform: translateY(-2px) scale(1.06);
}

.card-brand:hover .service-icon {
    background: rgba(93, 104, 255, 0.16);
    color: #c7d2fe;
    border-color: rgba(93, 104, 255, 0.22);
    box-shadow:
            0 0 0 1px rgba(93, 104, 255, 0.18),
            0 0 18px rgba(93, 104, 255, 0.18),
            0 0 34px rgba(93, 104, 255, 0.14);
}

.card-accent:hover .service-icon {
    background: rgba(217, 70, 239, 0.16);
    color: #f0abfc;
    border-color: rgba(217, 70, 239, 0.22);
    box-shadow:
            0 0 0 1px rgba(217, 70, 239, 0.18),
            0 0 18px rgba(217, 70, 239, 0.18),
            0 0 34px rgba(217, 70, 239, 0.14);
}

.card-cyan:hover .service-icon {
    background: rgba(34, 211, 238, 0.16);
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow:
            0 0 0 1px rgba(34, 211, 238, 0.18),
            0 0 18px rgba(34, 211, 238, 0.18),
            0 0 34px rgba(34, 211, 238, 0.14);
}

.badge-num {
    transition:
            background 0.3s ease,
            color 0.3s ease,
            transform 0.3s ease;
}

.card:hover .badge-num {
    transform: scale(1.04);
}

.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition:
            opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

.reveal[data-reveal="left"] {
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    transform: translateX(24px);
}

.reveal[data-reveal="zoom"] {
    transform: scale(0.96);
}

.reveal[data-reveal="blur"] {
    transform: translateY(18px);
}

.reveal-glow {
    position: relative;
}

.reveal-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.35;
    background:
            radial-gradient(circle at 20% 20%, rgba(93, 104, 255, 0.10), transparent 35%),
            radial-gradient(circle at 80% 30%, rgba(217, 70, 239, 0.08), transparent 35%);
}

@media (max-width: 1023px) {
    .card:hover {
        transform: translateY(-4px) scale(1.006);
    }
}

@media (max-width: 767px) {
    .cursor-bubble {
        width: 16rem;
        height: 16rem;
        filter: blur(22px);
        opacity: 0.45;
    }

    .orb {
        filter: blur(42px);
        opacity: 0.32;
    }

    .card:hover {
        transform: translateY(-4px) scale(1.006);
    }

    .card-brand:hover {
        box-shadow:
                0 20px 40px rgba(93, 104, 255, 0.22),
                0 0 0 1px rgba(93, 104, 255, 0.28);
    }

    .card-accent:hover {
        box-shadow:
                0 20px 40px rgba(217, 70, 239, 0.22),
                0 0 0 1px rgba(217, 70, 239, 0.28);
    }

    .card-cyan:hover {
        box-shadow:
                0 20px 40px rgba(34, 211, 238, 0.22),
                0 0 0 1px rgba(34, 211, 238, 0.28);
    }

    .card:hover .service-icon {
        transform: translateY(-2px) scale(1.04);
    }

    .card:hover .badge-num {
        transform: scale(1.03);
    }

    .card:hover .orb-reveal {
        opacity: 1;
    }

    .reveal[data-reveal="left"],
    .reveal[data-reveal="right"] {
        transform: translateY(18px);
    }

    .neon-title {
        display: block;
    }

    .neon-title .word {
        display: inline;
        margin-right: 0.22em;
    }

    .hero-stack {
        gap: 0.25rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .hero-copy {
        padding-top: 0;
        text-align: center;
    }

    .hero-copy .pill-wrap {
        display: flex;
        justify-content: center;
    }

    .hero-copy h1 {
        justify-content: center;
        text-align: center;
    }

    .hero-art {
        min-height: 320px;
        padding-top: 0.75rem;
        align-items: center;
    }

    .hero-art img {
        height: auto !important;
        width: 100%;
        max-width: 360px !important;
        max-height: 360px;
        object-fit: contain;
        transform-origin: center center;
    }

    .hero-art .glow-main {
        width: 16rem !important;
        height: 16rem !important;
        top: 50% !important;
    }

    .hero-art .glow-accent {
        width: 10rem !important;
        height: 10rem !important;
        left: 64% !important;
        top: 24% !important;
    }

    .hero-art .glow-cyan {
        width: 8rem !important;
        height: 8rem !important;
        left: 28% !important;
        top: 70% !important;
    }

    .hero-art.group:hover img {
        transform: none;
    }
}