/* ========================================
   TRADE MANAGER LANDING PAGE - CSS
   Modular Structure
   ======================================== */

/* Sections - Features, How It Works, Pricing, FAQ, etc. */

section {
    padding: 100px 0;
    position: relative;
}

section:not(:last-of-type)::after {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    border-bottom: none;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    display: none;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 60px;
        opacity: 0.6;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    border-bottom: none;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-top: none;
    border-bottom: none;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 102px
        );
    animation: sectionLinesMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

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

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.01) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.01) 0%, transparent 40%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 1;
    border-top: none;
    border-bottom: none;
}

/* Advanced Features Section */
.advanced-features {
    background: var(--bg-tertiary);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.005) 100px,
            rgba(255, 255, 255, 0.005) 102px
        );
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.advanced-features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 150px,
            rgba(255, 255, 255, 0.008) 150px,
            rgba(255, 255, 255, 0.008) 152px
        );
    animation: horizontalLinesMove 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes horizontalLinesMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(150px);
    }
}

.advanced-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.advanced-features .container {
    position: relative;
    z-index: 1;
}

.advanced-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Feature List Toggle Button (Mobile) */
.feature-list-toggle {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.feature-list-toggle:hover {
    background: rgba(0, 255, 136, 0.15);
    transform: translateY(-1px);
}

.feature-list-toggle.expanded svg {
    transform: rotate(180deg);
}

.feature-list-toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Risk Disclosure Section */
.risk-disclosure {
    background: var(--bg-dark);
    background-image: 
        linear-gradient(180deg, rgba(255, 0, 0, 0.02) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 0, 0, 0.01) 40px,
            rgba(255, 0, 0, 0.01) 42px
        );
    border-top: 1px solid rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
    padding: 4rem 0;
    position: relative;
}

.risk-disclosure-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.risk-disclosure-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.risk-disclosure-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.5), transparent);
}

.risk-disclosure-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.risk-disclosure-text p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.risk-disclosure-text p:last-child {
    margin-bottom: 0;
}

.risk-disclosure-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.advanced-feature-card {
    background: var(--bg-card);
    background-image: 
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advanced-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.008) 15px,
            rgba(255, 255, 255, 0.008) 30px
        );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.advanced-feature-card:hover::after {
    opacity: 1;
}

.advanced-feature-card > * {
    position: relative;
    z-index: 1;
}

.advanced-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.advanced-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes borderSlide {
    0% {
        background-position: -100% 0;
        transform: translateX(-100%);
    }
    100% {
        background-position: 100% 0;
        transform: translateX(100%);
    }
}

.advanced-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 112, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.advanced-feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.advanced-feature-card:hover .advanced-feature-icon {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

@keyframes iconRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}


.advanced-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advanced-feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.advanced-feature-list {
    list-style: none;
    margin-top: 1rem;
}

.advanced-feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.advanced-feature-list li::before {
    content: '\2713';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
}

/* API & Integrations Section */
.api-section {
    background: var(--bg-primary);
    position: relative;
}

.api-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.003) 50px,
            rgba(255, 255, 255, 0.003) 52px
        );
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.api-section .container {
    position: relative;
    z-index: 1;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.api-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.api-code {
    background: #0A0A0A;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    overflow-x: auto;
}

/* Security Section */
.security-section {
    background: var(--bg-tertiary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 40%);
    position: relative;
}

.security-section .container {
    position: relative;
    z-index: 1;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.security-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Analytics Section */
.analytics-section {
    background: var(--bg-secondary);
    position: relative;
}

.analytics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.005) 1deg,
            transparent 2deg
        );
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.analytics-section .container {
    position: relative;
    z-index: 1;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.analytics-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.analytics-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.analytics-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Feature Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.comparison-table .cross {
    color: var(--text-tertiary);
    font-weight: 700;
}

/* Professional Badge */
.professional-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 
                0 0 40px rgba(0, 255, 136, 0.3),
                0 4px 15px rgba(0, 255, 136, 0.4);
    z-index: 10;
    animation: badgeGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 
                    0 0 40px rgba(0, 255, 136, 0.3),
                    0 4px 15px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.7), 
                    0 0 60px rgba(0, 255, 136, 0.5),
                    0 4px 20px rgba(0, 255, 136, 0.6);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 3rem;
    border-top: none;
    border-bottom: none;
}

