:root {
    /* Primary Colors */
    --primary: #E8916B;
    /* Warm Terracotta */
    --secondary: #2A3342;
    /* Deep Blue-Grey */

    /* Background Colors */
    --bg-primary: #FDFBF9;
    /* Warm White */
    --bg-secondary: #F5F1EE;
    /* Light Warm Grey */

    /* Text Colors */
    --text-primary: #2A3342;
    /* Deep Blue-Grey */
    --text-secondary: #5F6C7E;
    /* Medium Grey */

    /* Accent Colors */
    --accent-warm: #D4A298;
    /* Dusty Rose */
    --accent-cool: #8293AB;
    /* Muted Blue */

    /* UI Elements */
    --border-subtle: rgba(42, 51, 66, 0.12);
    --card-bg: var(--bg-primary);
    --surface: var(--bg-secondary);

    /* Layout */
    --header-height: 90px;
    --subnav-height: 50px;
    --header-height-compressed: 65px;
    --max-width: 1200px;
    --z-header: 10000;

    /* Header & Navigation Themes */
    --bdl-header-bg: var(--bg-primary);
    --bdl-header-bg-compressed: var(--bg-secondary);
    --bdl-subnav-bg: var(--bg-primary);
    --bdl-nav-active-bg: rgba(232, 145, 107, 0.1);
    --bdl-nav-active-text: var(--primary);
}

/* 🏆 Golden-Obsidian Terminal — Signature Data Aesthetic 🏆 */
[data-theme="dark"] {
    --bg-primary: #05070A;    /* Deepest Obsidian */
    --bg-secondary: #0D0F14;  /* Deep Neutral Surface */
    --surface: #0D0F14;
    --card-bg: #080A0F;
    
    --text-primary: #FDF6E3;  /* High-Contrast Cream (Easier on eyes) */
    --text-secondary: #94A3B8; /* Muted Slate-Neutral */
    
    --secondary: #FDF6E3;
    --primary: #E8916B;       /* Brand Terracotta (Anchor) */
    --bitcoin-orange: #FFB000; /* Signal Gold (Reserved for Metadata/Highlights) */
    
    /* Global Warm Data Palette */
    --legend-creator: #FFB000;
    --legend-architect: #E8916B;
    --legend-engineer: #D4A298;
    --legend-researcher: #8293AB;
    --legend-participant: #2D3748;
    
    --border-subtle: rgba(253, 246, 227, 0.08);
    
    /* Header & Navigation Themes - Refined to 'Surgical' Terracotta */
    --bdl-header-bg: rgba(5, 7, 10, 0.9);
    --bdl-header-bg-compressed: rgba(5, 7, 10, 0.98);
    --bdl-subnav-bg: #0D0F14;
    --bdl-nav-active-bg: rgba(232, 145, 107, 0.12);
    --bdl-nav-active-text: var(--primary);
    
    --card-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}


/* Top bar styles */
.top-bar {
    background: var(--bdl-header-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-header);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible;
}

/* Remove rounding when sub-nav is present to make them flush */
body.has-sub-nav .top-bar {
    border-radius: 0;
}

.bdl-header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.top-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.3s ease;
}

.logo-img,
.parent-logo-img,
.app-name {
    transition: transform 0.2s, color 0.2s, opacity 0.2s, height 0.3s;
}

/* Logo styles */
.logo-img {
    height: 60px;
    width: auto;
}

.logo-img:hover,
.parent-logo-img:hover {
    transform: scale(1.07);
    opacity: 1;
}

/* Header Compression Styles */
.header-compressed {
    background: var(--bdl-header-bg-compressed);
}

.header-compressed .top-container {
    height: var(--header-height-compressed);
}

.header-compressed .logo-img {
    height: 45px;
}

.header-compressed .parent-logo-img {
    height: 35px;
}

/* Social links styles */
.social-links-top {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links-top .social-icon {
    color: var(--text-primary);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: transform 0.2s, color 0.2s, opacity 0.2s;
}

.social-links-top .social-icon:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.15);
}

.nav-links-wrapper {
    display: none;
    /* Hidden on desktop */
    align-items: center;
    gap: 1.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    /* Use a utility class for padding to avoid forcing it on everyone */
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 17px;
    font-weight: 400;
}

