* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    animation: fadeInBody 1s ease-out;
    position: relative;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: containerFadeIn 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Testimonial Cards Container */
.testimonial-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Grid Background */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0;
    z-index: 1;
    animation: gridSlide 20s linear infinite, gridFadeIn 2s ease-out;
    opacity: 0.6;
}

@keyframes gridSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.6;
    }
}

/* Content */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    animation: contentFloat 6s ease-in-out infinite, contentFadeIn 1.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

@keyframes contentFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #ffffff;
    animation: textReveal 1.5s cubic-bezier(0.23, 1, 0.32, 1), textShimmer 3s ease-in-out infinite;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes textShimmer {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
    }
}

.free-text {
    display: block;
    margin-top: 15px;
    background: linear-gradient(135deg, #00ff88, #00cc6a, #00aa55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    animation: freeTextReveal 1.8s cubic-bezier(0.23, 1, 0.32, 1), 
               glowPulse 3s ease-in-out infinite,
               gradientShift 5s ease infinite;
    position: relative;
    background-size: 200% 200%;
}

@keyframes freeTextReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        filter: blur(8px);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(0, 255, 136, 0.6));
    }
}

/* Waitlist Button */
.waitlist-btn {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    animation: buttonReveal 2s cubic-bezier(0.23, 1, 0.32, 1), buttonFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.waitlist-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.waitlist-btn:hover::before {
    width: 300px;
    height: 300px;
}

.waitlist-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    background-color: #f0f0f0;
    letter-spacing: 1px;
}

.waitlist-btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modalBackdropFadeIn {
    to {
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
    }
}

.modal.closing {
    animation: modalBackdropFadeOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modalBackdropFadeOut {
    from {
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
    }
    to {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
}

.modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalContentFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

@keyframes modalContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.modal-content.closing {
    animation: modalContentFadeOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modalContentFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: closeBtnFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes closeBtnFadeIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-content h2 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.8rem;
    clear: both;
    animation: modalTitleFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

@keyframes modalTitleFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-content p {
    font-family: 'Inter', sans-serif;
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 0.95rem;
    animation: modalParaFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}

@keyframes modalParaFadeIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#emailInput {
    font-family: 'Inter', sans-serif;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #000000;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: inputFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

@keyframes inputFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#emailInput:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

#emailInput::placeholder {
    color: #666;
}

.submit-btn {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000000;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background-size: 200% 200%;
    animation: submitBtnFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both,
               gradientMove 3s ease infinite;
    overflow: hidden;
}

@keyframes submitBtnFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.submit-btn .btn-text {
    transition: opacity 0.3s ease;
}

.submit-btn.submitting .btn-text {
    opacity: 0;
}

.checkmark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #000000;
    stroke-miterlimit: 10;
    position: absolute;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #000000;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.submit-btn.success .checkmark {
    display: block;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Testimonial Card Styles */
.testimonial-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    min-height: 140px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    animation: cardFloat 4s ease-in-out infinite, cardFadeIn 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(calc(var(--rotation, 0deg) + 1deg));
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    color: #00ff88;
    font-size: 1.2rem;
}

.testimonial-text::after {
    content: '"';
    color: #00ff88;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: footerFadeIn 2s cubic-bezier(0.23, 1, 0.32, 1) 1s both;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tos-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .container {
        min-height: 100vh;
        padding: 20px 10px;
        padding-bottom: 120px; /* Space for footer */
    }

    .content {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .main-text {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
        margin-bottom: 30px;
        letter-spacing: 0.3px;
    }
    
    .free-text {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-top: 10px;
    }
    
    .waitlist-btn {
        padding: 14px 35px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .grid-background {
        background-size: 40px 40px; /* Smaller grid on mobile */
    }

    .testimonial-card {
        width: 240px;
        padding: 16px;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    /* Modal Responsive */
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 25px 20px;
        max-width: none;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    #emailInput {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 15px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .footer {
        padding: 12px 15px;
        position: relative;
        width: 100%;
    }

    .tos-text {
        font-size: 0.65rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .copyright {
        font-size: 0.65rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
        padding-bottom: 110px;
    }

    .content {
        padding: 10px;
    }

    .main-text {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        margin-bottom: 25px;
    }

    .free-text {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .waitlist-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .modal-content {
        margin: 15% auto;
        padding: 20px 15px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 10px 12px;
    }

    .tos-text {
        font-size: 0.6rem;
    }

    .copyright {
        font-size: 0.6rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding-bottom: 80px;
    }

    .footer {
        position: relative;
    }
}

