/* ============================================
   HOW WE THE HUMANS BUILD
   Industrial/Blueprint Theme
   ============================================ */

/* ---------- Theme Colors ---------- */
:root {
    --build-copper: #e8a87c;
    --build-bronze: #c38d5c;
    --build-steel: #5dade2;
    --build-steel-dark: #3498db;
    --build-blueprint: #1a3a5c;
    --build-grid: rgba(93, 173, 226, 0.1);
}

[data-theme="light"] {
    --build-copper: #c47d3a;
    --build-bronze: #a66a2e;
    --build-steel: #2980b9;
    --build-steel-dark: #1a5276;
    --build-blueprint: #e8f4fc;
    --build-grid: rgba(41, 128, 185, 0.08);
}

/* ---------- HERO - Blueprint Style ---------- */
.hero-build {
    background: linear-gradient(180deg, 
        var(--color-bg) 0%, 
        var(--build-blueprint) 50%,
        var(--color-bg) 100%);
}

[data-theme="light"] .hero-build {
    background: linear-gradient(180deg, 
        var(--color-bg) 0%, 
        var(--build-blueprint) 50%,
        var(--color-bg) 100%);
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--build-grid) 1px, transparent 1px),
        linear-gradient(0deg, var(--build-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.8;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.floating-gears {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gear {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    filter: grayscale(0.5);
}

.gear-1 {
    top: 15%;
    left: 10%;
    animation: gearSpin 20s linear infinite;
}

.gear-2 {
    top: 60%;
    right: 15%;
    font-size: 6rem;
    animation: gearSpin 30s linear infinite reverse;
}

.gear-3 {
    bottom: 20%;
    left: 20%;
    font-size: 3rem;
    animation: gearSpin 15s linear infinite;
}

@keyframes gearSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title-build {
    font-size: clamp(2.5rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-align: center;
}

.title-line {
    display: block;
    color: var(--color-text);
}

.accent-line {
    font-style: italic;
    background: linear-gradient(135deg, var(--build-copper) 0%, var(--build-steel) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(232, 168, 124, 0.4));
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-icon {
    font-size: 3rem;
    opacity: 0.8;
    animation: iconFloat 3s ease-in-out infinite;
}

.hero-icon:nth-child(2) { animation-delay: -1s; }
.hero-icon:nth-child(3) { animation-delay: -2s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- SECTION 1: Paradox ---------- */
.section-paradox {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-subtle) 50%, var(--color-bg) 100%);
    min-height: 100vh;
}

.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L30 20 M30 40 L30 60 M0 30 L20 30 M40 30 L60 30' stroke='%235dade2' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%235dade2' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

[data-theme="light"] .circuit-pattern {
    opacity: 0.5;
}

.section-title-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.paradox-display {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.paradox-card {
    background: var(--color-bg-elevated);
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.paradox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--build-copper), var(--build-steel));
}

.paradox-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(93, 173, 226, 0.15);
}

.paradox-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.paradox-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text);
}

.paradox-insight {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.1), rgba(93, 173, 226, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(232, 168, 124, 0.2);
}

.paradox-insight p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--build-copper);
}

[data-theme="light"] .paradox-insight p {
    color: var(--build-bronze);
}

/* ---------- SECTION 2: Evolution vs Building ---------- */
.section-evolution {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.dna-strand {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(93, 173, 226, 0.1) 25%,
        rgba(232, 168, 124, 0.1) 50%,
        rgba(93, 173, 226, 0.1) 75%,
        transparent 100%);
    animation: dnaFloat 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dnaFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-45%) rotate(5deg); }
}

.evolution-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .evolution-compare {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .evolution-divider {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

.evolution-side {
    background: var(--color-bg-elevated);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--color-text-dim);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.evolution-side:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.nature-side {
    border-color: rgba(39, 174, 96, 0.3);
}

.nature-side:hover {
    box-shadow: 0 20px 50px rgba(39, 174, 96, 0.15);
}

.human-side {
    border-color: rgba(93, 173, 226, 0.3);
}

.human-side:hover {
    box-shadow: 0 20px 50px rgba(93, 173, 226, 0.15);
}

.side-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.evolution-side h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.evolution-side p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-bar {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.3), rgba(39, 174, 96, 0.1));
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
}

.timeline-bar.fast {
    background: linear-gradient(90deg, rgba(93, 173, 226, 0.4), rgba(232, 168, 124, 0.4));
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(93, 173, 226, 0.2); }
    50% { box-shadow: 0 0 30px rgba(93, 173, 226, 0.4); }
}

