/* Apple-inspired minimalist design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #000000;
    --light-gray: #F5F5F7;
    --apple-blue: #0071E3;
}

html {
    height: 100%;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Smoke Canvas */
#smoke-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Behind the text */
}

.hero-title {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--apple-blue);
    position: relative;
    z-index: 10; /* Text stays on top */
    perspective: 1000px;
}

.falling-word {
    display: inline-block;
    margin: 0 5px;
    opacity: 0;
    transform: scale(10) translateZ(500px);
    transform-style: preserve-3d;
    position: relative;
}

/* Shimmer effect after words land */
.falling-word.shimmer {
    background: linear-gradient(
        110deg,
        #0066CC 0%,
        #0066CC 40%,
        #4d94ff 50%,
        #99c2ff 52%,
        #4d94ff 60%,
        #0066CC 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerEffect 1.5s ease-in-out forwards;
}

@keyframes shimmerEffect {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -100% center;
    }
}

/* Crystal/Stone texture overlay */
.falling-word::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: sparkle 3s ease-in-out 2.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Screen shake animation for impact */
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-4px) rotateZ(-0.5deg); }
    20% { transform: translateX(3px) rotateZ(0.5deg); }
    30% { transform: translateX(-3px) rotateZ(-0.5deg); }
    40% { transform: translateX(2px) rotateZ(0.3deg); }
    50% { transform: translateX(-2px) rotateZ(-0.3deg); }
    60% { transform: translateX(1px); }
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--gray);
    opacity: 0;
    transform: scale(0.9);
    position: relative;
    z-index: 10; /* Keep subtitle above effects too */
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 30px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    position: relative;
}

.hero-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-cta.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.hero-app-store-button {
    display: inline-block;
    margin-bottom: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-app-store-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-cta-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin: 0;
    opacity: 0.8;
}

/* Breathing animation for subtitle */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.breathing {
    animation: breathe 3s ease-in-out infinite;
}

/* Features */
.feature {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--white);
    scroll-snap-align: start;
}

.feature.alt {
    background: var(--light-gray);
}

.feature-content {
    max-width: 600px;
    text-align: center;
    position: relative;
}

.feature-title {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    line-height: 1.05;
    color: var(--apple-blue);
}

.feature-text {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray);
}

/* Apple Transform Animation */
.apple-transform {
    display: inline-block;
    position: relative;
    width: 0.58em;
    height: 0.9em;
    margin: 0 0.01em;
    vertical-align: baseline;
}

/* The circular shape for both o and apple */
.o-circle {
    position: absolute;
    width: 0.54em;
    height: 0.54em;
    border: 0.085em solid var(--apple-blue);
    border-radius: 50%;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    background: transparent;
    animation: morphToApple 4s infinite;
}

/* The accent/leaf */
.o-accent {
    position: absolute;
    width: 0.12em;
    height: 0.18em;
    background: var(--apple-blue);
    border-radius: 100% 0 100% 0;
    left: 50%;
    top: 30%;
    transform-origin: bottom center;
    transform: rotate(-20deg);
    animation: accentToLeaf 4s infinite;
}

@keyframes morphToApple {
    0%, 25% {
        /* Show as letter o */
        background: transparent;
        border-color: var(--apple-blue);
        border-width: 0.09em;
    }
    35%, 40% {
        /* Transition to apple */
        background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
        border-color: transparent;
        border-width: 0;
        transform: translate(-50%, -50%) rotateY(180deg) scale(1.05);
    }
    50%, 75% {
        /* Stay as apple */
        background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
        border-color: transparent;
        border-width: 0;
        border-radius: 50% 50% 55% 55%;
        transform: translate(-50%, -50%) rotateY(180deg) scale(1.08);
    }
    85%, 90% {
        /* Transition back to o */
        background: transparent;
        border-color: var(--apple-blue);
        border-width: 0.09em;
        border-radius: 50%;
        transform: translate(-50%, -50%) rotateY(360deg) scale(1);
    }
    100% {
        /* Back to letter o */
        background: transparent;
        border-color: var(--apple-blue);
        border-width: 0.09em;
    }
}

