/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent specific elements from causing horizontal scroll */
img, svg, video {
    max-width: 100%;
    height: auto;
}

html {
    background: #090712;
    overflow-x: hidden;
    height: 100%;
    scroll-behavior: smooth;
}

/* Performance optimizations for smoother scrolling */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 769px) {
    html {
        height: auto !important;
        min-height: 100vh;
    }

    body {
        height: auto !important;
        min-height: 100vh;
    }

    /* Force section blobs to be visible and in front */
    .hero::before,
    .about::before,
    .screenshots::before {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 9999 !important;
        position: absolute !important;
    }

    /* Move hero blob up significantly */
    .hero::before {
        top: 20% !important;
    }

    /* Ensure watch bands are visible on desktop */
    .watch-band {
        display: block !important;
        opacity: 1 !important;
    }

    /* Hero section takes full viewport */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        position: relative;
        padding-top: 8rem;
    }

    /* Scroll arrow styling */
    .scroll-arrow {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
        transition: all 0.3s ease;
        animation: bounce 2s infinite;
        padding: 1rem;
    }

    .scroll-arrow:hover {
        transform: translateX(-50%) scale(1.2);
    }

    .scroll-arrow svg {
        width: 32px;
        height: 32px;
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-10px);
        }
        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    .desktop-only {
        display: block;
    }

    /* Move musical staff lower on desktop */
    .musical-background {
        bottom: -10% !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.87);
    background: linear-gradient(135deg, #090712 0%, #14102B 100%);
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #050408 0%, #090712 100%);
    z-index: -10;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #14102B 0%, #2a2040 50%, #00E8FF 100%);
    z-index: -10;
}

.gradient-overlay {
    content: '';
    position: fixed;
    top: -70%;
    left: -40%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 232, 255, 0.12) 0%, rgba(0, 232, 255, 0.06) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

em {
    font-style: italic;
    color: #FF3BCE;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 90%;
    right: -25%;
    width: 90%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, rgba(255, 59, 206, 0.04) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #00E8FF, #FF3BCE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    padding-bottom: 0.2em;
}

.hero-tagline {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.87);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA */
.hero-cta {
    max-width: 400px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.email-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8B5CF6, #FF3BCE);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 59, 206, 0.3);
    width: 100%;
}

.email-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 232, 255, 0.4);
    background: linear-gradient(135deg, #00E8FF, #FF3BCE);
}

.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
}


/* Section styles */
section {
    padding: 5rem 0;
}

.about {
    padding: 6rem 0 8rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.87);
    text-shadow: 0 0 15px rgba(0, 232, 255, 0.2);
}

/* About Section */
.about {
    color: white;
    padding: 15rem 0 5rem;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 60%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 232, 255, 0.08) 0%, rgba(0, 232, 255, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-column {
    padding-right: 2rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.about .section-title {
    color: rgba(255, 255, 255, 0.87);
    text-align: center;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
    white-space: nowrap;
}

.about-content {
    text-align: left;
}

.about-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text.primary {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.87);
}

.about-text.secondary {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Watch Visual */
.about-visual-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

/* Hide mobile inline watch on desktop */
.watch-visual.mobile-inline {
    display: none;
}

.watch-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.watch-container {
    position: relative;
    margin-bottom: 2rem;
}

.watch-body {
    width: 120px;
    height: 145px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid #444;
    z-index: 1;
}

.watch-screen-visual {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #000;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-crown-visual {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 30px;
    background: #333;
    border-radius: 8px;
}

.watch-band {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    z-index: 0;
}

.watch-band.top {
    top: -10px;
}

.watch-band.bottom {
    bottom: -10px;
}

.haptic-pattern {
    display: flex;
    gap: 8px;
    align-items: center;
}

.haptic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}


/* Watch vibration animation */
@keyframes watchVibrate {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-2px) rotate(-1deg); }
    30% { transform: translateX(2px) rotate(1deg); }
    50% { transform: translateX(-1.5px) rotate(-0.5deg); }
    70% { transform: translateX(1.5px) rotate(0.5deg); }
    90% { transform: translateX(-1px) rotate(-0.3deg); }
}

.watch-body.vibrating {
    animation: watchVibrate 0.5s ease-in-out;
}

