/* Home Page Refined Styles */

/* Hero Carousel */
.hero-carousel {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-slides {
    width: 100%;
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.slide-title {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a2b48; /* Dark navy from ref */
}

.slide-subtitle {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
    max-width: 500px;
}

.slide-image {
    position: relative;
    z-index: 2;
}

.slide-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Decorative elements on image */
.slide-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    z-index: -1;
    border-radius: 4px;
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 120px;
    background: #2b59ff; /* Blue accent from ref */
    opacity: 0.1;
    z-index: -1;
    transform: translateY(-50%);
}

/* Carousel Nav */
.carousel-nav {
    position: absolute;
    bottom: 60px;
    width: 100%;
    z-index: 10;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.nav-arrow {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.nav-arrow:hover {
    color: var(--primary-color);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Background Patterns */
.bg-dots {
    position: absolute;
    width: 150px;
    height: 300px;
    background-image: radial-gradient(#ddd 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 1;
}

.bg-dots.left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.bg-dots.right {
    top: 20%;
    right: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .slide-title { font-size: 42px; }
}

@media (max-width: 992px) {
    .slide-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .slide-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slide-image {
        order: 1;
        margin-bottom: 40px;
    }
    
    .nav-controls {
        justify-content: center;
    }
    
    .hero-slide { padding: 60px 0 120px; }
}

@media (max-width: 768px) {
    .slide-title { font-size: 32px; }
    .bg-dots { display: none; }
}

/* Why Us */
.why-us {
    background: #fff;
    padding: 80px 0;
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    padding: 40px;
    border: 1px solid #eee;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color); /* Changed to primary color background */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 30px;
    color: #000; /* Icon color is Black */
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Steps Section */
.steps-wrapper {
    position: relative;
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(198, 241, 49, 0.2);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 30px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a2b48;
}

.step-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.steps-dots {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-dots {
        display: none;
    }
}

/* Trading Conditions Section */
.conditions-section {
    background-color: #0a0c0e; /* Match site dark theme */
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.condition-card {
    background: #111418;
    padding: 40px 30px;
    border-radius: 4px;
    color: #fff;
    border: 1px solid #222;
    transition: var(--transition-base);
}

.condition-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.condition-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #000;
}

.condition-icon svg {
    width: 28px;
    height: 28px;
}

.condition-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.condition-card p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

/* Account Types Section */
.account-types-section {
    padding: 100px 0;
    background: #fff;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tabs-nav {
    display: flex;
    gap: 15px;
    margin: 40px 0 30px;
}

.tab-btn {
    padding: 12px 30px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.account-content h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #000;
}

.account-content .desc {
    color: #444;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #000;
}

.features-list li svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.account-image {
    position: relative;
}

.account-image img {
    width: 100%;
    border-radius: 8px;
}

/* Instruments Section */
.instruments-section {
    background: var(--bg-light-accent);
    padding: 100px 0;
}

.instruments-carousel {
    position: relative;
    overflow: hidden;
}

.instruments-slides {
    position: relative;
    width: 100%;
}

.instrument-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.instrument-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.instruments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.instruments-header p {
    max-width: 600px;
    color: #444;
}

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

.instrument-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.instrument-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.instrument-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.instrument-tags {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    color: #000;
}

.instrument-tags span {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.instrument-actions {
    display: flex;
    gap: 15px;
}

.instrument-actions .btn-outline {
    border-color: #ddd;
    color: #000;
}

.instrument-actions .btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

@media (max-width: 1200px) {
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .account-grid, .instruments-grid {
        grid-template-columns: 1fr;
    }
    
    .account-image {
        order: -1;
    }
    
    .instruments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
}

/* Review Strip */
.review-strip {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-content strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.stars { color: var(--primary-color); letter-spacing: 2px; }

/* Trust Section */
.trust-key-section {
    padding: 80px 0;
}

.trust-description {
    max-width: 900px;
    margin: 30px auto 40px;
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: #fdfdfd;
    padding: 80px 0;
}

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

.stat-box {
    padding: 20px;
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    margin-bottom: 15px;
}

.stat-val {
    font-size: 42px;
    font-weight: 800;
}

/* Payment Section */
.payment-section {
    padding: 80px 0;
}

.payment-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    opacity: 0.3;
    flex-wrap: wrap;
}

.payment-grid img { height: 40px; filter: grayscale(1); }

/* Testimonials */
.testimonial-section {
    background: #fff;
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light-accent);
    padding: 40px;
    border-radius: 4px;
}

.testimonial-card.featured {
    background: var(--primary-color);
}

.testimonial-card h3 { font-size: 22px; margin: 20px 0; }
.testimonial-card p { font-size: 16px; line-height: 1.6; margin-bottom: 30px; }
.testimonial-card .author { font-weight: 800; font-size: 14px; }

/* Final CTA */
.final-cta {
    background: var(--bg-light-accent);
    padding: 80px 0;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 60px;
    }

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

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

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

    .review-strip {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .payment-grid {
        gap: 30px;
    }

    .stat-val {
        font-size: 32px;
    }

    .hero-pricing {
        padding: 20px;
        overflow-x: auto;
    }

    .pricing-table {
        min-width: 500px;
    }
}
