:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff; /* Apple-style subtle blue */
    --border-color: rgba(255, 255, 255, 0.08);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Subtle background noise texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* Below fixed nav (z-50) so header glass stays one smooth frosted slab, not grainy patches */
    z-index: 35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

/* Hero Section */
.hero {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 600;
}

.headline {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.headline .highlight {
    display: inline-block;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    margin-top: 12px;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px;
    width: 100%;
    max-width: 480px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.waitlist-form:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(40, 40, 40, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 16px 24px;
    outline: none;
    font-family: inherit;
    font-weight: 400;
}

.email-input::placeholder {
    color: #6e6e73;
    letter-spacing: 0.01em;
}

.join-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.join-btn:hover {
    transform: scale(1.02);
    background: #f5f5f7;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.join-btn:active {
    transform: scale(0.97);
}

/* Divider */
.divider {
    width: 60px;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0 80px 0;
}

/* Cadence Funnel */
.cadence-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 56px 40px;
    width: 100%;
    max-width: 640px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

.cadence-funnel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0.5;
}

.cadence-funnel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.cadence-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cadence-funnel:hover .cadence-icon {
    transform: scale(1.05);
}

.cadence-icon svg {
    width: 28px;
    height: 28px;
    opacity: 0.95;
}

.cadence-eyebrow {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.cadence-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cadence-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 440px;
}

.download-btn {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-btn:hover {
    transform: scale(1.02);
    background: #f5f5f7;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Animations: Reveal & Transitions (Apple-style smoothness) */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 32px;
    }

    .cadence-funnel {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .waitlist-form {
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }

    .email-input {
        width: 100%;
        background: rgba(30, 30, 30, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        padding: 16px;
        margin-bottom: 12px;
        text-align: center;
        backdrop-filter: blur(20px);
    }

    .join-btn {
        width: 100%;
    }
}