/* Pitechpedia Ecosystem Hub - Redesign v2 (Premium Cinematic Aesthetic) */

:root {
    --e-primary: #4285F4;
    --e-primary-rgb: 66, 133, 244;
    --e-secondary: #34A853;
    --e-tertiary: #FBBC05;
    --e-quaternary: #EA4335;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --section-spacing: 100px;
}

/* Background & Global Overrides */
.ecosystem-redesign-v2 {
    background: #fbfcfe;
    color: #1a1c1e;
    overflow-x: hidden;
}

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    animation: aurora-float 20s infinite alternate ease-in-out;
}

.orb-1 { width: 500px; height: 500px; background: rgba(66, 133, 244, 0.2); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: rgba(52, 168, 83, 0.15); bottom: -100px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: rgba(251, 188, 5, 0.1); top: 30%; left: 40%; animation-delay: -10s; }

@keyframes aurora-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Cinematic Hero Section */
.ecosystem-hero-v2 {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    margin-top: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.hero-content-v2 {
    max-width: 800px;
}

.ecosystem-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--e-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--e-secondary);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--e-primary), var(--e-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 650px;
}

.hero-benefits {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.benefit-item .material-symbols-outlined {
    color: var(--e-secondary);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Stats Bar */
.stats-bar-section {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--e-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

/* Main Layout - Two Columns */
.ecosystem-layout-v2 {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-v2 {
    margin-bottom: 80px;
}

.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-title-v2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-left .subtitle {
    color: #5f6368;
    font-size: 1.1rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--e-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}

/* Partner Types */
.partner-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.p-type-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.p-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--e-primary);
}

.p-type-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.p-type-icon .material-symbols-outlined {
    font-size: 32px;
}

.p-type-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.p-type-card p {
    font-size: 0.85rem;
    color: #5f6368;
}

/* Partner Logos */
.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.partner-logo-card {
    background: #fff;
    height: 120px;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo-card img {
    max-width: 80%;
    max-height: 40px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.partner-logo-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.logo-tag {
    position: absolute;
    bottom: -30px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--e-primary);
    text-transform: uppercase;
    transition: bottom 0.3s;
}

.partner-logo-card:hover .logo-tag {
    bottom: 8px;
}

.section-footer-note {
    margin-top: 32px;
    text-align: center;
    color: #5f6368;
}

.section-footer-note a {
    color: var(--e-primary);
    font-weight: 700;
    text-decoration: none;
}

/* DNA Grid Redesign */
.pitechpedia-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.acronym-card-v2 {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.acronym-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--e-primary);
}

.dna-letter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--e-primary);
    opacity: 0.2;
    line-height: 1;
    transition: opacity 0.3s;
}

.acronym-card-v2:hover .dna-letter {
    opacity: 1;
    color: var(--e-primary);
}

.dna-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dna-info p {
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 16px;
}

.dna-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--e-secondary);
}

.dna-metric .material-symbols-outlined {
    font-size: 18px;
}

/* Initiatives Grid */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.initiative-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.i-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.i-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.initiative-card:hover .i-card-image img {
    transform: scale(1.1);
}

.i-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--e-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.i-card-badge.warning { background: var(--e-tertiary); color: #000; }
.i-card-badge.success { background: var(--e-secondary); }

.i-card-content {
    padding: 24px;
    position: relative;
}

.i-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.i-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.i-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5f6368;
    text-transform: uppercase;
}

/* Sidebar Styling */
.sticky-side-area {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.partner-cta-card {
    background: linear-gradient(135deg, var(--e-primary), #1a73e8);
    padding: 32px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.partner-cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.partner-cta-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.spotlight-card {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
}

.card-header-symbol {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-header-symbol h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--e-primary);
}

.spotlight-content img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin: 16px 0;
}

.featured-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(251, 188, 5, 0.1);
    color: #b08000;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 8px;
}

