/* ====== AUTONOM TRADING INDEX STYLES - FXPRO STYLE WITH CAROUSEL ====== */

/* 1. CSS Variables - FxPro Color System */
:root {
    /* Primary Colors - FxPro */
    --background-primary: #ffffff;
    --background-alternative: #000000;
    --background-secondary: #F9F9F9;
    --background-brand: #F41112;
    --background-accent: #0051FF;
    --background-cards: #F4F4F4;
    --background-blocks: #F1F1F1;
    --background-error: #F41112;
    --background-success: #00C11F;
    --background-warning: #f8c83c;
    
    /* Text Colors */
    --color-primary: #000000;
    --color-secondary: #888888;
    --color-accent: #0051FF;
    --color-success: #00C11F;
    --color-error: #F41112;
    --color-ghost: #7C7C7C;
    --color-dark: #2D3436;
    
    /* Borders & Dividers */
    --border-primary: #DBDBDB;
    --border-delimiter: #E5E5E6;
    --border-accent: #0051FF;
    --border-light: #DFE6E9;
    --border-dark: #888888;
    
    /* Typography - Inter (FxPro font) */
    --font-family-default: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 12px;
    --font-size-s: 14px;
    --font-size-base: 16px;
    --font-size-l: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 26px;
    --font-size-3xl: 30px;
    --font-size-4xl: 40px;
    --font-size-5xl: 50px;
    
    /* Font Weights */
    --font-weight-300: 300;
    --font-weight-400: 400;
    --font-weight-500: 500;
    --font-weight-600: 600;
    --font-weight-700: 700;
    
    /* Spacing */
    --space-3xs: 2px;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-s: 12px;
    --space-m: 16px;
    --space-l: 20px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 40px;
    --space-4xl: 48px;
    --space-5xl: 64px;
    
    /* Extended Spacing */
    --spacing-xs: 5px;
    --spacing-s: 10px;
    --spacing-m: 15px;
    --spacing-l: 20px;
    --spacing-xl: 25px;
    --spacing-2xl: 30px;
    --spacing-3xl: 35px;
    --spacing-4xl: 40px;
    --spacing-5xl: 50px;
    --spacing-6xl: 60px;
    --spacing-7xl: 70px;
    --spacing-8xl: 80px;
    --spacing-9xl: 90px;
    --spacing-10xl: 100px;
    
    /* Line Heights */
    --line-height-100: 1;
    --line-height-110: 1.1;
    --line-height-120: 1.2;
    --line-height-130: 1.3;
    --line-height-140: 1.4;
    --line-height-150: 1.5;
    --line-height-170: 1.7;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Z-Index */
    --z-header: 100;
    --z-overlay: 125;
    --z-chat: 140;
    --z-popup: 175;
    --z-notification: 250;
    
    /* Transitions */
    --transition-default: all 0.2s ease;
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 2. Base Styles */
body {
    font-family: var(--font-family-default);
    background-color: var(--background-primary);
    color: var(--color-primary);
    line-height: var(--line-height-150);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-l);
}

/* 3. Typography */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-700);
    line-height: var(--line-height-120);
    color: var(--color-primary);
    margin-bottom: var(--space-m);
    text-align: center;
}

.section-title .highlight {
    color: var(--background-brand);
    display: block;
}

.section-description {
    font-size: var(--font-size-l);
    color: var(--color-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    line-height: var(--line-height-150);
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    padding: var(--space-m) var(--space-2xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-600);
    line-height: 1;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-default);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #d10f0f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--border-primary);
}

.btn-secondary:hover {
    border-color: var(--border-accent);
    background-color: var(--background-secondary);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-xl) var(--space-3xl);
    font-size: var(--font-size-l);
    min-width: 200px;
}

/* 5. Hero Section */
.hero-section {
    padding: var(--spacing-10xl) 0 var(--spacing-6xl);
    background-color: var(--background-primary);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    background-color: var(--background-cards);
    padding: var(--space-s) var(--space-xl);
    border-radius: 20px;
    margin-bottom: var(--space-2xl);
}

.badge-icon {
    color: var(--background-brand);
    font-size: 18px;
}

.badge-text {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-600);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-700);
    line-height: var(--line-height-110);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.hero-title-line {
    display: block;
}

