/* @RFKONG 2025 Infinite Cloud */

@import url("https://fontsapi.zeoseven.com/84/main/result.css");

html::-webkit-scrollbar {
    width: 3px;
    background-color: #0f172a;
}

html::-webkit-scrollbar-thumb {
    background-color: #0ea5e9;
    border-radius: 10px;
}

body {
    font-family: 'DouyinSans', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

.bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    background: linear-gradient(to right bottom,
            rgba(14, 165, 233, 0.1),
            rgba(99, 102, 241, 0.1));
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-circle {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-core {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s ease infinite;
    z-index: 10;
}

.loader-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: spin 2s linear infinite reverse;
}

.loader-ring:nth-child(1) {
    border-top-color: #0ea5e9;
    animation-delay: -0.5s;
}

.loader-ring:nth-child(2) {
    border-right-color: #8b5cf6;
    animation-delay: -1s;
}

.loader-ring:nth-child(3) {
    border-bottom-color: #ec4899;
    animation-delay: -1.5s;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#main-content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.hero-gradient {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-gradient:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        linear-gradient(to right, transparent 0%, rgba(14, 165, 233, 0.05) 100%);
    opacity: 0.8;
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.navbar-gradient {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.2);
}

.btn-glow {
    background: linear-gradient(to right, #0ea5e9, #6366f1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, #38bdf8, #818cf8, #38bdf8);
    z-index: -1;
    background-size: 400%;
    filter: blur(4px);
    animation: btnGlow 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover:before {
    opacity: 1;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.btn-signup {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.btn-signup:hover {
    background: rgba(99, 102, 241, 0.25);
}

@keyframes btnGlow {
    0% {
        background-position: 0 50%;
    }

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

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

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(30, 41, 59, 0.7);
}

.feature-card:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover:after {
    opacity: 1;
}

.nav-link {
    position: relative;
    padding: 6px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}

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

.nav-link.active:after {
    width: 100%;
}

@media screen and (max-width: 640px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-gradient h1 {
        font-size: 2.7rem !important;
        letter-spacing: -0.02em;
    }

    .hero-gradient h3 {
        font-size: 1.875rem !important;
        letter-spacing: -0.01em;
    }

    .hero-gradient p {
        font-size: 1rem !important;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .feature-card h4 {
        font-size: 1.25rem !important;
    }

    .feature-card p {
        font-size: 0.875rem !important;
        line-height: 1.5;
    }

    .nav-brand span {
        font-size: 1.25rem !important;
    }

    footer {
        font-size: 0.875rem;
    }

    footer h5 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-balance {
        text-wrap: balance;
    }
}