:root {
    --apple-bg: #000000;
    --apple-text: #f5f5f7;
    --apple-gray: #86868b;
    --apple-blue: #0f74bd;
    --section-gap: 60px;
    --nav-color: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background-color: var(--apple-bg);
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--apple-bg) !important;
    overflow-x: hidden;
    color: var(--apple-text);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

header {
    background-color: transparent !important;
    box-shadow: none !important;
}

main#apple-pay-landing {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    padding-bottom: 0;
}

main#apple-pay-landing > section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
    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;
}

main#apple-pay-landing > section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.apple-hero {
    height: 90vh;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1200px;
    transition-delay: 0.1s;
    animation: fadeInHero 1.5s ease forwards;
    margin-top: 80px !important;
}

.apple-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.apple-hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--apple-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.apple-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.apple-hero .hero-badge span {
    font-size: 0.9rem;
    font-weight: 600;
}

.apple-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.type-wrap {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.type-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--apple-bg);
    border-left: 3px solid var(--apple-blue);
    z-index: 2;
    animation: type-reveal 1.5s steps(15, end) forwards, blink-cursor .75s step-end infinite;
}

.type-wrap.line-1::after {
    animation: type-reveal 1.5s steps(15, end) 0.5s forwards, blink-cursor .75s step-end 0.5s 2, hide-border 0s step-end 2s forwards;
}

.type-wrap.line-2::after {
    animation-delay: 2s;
    animation-fill-mode: both;
}

.scroll-section {
    position: relative;
    padding: var(--section-gap) 0;
}

.split-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.split-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    margin-bottom: 20px;
}

.split-content p {
    font-size: 1.25rem;
    color: var(--apple-gray);
    line-height: 1.5;
    margin-bottom: 30px;
}

.split-media {
    flex: 1;
    height: 70vh;
    position: relative;
    display: flex;
    justify-content: center;
}

.sticky-wrapper {
    position: relative;
}

.device-mockup {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.device-mockup:hover img {
    transform: scale(1.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.feature-card {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #161616;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: var(--apple-gray);
}

.wristband-integration {
    background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    width: 90%;
    max-width: 1000px;
    margin: 100px auto;
    border: 1px solid #333;
    box-sizing: border-box;
}

.cta-section {
    text-align: center;
    padding: 150px 20px;
    background: #000;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover {
    transform: scale(1.05);
}

.pay-steps {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pay-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--apple-text);
    font-size: 1.1rem;
}

.pay-steps li::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232997ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    margin-right: 15px;
}

.apple-pay-mark {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    border-radius: none !important;
}

.has-subnav .subnav {
    background-color: #000000 !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.subnav-link:hover {
    background-color: transparent !important;
}

footer, .site-footer {
    background-color: #000000 !important;
    color: #f5f5f7;
}

@keyframes fadeInHero {
    to { opacity: 1; }
}

@keyframes type-reveal {
    to { width: 0%; }
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--apple-blue); }
}

@keyframes hide-border {
    to { border-left-color: transparent; }
}

@media (min-width: 992px) {
    .split-screen {
        flex-direction: row;
        align-items: center;
        min-height: 80vh;
    }
    
    .split-screen.reverse {
        flex-direction: row-reverse;
    }

    .sticky-wrapper {
        position: sticky;
        top: 15vh;
        max-width: 500px;
    }
}

@media (max-width: 991px) {
    :root {
        --section-gap: 10px;
    }

    .apple-hero {
        min-height: 50vh;
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .sticky-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .apple-pay-mark {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .pay-steps {
        display: inline-block;
        text-align: left;
    }

    .scroll-section {
        padding: 30px 0;
    }

    .split-content {
        padding: 20px 20px 0 20px;
    }

    .split-media {
        height: 40vh;
        margin-top: 20px;
    }

    .feature-grid {
        gap: 10px;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.feature-card {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    min-width: 300px; 
}

@media (max-width: 991px) {
    .feature-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;         
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;     
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }

    .feature-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 auto;
        width: 85vw;
        max-width: 350px; 
        scroll-snap-align: center
    }
}
@media (max-width: 991px) {
    nav.active {
        background-color: #000000 !important;
    }

    nav .nav-link, 
    nav .subnav-link,
    nav svg {
        color: #ffffff !important;
    }

    .has-subnav .subnav {
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        width: 100% !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: block !important;
    }
}

.pay-steps li::before {
    flex-shrink: 0; 
    background-size: contain; 
}

.apple-hero, .scroll-section, .wristband-integration, .cta-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.apple-hero.is-visible, .scroll-section.is-visible, .wristband-integration.is-visible, .cta-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
