/* ================================================================
   INDEX PAGE STYLES — 51 Insights Company Landing Page
   Hero, differentiators, support, audience, research preview, final CTA
   Trust bar + terminal preview use shared classes from landing.css
   ================================================================ */

/* No global font overrides — index uses the same Sora / DM Sans system
   as all other pages via styles.css and landing.css */

/* Light mode overrides for index-specific sections */
[data-theme="light"] .idx-hero h1 .gradient-text {
    background: linear-gradient(135deg, #0A06E5 0%, #2563eb 50%, #0A06E5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .idx-hero-glow { background: radial-gradient(ellipse, rgba(10,6,229,0.18) 0%, rgba(88,199,247,0.04) 50%, transparent 70%); }
[data-theme="light"] .idx-hero-glow { background: radial-gradient(ellipse, rgba(10,6,229,0.06) 0%, transparent 70%); }
[data-theme="light"] .idx-diff-card { box-shadow: 0 1px 3px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.06); }
[data-theme="light"] .idx-diff-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.08); }
[data-theme="light"] .idx-research-item { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .idx-research-item:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .idx-final-cta-glow { background: radial-gradient(ellipse, rgba(10,6,229,0.04) 0%, transparent 70%); }

/* Theme transitions */
html[data-theme] .idx-diff-card,
html[data-theme] .idx-support-card, html[data-theme] .idx-audience-card {
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ================================================================
   HERO
   ================================================================ */
.idx-hero {
    padding: 160px 0 40px;
    position: relative;
    overflow: hidden;
}
.idx-hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}
.idx-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.idx-hero-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-green);
    animation: pulse 2s ease-in-out infinite;
}
.idx-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.idx-hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--brand-light) 0%, #fff 50%, var(--brand-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}
.idx-hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.idx-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-top: 80px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.idx-hero-stats .stat-value {
    color: var(--brand-green);
    font-weight: 600;
}
.idx-hero-stats .stat-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}
.idx-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero ambient glow — follows cursor */
.idx-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(10,6,229,0.12) 0%, rgba(88,199,247,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease-out, top 0.15s ease-out;
    will-change: left, top;
}

/* ================================================================
   WHAT SETS 51 APART (3-column grid)
   ================================================================ */
.idx-diff-section {
    padding: 80px 0;
}
.idx-diff-header {
    text-align: center;
    margin-bottom: 48px;
}
.idx-diff-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 12px;
}
.idx-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.idx-diff-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.idx-diff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 0 0 1px var(--border-default);
}
.idx-diff-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(10,6,229,0.08);
    box-shadow: inset 0 0 0 1px rgba(10,6,229,0.15);
}
.idx-diff-icon svg {
    width: 20px; height: 20px;
    color: var(--brand-light);
    stroke: currentColor;
}
.idx-diff-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.idx-diff-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .idx-diff-grid { grid-template-columns: 1fr; gap: 16px; }
}


/* ================================================================
   RESEARCH PREVIEW SECTION
   ================================================================ */
.idx-research-section {
    padding: 80px 0;
}
.idx-research-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.idx-research-left h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 8px;
}
.idx-research-left > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Accordion items */
.idx-accordion-item {
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}
.idx-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.idx-accordion-header:hover { color: var(--text-primary); }
.idx-accordion-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,6,229,0.08);
    flex-shrink: 0;
}
.idx-accordion-icon svg { color: var(--brand-light); }
.idx-accordion-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}
.idx-accordion-arrow {
    width: 16px; height: 16px;
    color: var(--text-faint);
    transition: transform 0.3s var(--ease-out);
}
.idx-accordion-item.active .idx-accordion-arrow {
    transform: rotate(180deg);
}
.idx-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
}
.idx-accordion-item.active .idx-accordion-body {
    max-height: 200px;
}
.idx-accordion-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-bottom: 16px;
    padding-left: 44px;
}

/* Research card */
.idx-research-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.idx-research-card-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand-green));
}
.idx-research-card-body {
    padding: 28px;
}
.idx-research-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.idx-research-card-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(10,6,229,0.12);
    color: var(--brand-light);
}
.idx-research-card-pages {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
}
.idx-research-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.idx-research-card-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 20px;
}
.idx-research-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.idx-research-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Recent research items */
.idx-recent-research {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.idx-research-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    transition: background 0.2s ease;
    cursor: default;
}
.idx-research-item:last-child { border-bottom: none; }
.idx-research-item:hover { background: rgba(255,255,255,0.02); }
.idx-research-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}
.idx-research-item-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
    flex-shrink: 0;
    margin-left: 16px;
}

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

/* ================================================================
   HOW WE SUPPORT YOUR STRATEGY
   ================================================================ */
.idx-support-section {
    padding: 80px 0;
    background: var(--surface);
}
.idx-support-header {
    text-align: center;
    margin-bottom: 48px;
}
.idx-support-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 0;
}
.idx-support-highlight {
    font-weight: 900;
}
.idx-support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.idx-support-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: inset 0 0 0 1px var(--border-subtle), 0 0 20px rgba(10,6,229,0.04);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.idx-support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 0 0 1px var(--border-default);
}
.idx-support-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(10,6,229,0.08);
    box-shadow: inset 0 0 0 1px rgba(10,6,229,0.15);
}
.idx-support-icon svg {
    width: 20px; height: 20px;
    color: var(--brand-light);
    stroke: currentColor;
}
.idx-support-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.idx-support-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
[data-theme="light"] .idx-support-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.06);
}
[data-theme="light"] .idx-support-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .idx-support-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .idx-support-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   DESIGNED FOR FINANCIAL INSTITUTIONS
   ================================================================ */
