body {
    overflow-x: clip;
}

.text-gradient {
    background: linear-gradient(180deg, #fff, #c7cdf7 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(120deg, #4fd8ee, #3f7bff 45%, #8b5cf6, #4fd8ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prize-best {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(63, 123, 255, 0.06));
}

.roadmap-line {
    background: repeating-linear-gradient(180deg, #8b5cf6 0 6px, transparent 6px 14px);
    background-size: 100% 28px;
    animation: dashFlowVertical 2s linear infinite;
}

@keyframes dashFlowVertical {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 28px;
    }
}

.rm-active .rm-node {
    background: linear-gradient(135deg, #3f7bff, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

.fade-1 {
    animation-delay: .05s;
}

.fade-2 {
    animation-delay: .18s;
}

.fade-3 {
    animation-delay: .32s;
}

.fade-4 {
    animation-delay: .46s;
}

.fade-5 {
    animation-delay: .6s;
}

/* Keyframe animations */
@keyframes float {

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

    50% {
        transform: translateY(-18px) rotate(-2deg);
    }
}

@keyframes floatSlow {

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

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

@keyframes blob {

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

    33% {
        transform: translate(20px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(20deg);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

@keyframes logoIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.92);
    }

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

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

.animate-pulse-bg {
    animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes floatTilt {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-18px) rotate(3deg) scale(1.02);
    }
}

.animate-float-tilt {
    animation: floatTilt 5s ease-in-out infinite;
}

@keyframes confettiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-12px) rotate(45deg) scale(1.15);
        opacity: 1;
    }
}

@keyframes circuitPulse {
    0%, 100% {
        stroke-dashoffset: 600;
        opacity: 0.3;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.85;
    }
}

.animate-circuit-line {
    stroke-dasharray: 120 400;
    animation: circuitPulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-circuit-line-delay {
    stroke-dasharray: 80 300;
    animation: circuitPulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
}

.animate-confetti-1 {
    animation: confettiFloat 3.2s ease-in-out infinite;
}
.animate-confetti-2 {
    animation: confettiFloat 4s ease-in-out infinite 0.8s;
}
.animate-confetti-3 {
    animation: confettiFloat 3.6s ease-in-out infinite 1.5s;
}
.animate-confetti-4 {
    animation: confettiFloat 4.2s ease-in-out infinite 2.2s;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-blob {
    animation: blob 9s ease-in-out infinite;
}

.animate-blob-delay {
    animation: blob 11s ease-in-out infinite 1.5s;
}

.animate-sparkle {
    animation: sparkle 3s ease-in-out infinite;
}

.animate-sparkle-delay {
    animation: sparkle 3s ease-in-out infinite 1s;
}

.animate-sparkle-delay2 {
    animation: sparkle 3.4s ease-in-out infinite 2s;
}

.animate-fadeUp {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-gradientShift {
    animation: gradientShift 6s ease infinite;
}

.animate-breathe {
    animation: breathe 2.6s ease-in-out infinite 1.6s;
}

.animate-logoIn {
    animation: logoIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Custom Color & Typography Utilities mapped to Tailwind standard values */

.bg-panel {
    background-color: rgba(16, 19, 33, 0.6);
}

.border-white\/10 {
    border-color: #1c2140;
}

.bg-line {
    background-color: #1c2140;
}

.text-ink {
    color: #eef0ff;
}

.text-dim {
    color: #9aa0c7;
}

.text-cyan {
    color: #4fd8ee;
}

.bg-cyan {
    background-color: #4fd8ee;
}

.text-purple {
    color: #8b5cf6;
}

.font-display {
    font-family: "Orbitron", sans-serif;
}

.font-mono {
    font-family: "JetBrains Mono", monospace;
}

/* Circuit background animation */
.circuit-path {
    fill: none;
    stroke: url(#circuitGrad);
    stroke-width: 1.4;
    stroke-dasharray: 6 10;
    animation: dashFlow 3.5s linear infinite;
    opacity: .55;
}

.circuit-path.slow {
    animation-duration: 6s;
    opacity: .32;
}

.circuit-path.rev {
    animation-direction: reverse;
    animation-duration: 4.5s;
    opacity: .4;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -160;
    }
}

.circuit-node {
    fill: #4fd8ee;
    filter: url(#glowSoft);
}

.circuit-node.blink {
    animation: nodeBlink 2.4s ease-in-out infinite;
}

.circuit-node.blink2 {
    animation: nodeBlink 2.4s ease-in-out infinite .8s;
}

.circuit-node.blink3 {
    animation: nodeBlink 2.4s ease-in-out infinite 1.6s;
}

@keyframes nodeBlink {

    0%,
    100% {
        opacity: .35;
        r: 2.2;
    }

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

.circuit-ring {
    fill: none;
    stroke: #4fd8ee;
    stroke-width: 1;
    transform-origin: center;
    transform-box: fill-box;
    animation: ringPing 2.8s ease-out infinite;
}

.circuit-ring.p2 {
    animation-delay: .9s;
    stroke: #8b5cf6;
}

.circuit-ring.p3 {
    animation-delay: 1.8s;
    stroke: #3f7bff;
}

@keyframes ringPing {
    0% {
        transform: scale(0.3);
        opacity: .8;
    }

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

.chip-node {
    fill: none;
    stroke: #3f7bff;
    stroke-width: 1;
    opacity: .6;
}

.chip-hole {
    fill: #4fd8ee;
    opacity: .8;
}

.circuit-pulse {
    filter: url(#glowStrong);
}

.grid-dot {
    fill: #3f7bff;
    opacity: .18;
}

.scan-ring {
    fill: none;
    stroke: url(#circuitGrad);
    stroke-width: 1;
    opacity: .25;
    transform-origin: center;
    transform-box: fill-box;
    animation: scanRotate 18s linear infinite;
}

.scan-ring.r2 {
    animation-duration: 26s;
    animation-direction: reverse;
    opacity: .18;
}

.scan-ring.r3 {
    animation-duration: 34s;
    opacity: .12;
}

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

@keyframes matrixFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.animate-matrix-grid {
    animation: matrixFlow 8s linear infinite;
}

@keyframes laserSweep {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    30% {
        opacity: 0.7;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.animate-laser-line {
    animation: laserSweep 7s ease-in-out infinite;
}

.rule-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #242a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #4fd8ee;
}

/* Animate On Scroll (AOS) Custom Engine */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-out"] {
    transform: scale(1.1);
}

/* Custom Cyber Neon Cursor */
body {
    cursor: none !important;
}

a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
}

#custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #4fd8ee;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #4fd8ee, 0 0 20px #4fd8ee;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

#custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background-color 0.25s ease;
}

body.cursor-hover #custom-cursor-dot {
    width: 12px;
    height: 12px;
    background-color: #8b5cf6;
    box-shadow: 0 0 14px #8b5cf6, 0 0 25px #8b5cf6;
}

body.cursor-hover #custom-cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(79, 216, 238, 0.8);
    background-color: rgba(79, 216, 238, 0.08);
}

@media (pointer: coarse) {
    body, a, button, input, select, textarea, [role="button"] {
        cursor: auto !important;
    }
    #custom-cursor-dot, #custom-cursor-ring {
        display: none !important;
    }
}

/* Cyber Glitch & Hologram Shimmer Animation for H1 Headline */
.cyber-h1-shimmer {
    background: linear-gradient(110deg, #ffffff 0%, #ffffff 35%, #4fd8ee 48%, #8b5cf6 55%, #ffffff 68%, #ffffff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holoShimmer 6s ease-in-out infinite, cyberGlitchIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, cyberGlitch 6s steps(1, end) 1.4s infinite;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(79, 216, 238, 0.3));
}

@keyframes holoShimmer {
    0% {
        background-position: 150% 0;
    }
    50%, 100% {
        background-position: -50% 0;
    }
}

@keyframes cyberGlitch {
    0%, 91%, 100% {
        transform: translate(0);
        text-shadow: none;
    }
    92% {
        transform: translate(-3px, 1px);
        text-shadow: 3px 0 #4fd8ee, -3px 0 #8b5cf6;
    }
    94% {
        transform: translate(3px, -1px);
        text-shadow: -3px 0 #4fd8ee, 3px 0 #8b5cf6;
    }
    96% {
        transform: translate(-1px);
        text-shadow: 1px 0 #4fd8ee, -1px 0 #8b5cf6;
    }
}

@keyframes cyberGlitchIntro {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
        filter: blur(12px) drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    }
    20% {
        opacity: 0.8;
        transform: scale(1.03) skewX(-4deg);
        filter: blur(2px) drop-shadow(-4px 0 #4fd8ee);
    }
    35% {
        transform: scale(0.98) skewX(3deg);
        filter: blur(0px) drop-shadow(4px 0 #8b5cf6);
    }
    50% {
        transform: scale(1.01) skewX(-1deg);
        filter: drop-shadow(0 0 25px rgba(79, 216, 238, 0.5));
    }
    100% {
        opacity: 1;
        transform: scale(1) skewX(0deg);
        filter: drop-shadow(0 0 20px rgba(79, 216, 238, 0.3));
    }
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* AI Automation Workflow Pipeline Visual Styles */
.wf-node {
    fill: rgba(16, 22, 47, 0.85);
    stroke: rgba(79, 216, 238, 0.35);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.wf-node-active {
    stroke: #8b5cf6;
    fill: rgba(28, 25, 60, 0.9);
    filter: url(#glowSoft);
}

.wf-pipe-line {
    fill: none;
    stroke: #252e5a;
    stroke-width: 1.2;
    stroke-dasharray: 4 6;
}

.wf-pipe-active {
    fill: none;
    stroke: url(#pipeGradActive);
    stroke-width: 1.4;
    stroke-dasharray: 5 9;
    animation: dashFlow 2.5s linear infinite;
}

.wf-pipe-active-rev {
    fill: none;
    stroke: url(#pipeGradActive);
    stroke-width: 1.4;
    stroke-dasharray: 5 9;
    animation: dashFlow 3s linear infinite reverse;
}

@keyframes pulseNodeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(79, 216, 238, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.7));
    }
}

.animate-node-pulse {
    animation: pulseNodeGlow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
