:root {
    --bg-color: #0d0e12;
    --text-color: #f1f5f9;
    --accent-color: #0ea5e9;
    --accent-hover: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#networkSnake {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above tech-bg but below shape to feel integrated, or above shape. Let's make it above shape (2) */
    pointer-events: none;
    /* Let clicks pass through to content */
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #08090b;
    /* Darker technical base */
    background-image:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 2px, transparent 2.5px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 0 0;
    z-index: 0;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 100px 100px, 50px 50px, 50px 50px;
    }
}

.bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    /* Increased opacity to show over grid */
    z-index: 2;
    filter: blur(2px) grayscale(50%) contrast(1.2);
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(13, 14, 18, 0.4) 0%, rgba(13, 14, 18, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
}

.glass-card {
    background: rgba(13, 15, 20, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 480px;
    font-weight: 300;
}

.cta-button {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50px;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(14, 165, 233, 0.4);
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
}

.logo-container {
    position: relative;
}

/* Add a glowing, modern effect behind the logo to make it pop against the dark background */
.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.logo:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(14, 165, 233, 0.3));
}

.powered-by {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.8);
    margin-top: auto;
}

.powered-by:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.powered-by a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0 2px;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.powered-by a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.powered-by a:hover {
    color: var(--accent-hover);
}

.powered-by a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    background-color: var(--accent-hover);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }

    .powered-by {
        font-size: 1rem;
    }
}