/* ============================================
   CODIGOCODE - Timeline Evolution Styles
   ============================================ */

:root {
    --scale: 1;
    --radius: 0px;
    --bg: #ffffff;
    --text: #000000;
    --spacing: 1rem;
    --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.5;
    --container-width: 600px;
    --shadow: none;
    --border: 1px solid #000000;

    --surface-0: #fbfbfc;
    --surface-1: #f6f7f9;
    --surface-2: #eef0f4;
    --surface-3: #e6e9ef;

    --ink-0: #0b0d12;
    --ink-1: rgba(11, 13, 18, 0.86);
    --ink-2: rgba(11, 13, 18, 0.68);
    --ink-3: rgba(11, 13, 18, 0.52);

    --line-1: rgba(11, 13, 18, 0.12);
    --line-2: rgba(11, 13, 18, 0.18);

    --accent-1: #2563eb;
    --accent-1-ink: #ffffff;
    --accent-2: #7c3aed;
    --accent-3: #06b6d4;

    --accent-warm: #f59e0b;
    --accent-warm-2: #f97316;
    --accent-warm-ink: #0b0d12;

    --shadow-1: 0 22px 60px rgba(11, 13, 18, 0.12);
    --shadow-2: 0 14px 34px rgba(11, 13, 18, 0.14);

    --bg-base: rgb(255, 255, 255);
    --bg-accent-1: rgb(0, 180, 255);
    --bg-accent-2: rgb(120, 90, 255);
    --bg-accent-3: rgb(0, 255, 190);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    background: #000000;
    overflow-x: hidden;
    transition: background-color 0.6s ease;
}

/* Dynamic body backgrounds based on active era */
body.era-active-2000 {
    background: #000000;
}

body.era-active-2005 {
    background: #f5f5f5;
}

body.era-active-2015 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.era-active-2020 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body.era-active-2025 {
    background:
        radial-gradient(1200px 700px at 10% 10%, rgba(245, 158, 11, 0.16), transparent 55%),
        radial-gradient(900px 600px at 90% 18%, rgba(249, 115, 22, 0.14), transparent 52%),
        radial-gradient(800px 520px at 75% 85%, rgba(37, 99, 235, 0.10), transparent 58%),
        var(--surface-0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .timeline-viewport {
        transform: none !important;
    }
}

/* ============================================
   YEAR INDICATOR
   ============================================ */

.year-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Terminal era styling for year indicator */
body.era-active-2000 .year-indicator {
    background: #001a00;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 0;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'Courier New', monospace;
}

.year-label {
    opacity: 0.7;
    margin-right: 8px;
}

.year-value {
    font-size: 18px;
}

/* Timeline progress bar */
.timeline-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: opacity 0.5s ease;
}

.timeline-milestones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.milestone-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.milestone.active .milestone-dot {
    background: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    transform: scale(1.3);
}

.milestone.completed .milestone-dot {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.milestone-label {
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.milestone.active .milestone-label {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    transform: scale(1.1);
}

.milestone.completed .milestone-label {
    color: rgba(255, 255, 255, 0.9);
}

.timeline-progress {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #00ffff);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   TIMELINE STRUCTURE
   ============================================ */

.timeline-wrapper {
    height: 500vh;
    position: relative;
}

.timeline-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--scale));
    transition: transform 0.1s ease-out;
}

.timeline-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

/* ============================================
   CONTAINERS
   ============================================ */

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-medium {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   ERA SECTIONS
   ============================================ */

.era {
    min-height: 100vh;
    display: none;
    padding: 0;
    position: relative;
    width: 100%;
}

.era.active {
    display: block;
    animation: eraFadeIn 0.5s ease-out;
}

.era.transitioning-out {
    animation: eraTransitionOut 0.6s ease-in forwards;
}

/* Era transition animations */
@keyframes eraFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes eraTransitionOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.98) translateY(-20px);
    }
}

/* Glitch effect for era transitions */
@keyframes glitchEffect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch-transition {
    animation: glitchEffect 0.3s ease-in-out 2, eraFadeIn 0.6s ease-out !important;
}

.glitch-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 255, 0, 0.1) 75%, 
        transparent 100%);
    animation: glitchScan 0.3s linear 2;
    pointer-events: none;
    z-index: 9999;
}

@keyframes glitchScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Body transition state */
body.era-transitioning {
    overflow: hidden;
}

/* Specific transition effects per era */
.era-2000.active {
    animation: terminalBoot 1s ease-out;
}

.era-2005.active {
    animation: eraFadeIn 0.6s ease-out;
}

.era-2015.active {
    animation: eraFadeIn 0.6s ease-out;
}