.highlight {
    color: var(--background-brand);
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-3xl);
    line-height: var(--line-height-150);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
    margin-bottom: var(--space-3xl);
}

.stat-card {
    background-color: var(--background-cards);
    padding: var(--space-xl);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-primary);
}

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 32px;
    font-weight: var(--font-weight-700);
    color: var(--background-brand);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-600);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.trust-icon {
    color: var(--color-success);
    font-size: 20px;
}

.trust-label {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-500);
    color: var(--color-secondary);
}

/* 6. Trading Terminal */
.trading-terminal {
    background-color: var(--background-cards);
    border-radius: 12px;
    padding: var(--space-2xl);
    margin-top: var(--space-4xl);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-l);
    border-bottom: 1px solid var(--border-delimiter);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-text {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-600);
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terminal-stats {
    text-align: right;
}

.profit-value {
    font-size: 28px;
    font-weight: var(--font-weight-700);
    color: var(--color-success);
    margin-bottom: var(--space-xs);
}

.profit-label {
    font-size: var(--font-size-s);
    color: var(--color-secondary);
}

.market-pairs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
}

.pair-card {
    background-color: var(--background-primary);
    border-radius: 8px;
    padding: var(--space-l);
    border: 1px solid var(--border-primary);
    transition: var(--transition-default);
}

.pair-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pair-symbol {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-700);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.pair-price {
    font-size: 24px;
    font-weight: var(--font-weight-600);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.pair-change {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-600);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.pair-change.positive {
    color: var(--color-success);
}

.pair-change.negative {
    color: var(--color-error);
}

.change-icon {
    font-size: 12px;
}

.terminal-message {
    text-align: center;
    padding-top: var(--space-l);
    border-top: 1px solid var(--border-delimiter);
    font-size: var(--font-size-s);
    color: var(--color-secondary);
}

/* 7. FOREX INSTRUMENTS CAROUSEL - AUTO-SCROLLING */
.forex-instruments-section {
    padding: var(--spacing-8xl) 0;
    background-color: var(--background-primary);
    position: relative;
    overflow: hidden;
}

/* Carousel wrapper */
.market-instruments-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-l) 0;
}

/* Fade gradients on edges */
.market-instruments-carousel::before,
.market-instruments-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.market-instruments-carousel::before {
    left: 0;
    background: linear-gradient(90deg, 
        var(--background-primary) 0%, 
        rgba(255, 255, 255, 0) 100%);
}

.market-instruments-carousel::after {
    right: 0;
    background: linear-gradient(270deg, 
        var(--background-primary) 0%, 
        rgba(255, 255, 255, 0) 100%);
}

/* Carousel track - infinite scroll */
.carousel-track {
    display: flex;
    gap: var(--space-l);
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
    animation-play-state: running;
}

/* Pause animation on hover */
.market-instruments-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 6 - var(--space-l) * 6));
    }
}

/* Duplicate track for seamless loop */
.carousel-track.duplicate {
    animation-delay: 20s;
}

/* Market Instrument Card */
.market-instrument {
    flex: 0 0 auto;
    width: 280px;
    background-color: var(--background-cards);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    padding: var(--space-xl);
    transition: var(--transition-smooth);
    position: relative;
    user-select: none;
    text-decoration: none;
    color: inherit;
    display: block;
    flex-shrink: 0;
}

.market-instrument:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: inherit;
}

.ui-block {
    width: 100%;
}

.ui-block_type-grid {
    display: grid;
}

.ui-block_gap-s {
    gap: var(--space-s);
}

.ui-block_direction-column {
    grid-auto-flow: column;
    grid-template-rows: auto 1fr;
}

.ui-block_justifyType-between {
    justify-content: space-between;
}

.ui-block_type-flex {
    display: flex;
}

.market-instrument__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
}

.market-instrument__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-m);
}

.market-instrument__symbol {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-700);
    color: var(--color-primary);
    line-height: var(--line-height-110);
}

.market-instrument__name {
    font-size: var(--font-size-xs);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-xs);
}

.market-instrument-prices {
    margin-top: auto;
}

.market-instrument-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    padding: var(--space-xs) 0;
}

.market-instrument-price:not(:last-child) {
    border-bottom: 1px solid var(--border-delimiter);
}

