/* Variables & Reset */
:root {
    --color-primary: #005BFF;
    --color-primary-hover: #0046c7;
    --color-bg: #05050A;
    /* Dark blue-black */
    --color-bg-secondary: #0A0A12;
    --color-text: #FFFFFF;
    --color-text-muted: #A0A0B0;
    --color-neon: #69E2FF;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-xxl: 96px;

    --container-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-neon), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
    /* Ensure content is above canvas */
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-12 {
    grid-column: span 12;
}

/* Utilities */
.text-center {
    text-align: center;
}

.items-center {
    align-items: center;
}

/* Components */
.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3);
}

.input-group {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--color-glass);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(10px);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 16px;
    color: white;
    font-family: var(--font-main);
    outline: none;
}

.input-group input::placeholder {
    color: var(--color-text-muted);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 var(--spacing-xl);
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Canvas Container for Three.js */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but form needs pointer-events */
}

.hero-content>* {
    pointer-events: auto;
    /* Re-enable pointer events for content */
}

.badge-new {
    display: inline-block;
    background: rgba(105, 226, 255, 0.1);
    color: var(--color-neon);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(105, 226, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-background-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 91, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Why Section */
.why-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    z-index: 2;
    background: var(--color-bg);
    /* Ensure it covers canvas if needed */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* Running Animation Section */
.running-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.running-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.running-content {
    flex: 1;
    z-index: 2;
}

.running-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.running-subtitle {
    font-size: 1.2rem;
    color: var(--color-neon);
}

.running-visual {
    flex: 1;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lottie-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* How Section */
.how-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-secondary);
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 91, 255, 0.5);
}

.timeline-content {
    width: 45%;
    background: var(--color-glass);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-glass-border);
}

/* Testimonials Carousel */
.testimonials-section {
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
    /* Hide overflow for infinite scroll */
    position: relative;
    z-index: 2;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    cursor: grab;
    perspective: 1200px;
    /* Add perspective for 3D effect */
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    width: max-content;
    /* Allow track to be as wide as needed */
    will-change: transform;
    /* Optimize for performance */
    transform-style: preserve-3d;
    /* Enable 3D transforms for children */
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    background: var(--color-glass);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-glass-border);
    user-select: none;
    /* Prevent text selection during drag */
    transition: transform 0.1s linear, opacity 0.1s linear;
    /* Smooth updates from JS */
    /* Initial state */
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

.author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info strong {
    display: block;
    color: white;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.cta-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-visual-placeholder {
    width: 200px;
    height: 200px;
    background: var(--color-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-glass-border);
    animation: float 6s ease-in-out infinite;
}

.floating-icon {
    font-size: 5rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cta-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
}

/* Registration Page Styles */
.register-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.anim-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#runner-lottie {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1200px;
    opacity: 0.3;
    filter: drop-shadow(0 0 30px rgba(0, 91, 255, 0.6));
}

#register-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.register-container {
    position: relative;
    z-index: 10;
    /* Ensure high z-index */
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Stack card and copyright */
    align-items: center;
    justify-content: center;
}

.register-card {
    width: 100%;
    background: rgba(20, 20, 30, 0.7);
    /* Darker, more visible background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    /* Reset transform */
    opacity: 1;
    /* Ensure visible */
    text-align: center;
    /* Force center text */
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.register-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

.register-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.register-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
    /* Align labels left */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 91, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 14px;
    font-size: 1.1rem;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(0, 91, 255, 0.4);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 91, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 91, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 91, 255, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .grid-12 {
        display: flex;
        flex-direction: column;
    }

    .col-span-6,
    .col-span-4 {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        flex-direction: column-reverse;
        padding-top: 80px;
        text-align: center;
    }

    .running-container {
        flex-direction: column;
        text-align: center;
    }

    .running-visual {
        width: 100%;
        height: 300px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 60px;
    }

    .timeline-number {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Register Page Mobile */
    .register-card {
        padding: 24px;
    }

    .register-title {
        font-size: 1.5rem;
    }

    #runner-lottie {
        transform: translate(-50%, -50%) scale(0.6);
        /* Scale down runner on mobile */
        bottom: auto;
    }
}

/* Copyright Footer */
.copyright-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.copyright-footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Confirmation Page Styles */
.confirmation-page {
    min-height: 100vh;
    background-color: var(--color-bg);
    color: white;
    overflow-x: hidden;
    position: relative;
}

.confirmation-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    /* Space for footer */
}

.confirmation-content {
    padding-right: var(--spacing-lg);
}

.success-icon-container {
    margin-bottom: var(--spacing-md);
}

.benefits-box {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    backdrop-filter: blur(10px);
}

.benefits-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-neon);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.check-icon {
    color: #10B981;
    /* Success Green */
    font-weight: bold;
}

.community-section {
    margin-bottom: var(--spacing-lg);
}

.community-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.community-grid {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.community-btn.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.community-btn.telegram {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.community-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: white;
    border-color: white;
}

/* Right Visual */
.visual-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.happy-man-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 91, 255, 0.3));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 5s ease-in-out infinite;
}

.card-1 {
    bottom: 20%;
    left: -10%;
}

.floating-card .icon {
    font-size: 2rem;
}

.floating-card .text strong {
    display: block;
    color: white;
    font-size: 0.9rem;
}

.floating-card .text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Animations */
.animate-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.animate-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Confetti Canvas */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Confirmation */
@media (max-width: 768px) {
    .confirmation-container {
        padding-top: 40px;
        text-align: center;
    }

    .confirmation-content {
        padding-right: 0;
        order: 2;
    }

    .confirmation-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .visual-wrapper {
        height: 300px;
    }

    .benefits-list li {
        justify-content: flex-start;
        text-align: left;
    }

    .community-grid {
        justify-content: center;
    }

    .card-1 {
        left: 5%;
        bottom: 10%;
    }
}