/* Haptic vibration arcs */
@keyframes hapticArcSmall {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: drop-shadow(0 0 0px #00E8FF);
    }
    40% {
        opacity: 0.7;
        transform: scale(1);
        filter: drop-shadow(0 0 4px #00E8FF);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
        filter: drop-shadow(0 0 6px #00E8FF);
    }
}

@keyframes hapticArcLarge {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: drop-shadow(0 0 0px #00E8FF);
    }
    30% {
        opacity: 0.6;
        transform: scale(1);
        filter: drop-shadow(0 0 4px #00E8FF);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
        filter: drop-shadow(0 0 8px #00E8FF);
    }
}

/* SVG Haptic Arcs */
.haptic-arc-small {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    opacity: 0;
}

.haptic-arc-large {
    position: absolute;
    width: 70px;
    height: 70px;
    pointer-events: none;
    opacity: 0;
}

.haptic-arc-small.top-right {
    top: -15px;
    right: -15px;
}

.haptic-arc-small.bottom-left {
    bottom: -15px;
    left: -15px;
}

.haptic-arc-large.top-right {
    top: -20px;
    right: -20px;
}

.haptic-arc-large.bottom-left {
    bottom: -20px;
    left: -20px;
}

/* Animation timing - small arcs first, then large */
.watch-container.vibrating .haptic-arc-small.top-right {
    animation: hapticArcSmall 0.4s ease-out;
}

.watch-container.vibrating .haptic-arc-small.bottom-left {
    animation: hapticArcSmall 0.4s ease-out 0.1s;
}

.watch-container.vibrating .haptic-arc-large.top-right {
    animation: hapticArcLarge 0.6s ease-out 0.15s;
}

.watch-container.vibrating .haptic-arc-large.bottom-left {
    animation: hapticArcLarge 0.6s ease-out 0.25s;
}

/* Haptic pulse animation */
@keyframes hapticPulse {
    0% {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: none;
        transform: scale(1);
    }
    50% {
        background: #00E8FF;
        box-shadow: 0 0 15px rgba(0, 232, 255, 0.8);
        transform: scale(1.3);
    }
    100% {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: none;
        transform: scale(1);
    }
}

.haptic-dot.pulsing {
    animation: hapticPulse 0.5s ease-in-out;
}

.quote-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
}

.quote-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.05);
}

.quote-bubble p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.87);
    font-size: 0.9rem;
}

/* Screenshots Section */
.screenshots {
    padding: 8rem 0 3rem;
    position: relative;
}

.screenshots .section-title {
    margin-bottom: 2rem;
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(255, 59, 206, 0.15) 0%, rgba(255, 59, 206, 0.08) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
}

.device-showcase {
    display: flex;
    gap: 6rem;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.phone-screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -3rem;
    flex: 3;
    padding: 3rem 2rem;
    min-height: 600px;
}

.watch-screenshot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
}

.phone-mockup {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 -2rem;
}

.phone-mockup:hover {
    z-index: 10 !important;
}


.phone-mockup:hover .phone-frame {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.4) !important;
}

.phone-mockup:nth-child(1) {
    z-index: 1;
}

.phone-mockup:nth-child(2) {
    z-index: 2;
    transform: translateY(-40px) !important;
}


.phone-mockup:nth-child(3) {
    z-index: 3;
}

.phone-mockup {
    text-align: center;
}

.phone-frame {
    position: relative;
    width: 240px;
    height: 500px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #a0a0a0, #c8c8c8);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}


.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 2;
}

.phone-status-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 20px;
    background: linear-gradient(135deg, #090712 0%, #14102B 100%);
    border-radius: 28px 28px 0 0;
    z-index: 2;
}

.phone-screen {
    width: calc(100% - 24px);
    height: calc(100% - 44px);
    background: #f0f0f0;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    position: absolute;
    top: 32px;
    left: 12px;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 26px 26px;
}

/* Watch Mockup */

.watch-mockup {
    text-align: center;
}

.watch-frame {
    position: relative;
    width: 145px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #a0a0a0, #c8c8c8);
    border-radius: 32px;
    padding: 9px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Add bands to screenshots watch */
.watch-frame::before,
.watch-frame::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 14px;
    background: #999;
    border-radius: 7px;
    z-index: -1;
}

.watch-frame::before {
    top: -8px;
}

.watch-frame::after {
    bottom: -8px;
}

.watch-crown {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 28px;
    background: #999;
    border-radius: 4px;
}

