/* heisei.day - Corporate Chronological Experience */

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

:root {
    --magenta: #ff2d78;
    --blue: #3d7cff;
    --deep-navy: #1a1a3e;
    --cyan: #00e5ff;
    --light-gray: #e8e6f0;
    --lime: #b8ff00;
    --black: #0a0a0f;
    --muted: #6b6a7a;
    --purple-mid: #252540;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--light-gray);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#boot-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 12vw;
    color: var(--magenta);
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.6), 0 0 60px rgba(255, 45, 120, 0.3);
    letter-spacing: 0.1em;
}

#boot-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: var(--cyan);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#boot-subtitle.visible {
    opacity: 1;
}

/* Timeline Container */
#timeline-container {
    opacity: 0;
    transition: opacity 1s ease;
    padding: 6rem 0;
    position: relative;
}

#timeline-container.visible {
    opacity: 1;
}

/* Epoch Header */
#epoch-header {
    text-align: center;
    padding: 4rem 2rem 8rem;
}

.epoch-marker {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light-gray);
    text-shadow: 0 0 40px rgba(61, 124, 255, 0.3);
}

.epoch-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.25em;
    margin-top: 1rem;
}

/* The Spine */
#spine {
    position: absolute;
    left: 50%;
    top: 200px;
    bottom: 100px;
    width: 3px;
    background: var(--magenta);
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.5), 0 0 30px rgba(255, 45, 120, 0.2);
    transform: translateX(-50%);
}

/* Timeline */
#timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Era Nodes */
.era-node {
    position: relative;
    width: 45%;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.era-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.era-node.left {
    margin-right: auto;
    text-align: right;
    padding-right: 3rem;
}

.era-node.right {
    margin-left: auto;
    text-align: left;
    padding-left: 3rem;
}

/* Node Dot */
.node-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--magenta);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 45, 120, 0.6), 0 0 20px rgba(255, 45, 120, 0.3);
    transform: translateY(-50%);
}

.era-node.left .node-dot {
    right: -7px;
}

.era-node.right .node-dot {
    left: -7px;
}

/* Year Label */
.year-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Node Content */
.node-content h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.node-content .node-data {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.data-tag {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--lime);
    background: rgba(184, 255, 0, 0.08);
    border: 1px solid rgba(184, 255, 0, 0.2);
    padding: 3px 8px;
    display: inline-block;
}

/* Lens Flare */
.lens-flare {
    position: absolute;
    top: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 5%, rgba(255, 45, 120, 0.4) 15%, rgba(0, 229, 255, 0.15) 40%, rgba(184, 255, 0, 0.05) 70%, transparent 100%);
    pointer-events: none;
    animation: flare-pulse 3s ease-in-out infinite;
}

.era-node.left .lens-flare {
    right: -60px;
}

.era-node.right .lens-flare {
    left: -60px;
}

@keyframes flare-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Footer */
#timeline-footer {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.footer-line {
    width: 3px;
    height: 60px;
    background: var(--magenta);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.3em;
}

.footer-kanji {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 14px;
    color: var(--purple-mid);
    margin-top: 1rem;
    letter-spacing: 0.1em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--magenta);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .era-node {
        width: 80%;
        margin-left: 20% !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }

    .node-dot {
        left: -7px !important;
        right: auto !important;
    }

    #spine {
        left: 15%;
    }

    .lens-flare {
        left: -60px !important;
        right: auto !important;
    }
}
