/* ecosystem_material.css */
:root {
    /* MD3 Color Tokens */
    --md-sys-color-primary: #005AC1;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D8E2FF;
    --md-sys-color-on-primary-container: #001A41;
    --md-sys-color-secondary: #575E71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #DBE2F9;
    --md-sys-color-on-secondary-container: #141B2C;
    --md-sys-color-tertiary: #715573;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FBD7FC;
    --md-sys-color-on-tertiary-container: #29132D;
    --md-sys-color-error: #BA1A1A;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-background: #FEFBFF;
    --md-sys-color-on-background: #1B1B1F;
    --md-sys-color-surface: #FEFBFF;
    --md-sys-color-on-surface: #1B1B1F;
    --md-sys-color-surface-variant: #E1E2EC;
    --md-sys-color-on-surface-variant: #44474F;
    --md-sys-color-outline: #74777F;

    /* Typography */
    --md-sys-typescale-display-large-font: 'Poppins', sans-serif;
    --md-sys-typescale-display-large-weight: 600;
    --md-sys-typescale-display-large-size: 57px;
    --md-sys-typescale-headline-small-font: 'Poppins', sans-serif;
    --md-sys-typescale-headline-small-weight: 500;
    --md-sys-typescale-headline-small-size: 24px;
    --md-sys-typescale-body-large-font: 'Inter', sans-serif;
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-body-large-size: 16px;

    /* Elevation */
    --md-sys-elevation-level1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-level2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-level3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);

    /* Shape */
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: var(--md-sys-typescale-body-large-font);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Aurora Background */
.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #D8E2FF 0%, rgba(216, 226, 255, 0) 70%);
    animation-delay: 0s;
}

.orb-2 {
    top: 20%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #FBD7FC 0%, rgba(251, 215, 252, 0) 70%);
    animation-delay: -5s;
}

.orb-3 {
    bottom: -10%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #E1E2EC 0%, rgba(225, 226, 236, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Material Card */
.md-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-level1);
    transition: box-shadow 0.3s ease, transform 0.2s ease, background-color 0.2s;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--md-sys-color-surface-variant);
    position: relative;
    z-index: 1;
}

/* State Layer Effect */
.md-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--md-sys-color-on-surface);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: -1;
}

.md-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.md-card:hover::before {
    opacity: 0.08;
    /* MD3 Hover State Opacity */
}

.md-card-filled {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border: none;
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.letter-badge {
    display: inline-block;
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--md-sys-color-secondary);
    max-width: 600px;
    margin: 10px auto 0;
}

/* --- PITECHPEDIA Grid (Advanced 3D) --- */
.pitechpedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    perspective: 1000px;
    /* Essential for 3D tilt */
}

.acronym-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    /* Ultra-thin glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    /* Smooth corners */
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    /* Fast transform for tilt */
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    /* Children can be 3D */
    color: var(--md-sys-color-on-surface);
}

/* Dynamic Spotlight Gradient Border via pseudo-element */
.acronym-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1.5px;
    /* Border width */
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.6),
            transparent 40%);
    /* Masking for border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Hover Glow Background */
.acronym-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1),
            transparent 40%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.pitechpedia-grid:hover .acronym-card::before,
.pitechpedia-grid:hover .acronym-card::after {
    opacity: 1;
    /* Show effects when mouse enters grid */
}

.acronym-letter {
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--md-sys-color-primary), #1a73e8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transform: translateZ(40px);
    /* 3D pop */
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.acronym-title {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    transform: translateZ(30px);
    color: var(--md-sys-color-on-surface);
}

.acronym-desc {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    line-height: 1.6;
    transform: translateZ(20px);
}

.acronym-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--google-blue, #4285F4);
    font-size: 0.95rem;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateZ(25px);
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
}

.acronym-metric .material-icons {
    font-size: 1.2rem;
}

/* Hover Interaction adjustments */
.acronym-card:hover .acronym-letter {
    transform: translateZ(60px) scale(1.1);
}

/* --- Ecosystem Map --- */
.ecosystem-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ecosystemCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eco-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.central-hub {
    top: 50%;
    left: 50%;
    z-index: 10;
}

.central-hub .node-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    background: white;
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
}

.platform-node {
    /* Positioning managed by JS/Inline styles mostly, but base styles here */
    top: 50%;
    left: 50%;
    /* Radius logic handled in JS or CSS offset? 
       Actually the HTML had style="--angle: Xdeg". 
       We need CSS to position them based on var(--angle) if using pure CSS, 
       OR JS handles it. Assuming JS handles generic float or circle layout.
       Let's assume default centering and JS does the orbit.
    */
}

.node-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--md-sys-elevation-level1);
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eco-node:hover .node-icon {
    transform: scale(1.2);
    box-shadow: var(--md-sys-elevation-level3);
}

