/* ============================================================
   BUSINESS INTELLIGENCE PAGE
   Hero + 5 alternating sections. Each section's visual is the
   front-page BI insight diamond (5 zones: MARKET INSIGHT,
   STRATEGIC SIGNAL, BUSINESS, RISK ALERT, GROWTH OPPORTUNITY)
   with a magnifying lens that wanders all five and stops on
   the zone matching the section.
   Brand palette:
     #2f1f4f deep purple · #4949e7 blue · #d35b74 rose · #dedede
   ============================================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--theme-bg-primary, #ffffff);
    color: var(--theme-text-secondary, #1d1d1f);
    overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.bi-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    background: linear-gradient(
        180deg,
        var(--theme-bg-primary, #ffffff) 0%,
        var(--theme-bg-secondary, #f5f5f7) 100%
    );
    position: relative;
    overflow: hidden;
}

.bi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(73, 73, 231, 0.07) 0%, transparent 58%),
        radial-gradient(circle at 78% 72%, rgba(211, 91, 116, 0.05) 0%, transparent 52%);
    pointer-events: none;
}

.bi-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.bi-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--theme-text-primary, #2f1f4f);
    margin-bottom: 1.5rem;
    animation: biHeroFadeUp 0.9s ease 0.1s both;
}

.bi-hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--theme-text-light, #6e6e73);
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto;
    animation: biHeroFadeUp 0.9s ease 0.28s both;
}

@keyframes biHeroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.bi-section {
    min-height: 100vh;
    background: var(--theme-bg-primary, #ffffff);
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.bi-section--alt {
    background: var(--theme-bg-secondary, #f5f5f7);
}

.bi-section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 6%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 4rem;
}

.bi-section-inner--reverse {
    grid-template-columns: 2fr 1fr;
}

/* ── Content side ────────────────────────────────────────── */
.bi-content {
    max-width: 520px;
}

.bi-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--theme-text-primary, #2f1f4f);
    margin-bottom: 2rem;
}

.bi-block {
    margin-bottom: 1.25rem;
    padding-left: 0.9rem;
    border-left: 2px solid rgba(73, 73, 231, 0.25);
}

.bi-block-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-accent-primary, #d35b74);
    margin-bottom: 0.25rem;
}

.bi-block-text {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--theme-text-secondary, #1d1d1f);
    margin: 0;
}

body.theme-dark .bi-block-text {
    color: #dedede;
}

.bi-example {
    margin: 1.75rem 0 0;
    padding: 1rem 1.1rem 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(73, 73, 231, 0.06);
    border-left: 3px solid var(--theme-accent-secondary, #4949e7);
    position: relative;
}

.bi-example p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--theme-text-secondary, #1d1d1f);
}

body.theme-dark .bi-example {
    background: rgba(73, 73, 231, 0.14);
}

body.theme-dark .bi-example p {
    color: #dedede;
}

.bi-example-icon {
    position: absolute;
    top: -10px;
    left: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--theme-accent-secondary, #4949e7);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   VISUAL — front-page BI insight diamond
   ============================================================ */
.bi-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-board {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-board-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Section labels inside the SVG — themed */
.bi-main-label {
    font-size: 14px;
    fill: #2f1f4f;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

body.theme-dark .bi-main-label {
    fill: #d35b74;
}

/* Make the 5-point connector polygon and spokes adapt to dark theme */
body.theme-dark .bi-board-svg polygon[fill="none"][stroke="#2f1f4f"],
body.theme-dark .bi-board-svg line[stroke="#2f1f4f"] {
    stroke: #d35b74;
}

body.theme-dark .bi-board-svg circle[fill="#2f1f4f"] {
    fill: #d35b74;
}

/* ============================================================
   SECTION REVEAL ANIMATION
   ============================================================ */
.bi-section .bi-content,
.bi-section .bi-visual {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.bi-section.is-visible .bi-content {
    opacity: 1;
    transform: translateY(0);
}

.bi-section.is-visible .bi-visual {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* ============================================================
   CTA
   ============================================================ */
.bi-cta {
    background: linear-gradient(
        135deg,
        var(--theme-bg-secondary, #f5f5f7) 0%,
        var(--theme-bg-primary, #ffffff) 100%
    );
    padding: 120px 10%;
    text-align: center;
}

.bi-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.bi-cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--theme-text-primary, #2f1f4f);
    margin-bottom: 1rem;
}

.bi-cta-desc {
    font-size: 1.2rem;
    color: var(--theme-text-light, #6e6e73);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.bi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-accent-secondary, #4949e7);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid var(--theme-accent-secondary, #4949e7);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.bi-cta-btn:hover {
    background: var(--theme-accent-secondary, #4949e7);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(73, 73, 231, 0.55);
}

body.theme-dark .bi-cta-btn:hover {
    background: var(--theme-accent-primary, #d35b74);
    border-color: var(--theme-accent-primary, #d35b74);
    box-shadow: 0 12px 28px -10px rgba(211, 91, 116, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bi-section-inner,
    .bi-section-inner--reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 80px 6%;
    }

    /* Mobile order: content first, visual second */
    .bi-section .bi-content { order: 1; }
    .bi-section .bi-visual  { order: 2; }

    .bi-board { max-width: 480px; }
}

@media (max-width: 640px) {
    .bi-hero { padding: 120px 18px 80px; }

    .bi-section-inner,
    .bi-section-inner--reverse { padding: 64px 6%; }

    .bi-board { max-width: 100%; }

    .bi-content { max-width: 100%; }

    .bi-cta { padding: 90px 6%; }
}

/* ============================================================
   FOOTER  (canonical, matches index.html)
   ============================================================ */
.footer-minimal {
    background: var(--theme-bg-secondary, #f5f5f7);
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid var(--theme-border, rgba(0, 0, 0, 0.05));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--theme-text-light, #6e6e73);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--theme-accent-secondary, #4949e7);
}

.footer-copy {
    color: var(--theme-text-light, #86868b);
    font-size: 0.8125rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-minimal {
        padding: 2rem 5%;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
