/* sbom.wiki - Opulent Bauhaus Factory Floor */
/* Neon-Electric on Void Palette */
:root {
    --void-ground: #0a0a0f;
    --electric-green: #00ff9d;
    --alarm-pink: #ff2d6a;
    --deep-field: #12002e;
    --specimen-leather: #8b6914;
    --text-primary: #e0e0e8;
    --text-muted: #6b6b7b;
    --grid-line: #1a2a22;
    --charcoal: #1a1a24;
    --near-black: #0d0d15;
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-ground);
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Progress Indicator */
#progress-indicator {
    position: fixed;
    right: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    z-index: 1000;
}

#progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--alarm-pink);
    transition: height 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 45, 106, 0.5);
}

.progress-diamond {
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--alarm-pink);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-diamond.active {
    opacity: 1;
    box-shadow: 0 0 6px rgba(255, 45, 106, 0.6);
}

/* Band Base Styles */
.band {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.band-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.band-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Chevron Borders */
.chevron-border {
    position: absolute;
    left: 0;
    right: 0;
    height: 16px;
    z-index: 4;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 14px,
        rgba(0, 255, 157, 0.15) 14px,
        rgba(0, 255, 157, 0.15) 16px
    );
}

.chevron-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpolyline points='0,16 16,0 32,16' fill='none' stroke='%2300ff9d' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.chevron-top {
    top: 0;
}

.chevron-bottom {
    bottom: 0;
}

/* Band 1: The Vault Door */
#band-1 {
    height: 100vh;
    min-height: 700px;
    background: var(--void-ground);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#dependency-tree {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.tree-line {
    fill: none;
    stroke: var(--electric-green);
    stroke-width: 2;
    opacity: 0.6;
    stroke-dasharray: 8 4;
    animation: treePulse 3s linear infinite;
}

.tree-line:nth-child(2n) {
    animation-delay: -1s;
}

.tree-line:nth-child(3n) {
    animation-delay: -2s;
}

@keyframes treePulse {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -24; }
}

.tree-node {
    fill: rgba(0, 255, 157, 0.1);
    stroke: var(--electric-green);
    stroke-width: 1.5;
    animation: nodeGlow 5s ease-in-out infinite;
}

.tree-node.node-root {
    fill: rgba(0, 255, 157, 0.2);
    stroke-width: 2;
}

.tree-node.node-leaf {
    fill: rgba(0, 255, 157, 0.05);
    stroke-width: 1;
}

@keyframes nodeGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 255, 157, 0.1)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.4)); }
}

.tree-node-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    fill: var(--electric-green);
    text-anchor: middle;
    dominant-baseline: central;
}

.band-1-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    text-align: center;
}

.hero-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    min-height: 1.2em;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    animation: charReveal 0.3s var(--spring-ease) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 640px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Band 2: The Exhibition Hall */
#band-2 {
    background: var(--deep-field);
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    padding: 160px 0 180px;
    margin-top: -80px;
    min-height: 80vh;
}

.band-heading {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.leather-card {
    background:
        linear-gradient(135deg, rgba(139, 105, 20, 0.9), rgba(100, 75, 15, 0.85)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='4' type='fractalNoise'/%3E%3CfeColorMatrix type='matrix' values='0.3 0 0 0 0.2 0 0.2 0 0 0.12 0 0 0.1 0 0.02 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
    border: 1px solid rgba(139, 105, 20, 0.4);
    border-radius: 2px;
    padding: 40px 32px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.leather-card.card-animate {
    opacity: 0;
    transform: translateX(-30px) rotate(-2deg);
}

.leather-card.card-animate.visible {
    animation: cardReveal 0.6s var(--spring-ease) forwards;
}

.leather-card.card-animate[data-delay='1'].visible {
    animation-delay: 150ms;
}

.leather-card.card-animate[data-delay='2'].visible {
    animation-delay: 300ms;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.card-chevron-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8'%3E%3Cpolyline points='0,8 16,0 32,8' fill='none' stroke='%2300ff9d' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.card-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--electric-green);
    margin-bottom: 20px;
}

.card-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-primary);
    opacity: 0.9;
}

.bauhaus-punctuation {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    align-items: center;
}

.geo-shape {
    display: inline-block;
    width: 8px;
    height: 8px;
}

.shape-diamond {
    background: var(--electric-green);
    transform: rotate(45deg);
}

.shape-circle {
    background: var(--alarm-pink);
    border-radius: 50%;
}

/* Band 3: The Specimen Cabinet */
#band-3 {
    background: var(--charcoal);
    clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
    padding: 160px 0 180px;
    margin-top: -80px;
    position: relative;
}