.spotlight-info h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.spotlight-info a {
    color: var(--e-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-list-card {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
}

.section-header-side {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-side h4 { margin: 0; }
.section-header-side a { color: var(--e-primary); text-decoration: none; font-weight: 600; font-size: 0.85rem; }

.opp-list {
    list-style: none;
    padding: 0;
}

.opp-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s;
}

.opp-list li:last-child { border: none; }

.opp-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-icon .material-symbols-outlined { color: var(--e-primary); font-size: 20px; }

.opp-details h6 { margin: 0; font-size: 0.95rem; }
.opp-details p { margin: 0; font-size: 0.75rem; color: #5f6368; }

.chevron { color: #ccc; font-size: 18px; margin-left: auto; }

/* Radar Section - Dark Themed Cockpit */
.ecosystem-radar-section {
    padding: var(--section-spacing) 0;
    background: #0d1117;
    color: #fff;
}

.ecosystem-radar-section .section-title-v2, 
.ecosystem-radar-section .subtitle {
    color: #fff;
}

.ecosystem-radar-container {
    margin-top: 60px;
    background: #161b22;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #30363d;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.radar-cockpit {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.radar-header {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid #30363d;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--e-secondary);
}

.radar-coords { color: #8b949e; }

.ecosystem-map-container {
    position: relative;
    height: 700px;
    background: radial-gradient(circle at center, #1c2128 0%, #0d1117 100%);
    border-radius: 20px;
    overflow: hidden;
}

#ecosystemCanvas { position: absolute; top: 0; left: 0; }

.eco-node {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #30363d;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.eco-node:hover {
    transform: scale(1.1);
    border-color: var(--e-primary);
    box-shadow: 0 0 30px rgba(66, 133, 244, 0.3);
}

.central-hub {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-color: var(--e-secondary);
}

.platform-node {
    --radius: 260px;
    left: calc(50% + var(--radius) * cos(var(--angle)));
    top: calc(50% + var(--radius) * sin(var(--angle)));
    transform: translate(-50%, -50%);
}

.radar-details-pane {
    background: rgba(13, 17, 23, 0.6);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
}

.radar-details-pane h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--e-primary); }
.radar-details-pane p { font-size: 0.9rem; color: #8b949e; line-height: 1.6; }

.radar-features {
    margin: 20px 0;
    flex-grow: 1;
}

.radar-telemetry {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #30363d;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
}

.t-item { display: flex; justify-content: space-between; margin-bottom: 8px; }
.t-val { color: var(--e-secondary); }

/* User Journeys v2 */
.user-journeys-section-v2 {
    padding: var(--section-spacing) 0;
    background: #fff;
}

.journeys-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

.journey-tab {
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.journey-tab.active {
    background: var(--e-primary);
    color: #fff;
    border-color: var(--e-primary);
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.2);
}

.journey-content { display: none; }
.journey-content.active { display: block; animation: fadeIn 0.5s ease-out; }

.journey-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.journey-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--e-primary);
    transition: all 0.3s;
}

.journey-step:hover .step-number {
    background: var(--e-primary);
    color: #fff;
    border-color: var(--e-primary);
    transform: scale(1.1);
}

/* CTA v2 */
.ecosystem-cta-section-v2 {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #fff;
}

.cta-content-eco {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content-eco h2 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.cta-content-eco p { font-size: 1.25rem; opacity: 0.8; margin-bottom: 40px; }

.cta-buttons-eco {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Base Styles for Buttons from Global but repeated for local context */
.brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: var(--e-primary);
    color: #fff;
}

.brand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

.brand-btn-tonal {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.brand-btn-tonal:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .ecosystem-layout-v2 {
        grid-template-columns: 1fr;
    }
    .side-column {
        display: none; /* Combine with main on smaller screens or keep as is */
    }
    .journey-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .radar-cockpit {
        grid-template-columns: 1fr;
    }
    .radar-details-pane { min-height: 200px; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .stat-divider { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .journey-steps { grid-template-columns: 1fr; }
    .pitechpedia-grid-v2 { grid-template-columns: 1fr; }
}

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