.watch-status-bar {
    position: absolute;
    top: 9px;
    left: 9px;
    right: 9px;
    height: 14px;
    background: linear-gradient(135deg, #090712 0%, #14102B 100%);
    border-radius: 23px 23px 0 0;
    z-index: 2;
}

.watch-screen {
    width: calc(100% - 18px);
    height: calc(100% - 32px);
    background: #000;
    border-radius: 0 0 23px 23px;
    overflow: hidden;
    position: absolute;
    top: 23px;
    left: 9px;
}

.watch-screen .screenshot-img {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    font-size: 0.9rem;
    border-radius: 0 0 20px 20px;
}

.watch-screen .screenshot-img::after {
    content: '⌚ Haptic UI';
    font-size: 0.8rem;
}

.device-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
}

.phone-mockup:hover .device-caption,
.watch-mockup:hover .device-caption {
    opacity: 1;
}

.watch-mockup {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.watch-mockup:hover .watch-frame {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.4);
}

/* Tablet adjustments for steps */
@media (max-width: 900px) {
    .step-arrow {
        font-size: 1.3rem;
        margin: 0 0.8rem;
    }
}

/* Mobile responsiveness for screenshots */
@media (max-width: 1024px) {
    .device-showcase {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .phone-screenshots {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .phone-mockup {
        margin: 0;
    }

    .phone-mockup:nth-child(2) {
        transform: translateY(-20px);
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .watch-frame {
        width: 160px;
        height: 190px;
    }
}

/* Carousel dots - only show on mobile */
.carousel-dots {
    display: none;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {

    .watch-screenshot {
        margin-left: 0;
    }

    /* Make watch always active on mobile with same styling as active phones */
    .watch-mockup .watch-frame {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.2) !important;
    }

    .watch-mockup .device-caption {
        opacity: 1 !important;
    }

    /* Disable hover effects on watch for mobile */
    .watch-mockup:hover .watch-frame {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.2) !important;
    }

    .phone-mockup:nth-child(2) {
        --phone-scale: 0.9;
        transform: translateY(0px) scale(var(--phone-scale)) !important;
    }

    .phone-mockup:hover .phone-frame {
        box-shadow: none !important;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .phone-screenshots {
        display: flex;
        flex-direction: row;
        padding: 1rem 0;
        width: 100vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-height: auto;
    }

    /* Disable carousel scrolling on desktop */
    @media (min-width: 1025px) {
        .phone-screenshots {
            overflow-x: visible;
            scroll-snap-type: none;
            flex-direction: row;
            gap: -3rem;
            justify-content: center;
            align-items: center;
            padding: 3rem 2rem;
            min-height: 600px;
            width: auto;
        }
        
        .phone-mockup {
            position: relative;
            transition: all 0.3s ease;
            cursor: pointer;
            margin: 0 -2rem;
            opacity: 1;
            transform: scale(1);
        }
        
        .phone-mockup:nth-child(2) {
            transform: translateY(-40px) !important;
            z-index: 2;
        }
        
        .phone-mockup:hover {
            z-index: 10 !important;
        }
        
        .phone-mockup:hover .phone-frame {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.4) !important;
        }
    }

    .phone-screenshots::-webkit-scrollbar {
        display: none;
    }

    .phone-mockup {
        flex: none;
        width: 200px;
        scroll-snap-align: center;
        margin: 0px;
        opacity: 0.6;
        transform: scale(0.9);
    }

    .phone-mockup.active {
        z-index: 2;
    }

    .phone-mockup.active .phone-frame {
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(255, 255, 255, 0.2) !important;
    }

    /* Mobile phone margins */
    .phone-mockup:first-child {
        margin-left: calc(50vw - 99px);
    }

    .phone-mockup:last-child {
        margin-right: calc(50vw - 99px);
    }

    .phone-frame {
        width: 198px;
        height: 396px;
    }

    .watch-frame {
        width: 145px;
        height: 150px;
    }

    .screenshots {
        padding: 0;
    }

    /* Carousel dots styling */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 0rem;
        margin-bottom: 8rem;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: rgba(0, 232, 255, 0.8);
        transform: scale(1.2);
    }

}

/* How It Works Section */
.how-it-works {
    position: relative;
}


.steps {
    display: flex;
    align-items: stretch;
    margin-bottom: 2rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step {
    cursor: pointer;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 232, 255, 0.2);
    border-color: rgba(0, 232, 255, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.87);
}

.step-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Step arrow styling */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(0, 232, 255, 0.6);
    font-weight: bold;
    margin: 0 1rem;
    flex-shrink: 0;
}

.steps-subtext {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    position: relative;
    color: white;
    text-align: center;
    padding: 3rem 0 5rem;
}


.cta .section-title {
    color: rgba(255, 255, 255, 0.87);
    text-shadow: 0 0 20px rgba(255, 59, 206, 0.4);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-text {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.87);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 232, 255, 0.4);
}

