@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #f472b6;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1%) center,
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1%) center,
        #000000;
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.container {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 3.5rem 4rem;
    max-width: 44rem;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    text-align: center;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0; /* Added for flex children */
}

.container:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
}

/* Removed the horizontal line under the heading */

p {
    color: var(--text-secondary);
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    max-width: 36rem;
    line-height: 1.75;
    padding: 0 1rem;
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px -5px rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.025em;
    margin: 2rem auto 0;
    width: fit-content;
    min-width: 200px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px -3px rgba(139, 92, 246, 0.6);
}

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

.btn:active {
    transform: translateY(0);
}



.btn:hover::after {
    transform: translateX(-4px) scale(1.1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(100deg);
        filter: blur(100px);
    }
    
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
        min-width: 160px;
        margin: 1rem auto 0;
    }
    
    .btn::after {
        margin-right: 0.5rem;
        font-size: 0.9em;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: 140px;
    }
}
