/**
 * Homepage visual refresh — Swyfttrade
 */

/* ── Hero ── */
.home-hero {
    padding-top: 2rem !important;
    border-bottom: none !important;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(17, 119, 58, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse 50% 40% at 10% 80%, rgba(17, 119, 58, 0.06) 0%, transparent 50%),
                var(--bg-primary);
}

.home-hero .hero-slide-content {
    padding: 3rem 0 7rem;
}

.home-hero .hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-hero .hero-content .badge-gold {
    background: rgba(17, 119, 58, 0.12) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(17, 119, 58, 0.35) !important;
    box-shadow: none !important;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero .hero-metric-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.home-hero .hero-metric-pill {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.home-hero .hero-metric-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.home-hero .hero-metric-pill .stat-value {
    font-size: 1.5rem !important;
    margin-bottom: 0.15rem;
}

.home-hero .hero-metric-pill .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero preview card (replaces decorative icon) */
.hero-preview-card {
    background: linear-gradient(145deg, rgba(21, 21, 21, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(17, 119, 58, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold-full);
}

.hero-preview-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hero-preview-card__head span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-preview-card__head strong {
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.hero-preview-card__balance {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero-preview-card__sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-preview-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.hero-preview-bars span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.85;
    animation: barPulse 2.4s ease-in-out infinite;
}

.hero-preview-bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.hero-preview-bars span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.hero-preview-bars span:nth-child(3) { height: 42%; animation-delay: 0.3s; }
.hero-preview-bars span:nth-child(4) { height: 78%; animation-delay: 0.45s; }
.hero-preview-bars span:nth-child(5) { height: 62%; animation-delay: 0.6s; }
.hero-preview-bars span:nth-child(6) { height: 88%; animation-delay: 0.75s; }
.hero-preview-bars span:nth-child(7) { height: 70%; animation-delay: 0.9s; }
.hero-preview-bars span:nth-child(8) { height: 95%; animation-delay: 1.05s; }

@keyframes barPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.hero-preview-traders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-preview-trader-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.hero-preview-trader-row .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.hero-preview-trader-row .name {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-preview-trader-row .roi {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

/* Trust strip below hero */
.home-trust-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.home-trust-strip .trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.home-trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.home-trust-strip .trust-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Ticker bar */
.home-ticker-bar {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(17, 119, 58, 0.06) 50%, var(--bg-secondary) 100%) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.75rem 0 !important;
}

/* Section headers */
.home-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.home-section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Feature cards */
.home-features .feature-card {
    padding: 1.75rem !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base) !important;
}

.home-features .feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 119, 58, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.home-features .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 119, 58, 0.4) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

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

.home-features .feature-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(17, 119, 58, 0.25) !important;
}

.home-features .feature-card h4 {
    font-size: 1.25rem !important;
}

/* How it works timeline */
.home-steps {
    position: relative;
}

.home-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary), transparent);
    opacity: 0.35;
    z-index: 0;
}

.home-steps .step-item {
    position: relative;
    z-index: 1;
}

.home-steps .step-num {
    width: 72px !important;
    height: 72px !important;
    border-radius: 20px !important;
    font-size: 1.75rem !important;
    box-shadow: 0 8px 24px rgba(17, 119, 58, 0.35) !important;
}

/* Testimonials */
.home-testimonials .testimonial-card {
    border-left: 3px solid var(--primary) !important;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0 !important;
    padding: 2rem 2rem 2rem 1.75rem !important;
    transition: transform var(--transition-base);
}

.home-testimonials .testimonial-card:hover {
    transform: translateX(4px);
}

.home-testimonials .quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.35;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

/* CTA banner */
.home-cta-banner .cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 2.5rem !important;
    border-radius: var(--radius-2xl) !important;
    background: linear-gradient(135deg, rgba(17, 119, 58, 0.15) 0%, var(--bg-card) 40%, var(--bg-card) 100%) !important;
    border: 1px solid rgba(17, 119, 58, 0.25) !important;
    text-align: left !important;
    overflow: hidden;
    position: relative;
}

.home-cta-banner .cta-inner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(17, 119, 58, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    pointer-events: none;
}

.home-cta-banner .cta-text {
    flex: 1;
    min-width: 260px;
    position: relative;
    z-index: 1;
}