.idx-audience-section {
    padding: 80px 0;
}
.idx-audience-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.idx-audience-left h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 8px;
}
.idx-audience-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}
.idx-audience-roles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.idx-audience-roles li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.idx-audience-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}
.idx-audience-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.idx-audience-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.idx-audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 0 0 1px var(--border-default);
}
.idx-audience-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.idx-audience-card-top h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.idx-audience-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.idx-audience-card:hover .idx-audience-arrow {
    transform: translateX(3px);
    color: var(--brand);
}
.idx-audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.idx-audience-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--elevated);
    border: 1px solid var(--border-subtle);
}
[data-theme="light"] .idx-audience-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(0,0,0,0.06);
}
[data-theme="light"] .idx-audience-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(0,0,0,0.08);
}
[data-theme="light"] .idx-audience-tag {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .idx-audience-layout { grid-template-columns: 1fr; gap: 40px; }
    .idx-audience-right { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .idx-audience-right { grid-template-columns: 1fr; }
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.idx-final-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.idx-final-cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(10,6,229,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
.idx-final-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.idx-final-cta h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 16px;
}
.idx-final-cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.idx-final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.idx-final-cta-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-faint);
}

/* ================================================================
   TERMINAL PREVIEW — index-specific mobile overrides
   (base styles in landing.css; these handle small-screen edge cases)
   ================================================================ */
@media (max-width: 480px) {
    .idx-hero .hero-terminal { margin-top: 28px !important; }
    .idx-hero .hero-terminal-body { height: 200px; }
    .idx-hero .dash { transform: scale(0.45); width: 222%; }
    .idx-hero .dash-sidebar { display: none; }
    .idx-hero .dash { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
    .idx-hero .hero-terminal-body { height: 180px; }
    .idx-hero .dash { transform: scale(0.4); width: 250%; }
}
@media (max-width: 320px) {
    .idx-hero .hero-terminal-body { height: 160px; }
    .idx-hero .dash { transform: scale(0.35); width: 286%; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .idx-hero { padding: 80px 0 32px; }
    .idx-hero h1 { font-size: clamp(32px, 7vw, 48px); }
    .idx-hero-sub { font-size: 15px; }
    .idx-hero-stats { font-size: 12px; gap: 12px; margin-top: 40px; }

    /* Trust bar — tighten spacing on tablet */
    .idx-hero .hero-trust { margin-top: 32px; margin-bottom: 24px; }

    /* Terminal CTA — tighten */
    .idx-terminal-cta { margin-top: 32px !important; }

    /* Support cards — reduce padding */
    .idx-support-card { padding: 24px 20px; }

    /* Diff section — tighten */
    .idx-diff-section { padding: 60px 0; }
    .idx-diff-header { margin-bottom: 32px; }

    /* Audience section */
    .idx-audience-section { padding: 60px 0; }

    /* Final CTA buttons stack on tablet if needed */
    .idx-final-cta-buttons { gap: 10px; }
}
@media (max-width: 480px) {
    .idx-hero { padding: 68px 0 20px; }
    .idx-hero h1 { font-size: clamp(28px, 8vw, 40px); }
    .idx-hero-sub { font-size: 14px; margin-bottom: 20px; }
    .idx-hero-stats { flex-direction: column; gap: 8px; margin-top: 28px; margin-bottom: 24px; }
    .idx-hero-stats .stat-dot { display: none; }
    .idx-hero-ctas { flex-direction: column; width: 100%; }
    .idx-hero-ctas .btn { width: 100%; }

    /* Trust bar — compact */
    .idx-hero .hero-trust { margin-top: 24px; margin-bottom: 16px; }

    /* Terminal CTA — reduce spacing and inline size overrides */
    .idx-terminal-cta { margin-top: 24px !important; }
    .idx-terminal-cta h2 { font-size: 20px !important; }
    .idx-terminal-cta p { font-size: 14px !important; }

    /* Support section */
    .idx-support-section { padding: 48px 0; }
    .idx-support-header { margin-bottom: 32px; }
    .idx-support-card { padding: 20px 16px; }
    .idx-support-card h3 { font-size: 16px; }
    .idx-support-card p { font-size: 13px; }

    /* Diff section */
    .idx-diff-section { padding: 48px 0; }
    .idx-diff-card { padding: 24px 20px; }
    .idx-diff-card h3 { font-size: 18px; }

    /* Audience section */
    .idx-audience-section { padding: 48px 0; }
    .idx-audience-layout { gap: 28px !important; }
    .idx-audience-card { padding: 20px; }

    /* Final CTA */
    .idx-final-cta { padding: 48px 0; }
    .idx-final-cta-buttons { flex-direction: column; width: 100%; }
    .idx-final-cta-buttons .btn { width: 100%; }
}
@media (max-width: 375px) {
    .idx-hero { padding: 64px 0 16px; }
    .idx-hero h1 { font-size: 28px; }
    .idx-hero-sub { font-size: 13px; }
    .idx-hero-stats { font-size: 11px; margin-top: 24px; }

    /* Support */
    .idx-support-card { padding: 18px 14px; }

    /* Diff */
    .idx-diff-card { padding: 20px 16px; }
    .idx-diff-card p { font-size: 13px; }

    /* Audience */
    .idx-audience-card { padding: 16px; }
    .idx-audience-tag { font-size: 11px; padding: 3px 10px; }

    /* Final CTA */
    .idx-final-cta { padding: 40px 0; }
    .idx-final-cta-sub { font-size: 14px; }
}
@media (max-width: 320px) {
    .idx-hero { padding: 60px 0 12px; }
    .idx-hero h1 { font-size: 24px; }
    .idx-hero-stats { font-size: 10px; }
    .idx-support-card { padding: 16px 12px; }
    .idx-diff-card { padding: 16px 12px; }
}