/* Utility to add space for the fixed header */
.has-fixed-header {
    padding-top: var(--header-height);
}

/* Extra space for apps with sub-navigation */
.has-sub-nav.has-fixed-header {
    padding-top: calc(var(--header-height) + var(--subnav-height) + 20px);
}


/* Main Site Layout (Scoped to avoid conflicts with apps) */
.bdl-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* ═══ Hero Section — Dimmed Data Aesthetic ═══ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: #18212f;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.hero-bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            #18212f 28%,
            rgba(5, 7, 10, 0.92) 52%,
            rgba(5, 7, 10, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 3rem;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-headline span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0;
    padding: 0;
}

/* Legacy BDL styles - scoped or removed */
.bdl-internal-header {
    display: none;
}


/* Section styles */
.section {
    margin: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--primary), var(--accent-cool)) 1;
    padding-bottom: 0.7rem;
    display: flex;
    align-items: center;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.section-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* List container for dashboards and mini-books */
.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Open Data Hub specific style */
#data-hub .list-container {
    grid-template-columns: 1fr;
}

.list-item {
    background: var(--bg-primary);
    border-radius: 2px;
    padding: 1.4rem 1.75rem;
    border: 1px solid rgba(42, 51, 66, 0.12);
    border-left: 3px solid transparent;
    position: relative;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.list-item:hover {
    border-left-color: var(--primary);
    background: var(--bg-secondary);
}

.list-item.selected {
    box-shadow: 0 0 0 2px rgba(232, 145, 107, 0.15);
    border-color: var(--accent-warm);
    position: relative;
}

.list-item.selected::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    background: var(--accent-warm);
    border-radius: 50%;
    opacity: 0.35;
    box-shadow: 0 2px 8px rgba(var(--shadow-primary, 232, 145, 107), 0.10);
    pointer-events: none;
}

.list-item h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-item h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.list-item h3 a:hover {
    color: var(--primary);
}

/* Stretched link — whole card clickable */
.list-item h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Keep badges above the stretched link overlay */
.list-item .badge {
    position: relative;
    z-index: 1;
}

.list-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Badge styles */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 500;
    vertical-align: middle;
}

.badge-platform {
    background-color: var(--accent-cool);
    color: white;
}

.badge-independent {
    background-color: var(--text-secondary);
    opacity: 0.7;
    color: white;
}

.badge-live {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.55);
    color: #16a34a;
    padding-left: 1.35rem;
    position: relative;
    opacity: 1;
}

.badge-live::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

/* Tools list */
.tools-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tools-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.tools-list li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.tools-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.tools-list a:hover {
    color: var(--primary);
}

/* Social links */
.social-links {
    text-align: center;
    margin: 4rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--accent-cool);
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    box-shadow: none;
}

/* App Header Specific Styles */
.app-header-main {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-sub-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--subnav-height);
    background: var(--bdl-subnav-bg);
    /* Match page background for classy floating look */
    z-index: calc(var(--z-header) - 1);
    box-shadow: none;
    /* Let it float naturally */
    border-bottom: none;
    border-radius: 0 0 16px 16px;
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

body.header-scrolled .app-sub-nav {
    top: var(--header-height-compressed);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center tabs for better UX */
}

/* Removed sibling selector to move toward body-class based logic */

.logos-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-name,
.logos-container a {
    text-decoration: none !important;
}

.app-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.app-name:hover {
    opacity: 0.8;
}

.divider {
    width: 1px;
    height: 30px;
    background: var(--accent-cool);
    margin: 0 0.5rem;
    opacity: 0.3;
}

.parent-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.8;
}

/* Mobile Menu Button - Hidden on Desktop by default */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* App Navigation Tabs */
.app-nav {
    display: flex;
    gap: 0.5rem;
}

.app-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    /* Pill style */
}

.app-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(var(--shadow-primary, 232, 145, 107), 0.05);
}

.app-nav .nav-link:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
    color: var(--secondary);
}

.app-nav .nav-link.active {
    background: var(--bdl-nav-active-bg);
    color: var(--bdl-nav-active-text);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--primary);
    border-radius: 4px 4px 0 0;
}

