/* Apple-inspired, dark, seamless style for GymAI */

@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --secondary: #a21caf;
    --accent: #22d3ee;
    --success: #22c55e;
    --danger: #ef4444;
    --bg-main: #0a0a0a;
    --bg-section: #11131a;
    --text-main: #f3f4f6;
    --text-secondary: #a1a1aa;
    --divider: rgba(255, 255, 255, 0.08);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 60% 0%, rgba(79, 70, 229, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 100%, rgba(162, 28, 175, 0.13) 0%, transparent 70%),
        var(--bg-main);
    background-size: cover;
    animation: none;
    filter: blur(0px) brightness(1.0);
}

main {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 80px 16px;
}

section {
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 48px;
    padding: 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    text-align: center;
    padding: 64px 16px 32px 16px;
    background: none;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0.5em 0 0.2em 0;
    color: var(--primary);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5em;
}

.subtext {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

.logo-placeholder {
    width: 90px;
    height: 90px;
    margin: 0 auto 1em auto;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    box-shadow: none;
}

.screenshots-placeholder {
    margin: 2em auto 0 auto;
    width: 100%;
    max-width: 320px;
    height: 180px;
    background: rgba(162, 28, 175, 0.10);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.app-badges {
    margin: 1.5em 0 0.5em 0;
}

.badge-placeholder {
    display: inline-block;
    background: #18181b;
    color: #f3f4f6;
    border-radius: 12px;
    padding: 0.7em 1.5em;
    font-size: 1.1rem;
    box-shadow: none;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 2em;
}

.feature-card {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 0;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    text-align: center;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7em;
    display: block;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.3em;
}

.feature-card p {
    color: var(--text-secondary);
}

.support {
    padding: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    background: #18181b;
    color: var(--text-main);
    box-shadow: none;
    resize: none;
}

.contact-form textarea {
    min-height: 90px;
}

.contact-form button {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, transform 0.1s;
}

.contact-form button:hover {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scale(1.03);
}

.faq-list {
    margin-top: 2em;
    border-top: 1px solid var(--divider);
}

.faq-item {
    margin-bottom: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-bottom: 1px solid var(--divider);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 0 18px 0;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.07);
}

.faq-answer {
    display: none;
    padding: 0 0 18px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    animation: fadeIn 0.4s;
}

.faq-item.open .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 32px 12px 18px 12px;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    background: none;
    border-top: 1px solid var(--divider);
}

.footer-links {
    margin-bottom: 0.7em;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 1.2em;
    font-weight: 600;
    transition: color 0.2s;
}

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

.screenshots-section {
    margin-bottom: 48px;
}

.screenshots-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2em;
    color: var(--primary);
    text-align: left;
}

.screenshots-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 22px;
    background: #18181b;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    border: 1.5px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    max-height: 480px;
    transition: transform 0.18s;
}

.screenshot-card:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.13);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 auto;
    max-width: 600px;
}

.carousel-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow {
    background: #18181b;
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    transition: background 0.18s, color 0.18s, transform 0.12s;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.screenshot-img {
    width: 200px;
    height: 430px;
    border-radius: 18px;
    background: linear-gradient(135deg, #23233a 60%, #2d2250 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.10);
    margin: 0 8px;
}

.coverflow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 auto;
    max-width: 1000px;
    min-height: 520px;
}

.coverflow-track {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 1380px;
    min-height: 600px;
    transition: transform 0.45s cubic-bezier(.4, 2, .6, 1);
}

.coverflow-track.slide-left {
    transform: translateX(-220px);
}

.coverflow-track.slide-right {
    transform: translateX(220px);
}

.coverflow-img {
    aspect-ratio: 1320/2868;
    height: 600px;
    width: auto;
    min-width: 276px;
    max-width: 276px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #23233a 60%, #2d2250 100%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    border: 1.5px solid var(--divider);
    will-change: transform, opacity, filter;
    transition: transform 0.45s cubic-bezier(.4, 2, .6, 1), opacity 0.45s cubic-bezier(.4, 2, .6, 1), filter 0.45s cubic-bezier(.4, 2, .6, 1);
    position: relative;
    overflow: hidden;
}

.coverflow-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #18181b;
    display: block;
}

/* 5-image window classes */
.coverflow-prev2,
.coverflow-next2 {
    opacity: 0.15;
    filter: blur(8px) grayscale(0.7) brightness(0.5);
    transform: scale(0.7);
    z-index: 0;
}

.coverflow-prev1,
.coverflow-next1 {
    opacity: 0.5;
    filter: blur(4px) grayscale(0.3) brightness(0.7);
    transform: scale(0.88);
    z-index: 1;
}

.coverflow-center {
    opacity: 1;
    filter: none;
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.18);
}

.coverflow-abs-track {
    position: relative;
    width: 276px;
    height: 600px;
    margin: 0 auto;
}

