:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-color: #ffffff;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* More transparent */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0f172a;
    /* Rich CSS-only Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Animated floating orbs for extra "wow" factor without external images */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0.0, 0.2, 1);
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 100px) rotate(20deg);
    }
}

.main-container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top border */
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff 20%, #a5b4fc 50%, #ffffff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    letter-spacing: -1.5px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.description {
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 3.5rem;
    font-size: 1.15rem;
    font-weight: 300;
}

/* Interactivity */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Button/Link Styles */
.btn {
    padding: 14px 38px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    line-height: normal;
    text-align: center;
}

.primary-btn {
    background: white;
    color: #0f172a;
    border: 2px solid white;
}

.primary-btn:hover {
    background: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 2px solid transparent;
    /* Maintain layout size or use transparent border */
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    /* Add shadow to match importance */
}

.secondary-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    /* Swap gradient on hover */
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    z-index: 10;
}

.icp-info {
    margin-top: 0.8rem;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.icp-info a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Animation utilities */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Glitch Effect Subtle - refined */
.glitch {
    position: relative;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .glass-card {
        padding: 3rem 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    button {
        width: 100%;
    }
}

/* Error Pages */
.error-title {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 0px;
    background: linear-gradient(to bottom, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.error-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}