/* ========================================
   CODE CHANGES THE WORLD
   Epoch cards + Product manifesto
   ======================================== */

.mission-section {
    position: relative;
    padding: 10rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(180deg,
            var(--bg-primary) 0%,
            rgba(8, 6, 20, 1) 30%,
            rgba(12, 10, 30, 1) 70%,
            var(--bg-primary) 100%);
}

/* ============ CODE RAIN BACKGROUND ============ */
.mission-bg-code {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.code-rain-col {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(139, 92, 246, 0.05);
    white-space: nowrap;
    animation: codeRainFall linear infinite;
    letter-spacing: 2px;
}

.c1 {
    left: 5%;
    top: -20%;
    animation-duration: 18s;
    font-size: 0.8rem;
}

.c2 {
    left: 20%;
    top: -30%;
    animation-duration: 22s;
    animation-delay: -4s;
}

.c3 {
    left: 40%;
    top: -15%;
    animation-duration: 16s;
    animation-delay: -8s;
    font-size: 0.9rem;
}

.c4 {
    left: 60%;
    top: -25%;
    animation-duration: 20s;
    animation-delay: -2s;
}

.c5 {
    left: 78%;
    top: -35%;
    animation-duration: 24s;
    animation-delay: -10s;
    font-size: 0.75rem;
}

.c6 {
    left: 90%;
    top: -10%;
    animation-duration: 15s;
    animation-delay: -6s;
}

@keyframes codeRainFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(120vh) rotate(3deg);
        opacity: 0;
    }
}

/* ============ MANIFESTO CENTER ============ */
.manifesto-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 1;
}

.manifesto-tag {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.tag-brace {
    color: #8b5cf6;
}

.manifesto-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.manifesto-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}

.manifesto-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.manifesto-text code {
    font-family: 'Fira Code', monospace;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.95em;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* ============ EPOCH CARDS ============ */
.epochs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-bottom: 5rem;
}

.epoch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.epoch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.epoch-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.epoch-card:hover::before {
    opacity: 1;
}

/* "Now" card — FuturityDev */
.epoch-now {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.03);
}

.epoch-now::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #ec4899);
    border-radius: 20px 20px 0 0;
}

/* Mini Terminal */
.epoch-terminal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.epoch-bar {
    background: #1a1a2e;
    padding: 8px 12px;
    display: flex;
    gap: 5px;
}

.ep-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.d1 {
    background: #ff5f57;
}

.d2 {
    background: #ffbd2e;
}

.d3 {
    background: #28ca41;
}

.epoch-code {
    background: #0a0a1a;
    padding: 14px 16px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    color: #abb2bf;
    min-height: 85px;
}

.ep-comment {
    color: #5c6370;
    font-style: italic;
}

.ep-keyword {
    color: #c678dd;
    font-weight: 700;
}

.ep-num {
    color: #d19a66;
}

.ep-str {
    color: #98c379;
}

.ep-tag {
    color: #e06c75;
}

.ep-attr {
    color: #d19a66;
}

.ep-var {
    color: #e5c07b;
}

.ep-func {
    color: #61afef;
}

/* Year + Event */
.epoch-year {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}



.epoch-event {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============ BOTTOM SECTION ============ */
.manifesto-bottom {
    text-align: center;
    position: relative;
    z-index: 1;
}

.manifesto-quote {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin: 0 auto 3rem;
    padding: 0;
    border: none;
    max-width: 700px;
    text-align: left;
}

.quote-bar {
    width: 3px;
    min-height: 100%;
    background: linear-gradient(to bottom, #8b5cf6, #6366f1, #10b981);
    border-radius: 3px;
    flex-shrink: 0;
}

.manifesto-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0 0 0.5rem;
}

.manifesto-quote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

/* CTA */
.mission-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    color: #c4b5fd;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-cta:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.15));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
    color: #fff;
}

.mission-cta svg {
    transition: transform 0.3s ease;
}

.mission-cta:hover svg {
    transform: translateX(5px);
}

/* ============ FLOATING BRACKETS ============ */
.floating-bracket {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-weight: 800;
    color: rgba(139, 92, 246, 0.04);
    pointer-events: none;
    z-index: 0;
}

.fb-1 {
    top: 10%;
    left: 5%;
    font-size: 8rem;
    animation: floatBracket1 12s ease-in-out infinite;
}

.fb-2 {
    top: 60%;
    right: 5%;
    font-size: 10rem;
    animation: floatBracket2 15s ease-in-out infinite;
}

.fb-3 {
    bottom: 15%;
    left: 15%;
    font-size: 5rem;
    animation: floatBracket1 10s ease-in-out infinite reverse;
}

.fb-4 {
    top: 30%;
    right: 12%;
    font-size: 6rem;
    animation: floatBracket2 11s ease-in-out infinite;
}

@keyframes floatBracket1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(5deg);
    }
}

@keyframes floatBracket2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-15px, 25px) rotate(-3deg);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .mission-section {
        padding: 6rem 0 5rem;
    }

    .epochs-grid {
        gap: 1.5rem;
    }

    .epoch-card {
        padding: 1.5rem;
    }

    .epoch-year {
        font-size: 2.5rem;
    }

    .floating-bracket {
        display: none;
    }
}

@media (max-width: 768px) {
    .mission-section {
        padding: 4rem 0 3rem;
    }

    .manifesto-center {
        margin-bottom: 3rem;
    }

    .manifesto-title {
        font-size: 1.7rem;
    }

    .manifesto-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .epochs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .epoch-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .epoch-code {
        font-size: 0.72rem;
        padding: 10px 12px;
        min-height: 70px;
    }

    .epoch-year {
        font-size: 2rem;
    }

    .epoch-event {
        font-size: 0.9rem;
    }

    .manifesto-quote {
        max-width: 100%;
    }

    .manifesto-quote p {
        font-size: 1rem;
    }

    .mission-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .code-rain-col {
        display: none;
    }
}

@media (max-width: 480px) {
    .manifesto-title {
        font-size: 1.4rem;
    }

    .manifesto-text {
        font-size: 0.92rem;
    }

    .epoch-card {
        padding: 1.2rem;
    }

    .epoch-year {
        font-size: 1.8rem;
    }

    .epoch-event {
        font-size: 0.85rem;
    }

    .epoch-code {
        font-size: 0.65rem;
        min-height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .code-rain-col,
    .floating-bracket {
        animation: none !important;
    }
}