@keyframes accentToLeaf {
    0%, 25% {
        /* Accent mark */
        width: 0.12em;
        height: 0.18em;
        background: var(--apple-blue);
        border-radius: 100% 0 100% 0;
        transform: rotate(-20deg);
    }
    35%, 40% {
        /* Transform to leaf on top of apple */
        width: 0.14em;
        height: 0.1em;
        background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
        border-radius: 100% 0 100% 0;
        transform: rotate(-20deg);
    }
    50%, 75% {
        /* Stay as leaf on top of apple */
        width: 0.14em;
        height: 0.1em;
        background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
        border-radius: 100% 0 100% 0;
        transform: rotate(-20deg);
    }
    85%, 90% {
        /* Transform back to accent */
        width: 0.12em;
        height: 0.18em;
        background: var(--apple-blue);
        border-radius: 100% 0 100% 0;
        transform: rotate(-20deg);
    }
    100% {
        /* Back to accent */
        width: 0.12em;
        height: 0.18em;
        background: var(--apple-blue);
        border-radius: 100% 0 100% 0;
        transform: rotate(-20deg);
    }
}

/* Cardio Animation Container */
.cardio-animation-container {
    position: relative;
    width: 100vw;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Sport Figures Base */
.sport-figure {
    position: absolute;
    font-size: 48px;
    color: var(--apple-blue);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* Runner Figure */
.sport-figure.runner {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, runningMotion 0.6s infinite;
}

/* Cyclist Figure */
.sport-figure.cyclist {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, cyclingMotion 0.8s infinite;
    animation-delay: 2s;
}

/* Swimmer Figure */
.sport-figure.swimmer {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, swimmingMotion 1s infinite;
    animation-delay: 4s;
}

/* Walker Figure */
.sport-figure.walker {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, walkingMotion 1s infinite;
    animation-delay: 6s;
}

/* Elliptical Figure */
.sport-figure.elliptical {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, ellipticalMotion 0.7s infinite;
    animation-delay: 8s;
}

/* Hiker Figure */
.sport-figure.hiker {
    left: -100px;
    animation: moveAcrossScreen 12s infinite linear, hikingMotion 0.9s infinite;
    animation-delay: 10s;
}

/* Movement Animations */
@keyframes moveAcrossScreen {
    0% {
        left: -100px;
    }
    100% {
        left: calc(100vw + 100px);
    }
}

/* Running Motion */
@keyframes runningMotion {
    0%, 100% {
        transform: translateY(-50%) rotate(-5deg);
    }
    50% {
        transform: translateY(-52%) rotate(5deg);
    }
}

/* Cycling Motion */
@keyframes cyclingMotion {
    0%, 100% {
        transform: translateY(-50%) rotate(-2deg);
    }
    50% {
        transform: translateY(-51%) rotate(2deg);
    }
}

/* Swimming Motion */
@keyframes swimmingMotion {
    0%, 100% {
        transform: translateY(-50%) rotate(-3deg);
    }
    25% {
        transform: translateY(-48%) rotate(0deg);
    }
    50% {
        transform: translateY(-50%) rotate(3deg);
    }
    75% {
        transform: translateY(-52%) rotate(0deg);
    }
}

/* Walking Motion */
@keyframes walkingMotion {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-52%);
    }
}

/* Elliptical Motion */
@keyframes ellipticalMotion {
    0%, 100% {
        transform: translateY(-50%) rotate(-5deg);
    }
    25% {
        transform: translateY(-48%) rotate(0deg);
    }
    50% {
        transform: translateY(-50%) rotate(5deg);
    }
    75% {
        transform: translateY(-52%) rotate(0deg);
    }
}

/* Hiking Motion */
@keyframes hikingMotion {
    0%, 100% {
        transform: translateY(-50%) rotate(-2deg);
    }
    50% {
        transform: translateY(-53%) rotate(2deg);
    }
}

/* Make sure title is on top */
.feature.alt .feature-content {
    position: relative;
}

.feature.alt .feature-title {
    position: relative;
    z-index: 10;
}