.era-2020.active {
    animation: eraFadeIn 0.6s ease-out;
}

.era-2025.active {
    animation: eraFadeIn 0.6s ease-out;
}

@keyframes terminalBoot {
    0% {
        opacity: 0;
        filter: brightness(0);
    }
    50% {
        opacity: 0.5;
        filter: brightness(1.5) contrast(1.2);
    }
    100% {
        opacity: 1;
        filter: brightness(1) contrast(1);
    }
}

/* Era 1: 1980s - COBOL Terminal Style */
.era-2000 {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', 'Consolas', monospace;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* CRT Screen Effect */
.era-2000::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* CRT Glow Effect */
.era-2000::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.terminal-screen {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: #000000;
    box-shadow: inset 0 0 100px rgba(0, 255, 0, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-arrow {
    color: #00ff00;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.scroll-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

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

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 20px rgba(0, 255, 0, 1);
    }
}

.terminal-header {
    background: #001a00;
    border: 2px solid #00ff00;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-title {
    color: #00ff00;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
}

.terminal-cursor-blink {
    color: #00ff00;
    animation: blink 1s infinite;
    font-size: 18px;
}

.terminal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #000000;
    border: 2px solid #00ff00;
}

.terminal-text {
    color: #00ff00;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
    display: block;
}

.terminal-label {
    color: #00ffff;
    font-weight: bold;
    display: block;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.terminal-code {
    color: #00ff00;
    display: block;
}

.terminal-separator {
    color: #00aa00;
    display: block;
    opacity: 0.6;
}

.terminal-warning {
    color: #ffff00;
    font-weight: bold;
    display: block;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
}

.terminal-error {
    color: #ff0000;
    font-weight: bold;
    display: block;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}

.terminal-cursor {
    color: #00ff00;
    animation: blink 0.8s infinite;
    font-weight: bold;
}

.terminal-brand {
    color: #00ff00;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: brandPulse 2s ease-in-out infinite;
    margin: 1rem 0;
}

.terminal-brand-ai {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 255, 1);
    animation: aiGlow 1.5s ease-in-out infinite;
}

.terminal-tagline {
    color: #ffff00;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    margin-left: 1rem;
}

@keyframes brandPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.5);
    }
}

@keyframes aiGlow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(0, 255, 255, 1);
    }
    50% {
        text-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 0.7);
    }
}

/* Animations */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Scanline effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Terminal flicker on load */
@keyframes terminalFlicker {
    0%, 100% {
        opacity: 1;
    }
    2%, 8%, 12%, 20%, 25% {
        opacity: 0.9;
    }
    4%, 10%, 15%, 22% {
        opacity: 0.7;
    }
}

.terminal-screen {
    animation: terminalFlicker 0.8s ease-in-out;
}

/* Add slight text glow variation */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    }
    50% {
        text-shadow: 0 0 8px rgba(0, 255, 0, 0.9), 0 0 12px rgba(0, 255, 0, 0.5);
    }
}

.terminal-text {
    animation: textGlow 3s ease-in-out infinite;
}

/* Era transition screens */
.era-transition-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

 .era-art {
     width: min(560px, 92vw);
     height: auto;
     margin: 0.75rem 0 1.25rem;
     filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.25));
 }

.era-year {
    font-size: 120px;
    font-weight: 900;
    opacity: 0.1;
    margin-bottom: -60px;
    letter-spacing: -5px;
}

.era-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.era-subtitle {
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
}

/* Era 2: 2005-2010 */
.era-2005 {
    background: #f5f5f5;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
}

.era-2005 .era-year {
    color: #2c3e50;
}

.era-2005 .era-title {
    color: #2c3e50;
}

.era-2005 .era-subtitle {
    color: #34495e;
}

.era-2005 h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.era-2005 h3 {
    font-size: 20px;
    margin-bottom: 1rem;
    color: #34495e;
}

.problem-box {
    background: #fff;
    border: 2px solid #ddd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* Era 3: 2015 */
.era-2015 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
}

.era-2015 .era-year {
    color: rgba(255, 255, 255, 0.15);
}

.era-2015 .era-title {
    color: #ffffff;
}

.era-2015 .era-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.era-2015 h2 {
    font-size: 32px;
    margin-bottom: 2rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.highlight-box {
    background: #fff;
    border-left: 4px solid #3498db;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 4px;
}

/* Era 4: 2020 */
.era-2020 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0;
}

.era-2020 .era-year {
    color: rgba(255, 255, 255, 0.15);
}

