/* Reset and Base Styles */
:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #00b894;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Canvas Styles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Container and Layout */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px); /* Account for footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Logo and Tagline */
.logo {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.8rem;
    text-align: center;
    color: var(--accent);
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
    opacity: 0.9;
}

/* Beta Section */
.beta-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
    background: var(--secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.beta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

button {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* reCAPTCHA Container */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Success Message */
.success-message {
    display: none;
    color: var(--accent);
    margin-top: 1rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: var(--secondary);
    width: 100%;
}

.address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }
    
    .beta-section {
        padding: 1.5rem;
    }
    
    .beta-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    input, button {
        padding: 0.8rem;
    }
    
    .beta-section {
        padding: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #1a1a1a;
        --secondary: #2d2d2d;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
input:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hover States */
input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.beta-section:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    position: relative;
    background: var(--secondary);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    text-align: center;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
    margin-bottom: 1.5rem;
}

.modal-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.5;
}

.modal-close {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add/update these styles in your styles.css */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    animation: modalSlideIn 0.3s ease forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.5;
}

.modal-close {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-dark, #00a884);
    transform: translateY(-2px);
}

.modal-close:active {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add focus styles for accessibility */
.modal-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}