.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(106, 71, 237, 0.4);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}
@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── STORY TIMELINE ─── */
.story-timeline {
    max-width: 1000px;
    margin: 0 auto;
}
.story-phase {
    margin-bottom: 48px;
}
.phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.phase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.phase-icon-problem {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}
.phase-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ─── ORIGIN STORY ─── */
.origin-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 64px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.origin-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}
.origin-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(106, 71, 237, 0.1);
    border: 1px solid rgba(106, 71, 237, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.origin-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.origin-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.origin-content p em {
    color: var(--primary-light);
    font-style: italic;
}
.origin-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.origin-map {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
}
.africa-outline {
    width: 100%;
    height: 100%;
}
.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
    animation: pulse-dot 2s infinite;
}
.map-dot span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ─── VISION CARDS ─── */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vision-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.vision-card:hover::before { transform: scaleX(1); }
.vision-card:hover {
    border-color: var(--border-light-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-light);
}
.vision-icon {
    width: 52px;
    height: 52px;
    background: rgba(106, 71, 237, 0.08);
    border: 1px solid rgba(106, 71, 237, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.vision-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-light-primary);
}
.vision-card p {
    color: var(--text-light-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ─── BUILD CARDS ─── */
.build-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.build-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.build-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.build-card:hover .build-card-accent { transform: scaleX(1); }
.build-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.build-card-large {
    grid-column: span 2;
    grid-row: span 2;
}
.build-card-wide {
    grid-column: span 2;
}
.build-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 20px;
}
.build-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.build-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}
.build-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.build-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ─── ECOSYSTEM HUB ─── */
.ecosystem-hub {
    position: relative;
    min-height: 500px;
    margin: 64px 0;
}
.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.ecosystem-center-inner {
    width: 140px;
    height: 140px;
    background: var(--bg-elevated);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(106, 71, 237, 0.3);
    animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 60px rgba(106, 71, 237, 0.3); }
    50% { box-shadow: 0 0 100px rgba(106, 71, 237, 0.5); }
}
.ecosystem-center-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 4px;
}
.ecosystem-center-inner h4 {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ecosystem-center-inner span {
    font-size: 0.6875rem;
    color: var(--text-muted);
}
.ecosystem-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    pointer-events: none;
    z-index: 1;
}
.ecosystem-nodes {
    position: relative;
    width: 100%;
    height: 500px;
}
.eco-node {
    position: absolute;
    z-index: 5;
}
.eco-node-1 { top: 0; left: 10%; }
.eco-node-2 { top: 0; right: 10%; }
.eco-node-3 { top: 40%; left: 0; }
.eco-node-4 { top: 40%; right: 0; }
.eco-node-5 { bottom: 0; left: 15%; }
.eco-node-6 { bottom: 0; right: 15%; }

.eco-node-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    width: 220px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.eco-node-card:hover {
    border-color: var(--border-light-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-light);
}
.eco-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 14px;
}
.eco-node-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-light-primary);
}
.eco-node-card p {
    font-size: 0.8125rem;
    color: var(--text-light-secondary);
    margin-bottom: 12px;
}
.eco-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.eco-badges span {
    padding: 3px 8px;
    background: rgba(106, 71, 237, 0.06);
    border: 1px solid rgba(106, 71, 237, 0.12);
    border-radius: 100px;
    font-size: 0.625rem;
    color: var(--primary);
    font-weight: 600;
}
.ecosystem-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-light-alt);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}
.ecosystem-cta p {
    color: var(--text-light-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ─── WHY CARDS ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.why-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(106, 71, 237, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}
.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(106, 71, 237, 0.1);
    border: 1px solid rgba(106, 71, 237, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}
.why-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.why-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ─── AI SECTION ─── */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.ai-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-light-primary);
}
.ai-content > p {
    color: var(--text-light-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}
.ai-visual {
    position: sticky;
    top: 120px;
}
.ai-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.ai-stat {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.ai-stat:hover {
    border-color: var(--border-light-hover);
    transform: translateY(-3px);
}
.ai-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.ai-stat-label {
    font-size: 0.75rem;
    color: var(--text-light-muted);
    font-weight: 500;
}

/* ─── LIGHT SECTION AI LIST FIX ─── */
.section-light-alt .ai-features-list li {
    border-bottom: 1px solid var(--border-light);
}
.section-light-alt .ai-feature-icon {
    background: rgba(106, 71, 237, 0.08);
    border: 1px solid rgba(106, 71, 237, 0.15);
    color: var(--primary);
}

/* ─── ANIMATE ON SCROLL ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .build-grid { grid-template-columns: repeat(2, 1fr); }
    .build-card-large { grid-column: span 2; grid-row: span 1; }
    .build-card-wide { grid-column: span 2; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: 1fr; }
    .origin-story { grid-template-columns: 1fr; }
    .origin-visual { display: none; }
    .ecosystem-lines { display: none; }
    .ecosystem-nodes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        height: auto;
    }
    .eco-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    .eco-node-card { width: 100%; }
    .ecosystem-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 32px;
        display: flex;
        justify-content: center;
    }
    .ecosystem-hub { min-height: auto; }
}

@media (max-width: 768px) {
    .vision-grid { grid-template-columns: 1fr; }
    .build-grid { grid-template-columns: 1fr; }
    .build-card-large { grid-column: span 1; }
    .build-card-wide { grid-column: span 1; }
    .why-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .origin-story { padding: 24px; }
    .ecosystem-nodes { grid-template-columns: 1fr; }
    .ai-stats-row { grid-template-columns: 1fr; }
}