/* CSS Variables - Exact Figma colors */
:root {
    --bg-primary: #010101;
    --bg-card: rgba(0, 0, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #d3bebe;
    --text-dark: #1a1a1a;
    --btn-bg: rgba(255, 255, 255, 0.8);
    --waitlist-text: rgba(15, 15, 15, 0.59);
    --accent: #0ea5e9;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Background - Maximum Quality */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Maximum quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: scale(1.02);
    animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    0% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1.08);
    }
}

.background-overlay {
    position: absolute;
    inset: 0;
    box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

/* Main Title Animation */
.main-title {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.07em;
    color: var(--text-primary);
    line-height: 1;
    /* Animation */
    opacity: 0;
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.15);
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Waitlist Card Animation */
.waitlist-card {
    position: relative;
    max-width: 520px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    /* Animation */
    opacity: 0;
    animation: cardSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-card:hover .card-content {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Title */
.card-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.07em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    /* Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* Card Description */
.card-description {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    line-height: 1.6;
    color: var(--text-primary);
    letter-spacing: -0.07em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Email Form */
.email-form {
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
}

.input-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    letter-spacing: -0.07em;
}

.input-container input::placeholder {
    color: var(--text-secondary);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.input-container input:focus::placeholder {
    opacity: 0.5;
}

/* Submit Button */
.submit-btn {
    background: var(--btn-bg);
    color: var(--text-dark);
    border: none;
    border-radius: 100px;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -0.07em;
    box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.submit-btn:hover {
    background: var(--text-primary);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Privacy Link */
.privacy-link {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.privacy-link:hover {
    color: var(--accent);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.social-link {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-circle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-circle {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-link:hover .social-circle svg {
    transform: scale(1.1);
}

/* Background Waitlist Text */
.waitlist-bg-text {
    position: fixed;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(6rem, 22vw, 16rem);
    font-weight: 600;
    color: var(--waitlist-text);
    letter-spacing: 0.005em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
    animation: waitlistFadeIn 2s ease 1.2s forwards;
}

@keyframes waitlistFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Success Message */
.success-message {
    position: fixed;
    inset: 0;
    background: rgba(1, 1, 1, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-content svg {
    width: 80px;
    height: 80px;
    color: #22c55e;
    margin-bottom: 1.5rem;
    animation: checkmark 0.8s ease 0.2s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

@keyframes checkmark {
    to {
        stroke-dashoffset: 0;
    }
}

.success-content p {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.success-content span {
    font-size: 1rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .card-content {
        padding: 2rem 1.5rem;
    }

    .waitlist-bg-text {
        bottom: -5%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }

    .input-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }

    .input-container input {
        text-align: center;
        padding: 0.75rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.85rem;
    }

    .social-circle {
        width: 44px;
        height: 44px;
    }

    .waitlist-bg-text {
        font-size: 4rem;
    }
}

/* Selection */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