.era-2020 .era-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.era-2020 .era-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.era-2020 h2 {
    font-size: 36px;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-text {
    font-size: 20px;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.approach-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.approach-section h3 {
    font-size: 28px;
    margin-bottom: 2rem;
    text-align: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-item {
    text-align: center;
}

.approach-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #fff;
}

.approach-item h4 {
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.approach-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.insight-box {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
}

/* Era 5: 2025+ Modern */
.era-2025 {
    background: transparent;
    color: var(--ink-0);
    font-family: var(--font-primary);
    padding: 0;
}

.era-2025 .animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}


.era-2025 .animated-bg canvas {
    width: 100%;
    height: 100%;
    display: block;
}

:root {
    --nn-line: rgba(26, 26, 26, 0.22);
    --nn-node: rgba(26, 26, 26, 0.55);
    --nn-density: 1.35;
    --nn-speed: 1.15;
    --nn-pointer-radius: 180;
    --nn-pointer-strength: 1;
    --nn-pointer-mode: attract;
}

.era-2025 .container-modern {
    position: relative;
    z-index: 1;
}

.bc-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 6rem;
}

.bc-hero {
    padding: 5.5rem 0 3.5rem;
}

.bc-layout,
.modern-header {
    color: var(--ink-0);
}

.bc-hero-inner {
    max-width: 900px;
}

.bc-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bc-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.22));
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: rgba(11, 13, 18, 0.92);
}

.bc-eyebrow {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.65);
    margin-bottom: 1rem;
}

.bc-title {
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
}

.bc-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.bc-title-row .bc-title {
    margin-bottom: 0;
}

.bc-award {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bc-award:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 26, 26, 0.18);
}

.bc-award-logo {
    width: 56px;
    height: 56px;
    display: block;
}

.bc-award-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bc-lead {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.7);
    max-width: 760px;
    margin-bottom: 2rem;
}

.bc-trust {
    margin-top: -1rem;
    margin-bottom: 1.75rem;
    color: rgba(26, 26, 26, 0.62);
    font-size: 14px;
}

.bc-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.bc-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line-1);
}

.bc-kpi-number {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bc-kpi-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    color: rgba(26, 26, 26, 0.65);
}

.bc-kpi-sub {
    font-size: 14px;
    margin-top: 0.4rem;
    color: rgba(26, 26, 26, 0.55);
}

.bc-section {
    padding: 5rem 0;
    border-top: 1px solid var(--line-1);
}

.era-2025 .bc-section {
    position: relative;
    border-top: 0;
}

.era-2025 .bc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.35), rgba(249, 115, 22, 0.25), rgba(37, 99, 235, 0.18), transparent);
}

.bc-h2 {
    font-size: 42px;
    letter-spacing: -0.6px;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.bc-h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.bc-h4 {
    font-size: 16px;
    margin-bottom: 1rem;
}

.bc-intro {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(26, 26, 26, 0.7);
    max-width: 820px;
    margin-bottom: 2.5rem;
}

.bc-muted {
    color: rgba(26, 26, 26, 0.6);
}

.bc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.bc-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line-1);
    border-radius: 14px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-1);
}

.era-2025 .bc-card,
.era-2025 .bc-column,
.era-2025 .bc-panel {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.era-2025 .bc-card:hover,
.era-2025 .bc-column:hover,
.era-2025 .bc-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(11, 13, 18, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

.era-2025 .bc-card:focus-within,
.era-2025 .bc-column:focus-within,
.era-2025 .bc-panel:focus-within {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 18px 50px rgba(11, 13, 18, 0.14);
}

.bc-card-featured {
    border-color: var(--line-2);
}

.bc-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-2));
    color: var(--accent-warm-ink);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.bc-list {
    list-style: none;
    margin: 1rem 0;
}

.bc-list li {
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    position: relative;
    color: rgba(26, 26, 26, 0.75);
}

.bc-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: rgba(26, 26, 26, 0.55);
}

.bc-meta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-1);
    color: var(--ink-2);
}

.bc-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.bc-column {
    padding: 1.5rem;
    border: 1px solid var(--line-1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
}

.bc-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.bc-panel {
    padding: 1.75rem;
    border: 1px solid var(--line-1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
}

.bc-contact {
    padding: 5rem 0 0;
    border-top: 1px solid var(--line-1);
}

.bc-contact-inner {
    padding: 3rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line-1);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-1);
}