.cta-button {
    background: linear-gradient(135deg, #8B5CF6, #FF3BCE);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 59, 206, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 232, 255, 0.4);
    background: linear-gradient(135deg, #00E8FF, #FF3BCE);
}

.cta-requirement {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Footer */
.footer {
    color: white;
    padding: 6rem 0 3rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 232, 255, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.footer.animate-in::before {
    opacity: 1;
}

.footer-content {
    text-align: center;
}

.footer-nav {
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00E8FF;
    text-shadow: 0 0 10px rgba(0, 232, 255, 0.5);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.9rem;
}

/* Musical Staff Background */
.musical-background {
    position: absolute;
    bottom: -27%;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.staff-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure hero section content is above background */
.hero .container {
    position: relative;
    z-index: 1;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .email-input {
        text-align: center;
    }

    .about {
        padding: 8rem 0 6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text-column {
        padding-right: 0;
    }

    .about-content {
        text-align: center;
    }

    .watch-container {
        margin-bottom: 1.5rem;
    }

    .watch-body {
        width: 100px;
        height: 120px;
    }

    .watch-band {
        width: 70px;
        height: 18px;
    }

    .steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Hide arrows on mobile */
    .step-arrow {
        display: none;
    }

    .cta-features {
        gap: 0.5rem;
    }

    .feature {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-link {
        margin: 0;
    }

}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .step {
        transition: none;
    }

    .cta-button {
        transition: none;
    }

    .app-icon {
        transition: none;
    }
}

/* Mobile responsive adjustments for app icon */
@media (max-width: 768px) {
    .cta-button-container {
        flex-direction: column;
        gap: 1rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
    }

    /* Simplify mobile layout and fix double scrollbar - mobile only */
    html, body {
        scroll-behavior: auto;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    /* Prevent any container from creating its own scroll area */
    * {
        overflow-x: visible;
    }

    *:not(html):not(body) {
        overflow-x: visible;
        max-height: none;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .about-grid {
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .about-visual-column {
        display: none;
    }

    .watch-visual.mobile-inline {
        display: flex;
        justify-content: center;
        margin: 4rem 0 2rem 0;
    }

    .watch-visual.mobile-inline .watch-container {
        position: relative;
        z-index: 0;
    }

    .watch-visual.mobile-inline .watch-band {
        display: block;
        background: #333;
        border-radius: 10px;
        z-index: -1;
        opacity: 1;
        position: absolute;
    }

    .watch-visual {
        transform: none;
    }

    .steps {
        gap: 1rem;
    }

    .step {
        padding: 1.5rem 1rem;
    }

    .screenshots {
        padding: 0;
        padding-top: 4rem;
    }

    .device-showcase {
        gap: 0rem;
    }

    /* Remove complex animations and transitions on mobile, but keep watch animations */
    .hero-content *,
    .step *,
    .screenshots *,
    .cta * {
        transition: none !important;
        animation: none !important;
    }

    /* Explicitly preserve watch animations on mobile */
    .watch-body.vibrating {
        animation: watchVibrate 0.5s ease-in-out !important;
    }

    .haptic-dot.pulsing {
        animation: hapticPulse 0.5s ease-in-out !important;
    }

    .watch-container.vibrating .haptic-arc-small.top-right {
        animation: hapticArcSmall 0.4s ease-out !important;
    }

    .watch-container.vibrating .haptic-arc-small.bottom-left {
        animation: hapticArcSmall 0.4s ease-out 0.1s !important;
    }

    .watch-container.vibrating .haptic-arc-large.top-right {
        animation: hapticArcLarge 0.6s ease-out 0.15s !important;
    }

    .watch-container.vibrating .haptic-arc-large.bottom-left {
        animation: hapticArcLarge 0.6s ease-out 0.25s !important;
    }

    /* Hide haptic arcs by default on mobile */
    .haptic-arc-small,
    .haptic-arc-large {
        opacity: 0;
        transform: scale(0.5);
        transition: none;
    }

    /* Watch animations are handled above */

    /* Move musical notes higher up by 10% on mobile */
    .musical-background {
        bottom: -30%;
    }
}

/* iPad specific overrides */
@media (min-width: 769px) and (max-width: 1024px) {
    .phone-mockup:first-child {
        margin-left: calc(50vw - 99px);
    }

    .phone-mockup:last-child {
        margin-right: calc(50vw - 99px);
    }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.footer-link:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }

    .about-text.secondary {
        color: #333;
    }
}