.price-label {
    font-size: var(--font-size-xs);
    color: var(--color-ghost);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-600);
    color: var(--color-primary);
}

.price-change-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-600);
    margin-top: var(--space-xs);
}

.price-change-indicator.positive {
    color: var(--color-success);
}

.price-change-indicator.negative {
    color: var(--color-error);
}

.change-arrow {
    font-size: 12px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-m);
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 3;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--background-cards);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-default);
    color: var(--color-primary);
    font-size: 18px;
}

.carousel-btn:hover:not(:disabled) {
    background-color: var(--background-brand);
    border-color: var(--background-brand);
    color: var(--background-primary);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Auto-play toggle */
.auto-play-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-l);
    background-color: var(--background-cards);
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: var(--transition-default);
}

.auto-play-toggle:hover {
    border-color: var(--border-accent);
    background-color: var(--background-secondary);
}

.auto-play-toggle.active {
    background-color: var(--background-success);
    border-color: var(--background-success);
    color: var(--background-primary);
}

.auto-play-toggle.active .toggle-icon {
    color: var(--background-primary);
}

.toggle-icon {
    color: var(--color-success);
    font-size: 20px;
}

.toggle-text {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-500);
}

/* Carousel progress bar */
.carousel-progress {
    height: 4px;
    background-color: var(--background-cards);
    border-radius: 2px;
    margin: var(--space-xl) auto 0;
    max-width: 300px;
    overflow: hidden;
    position: relative;
}

.carousel-progress-bar {
    height: 100%;
    background-color: var(--background-brand);
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    overflow: hidden;
}

.carousel-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Speed controls */
.speed-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    margin-top: var(--space-l);
}

.speed-btn {
    padding: var(--space-xs) var(--space-s);
    background-color: var(--background-cards);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-500);
    cursor: pointer;
    transition: var(--transition-default);
}

.speed-btn:hover {
    border-color: var(--border-accent);
    background-color: var(--background-secondary);
}

.speed-btn.active {
    background-color: var(--background-accent);
    border-color: var(--background-accent);
    color: var(--background-primary);
}

/* 8. Features Grid */
.features-section {
    padding: var(--spacing-8xl) 0;
    background-color: var(--background-blocks);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.feature-card {
    background-color: var(--background-primary);
    border-radius: 12px;
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid var(--border-primary);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--background-brand);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    color: var(--background-brand);
    margin-bottom: var(--space-l);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-700);
    color: var(--color-primary);
    margin-bottom: var(--space-s);
}

.feature-value {
    font-size: 32px;
    font-weight: var(--font-weight-600);
    color: var(--color-accent);
    margin-bottom: var(--space-s);
}

.feature-description {
    font-size: var(--font-size-base);
    color: var(--color-secondary);
    line-height: var(--line-height-150);
}

/* 9. Statistics Section */
.stats-section {
    padding: var(--spacing-8xl) 0;
    background-color: var(--background-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-2xl);
    background-color: var(--background-cards);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: var(--transition-default);
}

.stat-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 48px;
    font-weight: var(--font-weight-700);
    color: var(--background-brand);
    margin-bottom: var(--space-s);
    line-height: var(--line-height-110);
}

.stat-label {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-600);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 10. How It Works */
.how-it-works-section {
    padding: var(--spacing-8xl) 0;
    background-color: var(--background-blocks);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.step-card {
    background-color: var(--background-primary);
    border-radius: 12px;
    padding: var(--space-2xl);
    position: relative;
    border: 1px solid var(--border-primary);
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    background-color: var(--background-brand);
    color: var(--background-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-700);
    font-size: var(--font-size-base);
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-700);
    color: var(--color-primary);
    margin-bottom: var(--space-s);
}

.step-description {
    font-size: var(--font-size-base);
    color: var(--color-secondary);
    line-height: var(--line-height-150);
}

.step-icon {
    color: var(--background-brand);
    font-size: 32px;
    margin-top: var(--space-l);
    text-align: center;
}