.node-label {
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- Platforms Grid --- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.platform-card {
    background: white;
    border-radius: var(--md-sys-shape-corner-large);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--md-sys-elevation-level3);
}

.platform-header {
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.platform-icon-large {
    font-size: 3rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.2);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.platform-body {
    padding: 30px;
}

.platform-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--google-green, #34A853);
    font-weight: bold;
}

.platform-tech {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Integration Flow (Enhanced) --- */
.integration-flow-section {
    position: relative;
    overflow: hidden;
}

.flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
}

.flow-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--md-sys-color-primary);
    opacity: 0.5;
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

.integration-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.integration-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* --- Tech Stack (Floating Glass Grid) --- */
.tech-layers {
    display: grid;
    gap: 30px;
}

.tech-layer {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.tech-layer:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.8);
}

.tech-layer h3 {
    min-width: 180px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    position: relative;
}

.tech-layer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
    border-color: var(--md-sys-color-primary);
}

/* --- User Journeys --- */
.journeys-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.journey-tab {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    padding: 10px 24px;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.journey-tab:hover {
    background: var(--md-sys-color-surface-variant);
}

.journey-tab.active {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
}

.journey-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.journey-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.journey-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 16px;
    font-size: 1.1rem;
}

.journey-connector {
    flex-grow: 1;
    height: 2px;
    background: var(--md-sys-color-outline-variant);
    margin-top: 20px;
}

/* --- Metrics (Bento Grid) --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns fixed */
    gap: 24px;
}

.metric-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Specific Bento Sizes (Optional - let's keep uniform for now but big) */

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--md-sys-color-secondary-container);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.metric-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--md-sys-color-primary), #1a73e8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin: 16px 0;
}

.metric-trend {
    font-size: 0.85rem;
    color: var(--google-green, #34A853);
    font-weight: 600;
}

/* --- Roadmap --- */
.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.roadmap-item {
    position: relative;
}

.roadmap-quarter {
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.roadmap-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--md-sys-color-primary);
    box-shadow: var(--md-sys-elevation-level1);
}

/* --- CTA --- */
.ecosystem-cta-section {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    text-align: center;
    padding: 80px 0;
    border-radius: 32px;
    margin: 40px 20px;
}

.ecosystem-cta-section h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.ecosystem-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.25rem;
}

.cta-buttons-eco {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.primary-btn {
    background: white;
    color: var(--md-sys-color-primary);
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.tertiary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {

    .integration-features,
    .roadmap-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .flow-diagram {
        flex-direction: column;
    }

    .tech-layer {
        flex-direction: column;
        text-align: center;
    }

    .journey-steps {
        flex-direction: column;
        gap: 20px;
    }

    .journey-connector {
        display: none;
    }
}

@media (max-width: 600px) {

    .integration-features,
    .roadmap-timeline {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography Classes */
.md-display-large {
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: var(--md-sys-typescale-display-large-size);
    font-weight: var(--md-sys-typescale-display-large-weight);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.md-headline-small {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-size: var(--md-sys-typescale-headline-small-size);
    font-weight: var(--md-sys-typescale-headline-small-weight);
    line-height: 1.3;
}

/* Buttons */
.md-btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 20px;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.md-btn-primary:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

/* PITECHPEDIA Grid */
.pitechpedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.acronym-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acronym-card:hover {
    box-shadow: var(--md-sys-elevation-level3);
    background: var(--md-sys-color-primary-container);
}

.acronym-letter {
    font-family: 'Google Sans', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin-bottom: 0px;
    line-height: 1;
}

.acronym-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.acronym-desc {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
}

.acronym-metric {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 500;
    color: var(--md-sys-color-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Date Bar */
.live-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    padding: 12px 24px;
    border-radius: 100px;
    margin: 20px auto;
    max-width: 800px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34A853;
    /* Google Green */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(52, 168, 83, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
    }
}

/* --- Ecosystem Map Interactive Overlays --- */

.ecosystem-map-section {
    position: relative;
}

.platform-details {
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--md-sys-elevation-level2);
    margin-top: 20px;
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-content h3 {
    margin-top: 0;
    color: var(--md-sys-color-primary);
    font-family: var(--md-sys-typescale-headline-small-font);
}

#detailsFeatures {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Active Node States */
.eco-node.active {
    z-index: 20;
}

.eco-node.active .node-icon {
    transform: scale(1.25);
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2), var(--md-sys-elevation-level2);
}

.eco-node.active .node-label {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Desktop Overlay Positioning */
@media (min-width: 900px) {
    .ecosystem-map-section .container {
        position: relative;
    }

    .platform-details {
        position: absolute;
        bottom: 40px;
        right: 40px;
        width: 340px;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(16px);
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}