/* ===== SECTION CHAPTER THEMES (dark / light alternation) ===== */
.section-dark {
    --brand-gold: #c3a669;
    --brand-gold-light: #e0ca96;
    --brand-gold-dark: #a18345;
    --bg-deep: #0a0e14;
    --bg-panel: #131a24;
    --border-glass: #2a3441;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    background-color: var(--bg-deep);
    color: var(--text-main);
    position: relative;
}

.section-light {
    --brand-gold: #c3a669;
    --brand-gold-light: #b09855;
    --brand-gold-dark: #a18345;
    --bg-deep: #f4f6f9;
    --bg-panel: #ffffff;
    --border-glass: #d8dee8;
    --text-main: #0f172a;
    --text-dim: #475569;
    --text-muted: #64748b;
    background-color: var(--bg-deep);
    color: var(--text-main);
    position: relative;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.section-dark.section-accent::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 166, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-light .text-white,
.section-light h2,
.section-light h3 {
    color: var(--text-main) !important;
}

.section-light .text-slate-300 { color: #334155 !important; }
.section-light .text-slate-400 { color: var(--text-dim) !important; }
.section-light .text-slate-200 { color: #1e293b !important; }

.section-light .bg-\[\#0f151d\],
.section-light .bg-\[\#0f151d\]\/80,
.section-light .bg-\[\#131a24\] {
    background-color: var(--bg-panel) !important;
}

.section-light .border-\[\#1e2736\],
.section-light .divide-\[\#1e2736\]\/50 > * + * {
    border-color: var(--border-glass) !important;
}

.section-light .hover\:bg-\[\#131a24\]\/50:hover {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

/* ===== FEATURES ===== */
.font-serif {
    font-family: 'Fraunces', serif;
}

.features-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.features-intro h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-main);
    margin: 0 0 0.75rem;
}

.features-intro p {
    color: var(--text-dim);
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto;
}

.features-intro-lead {
    color: #ffffff !important;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 500;
    line-height: 1.5;
    max-width: 42rem;
}

.features-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.feature-showcase-reverse .feature-showcase-visual { order: 2; }
.feature-showcase-reverse .feature-showcase-copy { order: 1; }

.feature-showcase-visual {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-panel);
}

.feature-showcase-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.feature-showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

.feature-showcase-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-showcase-copy h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.feature-showcase-lead {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-gold);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.feature-showcase-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-dim);
    margin: 0;
}

.channel-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

.channel-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-deep);
    text-align: center;
}

.section-light .channel-icon-card {
    background: #ffffff;
}

.channel-icon-card i {
    font-size: 26px;
    color: var(--brand-gold);
}

.channel-icon-card span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.channel-icon-card .integration-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feature-icon-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--brand-gold);
    opacity: 0.85;
}

.section-badge {
    display: inline-block;
    background: var(--brand-gold);
    color: #0a0e14;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ===== INTEGRATIONS ===== */
.integrations-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.integrations-intro h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-main);
    margin: 0 0 0.75rem;
}

.integrations-intro p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.integrations-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .integrations-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.integration-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 0.625rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    min-height: 56px;
}

.integration-card.coming-soon {
    border-style: dashed;
    border-color: rgba(15, 23, 42, 0.2);
    background: #f8fafc;
}

.integration-card.coming-soon span {
    color: #475569;
    font-weight: 500;
}

.integration-card.coming-soon i,
.integration-card.coming-soon .integration-logo {
    opacity: 0.75;
}

.integration-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.integration-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
    font-size: 15px;
    flex-shrink: 0;
}

.integration-card span {
    font-size: 11.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
}

.integration-logo-fallback {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--brand-gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.integrations-footnote {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-dim);
    margin-top: 0.75rem;
}

.feature-showcase-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(145deg, rgba(195, 166, 105, 0.12) 0%, rgba(19, 26, 36, 0.6) 100%);
}

.feature-showcase-icon-wrap i {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--brand-gold);
    opacity: 0.9;
}

.section-light .feature-showcase-icon-wrap {
    background: linear-gradient(145deg, rgba(195, 166, 105, 0.14) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.feature-showcase-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(195, 166, 105, 0.22);
    background: linear-gradient(145deg, rgba(195, 166, 105, 0.08) 0%, rgba(19, 26, 36, 0.45) 100%);
}

.section-light .feature-showcase-step {
    color: rgba(161, 131, 69, 0.2);
    background: linear-gradient(145deg, rgba(195, 166, 105, 0.12) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.bespoke-case-studies-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.bespoke-case-studies-intro h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.bespoke-case-studies-intro p {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.section-dark .bespoke-case-studies-intro h2 {
    color: #f8fafc;
}

.section-dark .bespoke-case-studies-intro p {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase-reverse .feature-showcase-visual,
    .feature-showcase-reverse .feature-showcase-copy {
        order: unset;
    }

    .features-stack {
        gap: 2rem;
    }
}