/* Updated Responsive Styles */
@media screen and (max-width: 768px) {
    .app-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }

    .app-nav .nav-link {
        width: 100%;
        padding: 0.8rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {

    .container,
    .bdl-header-container {
        padding: 1rem;
    }

    .list-container {
        grid-template-columns: 1fr;
    }

    .top-container {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        /* Compact padding */
    }

    /* Header Mobile Layout */
    .mobile-menu-btn {
        display: none;
        /* Hidden by default, shown via JS if links exist */
    }

    /* Only show hamburger if we actually have links to show */
    body.has-nav .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* If no nav, keep social links visible on the right */
    .nav-links-wrapper {
        display: flex;
        width: auto;
        flex-direction: row;
        padding: 0;
        background: transparent;
        border: none;
        margin-top: 0;
    }

    /* Fixed social links overlapping issue in 1st image */
    @media screen and (max-width: 500px) {
        .header-right-desktop {
            display: none !important;
        }

        .logos-container {
            max-width: 100%;
            flex: 1;
        }

        .app-name {
            font-size: 0.9rem !important;
        }
    }

    /* When nav exists, hide the sub-nav bar on mobile and move links to hamburger menu */
    body.has-nav .app-sub-nav {
        display: none !important;
    }

    body.has-nav .nav-links-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        background: var(--bg-primary);
        z-index: 10002;
        /* Above the header bar */
    }

    body.has-nav .nav-links-wrapper.active {
        display: flex;
    }

    /* Target the mobile menu content specifically */
    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 3rem;
        text-align: center;
    }

    .mobile-nav-content .nav-link {
        display: block;
        font-size: 1.8rem;
        /* Large, premium menu font */
        font-weight: 600;
        color: var(--secondary);
        text-decoration: none;
        padding: 0.5rem;
        transition: color 0.2s;
    }

    .mobile-nav-content .nav-link.active {
        color: var(--primary);
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-socials .social-icon {
        font-size: 1.8rem;
        color: var(--secondary);
        opacity: 0.8;
    }

    .social-links-top {
        margin-top: 0;
        justify-content: center;
        width: 100%;
        gap: 2rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .tools-list {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 280px;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-bg-pattern {
        width: 100%;
        opacity: 0.35;
    }

    .hero-gradient-overlay {
        background: linear-gradient(90deg,
                #18212f 10%,
                rgba(5, 7, 10, 0.96) 50%,
                rgba(5, 7, 10, 0.7) 100%);
    }

    .divider {
        display: none;
        /* Hide divider on mobile */
    }

    .logos-container {
        flex: 1;
        justify-content: flex-start;
        max-width: 80%;
    }

    .logo-img {
        height: 45px;
    }

    .parent-logo-img {
        height: 35px;
    }

    /* Ensure footer stacks */
    #footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 1240px) {
    .top-container,
    .nav-container,
    .bdl-header-container {
        max-width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════
   THREE PILLARS SECTION
═══════════════════════════════════════════════ */
.pillars-section {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(42, 51, 66, 0.1);
    border-bottom: 1px solid rgba(42, 51, 66, 0.1);
    padding: 0 2rem;
}

.pillars-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.pillar-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid rgba(42, 51, 66, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-card:last-child {
    border-right: none;
}

.pillar-accent-bar {
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 1.5rem;
}

.pillar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.6rem 0;
}

.pillar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pillar-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.pillar-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

    .pillar-card {
        border-right: none;
        border-bottom: 1px solid rgba(42, 51, 66, 0.1);
        padding: 2.25rem 1.5rem;
    }

    .pillar-card:last-child {
        border-bottom: none;
    }
}

/* ═══════════════════════════════════════════════
   THE LAB IN ACTION — SHOWCASE
═══════════════════════════════════════════════ */
.lab-showcase.section {
    margin-top: 5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.showcase-card {
    border: 1px solid rgba(42, 51, 66, 0.14);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.showcase-card:hover {
    border-color: var(--primary);
}

.showcase-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.4s ease;
}

/* Image Slider Animations */
.showcase-img-slider {
    position: relative;
    width: 100%;
}

.showcase-img-slider img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* 2-Image Crossfade */
.slider-2 img {
    animation: fade2 8s infinite;
}
.slider-2 img:nth-child(1) { animation-delay: 0s; }
.slider-2 img:nth-child(2) { animation-delay: 4s; }

@keyframes fade2 {
    0%, 40% { opacity: 1; transform: scale(1); }
    50%, 100% { opacity: 0; transform: scale(1.02); }
}

/* 3-Image Crossfade */
.slider-3 img {
    animation: fade3 12s infinite;
}
.slider-3 img:nth-child(1) { animation-delay: 0s; }
.slider-3 img:nth-child(2) { animation-delay: 4s; }
.slider-3 img:nth-child(3) { animation-delay: 8s; }

@keyframes fade3 {
    0%, 25% { opacity: 1; transform: scale(1); }
    33%, 100% { opacity: 0; transform: scale(1.02); }
}

.showcase-card:hover .showcase-img img {
    /* Let the animation handle scale so hover doesn't break crossfade */
}

.showcase-card:hover .showcase-img > img:not(.slider-img) {
    transform: scale(1.04);
}

.showcase-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cool);
    border-bottom: 1px solid rgba(42, 51, 66, 0.08);
    background:
        repeating-linear-gradient(45deg,
            rgba(42, 51, 66, 0.03),
            rgba(42, 51, 66, 0.03) 10px,
            transparent 10px,
            transparent 20px),
        var(--bg-secondary);
}

.showcase-body {
    padding: 2rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.showcase-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.showcase-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.showcase-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.suite-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.suite-tool-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(42, 51, 66, 0.05);
    color: var(--secondary);
    border-radius: 4px;
    border: 1px solid rgba(42, 51, 66, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.suite-tool-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .suite-tool-pill {
    background: rgba(253, 246, 227, 0.05);
    border-color: rgba(253, 246, 227, 0.1);
    color: var(--text-primary);
}

/* Ghost Button */
.btn-ghost {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.45rem 1rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.18s ease, color 0.18s ease;
    align-self: flex-start;
    line-height: 1.5;
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

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

/* ═══════════════════════════════════════════════
   RESOURCES SECTION (Tools + Books side-by-side)
═══════════════════════════════════════════════ */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.resource-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1.25rem 0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.resource-group-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

.resource-caption {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ═══════════════════════════════════════════════
   DATA PLATFORM FEATURE BLOCK
═══════════════════════════════════════════════ */
.data-platform-feature.section {
    margin-bottom: 3rem;
}

.dp-feature-card {
    border: 1px solid rgba(232, 145, 107, 0.3);
    border-left: 4px solid var(--primary);
    background: var(--bg-secondary);
    padding: 2.5rem 2.75rem;
    border-radius: 2px;
}

.dp-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.85rem 0;
}

.dp-eyebrow i {
    margin-right: 0.4rem;
}

.dp-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dp-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    max-width: 620px;
}

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.dp-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(42, 51, 66, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
}

.dp-tag-status {
    color: var(--primary);
    border-color: rgba(232, 145, 107, 0.4);
    background: rgba(232, 145, 107, 0.06);
}

/* ═══ The Contributor Flywheel (2-Column) ═══ */
.flywheel-section {
    background: var(--bg-secondary);
    padding: 4rem;
    border-radius: 4px;
    margin: 4rem 0;
    border: 1px solid rgba(42, 51, 66, 0.08);
}

.flywheel-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.flywheel-text-col {
    flex: 1;
    text-align: left;
}

.flywheel-img-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flywheel-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    mix-blend-mode: multiply; /* Blends the light background of the image nicely */
}

[data-theme="dark"] .flywheel-diagram {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg) brightness(1.2); /* Inverts the drawing for dark mode */
}

.flywheel-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.flywheel-eyebrow i {
    margin-right: 0.4rem;
}

.flywheel-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.flywheel-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.flywheel-bullets li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.flywheel-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
}

.flywheel-bullets strong {
    color: var(--secondary);
    font-weight: 700;
}

.flywheel-cta {
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .flywheel-section {
        padding: 2.5rem 1.5rem;
    }
    .flywheel-split {
        flex-direction: column-reverse;
        gap: 2.5rem;
    }
}