/* ============================================
   MAXAI - GROWW-INSPIRED HOMEPAGE
   Sprint 2: Homepage Section Redesign
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #0a0e27;
    --dark-navy: #1a1f3a;
    --blue: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    --light-text: #e8eef7;
    --mid-text: #cbd5e1;
    --gray-text: #94a3b8;
}

/* ===== HERO SECTION - 2 COLUMN LAYOUT ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 5% 80px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1629 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.trust-item i {
    color: #10b981;
    font-size: 1.1rem;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-chart-mockup {
    width: 100%;
    background: linear-gradient(145deg, rgba(30, 41, 82, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-stock-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.chart-stock-info span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.chart-price {
    text-align: right;
}

.chart-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
}

.chart-price .change {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.chart-visual {
    height: 200px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, transparent 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.chart-visual::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.1) 100%);
}

.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
    transform: rotate(-5deg);
}

.chart-signal {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
}

.signal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.signal-text h4 {
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.signal-text span {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===== STATS BAR SECTION ===== */
.stats-bar-section {
    background: linear-gradient(180deg, #0f1629 0%, #0a0e27 100%);
    padding: 60px 5%;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.stats-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ===== STOCK CATEGORY TABS ===== */
.stocks-section {
    padding: 100px 5%;
    background: #0a0e27;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.stocks-scroll-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.stocks-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 10px 25px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stocks-scroll::-webkit-scrollbar {
    display: none;
}

.stocks-scroll::after {
    content: '';
    flex: 0 0 10px;
}

.stock-card-compact {
    flex: 0 0 240px;
    background: linear-gradient(160deg, rgba(30, 41, 82, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 18px;
    padding: 22px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.stock-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stock-card-compact:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.stock-card-compact:hover::before {
    opacity: 1;
}

.stock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.stock-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #60a5fa;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.stock-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stock-badge.buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-badge.sell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stock-badge.hold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-info {
    margin-bottom: 4px;
}

.stock-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.stock-info span {
    font-size: 0.78rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.stock-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stock-current-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.stock-change {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.stock-change.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #34d399;
}

.stock-change.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #f87171;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 14px 32px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.stocks-section .view-all-link {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.view-all-link:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    gap: 14px;
}

/* ===== FEATURES SECTION (4 CARDS) ===== */
.features-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, rgba(30, 41, 82, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon-box i {
    font-size: 1.8rem;
    color: #3b82f6;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-section {
    padding: 100px 5%;
    background: #0a0e27;
    overflow: hidden;
}

.testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.testimonials-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 340px;
    background: linear-gradient(160deg, rgba(30, 41, 82, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.35s ease;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #e2e8f0;
    margin-bottom: 24px;
    font-style: italic;
    min-height: 100px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.author-info h5 {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.82rem;
    color: #64748b;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.carousel-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3b82f6;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(59, 130, 246, 0.5);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* ===== MEGA FOOTER: See navbar.css for unified footer styles ===== */

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 36px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-right {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-illustration {
        max-width: 400px;
    }
    
    .stat-item {
        padding: 20px 30px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-bar-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        padding: 0;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
