.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #84cc16;
    transition: width 0.3s ease-in-out;
}

.nav-item:hover::after {
    width: 100%;
}

.perspective-1000 {
    perspective: 1000px;
}

.text-shimmer {
    background-size: 200% auto;
    animation: textShimmer 8s linear infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at center, transparent 0%, black 100%);
    mask-image: radial-gradient(circle at center, transparent 0%, black 100%);
}

.rotate-180-deg {
    transform: rotate(180deg);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Lifecycle Shapes & Animations */
/* Clip paths are slightly adjusted to ensure consistency */
.clip-chevron {
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%);
}

.clip-chevron-start {
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%);
}

.clip-chevron-end {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15px 50%);
}

/* Smooth Transition for the background color */
.step-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active Arrow Indicator */
.arrow-indicator {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-active .arrow-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Active State Styles */
.step-active .step-bg {
    background-color: #C4F22E !important;
}

.step-active .step-text {
    color: #0F172A !important;
}

.step-active .step-icon {
    color: #0F172A !important;
}

.step-active {
    flex: 1.3 !important;
}

/* Mobile Scroll Snap */
.snap-x-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* Lifecycle Arrows (Old - To be overwritten/merged above) */

@keyframes shimmer-full {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.animate-shimmer-full {
    animation: shimmer-full 4s infinite linear;
}

/* Wave Animation for Bars */
.wave-bar {
    animation: wave 1.2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        height: 16px;
    }

    50% {
        height: 32px;
    }
}

/* Shiny Button */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 20%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #C4F22E;
    inherits: false;
}

.shiny-cta {
    --gradient-angle: 0deg;
    --gradient-angle-offset: 0deg;
    --gradient-percent: 20%;
    --gradient-shine: #C4F22E;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(#1a1a1a, #1a1a1a) padding-box, conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent 0%, #365314 5%, var(--gradient-shine) 15%, #365314 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px #1a1818;
    outline: none;
    transition: transform 0.2s;
    cursor: pointer;
    isolation: isolate;
    outline-offset: 4px;
    font-family: 'Inter', sans-serif;
    z-index: 0;
    animation: border-spin 7s linear infinite;
}

.shiny-cta:active {
    transform: translateY(1px);
}

.shiny-cta::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    --size: calc(100% - 6px);
    --position: 2px;
    --space: 4px;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white 0.5px, transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: 0.4;
}

.shiny-cta::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, #C4F22E, transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
    animation: shimmer-btn 8s linear infinite;
}

.shiny-cta span {
    position: relative;
    z-index: 2;
    display: inline-block;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes border-spin {
    to {
        --gradient-angle: 360deg;
    }
}

@keyframes shimmer-btn {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bar-shine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.animate-bar-shine {
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.4) 30%, transparent 40%);
    background-size: 200% 100%;
    animation: bar-shine 3s infinite linear;
}

/* === 核心背景样式 === */

/* 1. 基础容器：固定定位，铺满全屏，位于最底层 */
.bg-aurora-container {
    background-color: #020617;
    /* 极深蓝黑底色 */
    position: fixed;
    inset: 0;
    z-index: -50;
    overflow: hidden;
    pointer-events: none;
    /* 确保点击穿透，不影响前景交互 */
}

/* === 点阵系统 === */
.bg-dot-pattern {
    /* 基础点阵样式：品牌青柠绿 (#C4F22E = 196, 242, 46) */
    /* 0.25 的基础透明度配合动画会让它像萤火虫一样闪烁 */
    background-image: radial-gradient(rgba(196, 242, 46, 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 遮罩 1：左上 + 右下区域 */
.mask-region-1 {
    mask-image: radial-gradient(circle at 20% 30%, black 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, black 0%, transparent 40%);
    -webkit-mask-image: radial-gradient(circle at 20% 30%, black 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, black 0%, transparent 40%);
}

/* 遮罩 2：右上 + 左下区域 */
.mask-region-2 {
    mask-image: radial-gradient(circle at 80% 20%, black 0%, transparent 35%),
        radial-gradient(circle at 10% 70%, black 0%, transparent 35%);
    -webkit-mask-image: radial-gradient(circle at 80% 20%, black 0%, transparent 35%),
        radial-gradient(circle at 10% 70%, black 0%, transparent 35%);
}

/* 遮罩 3：中心区域 */
.mask-region-3 {
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 50%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 50%);
}

/* === 极光光斑：冷色调流体 === */
.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: aurora 20s ease-in-out infinite alternate;
}

/* 深靛蓝基底 */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #1e1b4b;
    animation-duration: 45s;
}

/* 皇家蓝辅色 */
.blob-2 {
    top: -20%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: rgba(67, 56, 202, 0.4);
    animation-delay: -5s;
    animation-duration: 35s;
}

/* 天蓝/青色高光 (与前景绿色互补) */
.blob-3 {
    top: 10%;
    left: 30%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
    mix-blend-mode: screen;
    filter: blur(60px);
    animation-duration: 25s;
    opacity: 0.8;
}

/* 底部深紫微光 */
.blob-4 {
    bottom: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    opacity: 0.9;
}

/* 4. 玻璃磨砂层：融合所有光斑，消除色带 */
.glass-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(100px);
    z-index: 0;
}

/* 5. Image Cycle Animation */
@keyframes fade-cycle {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fade-cycle {
    animation: fade-cycle 6s infinite;
}
