* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b0b0b;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* 3D Perspective Container for Background Grid */
.bg-mosaic-container {
    position: absolute;
    top: -200px;
    left: -20%;
    width: 140%;
    height: 1200px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.25;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotate(-5deg) scale(1.1);
}

/* Each Row Marquee Track */
.marquee-row {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 20px;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    min-width: 100%;
    animation: scroll-left 30s linear infinite;
}

.marquee-row.reverse .marquee-content {
    animation: scroll-right 30s linear infinite;
}

.marquee-item {
    width: 160px;
    height: 220px;
    background: #252528;
    border-radius: 16px;
    border: 1px solid #333;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* Continuous Infinite Marquee Animations */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

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

/* Header Navigation */
header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #a855f7;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 14px;
    color: #ccc;
}

nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

.cta-header-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
    transition: transform 0.2s;
}

.cta-header-btn:hover {
    transform: scale(1.03);
}

/* Spinning Color Wheel */
.color-wheel {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(
        #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000
    );
    animation: spin 4s linear infinite;
    display: inline-block;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.color-wheel-lg {
    width: 44px;
    height: 44px;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Hero Section */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    color: #dedede;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sign-up Box (Right Column) */
.signup-box-wrapper {
    position: relative;
}

.free-badge {
    position: absolute;
    top: -22px;
    right: 15px;
    background: #a855f7;
    color: white;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    z-index: 15;
    transform: rotate(3deg);
}

.signup-box {
    background: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid #2a2a2e;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    background: #1f1f23;
    border: 1px solid #3a3a40;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.email-input:focus {
    border-color: #a855f7;
}

/* Flashing Button Animation */
.submit-btn {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    animation: flash-purple-dark 1s steps(1, end) infinite;
}

@keyframes flash-purple-dark {
    0% {
        background: linear-gradient(135deg, #c084fc 0%, #6b21a8 100%);
        box-shadow: 0 6px 20px rgba(192, 132, 252, 0.4);
    }
    50% {
        background: linear-gradient(135deg, #2e1065 0%, #0f051d 100%);
        box-shadow: 0 6px 20px rgba(15, 5, 29, 0.8);
    }
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.generation-stats {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: -5px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 5px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2a2a2e;
}

.divider::before { margin-right: .75em; }
.divider::after { margin-left: .75em; }

.google-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f1f1f1;
}

.login-subtext {
    text-align: center;
    font-size: 12px;
    color: #666;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    nav {
        display: none;
    }
}
