/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --accent-green: #00E38C;
    --accent-green-bright: #00FFB3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 227, 140, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 179, 0.06) 0%, transparent 50%),
        var(--bg-darker);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    z-index: -2;
    pointer-events: none;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Logo Styles */
.logo-wrapper {
    position: relative;
    margin-bottom: 0;
    margin-top: 16rem;
}

.logo {
    max-width: 580px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0, 227, 140, 0.3))
            drop-shadow(0 0 60px rgba(0, 227, 140, 0.15));
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.logo.visible {
    opacity: 1;
    transform: scale(1);
}

/* Text Content */
.text-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-top: 0.5rem;
}

.text-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.subtext {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-top: 0.5rem;
}

.cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid rgba(0, 227, 140, 0.3);
    border-radius: 6px;
    background: rgba(0, 227, 140, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    border-color: var(--accent-green);
    background: rgba(0, 227, 140, 0.1);
    box-shadow: 0 0 20px rgba(0, 227, 140, 0.2);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Waitlist inline form */
.waitlist-form {
    display: none;
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.waitlist-input {
    min-width: 220px;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.waitlist-input::placeholder {
    color: var(--text-tertiary);
}

.waitlist-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 1px rgba(0, 227, 140, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.waitlist-submit {
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    border: none;
    background: var(--accent-green);
    color: var(--bg-darker);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-submit:hover {
    background: var(--accent-green-bright);
    box-shadow: 0 0 18px rgba(0, 227, 140, 0.3);
    transform: translateY(-1px);
}

.waitlist-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

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

.waitlist-message--error {
    color: #ff6b6b;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Social Links (alternative CTA option) */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before {
        animation: none;
    }

    .logo,
    .text-content,
    .cta-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .content {
        gap: 2rem;
    }

    .logo {
        max-width: 400px;
    }

    .logo-wrapper {
        margin-top: 7rem;
    }

    .text-content {
        margin-top: -2rem;
    }

    .headline {
        margin-bottom: 0.75rem;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .subtext {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .waitlist-message {
        font-size: 0.85rem;
    }

    .waitlist-form {
        width: 100%;
        gap: 0.6rem;
    }

    .waitlist-input {
        flex: 1;
        min-width: 0;
    }

    .waitlist-submit {
        padding-inline: 1.4rem;
    }

    .social-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 320px;
    }

    .logo-wrapper {
        margin-top: 4.5rem;
    }

    .text-content {
        margin-top: -1rem;
    }

    .content {
        gap: 1.75rem;
    }

    .headline {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    }

    .subtext {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .waitlist-message {
        font-size: 0.8rem;
    }

    .waitlist-form {
        flex-direction: column;
        align-items: stretch;
    }

    .waitlist-input,
    .waitlist-submit {
        width: 100%;
    }
}

/* High DPI / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

