/* Index Page Specific Styles - Uses global.css for base system */

/* Override body background for index page */
body {
    background: var(--bg-system);
}

/* Capsule Dock - Index specific component */
.capsule-dock {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.dock-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dock-item:active {
    background: rgba(0, 0, 0, 0.1);
}

.dock-item:active img {
    filter: brightness(0);
    opacity: 1;
}

.dock-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
}

/* Sections - Index layout */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 40px;
}

/* Hero */
.hero {
    background: var(--bg-system);
    flex-direction: column;
    gap: 30px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 140px);
    font-weight: 200;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 400;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
    text-align: center;
}

/* Statement */
.statement {
    background: white;
    flex-direction: column;
    gap: 40px;
}

.statement h2 {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 300;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 900px;
}

.statement h2 strong {
    font-weight: 500;
}

/* Layer Sections */
.layer {
    background: var(--bg-system);
    flex-direction: column;
    gap: 50px;
    min-height: 80vh;
}

.layer:nth-child(odd) {
    background: white;
}

.layer-content {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.layer-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.layer-visual img {
    width: 280px;
    height: 350px;
    object-fit: contain;
    border-radius: 12px;
}

.layer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.layer-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 200;
    color: var(--color-primary);
    line-height: 1.1;
}

.layer-stripped {
    font-size: 18px;
    color: var(--color-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-left: 16px;
}

.layer-stripped span {
    display: block;
    margin-bottom: 8px;
}

.layer-cta-section {
    height: 100px;
}

.layer-cta {
    align-self: flex-start;
}

.layer-cta.wanting {
    background: var(--color-secondary);
    cursor: not-allowed;
}

.layer-cta.wanted {
    background: var(--color-email);
}

/* Final Section with Background */
.final {
    background: url('./assets/images/line-up.webp') no-repeat center center / cover;
    flex-direction: column;
    position: relative;
}

.final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 75%,
            rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    z-index: 1;
    animation: liquidGlass 8s ease-in-out infinite;
}

@keyframes liquidGlass {

    0%,
    100% {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0.03) 25%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.02) 75%,
                rgba(255, 255, 255, 0.06) 100%);
        backdrop-filter: blur(28px);
    }

    25% {
        background: linear-gradient(225deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.08) 25%,
                rgba(255, 255, 255, 0.02) 50%,
                rgba(255, 255, 255, 0.06) 75%,
                rgba(255, 255, 255, 0.04) 100%);
        backdrop-filter: blur(24px);
    }

    50% {
        background: linear-gradient(315deg,
                rgba(255, 255, 255, 0.04) 0%,
                rgba(255, 255, 255, 0.05) 25%,
                rgba(255, 255, 255, 0.07) 50%,
                rgba(255, 255, 255, 0.03) 75%,
                rgba(255, 255, 255, 0.06) 100%);
        backdrop-filter: blur(30px);
    }

    75% {
        background: linear-gradient(45deg,
                rgba(255, 255, 255, 0.06) 0%,
                rgba(255, 255, 255, 0.04) 25%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.02) 75%,
                rgba(255, 255, 255, 0.05) 100%);
        backdrop-filter: blur(26px);
    }
}

.final h1 {
    font-size: clamp(100px, 25vw, 400px);
    font-weight: 400;
    color: white;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

/* Email Capture - Inline component */
.email-capture {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.email-capture h2 {
    margin-left: 16px
}

.email-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-success {
    color: var(--color-secondary);
    text-align: center;
    padding: 10px 0;
}

/* Mobile Responsive - Index specific */
@media (max-width: 768px) {
    .dock-item {
        width: 40px;
        height: 40px;
    }

    .layer-content {
        flex-direction: column;
        gap: 40px;
    }

    .layer-visual img {
        width: 200px;
        height: 250px;
        padding: 20px;
    }

    .layer-info {
        text-align: center;
    }

    .layer-stripped {
        margin-left: 0;
    }

    .layer-cta {
        align-self: center;
    }

    .email-capture h2 {
        margin-left: 0;
    }

    .email-inline {
        flex-direction: column;
    }
}

/* Footer */
footer {
    text-align: center;
    margin: 16px 0;
}