/* Features Carousel Wrapper - Hidden on desktop, shown on mobile */
.features-carousel-wrapper {
    display: none;
    width: 100%;
    position: relative;
    margin-top: 2rem;
}

/* Features Carousel Container */
.features-carousel {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: auto;
    overflow: hidden;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-carousel .feature-card {
    position: absolute;
    width: 95%;
    max-width: 400px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.features-carousel .feature-card.active {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: all;
    z-index: 3;
    position: relative;
}

.features-carousel .feature-card.prev {
    transform: translateX(-150%);
    opacity: 0;
    pointer-events: none;
}

.features-carousel .feature-card.next {
    transform: translateX(50%);
    opacity: 0;
    pointer-events: none;
}

/* Features Carousel Navigation */
.features-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.features-carousel-prev,
.features-carousel-next {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    flex-shrink: 0;
}

.features-carousel-prev:hover,
.features-carousel-next:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.features-carousel-prev:active,
.features-carousel-next:active {
    transform: scale(0.95);
}

.features-carousel-prev svg,
.features-carousel-next svg {
    width: 20px;
    height: 20px;
}

.features-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
}

.features-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.features-carousel-dot.active {
    background: var(--primary-color);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.features-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    background-image: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: cardShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translate(-50%, -50%);
        opacity: 0;
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.01) 10px,
            rgba(255, 255, 255, 0.01) 20px
        );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

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

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 112, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: iconFloat 3s ease-in-out infinite;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

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

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.feature-card:hover .feature-image {
    opacity: 0.8;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.004) 30px,
            rgba(255, 255, 255, 0.004) 32px
        );
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    position: relative;
    letter-spacing: -0.05em;
}

.step-number::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    border-radius: 4px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.step-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.7;
}

/* Pricing Section */
.pricing {
    background: var(--bg-primary);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.pricing .container {
    position: relative;
    z-index: 1;
}

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 1rem;
}

.billing-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.discount-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.billing-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.billing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 50%;
}

.billing-toggle input:checked + .toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.billing-toggle input:checked + .toggle-slider:before {
    transform: translateX(28px);
    background-color: var(--bg-primary);
}