@media (max-width: 980px) {
    .bc-title {
        font-size: 48px;
    }

    .bc-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-columns {
        grid-template-columns: 1fr;
    }

    .bc-split {
        grid-template-columns: 1fr;
    }

    .modern-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .bc-layout {
        padding: 2.5rem 1.25rem 4.5rem;
    }

    .bc-hero {
        padding-top: 4.25rem;
    }

    .bc-title {
        font-size: 40px;
    }

    .bc-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bc-award-logo {
        width: 46px;
        height: 46px;
    }

    .bc-lead {
        font-size: 18px;
    }

    .bc-cards {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 1.25rem 1.25rem;
        gap: 1rem;
        align-items: flex-start;
    }
}

.modern-header {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line-1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--ink-0);
    font-family: var(--font-display);
    text-decoration: none;
    line-height: 1;
}

.logo-modern .logo-mark {
    width: 32px;
    height: 32px;
    display: block;
}

.logo-modern .logo-word {
    font-size: 18px;
}

.logo-modern:hover {
    transform: translateY(-1px);
}

.logo-modern:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.45);
    outline-offset: 4px;
    border-radius: 10px;
}

.modern-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.modern-nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.modern-nav a:hover {
    color: var(--ink-0);
}

.modern-nav .nav-cta {
    background: var(--accent-warm);
    color: var(--accent-warm-ink);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.modern-nav .nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-2));
    color: var(--accent-warm-ink);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-2));
    color: var(--accent-warm-ink);
}

.btn-primary:hover {
    filter: brightness(0.98) saturate(1.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-0);
    border: 1px solid var(--line-2);
}

.btn-secondary:hover {
    border-color: var(--ink-0);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 18px;
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card.featured {
    border: 2px solid #1a1a1a;
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.service-header h3 {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.service-tagline {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.service-body ul {
    list-style: none;
    margin: 1rem 0;
}

.service-body li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.service-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-time {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

/* How Section */
.how-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.how-item {
    text-align: center;
}

.how-number {
    font-size: 48px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.how-item h3 {
    font-size: 22px;
    margin-bottom: 1rem;
}

.how-item p {
    color: #6b7280;
    line-height: 1.6;
}

.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 12px;
}

.comparison-col h4 {
    font-size: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.comparison-list.negative li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.comparison-list.positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Cases Section */
.cases-section {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #1a1a1a;
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 1rem;
}

.case-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 20px;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.era-2025 .footer {
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink-0);
    border-top: 1px solid var(--line-1);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}

.era-2025 .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-warm), var(--accent-warm-2), transparent);
    opacity: 0.9;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.era-2025 .footer-col h4 {
    color: var(--ink-0);
    letter-spacing: -0.2px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #9ca3af;
}

.era-2025 .footer-col p {
    color: rgba(26, 26, 26, 0.7);
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.era-2025 .footer-col a {
    color: rgba(26, 26, 26, 0.72);
}

.footer-col a:hover {
    color: #ffffff;
}

.era-2025 .footer-col a:hover {
    color: var(--ink-0);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.era-2025 .footer-bottom {
    border-top: 1px solid var(--line-1);
    color: rgba(26, 26, 26, 0.65);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Era transition responsive styles */
@media (max-width: 768px) {
    .era-year {
        font-size: 80px;
        margin-bottom: -40px;
    }
    
    .era-title {
        font-size: 32px;
    }
    
    .era-subtitle {
        font-size: 16px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .era-year {
        font-size: 60px;
        margin-bottom: -30px;
    }
    
    .era-title {
        font-size: 24px;
    }
    
    .era-subtitle {
        font-size: 14px;
    }
}

/* Terminal responsive styles */
@media (max-width: 768px) {
    .terminal-screen {
        padding: 1rem;
    }
    
    .terminal-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-arrow {
        font-size: 20px;
    }
    
    .scroll-text {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .terminal-brand {
        font-size: 8px;
    }
    
    .terminal-brand-ai {
        font-size: 18px;
    }
    
    .terminal-tagline {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terminal-screen {
        padding: 0.5rem;
    }
    
    .terminal-text {
        font-size: 10px;
    }
    
    .terminal-content {
        padding: 0.5rem;
    }
}

/* Timeline progress bar responsive */
@media (max-width: 768px) {
    .timeline-progress-bar {
        padding: 0.75rem 1rem;
    }
    
    .milestone-dot {
        width: 12px;
        height: 12px;
    }
    
    .milestone.active .milestone-dot {
        transform: scale(1.2);
    }
    
    .milestone-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .timeline-progress-bar {
        padding: 0.5rem;
    }
    
    .milestone-dot {
        width: 10px;
        height: 10px;
    }
    
    .milestone-label {
        font-size: 9px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .year-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .year-value {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .modern-nav {
        display: none;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .services-section,
    .how-section,
    .cases-section,
    .faq-section,
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-box {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