/* Ensure proper spacing for Cardio section */
.feature.alt .cardio-animation-container + .feature-text {
    position: relative;
    z-index: 5;
}

/* Community Section - Before/After Carousel */
.community-section {
    position: relative;
    overflow: hidden;
}

.community-section .feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.community-section .feature-title {
    margin-bottom: 40px;
}

.community-section .feature-text {
    margin-top: 40px;
}

/* Before/After Carousel - Full width */
.before-after-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    opacity: 1;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
}

/* Gradient fade edges for desktop only */
@media (min-width: 769px) {
    .before-after-carousel::before,
    .before-after-carousel::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 150px;
        z-index: 2;
        pointer-events: none;
    }

    .before-after-carousel::before {
        left: 0;
        background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 30%,
            rgba(255, 255, 255, 0) 100%);
    }

    .before-after-carousel::after {
        right: 0;
        background: linear-gradient(to left,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 30%,
            rgba(255, 255, 255, 0) 100%);
    }
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scrollCarousel 80s linear infinite;
    padding: 0 20px;
    will-change: transform;
    width: max-content;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@keyframes scrollCarousel {
    from {
        transform: translateX(0);
    }
    to {
        /* Move exactly 50% for seamless loop with duplicated content */
        transform: translateX(-50%);
    }
}

/* Double size card container */
.transformation-card {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
}

.card-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f5f5f7);
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 4px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card-container:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.before-after-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: var(--apple-blue);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--apple-blue);
    background: transparent;
    border: 1px solid var(--apple-blue);
    border-radius: 20px;
    margin-bottom: 30px;
    opacity: 0.8;
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-badge:hover {
    background: var(--apple-blue);
    color: var(--white);
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Download Section */
.download {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    scroll-snap-align: start;
}

.download-content {
    max-width: 600px;
}

.download-title {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.price {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--white);
}

.download-buttons {
    margin-bottom: 30px;
}

.app-store-button img {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-store-button:hover img {
    transform: scale(1.05);
}

.download-note {
    font-size: 16px;
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: var(--light-gray);
    color: var(--gray);
    font-size: 14px;
    scroll-snap-align: start;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--black);
}

/* Animations */
.fade-in {
    animation: breatheIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-delay {
    animation: breatheIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes breatheIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
}

/* Evolving title animation */
.evolving-title {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 8%,
        #f093fb 16%,
        #c471f5 24%,
        #fa71cd 32%,
        #ff6b6b 40%,
        #feca57 48%,
        #48dbfb 56%,
        #0abde3 64%,
        #00d2d3 72%,
        #a29bfe 80%,
        #6c5ce7 88%,
        #667eea 100%
    );
    background-size: 600% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: smoothEvolve 10s linear infinite;
    position: relative;
}

@keyframes smoothEvolve {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
    6.25% {
        background-position: 10% 55%;
        filter: hue-rotate(15deg) saturate(1.1) brightness(1.02);
    }
    12.5% {
        background-position: 20% 60%;
        filter: hue-rotate(30deg) saturate(1.05) brightness(0.98);
    }
    18.75% {
        background-position: 35% 65%;
        filter: hue-rotate(45deg) saturate(0.95) brightness(1.03);
    }
    25% {
        background-position: 50% 70%;
        filter: hue-rotate(60deg) saturate(1.08) brightness(0.97);
    }
    31.25% {
        background-position: 60% 60%;
        filter: hue-rotate(75deg) saturate(1.02) brightness(1.01);
    }
    37.5% {
        background-position: 70% 50%;
        filter: hue-rotate(90deg) saturate(1.12) brightness(0.99);
    }
    43.75% {
        background-position: 80% 40%;
        filter: hue-rotate(105deg) saturate(0.98) brightness(1.02);
    }
    50% {
        background-position: 85% 30%;
        filter: hue-rotate(120deg) saturate(1.06) brightness(0.96);
    }
    56.25% {
        background-position: 90% 35%;
        filter: hue-rotate(135deg) saturate(1.03) brightness(1.04);
    }
    62.5% {
        background-position: 85% 45%;
        filter: hue-rotate(150deg) saturate(0.97) brightness(0.98);
    }
    68.75% {
        background-position: 75% 55%;
        filter: hue-rotate(165deg) saturate(1.09) brightness(1.01);
    }
    75% {
        background-position: 60% 60%;
        filter: hue-rotate(180deg) saturate(1.01) brightness(0.99);
    }
    81.25% {
        background-position: 40% 55%;
        filter: hue-rotate(195deg) saturate(1.07) brightness(1.03);
    }
    87.5% {
        background-position: 20% 50%;
        filter: hue-rotate(210deg) saturate(0.96) brightness(0.97);
    }
    93.75% {
        background-position: 10% 45%;
        filter: hue-rotate(225deg) saturate(1.04) brightness(1.02);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(240deg) saturate(1) brightness(1);
    }
}

/* Subtle wave effect for additional smoothness */
@keyframes waveShift {
    0%, 100% {
        background-size: 600% 600%;
    }
    33% {
        background-size: 650% 650%;
    }
    66% {
        background-size: 550% 550%;
    }
}

/* Apply second subtle animation */
.evolving-title {
    animation: smoothEvolve 10s linear infinite, waveShift 15s ease-in-out infinite;
}

/* Typewriter effect for "Emilio siempre contigo" */
.typewriter-title {
    min-height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    line-height: 1.3;
}

.typewriter-container {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.typewriter-text {
    color: var(--apple-blue);
    word-wrap: break-word;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--apple-blue);
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
    vertical-align: text-top;
    position: relative;
    top: 0.15em;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}

.modal-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #E5E5E7;
    border-radius: 10px;
    margin-bottom: 15px;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--apple-blue);
    background: var(--white);
}

