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

html {
    zoom: 0.8;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Funnel Display', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* Login button */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    color: #111111;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-login:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-login-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0);
}

/* Header user profile */
.header-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-user-name {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.btn-dashboard-sm,
.btn-signout-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-dashboard-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-signout-sm:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Mobile user info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.mobile-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-name {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.mobile-signout {
    color: #f87171 !important;
}

/* ─── Hero Section ────────────────────────────────── */
.hero {
    position: relative;
    height: calc(100vh / 0.8);
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/grain-style.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark overlay to deepen the background */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}


/* Hero content */
.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Top pill badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.04);
}

/* Big "Everything" title */
.hero-title {
    font-family: 'Funnel Display', sans-serif;
    font-size: clamp(80px, 12vw, 148px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #666666 0%, #888888 25%, #e0e0e0 45%, #e0e0e0 55%, #888888 75%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rotating words row */
.hero-rotating-wrap {
    height: clamp(48px, 7vw, 88px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.rotating-word {
    font-family: 'Funnel Display', sans-serif;
    font-size: clamp(44px, 6.5vw, 80px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Subtitles */
.hero-subtitle-main {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-subtitle-sub {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 32px;
}

/* CTA button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 50%) padding-box,
        linear-gradient(#30C667, #30C667) padding-box,
        radial-gradient(circle, rgba(255,255,255,0.70), rgba(208,255,226,0.20)) border-box;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(48, 198, 103, 0.45);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 50%) padding-box,
        linear-gradient(#3dd677, #3dd677) padding-box,
        radial-gradient(circle, rgba(255,255,255,0.70), rgba(208,255,226,0.20)) border-box;
}

/* Waitlist count pill */
.waitlist-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(16px);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.waitlist-avatars {
    display: flex;
    align-items: center;
}

.waitlist-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.6);
    display: block;
    margin-right: -8px;
}

.av1 { background: url('assets/waitlist1.jpg') center/cover; }
.av2 { background: url('assets/waitlist2.jpg') center/cover; }
.av3 { background: url('assets/waitlist3.jpg') center/cover; }

.waitlist-avatars .waitlist-avatar:last-child {
    margin-right: 0;
}

.waitlist-text {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 8px;
}

/* Social icons — bottom left */
.hero-social {
    position: absolute;
    bottom: 32px;
    left: max(24px, calc((100% - 1200px) / 2 + 24px));
    z-index: 3;
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ─── Mobile Menu ─────────────────────────────────── */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh / 0.8);
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 64px;
}

.close-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    color: white;
    font-family: 'Funnel Display', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }

.mobile-nav-link:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .header .btn-login,
    .header .header-user-profile {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }

    html {
        zoom: 1;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .mobile-menu-overlay {
        height: 100vh;
        height: 100dvh;
    }

    .hero-title {
        font-size: clamp(48px, 13vw, 80px);
        background: linear-gradient(90deg, #aaaaaa 0%, #cccccc 25%, #ffffff 45%, #ffffff 55%, #cccccc 75%, #aaaaaa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 6px;
        line-height: 1.1;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
        text-align: center;
        letter-spacing: 0.04em;
        margin-bottom: 16px;
    }

    .hero-rotating-wrap {
        height: clamp(36px, 6vw, 50px);
        margin-bottom: 12px;
    }

    .rotating-word {
        font-size: clamp(32px, 8vw, 52px);
    }

    .hero-subtitle-main {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .hero-subtitle-sub {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 15px;
        margin-bottom: 10px;
    }

    .waitlist-pill {
        padding: 6px 12px 6px 8px;
    }

    .waitlist-text {
        font-size: 12px;
    }

    .hero-asterisk-wrap {
        left: -20px;
        bottom: 8%;
    }

    .hero-asterisk-img {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 44px;
    }

    .hero-rotating-wrap {
        height: 34px;
        margin-bottom: 10px;
    }

    .rotating-word {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 9px;
        letter-spacing: 0.03em;
        margin-bottom: 12px;
    }

    .hero-subtitle-sub {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .btn-cta {
        padding: 10px 24px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .waitlist-avatar {
        width: 22px;
        height: 22px;
    }

    .waitlist-text {
        font-size: 11px;
    }
}

/* ─── Sign-in / Waitlist pages (dark header support) ─ */
.btn-waitlist {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-waitlist:hover {
    background: rgba(255, 255, 255, 0.18);
}