.billing-toggle input:checked ~ .billing-label {
    color: var(--primary-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* 3D Carousel Wrapper - Hidden on desktop, shown on mobile */
.pricing-carousel-wrapper {
    display: none;
    width: 100%;
    position: relative;
    overflow: visible;
    margin-bottom: 1rem;
}

/* 3D Carousel Container */
.pricing-carousel {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: auto;
    perspective: 1000px;
    overflow: visible;
    padding: 2.5rem 0 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-carousel .pricing-card {
    position: absolute;
    width: 90%;
    max-width: 340px;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) translateZ(-300px) scale(0.8);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                filter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    border-width: 1px;
    border-style: solid;
    border-color: var(--border-color);
    pointer-events: none;
    z-index: 1;
    margin: 0;
    max-height: none;
    overflow: visible;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pricing-carousel .pricing-card.active {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    opacity: 1;
    pointer-events: all;
    z-index: 3;
    filter: brightness(1);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.2);
    cursor: default;
}

.pricing-carousel .pricing-card.prev {
    transform: translate(-120%, -50%) translateZ(-150px) scale(0.85);
    opacity: 0.3;
    filter: brightness(0.5) blur(2px);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    pointer-events: all;
}

.pricing-carousel .pricing-card.next {
    transform: translate(20%, -50%) translateZ(-150px) scale(0.85);
    opacity: 0.3;
    filter: brightness(0.5) blur(2px);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    pointer-events: all;
}

.pricing-carousel .pricing-card.featured.active {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    box-shadow: 0 25px 80px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-color);
    border-width: 2px;
}

/* Carousel Navigation */
.pricing-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.pricing-carousel-prev,
.pricing-carousel-next {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    flex-shrink: 0;
}

.pricing-carousel-prev:hover,
.pricing-carousel-next:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.pricing-carousel-prev:active,
.pricing-carousel-next:active {
    transform: scale(0.95);
}

.pricing-carousel-prev svg,
.pricing-carousel-next svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.pricing-carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.pricing-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pricing-carousel-dot.active {
    background: var(--primary-color);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.pricing-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Carousel cards should not clip content - no scrolling inside cards */
/* But on mobile, we need to clip to prevent green bar from button ::before */
.pricing-carousel .pricing-card {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .pricing-carousel .pricing-card {
        overflow: hidden !important;
    }
}

/* Disable rotating gradient on carousel cards to prevent green bar showing */
.pricing-carousel .pricing-card::before {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
    background: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure no scrolling inside carousel card feature lists */
.pricing-carousel .pricing-card .pricing-features {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.pricing-carousel .pricing-card .pricing-features li {
    overflow: visible !important;
}

/* Ensure pricing card content doesn't scroll - but only for carousel cards */
.pricing-carousel .pricing-card .pricing-features,
.pricing-carousel .pricing-card .pricing-name,
.pricing-carousel .pricing-card .pricing-price,
.pricing-carousel .pricing-card .pricing-description,
.pricing-carousel .pricing-card .btn {
    overflow: visible !important;
    max-height: none !important;
}

/* Ensure regular pricing cards (not in carousel) still work normally */
.pricing-grid .pricing-card {
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border-radius: 16px;
    opacity: 0;
}

/* Featured cards: position glass reflection below the top border */
.pricing-card.featured::before {
    top: 4px !important;
    height: calc(100% - 4px) !important;
    z-index: 5 !important;
    border-radius: 0 0 16px 16px !important;
}

/* Glass reflection animation for featured cards on hover */
.pricing-card.featured:hover::before {
    left: 100% !important;
    opacity: 1 !important;
}

@keyframes pricingRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Glass reflection animation on hover - regular cards */
.pricing-card:not(.featured):hover::before {
    left: 100%;
    opacity: 1;
}

/* Featured card overflow already set above */

/* Featured card glass reflection positioning already handled above */

/* Ensure card content appears above reflection */
.pricing-card > * {
    position: relative;
    z-index: 2;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* Featured card uses ::after for top border, ::before is disabled to prevent rotating line */
.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    /* Match the card's top border radius exactly */
    border-radius: 16px 16px 0 0;
    z-index: 25;
    pointer-events: none;
    width: 100%;
    /* Ensure it stays within the card's rounded corners */
    overflow: hidden;
}

.pricing-card.featured .pricing-card::before {
    display: none !important;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    z-index: 30;
    animation: badgePulse 2s ease-in-out infinite;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: none;
    filter: none;
    will-change: box-shadow, transform;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-amount .original-price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
    position: relative;
}

.price-amount .original-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-secondary);
    opacity: 0.8;
}

.yearly-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.yearly-price .original-price {
    font-size: 1.5rem;
    order: 1;
}

.yearly-price .discounted-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    order: 2;
}

.yearly-savings {
    margin-top: 0.5rem;
}

.savings-amount {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-card.yearly-active .yearly-price {
    display: flex !important;
}

.pricing-card.yearly-active .monthly-price {
    display: none !important;
}

.pricing-card.yearly-active .yearly-savings {
    display: block !important;
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    z-index: 30;
    animation: badgePulse 2s ease-in-out infinite;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: none;
    filter: none;
    will-change: box-shadow, transform;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 255, 136, 0.5);
        transform: translateX(-50%) scale(1.02);
    }
}


.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.75rem;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-family: Arial, sans-serif;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-secondary);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating .star {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.125rem;
    border: 3px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    position: relative;
}

.testimonial-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.1);
    animation: avatarPulse 2s ease-in-out infinite;
}

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

