/* RESET & BASE */
:root {
    --bg-color: #000;
    --text-color: #fff;
    --muted-color: #888;
    --accent-color: #fff;
    --button-bg: #fff;
    --button-text: #000;
    --font-pro: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    color: var(--text-color);
    font-family: var(--font-pro);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem;
    z-index: 100;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ios-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-color);
}

/* HERO SECTION */
.hero-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 0 4rem 4rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.launch-tag {
    font-family: var(--font-mono);
    color: var(--muted-color);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.headline {
    font-family: var(--font-pro);
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sub-headline {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--muted-color);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* FORM STYLES */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
}

.email-input {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-family: var(--font-pro);
    font-size: 1rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.email-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 14px;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* REVEAL ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.reveal-delay-1 {
    animation-delay: 0.2s;
}

.reveal-delay-2 {
    animation-delay: 0.4s;
}

.reveal-delay-3 {
    animation-delay: 0.6s;
}

/* IPHONE MOCKUP */
.content-right {
    display: flex;
    justify-content: flex-end;
    perspective: 2000px;
}

.iphone-mockup {
    width: 330px;
    height: 660px;
    position: relative;
    background: url('phone.png') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.glimmer-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.02) 45%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.02) 55%,
            transparent 80%);
    background-size: 200% 200%;
    -webkit-mask-image: url('phone.png');
    mask-image: url('phone.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    z-index: 10;
    animation: glimmer-shine 3.5s cubic-bezier(0.65, 0, 0.35, 1) 1 forwards;
    /* 1 execution, slow in, fast mid, slow out */
    animation-delay: 1.2s;
    /* Waits for the entrance animation */
}

@keyframes glimmer-shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.app-icon-container {
    position: relative;
    width: 85px;
    height: 85px;
    z-index: 2;
    margin-top: -35px;
    /* Offset to center visually in the screen area */
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-app-icon {
    width: 101%;
    /* Slightly oversized to bleed past the edges */
    height: 101%;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 18px;
    image-rendering: -webkit-optimize-contrast;
    box-shadow: inset 0 0 0 2px #000;
    /* Definitively covers aliasing artifacts */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Smoothens the mask edge */
    mask-image: radial-gradient(white, black);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .headline {
        font-size: 4.5rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }

    .content-left {
        align-items: center;
    }

    .navbar {
        padding: 2rem;
    }

    .content-right {
        justify-content: center;
        margin-top: 3rem;
    }

    .iphone-mockup {
        transform: scale(0.85);
        margin-bottom: -100px;
    }
}