.coverflow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 276px;
    height: 600px;
    aspect-ratio: 1320/2868;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #23233a 60%, #2d2250 100%);
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    border: 1.5px solid var(--divider);
    will-change: transform, opacity, filter;
    transition: transform 0.5s cubic-bezier(.4, 2, .6, 1), opacity 0.5s cubic-bezier(.4, 2, .6, 1), filter 0.5s cubic-bezier(.4, 2, .6, 1);
    overflow: hidden;
}

.coverflow-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #18181b;
    display: block;
}

/* Default states */
.coverflow-left {
    z-index: 1;
    opacity: 0.5;
    filter: blur(4px) grayscale(0.3) brightness(0.7);
    transform: translateX(-120px) scale(0.88) rotateY(18deg);
}

.coverflow-center {
    z-index: 2;
    opacity: 1;
    filter: none;
    transform: translateX(0) scale(1.08);
    box-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.18);
}

.coverflow-right {
    z-index: 1;
    opacity: 0.5;
    filter: blur(4px) grayscale(0.3) brightness(0.7);
    transform: translateX(120px) scale(0.88) rotateY(-18deg);
}

/* Animation states */
.coverflow-abs-track.animating-left .coverflow-center {
    transform: translateX(120px) scale(0.88) rotateY(-18deg);
    opacity: 0.5;
    filter: blur(4px) grayscale(0.3) brightness(0.7);
    z-index: 1;
}

.coverflow-abs-track.animating-left .coverflow-left {
    transform: translateX(0) scale(1.08);
    opacity: 1;
    filter: none;
    z-index: 2;
}

.coverflow-abs-track.animating-left .coverflow-right {
    transform: translateX(240px) scale(0.7);
    opacity: 0;
    filter: blur(8px) grayscale(0.7) brightness(0.5);
    z-index: 0;
}

.coverflow-abs-track.animating-right .coverflow-center {
    transform: translateX(-120px) scale(0.88) rotateY(18deg);
    opacity: 0.5;
    filter: blur(4px) grayscale(0.3) brightness(0.7);
    z-index: 1;
}

.coverflow-abs-track.animating-right .coverflow-right {
    transform: translateX(0) scale(1.08);
    opacity: 1;
    filter: none;
    z-index: 2;
}

.coverflow-abs-track.animating-right .coverflow-left {
    transform: translateX(-240px) scale(0.7);
    opacity: 0;
    filter: blur(8px) grayscale(0.7) brightness(0.5);
    z-index: 0;
}

@media (max-width: 1500px) {
    .coverflow-abs-track {
        width: 176px;
        height: 400px;
    }

    .coverflow-img {
        width: 176px;
        height: 400px;
    }

    .coverflow-left {
        transform: translateX(-76px) scale(0.88) rotateY(18deg);
    }

    .coverflow-right {
        transform: translateX(76px) scale(0.88) rotateY(-18deg);
    }

    .coverflow-abs-track.animating-left .coverflow-center {
        transform: translateX(76px) scale(0.88) rotateY(-18deg);
    }

    .coverflow-abs-track.animating-left .coverflow-right {
        transform: translateX(152px) scale(0.7);
    }

    .coverflow-abs-track.animating-right .coverflow-center {
        transform: translateX(-76px) scale(0.88) rotateY(18deg);
    }

    .coverflow-abs-track.animating-right .coverflow-left {
        transform: translateX(-152px) scale(0.7);
    }
}

@media (max-width: 1000px) {
    .coverflow-abs-track {
        width: 88px;
        height: 200px;
    }

    .coverflow-img {
        width: 88px;
        height: 200px;
    }

    .coverflow-left {
        transform: translateX(-38px) scale(0.88) rotateY(18deg);
    }

    .coverflow-right {
        transform: translateX(38px) scale(0.88) rotateY(-18deg);
    }

    .coverflow-abs-track.animating-left .coverflow-center {
        transform: translateX(38px) scale(0.88) rotateY(-18deg);
    }

    .coverflow-abs-track.animating-left .coverflow-right {
        transform: translateX(76px) scale(0.7);
    }

    .coverflow-abs-track.animating-right .coverflow-center {
        transform: translateX(-38px) scale(0.88) rotateY(18deg);
    }

    .coverflow-abs-track.animating-right .coverflow-left {
        transform: translateX(-76px) scale(0.7);
    }
}

@media (max-width: 700px) {
    .carousel-container {
        max-width: 320px;
        gap: 10px;
    }

    .screenshot-img {
        width: 120px;
        height: 260px;
        font-size: 0.95rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (max-width: 700px) {
    main {
        padding: 16px 2vw 80px 2vw;
    }

    .features-list {
        flex-direction: column;
        gap: 18px;
    }

    .feature-card {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .hero {
        min-height: 320px;
        padding: 32px 4vw 24px 4vw;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .features {
        padding: 18px 2vw;
    }

    .support,
    .faq {
        padding: 18px 2vw;
    }
}