.testimonial-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Trust Badges Section */
.trust-badges {
    background: var(--bg-tertiary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.trust-badges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.trust-badges .container {
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon-wrapper {
    transform: scale(1.1);
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.trust-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.trust-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.trust-item:hover .trust-icon {
    filter: grayscale(0);
}

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

/* Supported Brokers Section */
.supported-brokers {
    background: var(--bg-primary);
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.supported-brokers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.supported-brokers .container {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.brokers-carousel-wrapper {
    margin-top: 3rem;
    padding: 12px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    isolation: isolate;
}

/* Viewport wrapper that clips the visible area */
.brokers-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    /* Clips the visible area but allows carousel to extend */
}

.carousel-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    /* Ensure buttons stay outside transform context */
    transform: translateZ(0);
}

.carousel-nav:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}

.brokers-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 8px 0;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    position: relative;
    cursor: grab;
    /* Ensure transform doesn't affect parent */
    will-change: transform;
    /* Ensure smooth loop reset */
    transform: translateX(0);
    /* Allow content to extend beyond for animation */
    contain: none;
    /* Default flex behavior for manual mode */
    width: 100%;
    overflow-x: hidden;
}

/* Auto-scroll animation - infinite loop */
.brokers-carousel:not(.manual-mode) {
    animation: scrollBrokers 25s linear infinite;
    overflow-x: visible !important;
    overflow-y: hidden;
    pointer-events: none;
    /* Remove width constraints to allow natural content width */
    width: max-content;
    /* Content will be 16 items wide (8 original + 8 duplicate) */
    /* Transform -50% moves exactly half the total width */
    /* Viewport clips visible area, carousel extends beyond */
    /* Items on the right become visible as transform moves them into viewport */
}

.brokers-carousel:not(.manual-mode):hover {
    animation-play-state: paused;
}

.brokers-carousel::-webkit-scrollbar {
    display: none;
}

.brokers-carousel.manual-mode:active {
    cursor: grabbing;
}

.brokers-carousel.active {
    cursor: grabbing;
}

.brokers-carousel.active .broker-item {
    pointer-events: auto;
}

.brokers-carousel.active a.broker-item {
    pointer-events: auto !important;
    cursor: pointer;
}

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

.brokers-carousel:not(.manual-mode) .broker-item {
    pointer-events: auto;
}

/* Manual mode - when user interacts */
.brokers-carousel.manual-mode {
    animation: none !important;
    overflow-x: auto !important;
    cursor: grab;
    pointer-events: auto;
    transform: translateX(0) !important;
}

.broker-item {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    width: 200px;
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.broker-item:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.05);
    z-index: 10;
    position: relative;
}

.broker-placeholder {
    width: 100%;
    min-height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1.25rem;
    text-align: center;
    white-space: nowrap;
}

.broker-item:hover .broker-placeholder {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.broker-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.broker-item:hover .broker-logo {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
    transform: scale(1.05);
}

/* Performance Metrics Section */
.performance-metrics {
    background: var(--bg-secondary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.performance-metrics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.performance-metrics .container {
    position: relative;
    z-index: 1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.metric-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

.metric-card:hover .metric-icon {
    opacity: 1;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.metric-chart {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: width 1s ease;
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trust-badges,
    .performance-metrics {
        padding: 4rem 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .supported-brokers {
        padding: 4rem 0;
    }

    .brokers-carousel-wrapper {
        margin-top: 2rem;
        gap: 1rem;
        overflow: hidden;
        padding: 8px 0;
    }

    .broker-item {
        width: 160px;
    }

    .broker-placeholder {
        min-height: 70px;
        font-size: 0.85rem;
        padding: 1rem;
    }

    .brokers-carousel {
        gap: 1rem;
        width: max-content !important;
        max-width: none !important;
    }
    
    .brokers-carousel:not(.manual-mode) {
        animation: scrollBrokers 18s linear infinite !important;
        overflow-x: visible !important;
        pointer-events: none;
    }
    
    .brokers-carousel-viewport {
        overflow: hidden !important;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 2.5rem;
    }
}

/* FAQ Section */
.faq {
    background: var(--bg-primary);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.02) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2147483647;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 2147483647 !important;
        position: relative !important;
    }
    
    /* Ensure scroll progress doesn't interfere */
    .scroll-progress {
        z-index: 1 !important;
    }
    
    /* Ensure body::before doesn't interfere */
    body.menu-open::before {
        z-index: -1 !important;
        display: none !important;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Scroll Progress Indicator */
/* Internal Links Styling */
.internal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.internal-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.back-to-top:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top.visible {
    display: flex;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-color);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    }
}

.scroll-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 ease-in-out infinite;
}

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

/* CTA Section */
.cta {
    background: linear-gradient(180deg, #000000 0%, #050505 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-subtext {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