.time-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.evolution-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dim);
    background: var(--color-bg-subtle);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-text-dim);
}

.speed-insight {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-bg-elevated);
    border-radius: 12px;
    border-left: 4px solid var(--build-steel);
}

.insight-icon {
    font-size: 2.5rem;
}

.speed-insight p {
    font-size: 1.3rem;
    color: var(--color-text);
}

.speed-insight strong {
    color: var(--build-steel);
}

/* ---------- SECTION 3: Engineering ---------- */
.section-engineering {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-subtle) 100%);
}

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

.showcase-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--color-bg-elevated);
    border-radius: 16px;
    border: 1px solid var(--color-text-dim);
    transition: transform 0.4s ease;
}

.showcase-item:hover {
    transform: scale(1.02);
}

.showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.nature-icon {
    font-size: 4rem;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.arrow-icon {
    font-size: 2rem;
    color: var(--build-copper);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

.build-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(93, 173, 226, 0.3));
}

.showcase-caption {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.engineering-insights {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.eng-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--color-bg);
    border-radius: 8px;
    border-left: 3px solid var(--build-copper);
    transition: background 0.3s ease;
}

.eng-card:hover {
    background: var(--color-bg-elevated);
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.eng-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
}

.eng-card em {
    color: var(--build-copper);
    font-weight: 500;
}

/* ---------- SECTION 4: The Wheel ---------- */
.section-wheel {
    background: radial-gradient(ellipse at center, var(--color-bg-subtle) 0%, var(--color-bg) 70%);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.wheel-animation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.spinning-wheel {
    font-size: 15rem;
    opacity: 0.08;
    animation: wheelSpin 20s linear infinite;
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel-statement {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-bottom: 2rem;
}

.wheel-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.4;
    color: var(--color-text);
}

.wheel-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--build-copper), var(--build-steel));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-style: italic;
    animation: wheelGlow 3s ease-in-out infinite;
}

@keyframes wheelGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(232, 168, 124, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(232, 168, 124, 0.5)); }
}

.wheel-subtext {
    position: relative;
    z-index: 1;
}

.wheel-subtext p {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- SECTION 5: AI Future ---------- */
.section-ai-future {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--build-blueprint) 50%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .section-ai-future {
    background: linear-gradient(180deg, var(--color-bg) 0%, #e8f4fc 50%, var(--color-bg) 100%);
}

.neural-net-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(93, 173, 226, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(232, 168, 124, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(93, 173, 226, 0.05) 0%, transparent 50%);
    animation: neuralPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.ai-statement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 3rem 0 4rem;
    padding: 3rem;
    background: var(--color-bg-elevated);
    border-radius: 20px;
    border: 1px solid rgba(93, 173, 226, 0.2);
}

.ai-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: robotPulse 3s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ai-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.6;
    color: var(--color-text);
    max-width: 700px;
}

.moravec-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

[data-theme="light"] .moravec-block {
    background: var(--color-bg-elevated);
    border-color: rgba(41, 128, 185, 0.3);
}

.moravec-header {
    background: linear-gradient(90deg, rgba(93, 173, 226, 0.2), rgba(232, 168, 124, 0.2));
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(93, 173, 226, 0.2);
}

.moravec-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--build-steel);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

[data-theme="light"] .moravec-label {
    color: var(--build-steel-dark);
}

.moravec-content {
    padding: 2rem;
}

.moravec-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.moravec-quote {
    background: rgba(93, 173, 226, 0.05);
    border-left: 4px solid var(--build-steel);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
}

.moravec-quote p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.moravec-quote cite {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--color-text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title-build {
        font-size: 3rem;
    }
    
    .hero-icons {
        gap: 1rem;
    }
    
    .hero-icon {
        font-size: 2rem;
    }
    
    .gear {
        font-size: 2.5rem;
    }
    
    .gear-2 {
        font-size: 4rem;
    }
    
    .paradox-card {
        flex-direction: column;
        text-align: center;
    }
    
    .paradox-emoji {
        font-size: 3rem;
    }
    
    .evolution-compare {
        grid-template-columns: 1fr;
    }
    
    .speed-insight {
        flex-direction: column;
        text-align: center;
    }
    
    .showcase-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
    }
    
    .spinning-wheel {
        font-size: 10rem;
    }
    
    .ai-statement {
        padding: 2rem;
    }
    
    .moravec-content {
        padding: 1.5rem;
    }
}