.home-cta-banner .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.home-cta-banner h2 {
    text-align: left !important;
    margin-bottom: 0.75rem !important;
}

.home-cta-banner .lead {
    text-align: left !important;
    margin-bottom: 0 !important;
    font-size: 1.0625rem !important;
}

/* Stats section refresh */
.home-stats .stat-card {
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border-color) !important;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tertiary) 100%) !important;
    transition: border-color var(--transition-base);
}

.home-stats .stat-card:hover {
    border-color: var(--primary) !important;
}

/* Nav dots on green theme */
.hero-nav-dot-premium.active span {
    background: #fff !important;
}

@media (max-width: 991px) {
    .home-steps::before {
        display: none;
    }
}

/* Hero typography */
.home-hero .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-hero .hero-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.65;
}

.hero-preview-card--mobile {
    padding: 1rem 1.25rem;
}

.hero-preview-card--mobile .hero-preview-card__balance {
    font-size: 1.5rem;
}

.hero-preview-card--mobile .hero-preview-bars {
    height: 48px;
}

/* Features split header */
.home-features .features-section-head h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* Traders horizontal scroll (mobile) */
@media (max-width: 991px) {
    .home-traders .traders-scroll-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.75rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .home-traders .traders-scroll-row > [class*="col-"] {
        flex: 0 0 min(85vw, 300px);
        max-width: min(85vw, 300px);
        scroll-snap-align: start;
    }
}

/* Steps timeline (mobile) */
.home-steps .step-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 767px) {
    .home-steps .steps-row {
        flex-direction: column;
        gap: 0;
    }

    .home-steps .step-item {
        position: relative;
        padding-left: 3rem;
        padding-bottom: 2rem;
        border-left: 2px solid rgba(17, 119, 58, 0.35);
        margin-left: 1.25rem;
    }

    .home-steps .step-item:last-child {
        border-left-color: transparent;
        padding-bottom: 0;
    }

    .home-steps .step-item > .text-center,
    .home-steps .step-block {
        text-align: left !important;
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }

    .home-steps .step-num {
        position: absolute;
        left: -1.25rem;
        transform: translateX(-50%);
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .home-steps .step-item h4,
    .home-steps .step-item p {
        margin-left: 0 !important;
        max-width: none !important;
    }
}

/* Stats bar */
.home-stats .stats-bar .stat-card {
    padding: 1.5rem !important;
}

@media (max-width: 768px) {
    /* Prevent hero content clipping under sticky navbar on mobile */
    .home-hero.hero-slider {
        overflow-x: hidden;
        overflow-y: visible;
        min-height: auto;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .home-hero .hero-slider-wrapper {
        min-height: auto !important;
        height: auto !important;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .home-hero .hero-slide {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        height: auto !important;
        overflow-x: hidden;
        padding-top: 0.25rem;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Stop translateX(30px) on upcoming slides — causes page shift right */
        transform: none !important;
    }

    .home-hero .hero-slide.prev {
        transform: none !important;
    }

    .home-hero .hero-globe-background {
        overflow: hidden;
    }

    .home-hero .hero-slide .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero .hero-preview-card--mobile {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Active slide in flow so wrapper grows with content */
    .home-hero .hero-slide:not(.active) {
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden;
        pointer-events: none;
    }

    .home-hero .hero-slide.active {
        position: relative !important;
        transform: none !important;
    }

    .home-hero .hero-slide-content {
        padding: 1.25rem 0 5.5rem !important;
    }

    .home-hero .hero-metric-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-hero .hero-metric-pill {
        min-width: 0;
    }

    .home-hero .hero-metric-pill:last-child {
        grid-column: 1 / -1;
    }

    .home-trust-strip .trust-inner {
        gap: 0.75rem 1.25rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 0.5rem;
    }

    .home-trust-strip .trust-item {
        white-space: nowrap;
        font-size: 0.8125rem;
    }

    .home-features .features-section-head {
        text-align: left;
    }

    .home-traders .traders-section-head {
        text-align: left;
    }

    .home-traders .traders-section-head .btn {
        width: 100%;
    }

    .home-cta-banner .cta-inner {
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }

    .home-cta-banner h2,
    .home-cta-banner .lead {
        text-align: center !important;
    }

    .home-cta-banner .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .home-stats .stats-bar .stat-value {
        font-size: 2rem !important;
    }
}
