/* 1. BRAND & COLOR VARIABLES */
:root {
    --primary: #00d2ff;      /* High-end Aqua */
    --primary-dark: #3a7bd5;
    --dark: #121212;         /* Deep Black for text */
    --light-bg: #fcfcfc;     /* Clean White background */
    --glass: rgba(255, 255, 255, 0.75); 
    --border: rgba(255, 255, 255, 0.4);
    --text-gray: #666666;
}

/* 2. GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Important for 3D background */
    position: relative;
}

/* 3. 3D BACKGROUND LAYER */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none;
}

/* 4. LAYOUT WRAPPERS */
.ui-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.content-card {
    pointer-events: all;
    text-align: center;
    max-width: 480px;
    width: 90%;
    padding: 3.5rem 2.5rem;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);

    /* PERFORMANCE FIXES FOR SMOOTH FLOATING */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* 5. COMPONENTS & TYPOGRAPHY */
.logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

strong {
    color: var(--primary-dark);
}

/* 6. FORM STYLING */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="email"] {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 7. SOCIAL LINKS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 2rem;
}

.social-links a {
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

/* 8. SUCCESS ICON STYLING */
.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--dark);
}

/* 9. FOOTER BADGE */
.status-badge {
    margin-top: 3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #bbb;
}

/* 10. ANIMATIONS */
.fade-in {
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* 11. MOBILE OPTIMIZATION */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .content-card { 
        padding: 2.5rem 1.5rem; 
        width: 95%;
        /* Performance: Disable card tilt on mobile */
        transform: none !important;
        transition: none !important;
    }
}