.modal-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    background: var(--apple-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-submit:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.modal-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 64px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .hero-cta {
        margin-top: 25px;
    }

    .hero-cta-text {
        font-size: 14px;
    }

    .hero-app-store-button img {
        height: 45px !important;
    }

    .hero-subtitle {
        font-size: 18px;
        max-width: 340px;
        margin: 0 auto;
    }

    .feature {
        min-height: 80vh;
        padding: 60px 20px;
    }

    .feature-content {
        max-width: 100%;
    }

    .feature-title {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 30px;
        letter-spacing: -0.03em;
    }

    .feature-text {
        font-size: 18px;
        max-width: 320px;
        margin: 0 auto;
        line-height: 1.5;
    }

    /* Reduce gap between typewriter title and subtitle on mobile */
    .feature.alt .feature-text {
        margin-top: 0;
    }

    .download-title {
        font-size: 48px;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .download-content {
        padding: 0 20px;
    }

    .price {
        font-size: 24px;
    }

    .coming-soon-badge {
        margin-bottom: 20px;
    }

    /* Cardio animation adjustments for mobile */
    .cardio-animation-container {
        height: 60px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .sport-figure {
        font-size: 32px;
        opacity: 0.5;
    }

    /* Typewriter adjustments for mobile */
    .typewriter-title {
        font-size: 36px;
        padding: 0 20px;
        height: 120px; /* Fixed height instead of min-height */
        max-width: 100%;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        position: relative;
    }

    .typewriter-text {
        word-break: break-word;
        display: inline;
        line-height: 1.3;
        max-width: calc(100% - 10px);
    }

    .typewriter-cursor {
        width: 2px;
        height: 1em;
        vertical-align: middle;
        position: relative;
        top: 0;
        margin-left: 1px;
    }

    /* Before/After Carousel Mobile Adjustments */
    .before-after-carousel {
        height: 160px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .community-section .feature-title {
        margin-bottom: 20px;
    }

    .community-section .feature-text {
        margin-top: 20px;
    }

    .transformation-card {
        width: 140px;
        height: 140px;
    }

    .carousel-track {
        gap: 15px;
        padding: 0 15px;
        animation: scrollCarousel 60s linear infinite;
    }

    .card-container {
        padding: 3px;
        border-radius: 8px;
    }

    .before-after-img {
        border-radius: 6px;
    }

    .card-label {
        padding: 1px 3px;
        font-size: 7px;
        bottom: 3px;
        left: 3px;
        right: 3px;
    }
}