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

:root {
    --bg-void: #0A0618;
    --bg-secondary: #14082A;
    --bg-tertiary: #1E1040;
    --accent-amber: #FF8C00;
    --accent-cyan: #00E5FF;
    --text-body: #C0B8D0;
    --accent-coral: #FF4D6A;
    --text-white: #FFFFFF;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-void);
    color: var(--text-body);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
    z-index: -1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 60px 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo-section {
    flex: 0 0 auto;
}

.domain {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 56px;
    letter-spacing: 0.03em;
    color: var(--accent-amber);
    margin: 0;
    padding: 0;
    line-height: 1;
    animation: fadeInDown 0.8s ease-out;
}

.jp-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--text-body);
    margin-top: 8px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.nav {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
}

.nav-item {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--accent-cyan);
    animation: fadeInDown 0.8s ease-out 0.1s both;
}

/* Header Wave */
.header-wave {
    height: 120px;
    margin: 40px 60px 0;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.header-wave svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: wave-scroll 3s linear infinite;
}

@keyframes wave-scroll {
    0% {
        stroke-dasharray: 1200;
        stroke-dashoffset: 1200;
    }
    100% {
        stroke-dasharray: 1200;
        stroke-dashoffset: 0;
    }
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 60px;
    position: relative;
    z-index: 5;
}

.content-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Archive Cards */
.archive-card {
    background: rgba(20, 8, 42, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid var(--accent-amber);
    padding: 32px;
    position: relative;
    animation: fadeInLift 0.6s ease-out;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px
        );
}

.archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.15);
    border-color: #FFAA40;
}

.archive-card:hover .waveform-path {
    animation-duration: 1.5s;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.archive-id {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--accent-cyan);
}

.status-badge {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 2px;
}

.status-badge.shelved {
    background: rgba(255, 140, 0, 0.15);
    color: var(--accent-amber);
}

.status-badge.dormant {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
}

.status-badge.deprecated {
    background: rgba(255, 77, 106, 0.15);
    color: var(--accent-coral);
}

.card-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.02em;
    color: var(--accent-amber);
    margin-bottom: 16px;
    line-height: 1.2;
}

.card-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 20px;
}

.card-waveform {
    height: 60px;
    margin-top: 24px;
}

.card-waveform svg {
    width: 100%;
    height: 100%;
}

.waveform-path {
    animation: waveform-scroll 3s linear infinite;
}

@keyframes waveform-scroll {
    0% {
        stroke-dasharray: 400;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 400;
        stroke-dashoffset: 400;
    }
}

/* Divider Waves */
.divider-wave {
    height: 40px;
    opacity: 0.6;
    margin: 20px 0;
}

.divider-wave svg {
    width: 100%;
    height: 100%;
}

.divider-wave-path {
    animation: divider-wave 4s ease-in-out infinite;
}

@keyframes divider-wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Right Column */
.right-column {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.collage-container {
    position: relative;
    height: 600px;
    margin-top: 40px;
}

.collage-fragment {
    position: absolute;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: fadeInLift 0.8s ease-out;
}

.frag-circle {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.6), transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation-delay: 0.1s;
}

.frag-rect {
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(255, 77, 106, 0.3));
    animation-delay: 0.2s;
}

.frag-arc {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 120px 0 0 0;
    opacity: 0.5;
    animation-delay: 0.3s;
}

.frag-grid {
    width: 100px;
    height: 100px;
    background-image: 
        linear-gradient(90deg, rgba(0, 229, 255, 0.3) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 229, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    animation-delay: 0.4s;
}

.frag-circle-small {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.5), transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation-delay: 0.5s;
}

.frag-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 140, 0, 0.4);
    opacity: 0.5;
    animation-delay: 0.6s;
}

/* Metadata Panel */
.metadata-panel {
    background: rgba(20, 8, 42, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--accent-cyan);
    border-radius: 2px;
    padding: 24px;
    position: sticky;
    top: 100px;
    animation: fadeInLift 0.8s ease-out 0.3s both;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px
        );
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.metadata-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.meta-label {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.meta-value {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent-amber);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLift {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 40px 40px 0;
    }

    .main-content {
        padding: 0 40px 40px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .collage-container {
        display: none;
    }

    .metadata-panel {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px 0;
    }

    .domain {
        font-size: 36px;
    }

    .nav {
        gap: 20px;
        width: 100%;
    }

    .main-content {
        padding: 0 20px 30px;
    }

    .header-wave {
        margin: 30px 20px 0;
    }

    .archive-card {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }
}
