/* HyroxMemo/public/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Hyrox Yellow #F5C400 */
    --primary: #F5C400;
    --primary-hover: #C79A00;
    --primary-light: #FFD84D;

    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #181818;
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(20, 20, 20, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes hero-particle-drift-1 {
    0% {
        transform: translate3d(-3%, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(3%, -3%, 0) scale(1.03);
    }

    100% {
        transform: translate3d(-2%, 3%, 0) scale(0.98);
    }
}

@keyframes hero-particle-drift-2 {
    0% {
        transform: translate3d(2%, 1%, 0) scale(0.98);
    }

    50% {
        transform: translate3d(-3%, 3%, 0) scale(1.02);
    }

    100% {
        transform: translate3d(2%, -2%, 0) scale(1);
    }
}

@keyframes hero-particle-twinkle {
    0%,
    100% {
        opacity: 0.28;
    }

    50% {
        opacity: 0.56;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Utilities */
.gradient-text {
    background: linear-gradient(90deg, #FFFFFF 0%, #FFE680 50%, #F5C400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    padding: 160px 40px 80px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 45%, rgba(245, 196, 0, 0.08) 0%, rgba(5, 5, 5, 0) 42%);
    filter: blur(24px);
    pointer-events: none;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes::before,
.hero-bg-shapes::after {
    content: '';
    position: absolute;
    inset: -18%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-shapes::before {
    background:
        radial-gradient(circle at 7% 18%, rgba(245, 196, 0, 0.85) 0 1px, rgba(245, 196, 0, 0.22) 2px, transparent 8px),
        radial-gradient(circle at 21% 32%, rgba(245, 196, 0, 0.9) 0 1px, rgba(245, 196, 0, 0.24) 2px, transparent 9px),
        radial-gradient(circle at 34% 13%, rgba(245, 196, 0, 0.8) 0 1px, rgba(245, 196, 0, 0.2) 2px, transparent 8px),
        radial-gradient(circle at 46% 40%, rgba(245, 196, 0, 0.9) 0 1px, rgba(245, 196, 0, 0.22) 2px, transparent 9px),
        radial-gradient(circle at 58% 24%, rgba(245, 196, 0, 0.86) 0 1px, rgba(245, 196, 0, 0.22) 2px, transparent 8px),
        radial-gradient(circle at 70% 48%, rgba(245, 196, 0, 0.85) 0 1px, rgba(245, 196, 0, 0.2) 2px, transparent 9px),
        radial-gradient(circle at 82% 22%, rgba(245, 196, 0, 0.9) 0 1px, rgba(245, 196, 0, 0.24) 2px, transparent 8px),
        radial-gradient(circle at 92% 38%, rgba(245, 196, 0, 0.82) 0 1px, rgba(245, 196, 0, 0.18) 2px, transparent 8px);
    filter: blur(0.2px);
    animation: hero-particle-drift-1 22s ease-in-out infinite alternate, hero-particle-twinkle 5.2s ease-in-out infinite;
}

.hero-bg-shapes::after {
    background:
        radial-gradient(circle at 12% 62%, rgba(245, 196, 0, 0.75) 0 1px, rgba(245, 196, 0, 0.16) 2px, transparent 10px),
        radial-gradient(circle at 27% 72%, rgba(245, 196, 0, 0.78) 0 1px, rgba(245, 196, 0, 0.18) 2px, transparent 10px),
        radial-gradient(circle at 41% 62%, rgba(245, 196, 0, 0.76) 0 1px, rgba(245, 196, 0, 0.16) 2px, transparent 10px),
        radial-gradient(circle at 56% 74%, rgba(245, 196, 0, 0.8) 0 1px, rgba(245, 196, 0, 0.18) 2px, transparent 10px),
        radial-gradient(circle at 68% 60%, rgba(245, 196, 0, 0.74) 0 1px, rgba(245, 196, 0, 0.16) 2px, transparent 10px),
        radial-gradient(circle at 83% 70%, rgba(245, 196, 0, 0.78) 0 1px, rgba(245, 196, 0, 0.18) 2px, transparent 10px);
    filter: blur(0.4px);
    animation: hero-particle-drift-2 27s ease-in-out infinite alternate, hero-particle-twinkle 6.8s ease-in-out infinite reverse;
}

.shape {
    display: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 196, 0, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.1) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    animation-delay: -5s;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

.hero-phone {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 260px;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    filter: drop-shadow(0 30px 80px rgba(245, 196, 0, 0.15));
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(0deg) scale(1.02);
}

.phone-frame {
    position: relative;
    border-radius: 40px;
    background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
    padding: 8px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.6);
}

.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    position: relative;
    aspect-ratio: 9/19.5;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats Section */
.stats {
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h4 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(245, 196, 0, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(245, 196, 0, 0.2);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* Features */
.features {
    padding: 140px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 48px 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(245, 196, 0, 0.1), rgba(245, 196, 0, 0.05));
    border: 1px solid rgba(245, 196, 0, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Flow Section */
.flow-section {
    padding: 120px 40px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.flow-steps {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    z-index: 0;
}

.flow-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 0 10px var(--bg-dark);
}

.flow-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.flow-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Screenshots */
.screenshots {
    padding: 140px 40px;
    background: #020202;
    overflow: hidden;
}

.screenshots-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.screenshot-carousel {
    position: relative;
    margin-top: 60px;
}

.screenshot-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-track::-webkit-scrollbar {
    display: none;
}

.screenshot-slide {
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.screenshot-image-wrapper {
    flex: 0 0 auto;
    width: 260px;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.screenshot-image-wrapper img {
    width: 100%;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.screenshot-content {
    flex: 0 0 500px;
    text-align: left;
}

.screenshot-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.screenshot-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Reviews Section */
.reviews-section {
    padding: 140px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.review-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 14px;
}

.review-quote {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    color: #ddd;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #888;
}

.author-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 100px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 60px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    padding: 160px 40px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(245, 196, 0, 0.08) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 196, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 3s infinite;
}

.cta-section h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* Buttons and Nav */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.hero-content .cta-buttons {
    justify-content: flex-start;
    width: 100%;
}

.app-store-badge {
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.cta-section .app-store-badge img {
    height: 64px;
    width: auto;
}

.app-store-badge:hover {
    transform: translateY(-2px);
}

.btn {
    padding: 14px 28px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.screenshot-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-nav-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #000;
}

.screenshot-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}

.screenshot-nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.screenshot-dots {
    display: flex;
    gap: 12px;
}

.screenshot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .hero::before,
    .hero-bg-shapes::before,
    .hero-bg-shapes::after,
    .shape {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 140px;
        display: block;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content .cta-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flow-steps::before {
        display: none;
    }

    .screenshot-slide {
        flex-direction: column;
        gap: 32px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .screenshot-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .hero,
    .stats,
    .features,
    .flow-section,
    .screenshots,
    .reviews-section,
    .faq-section,
    .cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal Scroll for Features on Mobile */
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        margin-left: -20px;
        /* Counteract section padding for full bleed */
        margin-right: -20px;
        padding-left: 20px;
        /* Restore visual padding */
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        min-width: 280px;
        /* Fixed width for scroll cards */
        scroll-snap-align: center;
        padding: 32px 24px;
    }

    /* Horizontal Scroll for Reviews on Mobile */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        min-width: 280px;
        /* Fixed width for scroll cards */
        scroll-snap-align: center;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .phone-mockup {
        width: 220px;
    }

    .screenshot-image-wrapper {
        width: 160px;
    }

    .screenshot-content h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .screenshot-content p {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .screenshot-nav {
        margin-top: 20px;
    }

    .screenshots {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}
