/* Global Scan Lines Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 229, 255, 0.02) 2px,
        rgba(0, 229, 255, 0.02) 4px
    );
    z-index: 9999;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a12;
    color: #e0e0e8;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

code, .monospace, .panel-label, .metric-label, .breadcrumb {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
}

/* The Tribunal (Hero Section) */
.tribunal {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0a0a12;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.tribunal-ring {
    position: absolute;
    width: 70vh;
    height: 70vh;
    max-width: 80vw;
    max-height: 80vw;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.domain-name {
    position: relative;
    z-index: 10;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #00e5ff;
    text-align: center;
    white-space: nowrap;
    animation: typewriter 2s steps(11) forwards;
    clip-path: inset(0 100% 0 0);
}

@keyframes typewriter {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0% 0 0);
    }
}

/* Compass Panels */
.compass-panels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.compass-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-panel.top {
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
}

.compass-panel.right {
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
}

.compass-panel.bottom {
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
}

.compass-panel.left {
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
}

.panel-label {
    color: #3a3a52;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Data Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00e5ff;
    opacity: 0.15;
    left: calc(25% + random(50%));
    bottom: -10px;
    border-radius: 50%;
    animation: float var(--duration) ease-in infinite;
}

.particle:nth-child(1) { left: 20%; --duration: 8s; --delay: 0s; }
.particle:nth-child(2) { left: 35%; --duration: 10s; --delay: 1s; }
.particle:nth-child(3) { left: 50%; --duration: 12s; --delay: 2s; }
.particle:nth-child(4) { left: 65%; --duration: 9s; --delay: 0.5s; }
.particle:nth-child(5) { left: 80%; --duration: 11s; --delay: 1.5s; }
.particle:nth-child(6) { left: 25%; --duration: 13s; --delay: 3s; }
.particle:nth-child(7) { left: 75%; --duration: 8.5s; --delay: 2.5s; }
.particle:nth-child(8) { left: 45%; --duration: 15s; --delay: 4s; }

@keyframes float {
    from {
        bottom: -10px;
        opacity: 0.15;
    }
    to {
        bottom: 110vh;
        opacity: 0;
    }
}

/* The Case Files Grid */
.case-files {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 4rem;
    background: #0a0a12;
    scroll-snap-align: start;
}

.case-file {
    background: #1a1a2e;
    border: 2px solid rgba(0, 229, 255, 0.3);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.case-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 229, 255, 0.03) 2px,
        rgba(0, 229, 255, 0.03) 4px
    );
    pointer-events: none;
}

.case-file:hover {
    border-color: rgba(0, 229, 255, 0.8);
}

.case-file h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.case-file p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Content Blocks */
.content-block {
    padding: 4rem;
    background: #0a0a12;
    scroll-snap-align: start;
    border-top: 2px solid rgba(0, 229, 255, 0.1);
}

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

.content-block h2 {
    margin-bottom: 1.5rem;
    color: #00e5ff;
}

.content-block p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

.crosshair {
    color: #ff006e;
    font-size: 1.5rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

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

.feature-item span:last-child {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
}

/* Metrics Display */
.metric-display {
    margin-top: 2rem;
}

.metric {
    margin-bottom: 1.5rem;
}

.metric-label {
    display: block;
    color: #00e5ff;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #ff006e);
    transition: width 0.5s ease;
}

/* The Verdict Bar (Fixed Bottom) */
.verdict-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
    gap: 0.5rem;
}

.breadcrumb {
    color: #3a3a52;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

.breadcrumb.active {
    color: #00e5ff;
}

.breadcrumb:hover {
    color: #00e5ff;
}

.breadcrumb-separator {
    color: #3a3a52;
    margin: 0 0.5rem;
}

/* Scroll-triggered reveals */
.case-file,
.feature-item {
    transform: translateY(10px);
    opacity: 0;
    animation: reveal 0.6s ease forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .case-files {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

    .compass-panel.top,
    .compass-panel.bottom {
        display: none;
    }

    .compass-panel.left {
        left: 2vw;
    }

    .compass-panel.right {
        right: 2vw;
    }

    .content-block {
        padding: 2rem;
    }

    .verdict-bar {
        padding: 0 1rem;
        font-size: 0.75rem;
    }

    .breadcrumb-separator {
        margin: 0 0.25rem;
    }

    .tribunal-ring {
        width: 50vh;
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .compass-panels {
        display: none;
    }

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

    .content-block {
        padding: 1.5rem;
    }

    .verdict-bar {
        padding: 0 0.5rem;
        font-size: 0.7rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .tribunal-ring {
        width: 40vh;
        height: 40vh;
    }
}
