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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Gradients (Fallback/Overlay) */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: bg-pulse 15s ease-in-out infinite;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 0 4rem;
    /* More padding for immersive feel */
    position: relative;
    /* max-width removed to allow full width video */
}

/* Video Background */
.video-background {
    position: fixed;
    /* Fixed to cover screen regardless of scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -5;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    /* Darken for text readability */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 120%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fade-down 0.8s ease-out;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    /* Simplified for video contrast */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.04em;
    animation: fade-up 0.8s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    /* Brighter for video contrast */
    line-height: 1.7;
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fade-up 0.8s ease-out 0.4s backwards;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 5rem;
    animation: fade-up 0.8s ease-out 0.6s backwards;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 20, 0.7);
    /* Darker bg for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 10, 20, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

button[type="submit"] {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    text-shadow: none;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

/* Trusted By Section */
.trusted-by {
    margin-bottom: 6rem;
    text-align: center;
    animation: fade-up 0.8s ease-out 0.8s backwards;
    overflow: hidden;
    /* Hide overflow for marquee */
    max-width: 100vw;
}

.trusted-by p {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Marquee Container */
.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

.logo-item {
    height: 3rem;
    /* Fixed height for consistency */
    width: auto;
    /* Ensure black logos turn white and colored logos turn white */
    filter: grayscale(100%) invert(1) brightness(200%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    /* Maintain white effect on hover, or allow original color if desired.
       Use brightness(0) invert(1) for pure white silhouette always. */
    filter: grayscale(100%) invert(1) brightness(200%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: 1.5rem;
    margin-bottom: 8rem;
    animation: fade-up 0.8s ease-out 1s backwards;
    text-align: left;
    /* Clean left alignment */
}

.feature-card {
    background: transparent;
    /* Clean minimalist look */
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    /* No border */
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle hover */
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: transparent;
    /* Remove background */
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align */
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 2rem;
    /* Larger icon */
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    /* Smaller, punchier */
    text-shadow: none;
    font-weight: 700;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: none;
}

/* Responsive Features */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablet */
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes bg-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .features {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .feature-icon {
        justify-content: center;
        width: 100%;
    }

    .waitlist-form {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }

    .video-background {
        height: 100vh;
    }
}

/* Marquee Logo Text Styling */
.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    margin: 0 2rem;
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure Logo Items and Text align */
.marquee-track {
    display: flex;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fade-down 0.8s ease-out;
}

.trust-badge i {
    color: #ffd700;
    /* Brighter Gold */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));

}

/* How It Works Section */
.how-it-works {
    text-align: center;
    margin-bottom: 8rem;
    /* More spacing */
    position: relative;
    z-index: 10;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    /* Cards same height */
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: rgba(10, 10, 20, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: white;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Footer Improvements */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .step-arrow {
        transform: rotate(90deg);
        justify-content: center;
        margin: -1rem 0;
    }

    .logo-img {
        height: 32px;
    }
}

/* Video Showcase */
.video-showcase {
    margin-bottom: 8rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.video-showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
    color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    background: rgba(10, 10, 20, 0.4);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    /* Aspect ratio for video */
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 2rem;
    text-align: left;
}

.video-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}