/* === judge.bar === */
/* Palette:
   Background void: #0a0a0f
   Primary holographic: #00fff2 (cyan)
   Secondary holographic: #ff00e5 (magenta)
   Tertiary holographic: #f0ff00 (yellow)
   Text primary: #e8e8f0
   Text muted: #6a6a80
   Card surface: #14141f
   Accent warm: #ff6b35
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
    color: #e8e8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ============================
   GAVEL NAVIGATION
   ============================ */

#gavel-nav-trigger {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    background: rgba(20, 20, 31, 0.8);
    border: 1px solid rgba(0, 255, 242, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    backdrop-filter: blur(10px);
}

#gavel-nav-trigger:hover {
    border-color: #00fff2;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
    transform: scale(1.08);
}

#gavel-nav-trigger .gavel-icon {
    transition: transform 0.3s;
}

#gavel-nav-trigger.active .gavel-icon {
    transform: rotate(90deg);
}

.radial-menu {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 999;
    pointer-events: none;
}

.radial-menu.hidden {
    visibility: hidden;
}

.radial-menu.visible {
    visibility: visible;
}

.radial-link {
    position: absolute;
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #e8e8f0;
    background: rgba(20, 20, 31, 0.9);
    border: 1px solid rgba(0, 255, 242, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    white-space: nowrap;
    pointer-events: all;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
    backdrop-filter: blur(10px);
}

.radial-link:hover {
    border-color: #ff00e5;
    color: #ff00e5;
}

.radial-menu.visible .radial-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.radial-menu.visible .radial-link[data-angle="0"] {
    top: 28px;
    left: 120px;
    transition-delay: 0s;
}

.radial-menu.visible .radial-link[data-angle="1"] {
    top: -20px;
    left: 180px;
    transition-delay: 0.05s;
}

.radial-menu.visible .radial-link[data-angle="2"] {
    top: -40px;
    left: 260px;
    transition-delay: 0.1s;
}

.radial-menu.visible .radial-link[data-angle="3"] {
    top: -20px;
    left: 350px;
    transition-delay: 0.15s;
}

/* ============================
   HERO SECTION
   ============================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    overflow: hidden;
    perspective: 800px;
}

/* Prismatic light beams */
.prismatic-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.beam {
    position: absolute;
    width: 2px;
    height: 200%;
    opacity: 0.12;
    transform-origin: top center;
}

.beam-1 {
    left: 30%;
    top: -50%;
    background: linear-gradient(to bottom, transparent, #00fff2, transparent);
    transform: rotate(25deg);
    animation: beamSweep1 12s ease-in-out infinite;
}

.beam-2 {
    left: 50%;
    top: -50%;
    background: linear-gradient(to bottom, transparent, #ff00e5, transparent);
    transform: rotate(-15deg);
    animation: beamSweep2 15s ease-in-out infinite;
}

.beam-3 {
    left: 70%;
    top: -50%;
    background: linear-gradient(to bottom, transparent, #f0ff00, transparent);
    transform: rotate(10deg);
    animation: beamSweep3 18s ease-in-out infinite;
}

.beam-4 {
    left: 40%;
    top: -50%;
    background: linear-gradient(to bottom, transparent, #ff6b35, transparent);
    transform: rotate(-30deg);
    animation: beamSweep4 14s ease-in-out infinite;
}

.beam-5 {
    left: 60%;
    top: -50%;
    background: linear-gradient(to bottom, transparent, #00fff2, transparent);
    transform: rotate(20deg);
    animation: beamSweep5 16s ease-in-out infinite;
}

@keyframes beamSweep1 {
    0%, 100% { transform: rotate(25deg) translateX(0); }
    50% { transform: rotate(30deg) translateX(40px); }
}

@keyframes beamSweep2 {
    0%, 100% { transform: rotate(-15deg) translateX(0); }
    50% { transform: rotate(-20deg) translateX(-30px); }
}

@keyframes beamSweep3 {
    0%, 100% { transform: rotate(10deg) translateX(0); }
    50% { transform: rotate(15deg) translateX(50px); }
}

@keyframes beamSweep4 {
    0%, 100% { transform: rotate(-30deg) translateX(0); }
    50% { transform: rotate(-25deg) translateX(-40px); }
}

@keyframes beamSweep5 {
    0%, 100% { transform: rotate(20deg) translateX(0); }
    50% { transform: rotate(25deg) translateX(30px); }
}

/* Hero Gavel 3D Rotation */
.hero-gavel-container {
    position: relative;
    z-index: 2;
    animation: gavelRotate 20s infinite linear;
    transform-style: preserve-3d;
    opacity: 0;
}

.hero-gavel-container.visible {
    animation: gavelFadeIn 1.5s ease-out forwards, gavelRotate 20s infinite linear;
}

@keyframes gavelFadeIn {
    from { opacity: 0; transform: scale(0.8) rotateY(0deg); }
    to { opacity: 1; transform: scale(1) rotateY(0deg); }
}

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

/* Hero Title with Chromatic Aberration */
.hero-title {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    letter-spacing: -0.02em;
    margin-top: 32px;
    text-align: center;
    color: #e8e8f0;
    text-shadow:
        -2px 0 #00fff2,
        2px 0 #ff00e5,
        0 2px #f0ff00;
    animation: chromaticPulse 12s ease-in-out infinite;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.letter.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

@keyframes chromaticPulse {
    0%, 100% {
        text-shadow:
            -2px 0 #00fff2,
            2px 0 #ff00e5,
            0 2px #f0ff00;
    }
    25% {
        text-shadow:
            -3px -1px #00fff2,
            3px 1px #ff00e5,
            1px 3px #f0ff00;
    }
    50% {
        text-shadow:
            -1px 1px #00fff2,
            1px -1px #ff00e5,
            -1px -2px #f0ff00;
    }
    75% {
        text-shadow:
            -2px 2px #00fff2,
            2px -2px #ff00e5,
            2px 1px #f0ff00;
    }
}

/* Horizontal rule animation */
.hero-rule {
    position: relative;
    z-index: 2;
    width: 0;
    height: 1px;
    margin-top: 20px;
    background: linear-gradient(90deg, #00fff2, #ff00e5, #f0ff00);
}

.hero-rule.animate {
    animation: ruleExpand 0.8s ease-out forwards;
}

@keyframes ruleExpand {
    to { width: clamp(200px, 40vw, 400px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    z-index: 2;
    opacity: 0;
    animation: none;
}

.scroll-indicator.visible {
    opacity: 1;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ============================
   VERDICT SECTION
   ============================ */

.verdict-section {
    padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 120px);
    max-width: 900px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 6vw, 80px);
    letter-spacing: -0.02em;
    color: #e8e8f0;
    margin-bottom: clamp(40px, 6vh, 80px);
    text-shadow:
        -1px 0 #00fff2,
        1px 0 #ff00e5,
        0 1px #f0ff00;
}

.verdict-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vh, 80px);
}

.verdict-card {
    position: relative;
    background: #14141f;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verdict-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Holographic animated border */
.verdict-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        #00fff2,
        #ff00e5,
        #f0ff00,
        #00fff2
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.6s;
}

.verdict-card.in-view::before {
    opacity: 1;
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.case-number {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a6a80;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.verdict-card.in-view .case-number {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.ruling-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: -0.02em;
    color: #e8e8f0;
    margin-bottom: 16px;
    text-shadow:
        -1px 0 rgba(0, 255, 242, 0.4),
        1px 0 rgba(255, 0, 229, 0.4);
}

.ruling-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.65;
    color: #e8e8f0;
    margin-bottom: 20px;
    opacity: 0.85;
}

.verdict-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff6b35;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.verdict-card.in-view .verdict-label {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}

/* Verdict bars */
.verdict-bar {
    width: 100%;
    height: 6px;
    background: rgba(106, 106, 128, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.verdict-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease-out;
}

.verdict-card.in-view .verdict-bar-fill {
    width: var(--fill-width, 0%);
}

.verdict-bar-fill.solid {
    background: linear-gradient(90deg, #00fff2, #ff00e5);
}

.verdict-bar-fill.striped {
    background: repeating-linear-gradient(
        90deg,
        #00fff2 0px,
        #00fff2 8px,
        transparent 8px,
        transparent 12px,
        #ff00e5 12px,
        #ff00e5 20px,
        transparent 20px,
        transparent 24px
    );
    background-size: 200% 100%;
}

.verdict-bar-fill.dotted {
    background: radial-gradient(circle 3px at 6px 3px, #f0ff00 99%, transparent 100%);
    background-size: 12px 6px;
    background-repeat: repeat;
}

/* ============================
   EVIDENCE LOCKER SECTION
   ============================ */

.evidence-section {
    padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 120px);
    min-height: 100vh;
    position: relative;
}

.evidence-instruction {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a6a80;
    text-align: center;
    margin-bottom: clamp(40px, 6vh, 80px);
}

.evidence-grid {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.evidence-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: scale(0.8);
    cursor: default;
}

.evidence-item.revealed {
    opacity: 1;
    transform: scale(1);
}

.evidence-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00fff2, #ff00e5, #f0ff00, #00fff2);
    animation: evidenceSpin 6s linear infinite;
    margin-bottom: 12px;
    transition: width 0.4s, height 0.4s;
}

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

.evidence-item.revealed .evidence-circle {
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.3), 0 0 60px rgba(255, 0, 229, 0.15);
}

.evidence-detail {
    max-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.evidence-item.revealed .evidence-detail {
    opacity: 1;
    transform: translateY(0);
}

.evidence-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b35;
    margin-bottom: 6px;
}

.evidence-detail p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6a6a80;
}

/* ============================
   THE BAR SECTION
   ============================ */

.bar-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 120px);
}

.bar-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at var(--bar-mx, 50%) var(--bar-my, 50%),
        rgba(0, 255, 242, 0.12) 0%,
        rgba(255, 0, 229, 0.06) 30%,
        rgba(240, 255, 0, 0.03) 50%,
        transparent 70%
    );
    transition: background 0.1s;
    pointer-events: none;
}

.bar-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.bar-statement {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 140px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #e8e8f0;
    text-shadow:
        -2px 0 #00fff2,
        2px 0 #ff00e5,
        0 2px #f0ff00;
}

.bar-line {
    display: block;
}

.bar-line-accent {
    color: #ff6b35;
    text-shadow:
        -2px 0 rgba(255, 107, 53, 0.5),
        2px 0 rgba(255, 0, 229, 0.4),
        0 2px rgba(240, 255, 0, 0.3);
}

.bar-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a6a80;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bar-tagline.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */

@media (max-width: 768px) {
    .radial-menu.visible .radial-link[data-angle="0"] {
        top: 70px;
        left: 28px;
    }
    .radial-menu.visible .radial-link[data-angle="1"] {
        top: 110px;
        left: 28px;
    }
    .radial-menu.visible .radial-link[data-angle="2"] {
        top: 150px;
        left: 28px;
    }
    .radial-menu.visible .radial-link[data-angle="3"] {
        top: 190px;
        left: 28px;
    }

    .evidence-grid {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .evidence-item {
        position: relative;
        opacity: 1;
        transform: scale(1);
    }

    .evidence-item .evidence-detail {
        opacity: 1;
        transform: translateY(0);
    }

    .evidence-instruction {
        display: none;
    }
}