/* 11. Testimonials */
.testimonial-section {
    padding: var(--spacing-8xl) 0;
    background-color: var(--background-primary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

.testimonial-card {
    background-color: var(--background-cards);
    border-radius: 12px;
    padding: var(--space-2xl);
    border: 1px solid var(--border-primary);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 60px;
    color: var(--background-brand);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--font-size-l);
    color: var(--color-primary);
    line-height: var(--line-height-150);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid var(--border-delimiter);
    padding-top: var(--space-l);
}

.author-name {
    font-weight: var(--font-weight-700);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.author-role {
    font-size: var(--font-size-s);
    color: var(--color-secondary);
}

/* 12. CTA Section */
.cta-section {
    padding: var(--spacing-10xl) 0;
    background-color: var(--background-alternative);
    color: var(--background-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-s) var(--space-xl);
    border-radius: 20px;
    margin-bottom: var(--space-2xl);
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-700);
    margin-bottom: var(--space-xl);
    color: var(--background-primary);
    line-height: var(--line-height-120);
}

.cta-description {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-3xl);
    line-height: var(--line-height-150);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.cta-actions {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-l);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.badge-title {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-500);
    color: rgba(255, 255, 255, 0.9);
}

/* 13. Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    @keyframes scrollInfinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 6 - var(--space-l) * 6));
        }
    }
    
    .market-instrument {
        width: 260px;
    }
}

@media (max-width: 992px) {
    .hero-stats,
    .features-grid,
    .stats-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-instruments-carousel::before,
    .market-instruments-carousel::after {
        width: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 32px;
        --font-size-3xl: 26px;
        --font-size-2xl: 22px;
        --font-size-xl: 18px;
        --font-size-l: 16px;
    }
    
    .hero-section {
        padding: var(--spacing-6xl) 0 var(--spacing-4xl);
    }
    
    .hero-stats,
    .features-grid,
    .stats-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: var(--space-l);
        align-items: center;
    }
    
    @keyframes scrollInfinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-240px * 6 - var(--space-m) * 6));
        }
    }
    
    .market-instrument {
        width: 240px;
        padding: var(--space-l);
    }
    
    .forex-instruments-section,
    .features-section,
    .stats-section,
    .how-it-works-section,
    .testimonial-section {
        padding: var(--spacing-6xl) 0;
    }
    
    .cta-section {
        padding: var(--spacing-8xl) 0;
    }
    
    .market-instruments-carousel::before,
    .market-instruments-carousel::after {
        width: 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-m);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-badge,
    .cta-badge {
        padding: var(--space-xs) var(--space-l);
    }
    
    .stat-card,
    .feature-card,
    .step-card,
    .testimonial-card {
        padding: var(--space-xl);
    }
    
    @keyframes scrollInfinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 6 - var(--space-s) * 6));
        }
    }
    
    .market-instrument {
        width: 220px;
        padding: var(--space-m);
    }
    
    .market-instruments-carousel::before,
    .market-instruments-carousel::after {
        width: 20px;
    }
    
    .auto-play-toggle {
        padding: var(--space-xs) var(--space-m);
    }
}

/* 14. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        animation: none !important;
        overflow-x: auto;
        scroll-behavior: auto;
    }
    
    .carousel-track.duplicate {
        display: none;
    }
    
    .market-instrument:hover,
    .feature-card:hover,
    .stat-card:hover,
    .step-card:hover,
    .testimonial-card:hover,
    .pair-card:hover {
        transform: none;
    }
    
    .live-dot {
        animation: none;
    }
    
    .carousel-progress-bar::after {
        animation: none;
    }
}

/* 15. Accessibility */
.keyboard-navigation .btn:focus,
.keyboard-navigation .market-instrument:focus,
.keyboard-navigation .feature-card:focus,
.keyboard-navigation .stat-card:focus,
.keyboard-navigation .step-card:focus,
.keyboard-navigation .testimonial-card:focus,
.keyboard-navigation .carousel-btn:focus,
.keyboard-navigation .auto-play-toggle:focus,
.keyboard-navigation .speed-btn:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* 16. Loading states */
.carousel-loading {
    opacity: 0.7;
    pointer-events: none;
}

.carousel-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 17. Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        animation: none;
    }
    
    .carousel-track.duplicate {
        display: none;
    }
    
    .market-instrument {
        scroll-snap-align: start;
    }
    
    .market-instruments-carousel:hover .carousel-track {
        animation-play-state: running;
    }
}