.bauhaus-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.band-3-content {
    z-index: 3;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.specimen-card {
    background:
        linear-gradient(135deg, rgba(139, 105, 20, 0.7), rgba(100, 75, 15, 0.6));
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 2px;
    padding: 24px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.specimen-card:hover {
    border-color: rgba(0, 255, 157, 1);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(0, 255, 157, 0.15);
    transform: scale(1.02);
}

.specimen-card.specimen-animate {
    opacity: 0;
    transform: translateY(20px);
}

.specimen-card.specimen-animate.visible {
    animation: specimenReveal 0.5s var(--spring-ease) forwards;
}

.specimen-card.specimen-animate:nth-child(2).visible { animation-delay: 80ms; }
.specimen-card.specimen-animate:nth-child(3).visible { animation-delay: 160ms; }
.specimen-card.specimen-animate:nth-child(4).visible { animation-delay: 240ms; }
.specimen-card.specimen-animate:nth-child(5).visible { animation-delay: 320ms; }
.specimen-card.specimen-animate:nth-child(6).visible { animation-delay: 400ms; }
.specimen-card.specimen-animate:nth-child(7).visible { animation-delay: 480ms; }
.specimen-card.specimen-animate:nth-child(8).visible { animation-delay: 560ms; }

@keyframes specimenReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specimen-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.specimen-version {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--electric-green);
}

.specimen-license {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.specimen-deps {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    background: var(--electric-green);
    color: var(--void-ground);
    padding: 2px 10px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
}

/* Band 4: The Standards Corridor */
#band-4 {
    background: var(--near-black);
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    padding: 160px 0 180px;
    margin-top: -80px;
    min-height: 60vh;
}

.standards-container {
    width: 100%;
    max-width: 100%;
}

#standards-lines {
    width: 100%;
    height: auto;
    display: block;
}

.standard-line {
    fill: none;
    stroke-width: 3;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease;
}

.standard-line.visible {
    stroke-dashoffset: 0;
}

.line-green {
    stroke: var(--electric-green);
}

.line-pink {
    stroke: var(--alarm-pink);
}

.line-tan {
    stroke: var(--specimen-leather);
}

.line-green.visible { transition-delay: 0s; }
.line-pink.visible { transition-delay: 0.3s; }
.line-tan.visible { transition-delay: 0.6s; }

.standard-label {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.12em;
}

.standard-label-green { fill: var(--electric-green); }
.standard-label-pink { fill: var(--alarm-pink); }
.standard-label-tan { fill: var(--specimen-leather); }

.diamond-marker {
    fill: var(--text-primary);
    opacity: 0.8;
}

.marker-pulse {
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.annotation-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    fill: var(--text-muted);
    text-anchor: middle;
}

/* Band 5: The Archive Seal */
#band-5 {
    background: var(--void-ground);
    clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%);
    padding: 120px 0 80px;
    margin-top: -60px;
    min-height: 40vh;
}

.band-5-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.colophon-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.colophon-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.colophon-chevron {
    width: 100%;
    margin: 32px 0;
}

.colophon-shapes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.colophon-circle {
    border-radius: 50%;
    border: 1px solid var(--electric-green);
    opacity: 0.3;
}

.colophon-circle-lg {
    width: 24px;
    height: 24px;
}

.colophon-circle-md {
    width: 16px;
    height: 16px;
}

.colophon-circle-sm {
    width: 10px;
    height: 10px;
}

/* Visible Grid Lines */
.band-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(8.333% - 12px),
        rgba(0, 255, 157, 0.04) calc(8.333% - 12px),
        rgba(0, 255, 157, 0.04) calc(8.333%),
        transparent calc(8.333%)
    );
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specimen-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .band-content {
        padding: 0 24px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #band-1 {
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    }
    #band-2 {
        clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 94%);
    }
    #band-3 {
        clip-path: polygon(0 0, 100% 6%, 100% 94%, 0 100%);
    }
    #band-4 {
        clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 94%);
    }
    #band-5 {
        clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%);
    }
    #progress-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .specimen-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title .char {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-subtitle {
        opacity: 1;
        animation: none;
    }
    .leather-card.card-animate {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .specimen-card.specimen-animate {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .tree-line {
        animation: none;
    }
    .tree-node {
        animation: none;
    }
    .marker-pulse {
        animation: none;
    }
    .standard-line {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}
