@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #0d0d0d;
    --accent-color: #ffde00;
    /* More vibrant yellow matching screenshot */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    /* Slightly darker for better contrast with slogan */
    --grid-color: rgba(255, 255, 255, 0.05);
    --button-shadow: 0 4px 20px rgba(255, 222, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to move it up */
    padding-top: 2vh;
    /* Restore top padding to body */
    min-height: 100vh;
    overflow: hidden;
    /* Restore fixed layout */
    position: relative;
}

/* Background Grid Effect */
body::before,
body::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    pointer-events: none;
}

body::before {
    transform: perspective(1000px) rotateX(60deg) rotateZ(45deg) translateZ(-50px);
    opacity: 0.5;
}

body::after {
    transform: perspective(1000px) rotateX(60deg) rotateZ(45deg) translateZ(50px);
    opacity: 0.3;
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.1rem;
    /* Minimized */
    text-transform: uppercase;
}

.logo-section {
    position: relative;
    margin-bottom: 0.1rem;
    /* Minimized */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* This is the spot for the logo image */
.logo-placeholder {
    width: 330px;
    /* Halved from 660px */
    height: 330px;
    background: none;
    /* Removed background glow */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: none;
    /* Removed shadow to match sharp look */
}

.logo-placeholder img {
    max-width: 100%;
    /* Use full space */
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 222, 0, 0.3));
    /* More subtle glow */
}

.logo-placeholder::after {
    content: none;
    /* Removed the text */
}

.slogan {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 5px;
    font-size: 0.95rem;
    /* Slightly smaller to match */
    margin-bottom: 0.4rem;
    /* Tightened gap */
    text-transform: uppercase;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.description {
    color: #666666;
    /* Gray color from screen shot */
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    /* Reduced */
    line-height: 1.6;
    max-width: none;
    /* Prevent wrapping */
    white-space: nowrap;
    /* Force one line */
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 320px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: var(--accent-color);
    color: black;
    text-decoration: none;
    padding: 0 2rem;
    /* Vertical padding removed to allow fixed height */
    height: 64px;
    /* Fixed height to keep buttons consistent */
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

.btn-apple .btn-icon {
    font-size: 1.8rem;
    /* Slightly larger, but contained by the fixed height */
}

.btn-icon {
    font-size: 1.4rem;
}

/* TikTok Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    backdrop-filter: blur(8px);
}

.popup-content {
    background: #1a1a1a;
    border: 2px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
    animation: slideDown 0.4s ease-out;
}

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

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

.popup-arrow {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--accent-color);
}

.popup-title {
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.popup-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.popup-close {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s;
}

.popup-close:hover {
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 680px) {
    .logo-placeholder {
        width: 250px;
        /* Reduced from 90vw (330px approx) to save space */
        height: 250px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0px;
    }

    .slogan {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }

    .description {
        font-size: 0.95rem;
        white-space: normal;
        max-width: 90vw;
        margin-bottom: 0.8rem;
    }

    .cta-group {
        gap: 0.8rem;
        /* Tighter button gap */
    }

    .btn {
        height: 56px;
        /* Slightly shorter buttons for mobile */
    }
}