/* ==========================================================================
   INDICES PAGE STYLES (.ind- prefix)
   ========================================================================== */

/* Container & Base Utility */
.ind-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ind-section {
    padding: 80px 0;
}

.ind-section-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 48px;
}

.ind-section-header.left-align {
    text-align: left;
    max-width: 100%;
}

.ind-section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ind-section-header p {
    font-size: 1.05rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
}

/* Hero Section */
.ind-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 100px;
    overflow: hidden;
}

.ind-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ind-hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-main, #0f172a);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ind-hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Abstract Indices Chart Visual */
.ind-hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 320px;
    padding-bottom: 20px;
}

.ind-chart-container {
    position: relative;
    width: 320px;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 4px solid #cbd5e1;
    border-left: 4px solid #cbd5e1;
}

.ind-bar {
    width: 45px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    position: relative;
}

.ind-bar:nth-child(1) { height: 40%; }
.ind-bar:nth-child(2) { height: 70%; background: linear-gradient(180deg, #0f172a, #475569); }
.ind-bar:nth-child(3) { height: 50%; }
.ind-bar:nth-child(4) { height: 90%; }
.ind-bar:nth-child(5) { height: 60%; background: linear-gradient(180deg, #10b981, #4ade80); }

/* Glowing Trend Line */
.ind-trend-line {
    position: absolute;
    width: 120%;
    height: 100%;
    top: -20px;
    left: -10px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 L25,40 L50,60 L75,10 L100,30" stroke="%233b82f6" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat;
    background-size: 100% 100%;
    filter: drop-shadow(0 8px 6px rgba(59, 130, 246, 0.5));
    z-index: 10;
}

/* Features Grid (6 Cards) */
.ind-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ind-feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ind-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.ind-icon-box {
    width: 56px;
    height: 56px;
    background-color: #eff6ff;
    color: var(--primary-blue, #2563eb);
    font-size: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ind-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 12px;
}

.ind-feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
}

/* TradingView Widget Wrapper */
.ind-widget-section {
    background-color: var(--bg-alt, #f8fafc);
}

.ind-tv-widget-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
    padding: 12px;
}

/* Conditions (2 Column) */
.ind-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.ind-cond-block {
    margin-bottom: 40px;
}

.ind-cond-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ind-cond-block h3 i {
    color: var(--primary-blue, #2563eb);
    font-size: 1.1rem;
}

.ind-cond-block p {
    font-size: 0.95rem;
    color: var(--text-main, #0f172a);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ind-table-responsive {
    overflow-x: auto;
    margin: 16px 0;
}

.ind-simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ind-simple-table th, .ind-simple-table td {
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 12px 14px;
    text-align: left;
}

.ind-simple-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--text-main, #0f172a);
}

.ind-caption {
    font-size: 0.85rem !important;
    color: var(--text-muted, #64748b) !important;
}

/* Mobile App Banner */
.ind-app-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 70px 0;
    overflow: hidden;
}

.ind-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ind-app-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.ind-app-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.ind-qr-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    border-radius: 12px;
    width: fit-content;
}

.ind-qr-code {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 8px;
}

.ind-qr-box span {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.3;
}

.ind-phone-mockup {
    width: 260px;
    height: 420px;
    background: #000;
    border: 6px solid #334155;
    border-radius: 36px;
    margin: 0 auto;
    padding: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.ind-phone-screen {
    background: #ffffff;
    height: 100%;
    border-radius: 24px;
    padding: 20px 14px;
    color: var(--text-main, #0f172a);
}

.ind-app-header {
    margin-bottom: 24px;
}

.ind-app-balance {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.ind-app-status {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
}

.ind-app-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 0.85rem;
    font-weight: 600;
}

.ind-up { color: #16a34a; }
.ind-down { color: #dc2626; }

/* FAQs Accordion */
.ind-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.ind-faq-item {
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ind-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ind-faq-question span {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ind-faq-num {
    color: var(--primary-blue, #2563eb);
    font-weight: 800;
    font-size: 0.95rem;
}

.ind-faq-question i {
    color: var(--primary-blue, #2563eb);
    font-size: 1rem;
}

.ind-faq-answer {
    display: none;
    padding: 0 0 24px 28px;
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ind-faq-item.active .ind-faq-answer {
    display: block;
}

/* CTA Section */
.ind-cta {
    background-color: var(--bg-alt, #f8fafc);
    text-align: center;
    padding: 80px 0;
}

.ind-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin-bottom: 16px;
}

.ind-cta p {
    font-size: 1.1rem;
    color: var(--text-muted, #64748b);
    max-width: 650px;
    margin: 0 auto 32px;
}

.ind-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .ind-hero-grid, .ind-conditions-grid, .ind-app-grid { grid-template-columns: 1fr; }
    .ind-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ind-hero-visual { height: 260px; }
}

@media (max-width: 640px) {
    .ind-features-grid { grid-template-columns: 1fr; }
    .ind-hero-text h1 { font-size: 2.4rem; }
    .ind-cta-buttons { flex-direction: column; }
}