/* eyes.cash - CSS Styles */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #06060C;
    color: #E8E8F0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* Background and particles */
.void-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #06060C;
    z-index: -10;
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Generate particles dynamically via CSS */
.particle-field::before,
.particle-field::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00FFC8;
    border-radius: 50%;
    opacity: 0.12;
}

/* Scanning line */
.scanning-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00FFC8 20%, #FF003C 50%, #00FFC8 80%, transparent 100%);
    z-index: 100;
    animation: scan-sweep 12s linear infinite;
    will-change: transform;
}

.scanning-line-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00FFC8 20%, #FF003C 50%, #00FFC8 80%, transparent 100%);
    z-index: 99;
    animation: scan-sweep 12s linear infinite;
    animation-delay: 0.2s;
    opacity: 0.3;
    filter: blur(3px);
    will-change: transform;
}

@keyframes scan-sweep {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Iris overlay */
.iris-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 50;
    opacity: 0.15;
}

.iris-ring {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 255, 200, 0.3)) drop-shadow(0 0 40px rgba(0, 255, 200, 0.1));
    animation: iris-pulse 4s ease-in-out infinite;
}

.iris-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #00FFC8 0%, #7B2FFF 40%, #0A0A12 100%);
    border-radius: 50%;
    opacity: 0.8;
}

@keyframes iris-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

/* Corner orientation dots */
.corner-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00FFC8;
    border-radius: 50%;
    z-index: 40;
    opacity: 0.3;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    animation: corner-pulse 2s ease-in-out infinite;
}

.top-left {
    top: 24px;
    left: 24px;
}

.top-right {
    top: 24px;
    right: 24px;
    animation-delay: 0.2s;
}

.bottom-right {
    bottom: 24px;
    right: 24px;
    animation-delay: 0.4s;
}

.bottom-left {
    bottom: 24px;
    left: 24px;
    animation-delay: 0.6s;
}

@keyframes corner-pulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(0, 255, 200, 0.8);
    }
}

/* Progress arc */
.progress-arc {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 200px;
    height: 200px;
    z-index: 30;
    opacity: 0.3;
}

/* Main viewport */
.viewport {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

.viewport::-webkit-scrollbar {
    width: 1px;
}

.viewport::-webkit-scrollbar-track {
    background: transparent;
}

.viewport::-webkit-scrollbar-thumb {
    background: #00FFC8;
    opacity: 0.1;
}

/* Panels */
.panel {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.panel-1 {
    background: #06060C;
}

.panel-2, .panel-3, .panel-4, .panel-5 {
    background: #06060C;
}

/* Panel content */
.panel-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iris-opening {
    text-align: center;
    animation: fade-in 3.5s ease-out forwards;
    opacity: 0;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: #00FFC8;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.4), 0 0 60px rgba(0, 255, 200, 0.1);
    margin-bottom: 20px;
    animation: title-stagger 2s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes title-stagger {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: #5A5A72;
    letter-spacing: 0.1em;
    animation: subtitle-fade 0.8s ease-out 3.5s forwards;
    opacity: 0;
}

@keyframes subtitle-fade {
    0% {
        color: #5A5A72;
        opacity: 0;
    }
    100% {
        color: #E8E8F0;
        opacity: 1;
    }
}

/* HUD Panels */
.hud-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hud-panel {
    background: #10101A;
    border: 1px solid rgba(0, 255, 200, 0.2);
    box-shadow: inset 0 0 30px rgba(0, 255, 200, 0.03), 0 0 15px rgba(0, 255, 200, 0.3);
    padding: 30px;
    max-width: 600px;
    position: relative;
    transition: all 0.3s ease;
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 1px solid rgba(0, 255, 200, 0.4);
    border-left: 1px solid rgba(0, 255, 200, 0.4);
}

.hud-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 1px solid rgba(0, 255, 200, 0.4);
    border-right: 1px solid rgba(0, 255, 200, 0.4);
}

.hud-panel:hover {
    border-color: rgba(0, 255, 200, 0.6);
    box-shadow: inset 0 0 30px rgba(0, 255, 200, 0.08), 0 0 25px rgba(0, 255, 200, 0.5);
}

.status-header {
    height: 16px;
    background: #1C1C2E;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
    font-size: 9px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00FFC8;
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.status-label {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00FFC8;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-body {
    color: #E8E8F0;
}

.hud-text {
    margin-bottom: 20px;
    font-weight: 300;
}

.data-metric {
    margin: 15px 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
}

.metric-label {
    color: #5A5A72;
    font-weight: 300;
}

.metric-number {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00FFC8;
    font-variant-numeric: tabular-nums;
}

/* Grid layout panels */
.grid-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.hud-corner {
    background: #10101A;
    border: 1px solid rgba(0, 255, 200, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 255, 200, 0.03);
    transition: all 0.3s ease;
    position: relative;
}

.hud-corner::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(0, 255, 200, 0.4);
    border-left: 1px solid rgba(0, 255, 200, 0.4);
}

.hud-corner:nth-child(2)::before {
    border-left: none;
    border-right: 1px solid rgba(0, 255, 200, 0.4);
    border-top: 1px solid rgba(0, 255, 200, 0.4);
}

.hud-corner:nth-child(3)::before {
    border-top: none;
    border-bottom: 1px solid rgba(0, 255, 200, 0.4);
    border-left: 1px solid rgba(0, 255, 200, 0.4);
    top: auto;
    bottom: 0;
}

.hud-corner:nth-child(4)::before {
    border-top: none;
    border-bottom: 1px solid rgba(0, 255, 200, 0.4);
    border-right: 1px solid rgba(0, 255, 200, 0.4);
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
}

.hud-corner:hover {
    border-color: rgba(0, 255, 200, 0.6);
    box-shadow: inset 0 0 30px rgba(0, 255, 200, 0.08);
}

.corner-label {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: #00FFC8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-weight: 700;
}

.corner-data {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: #00FFC8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Transaction log */
.scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.log-entry {
    margin: 12px 0;
    padding: 8px;
    font-family: 'Exo 2', monospace;
    font-size: 0.85rem;
    border-left: 2px solid rgba(0, 255, 200, 0.2);
    padding-left: 12px;
    transition: all 0.2s ease;
}

.log-entry:hover {
    border-left-color: rgba(0, 255, 200, 0.6);
    background: rgba(0, 255, 200, 0.03);
}

.log-time {
    color: #5A5A72;
    margin-right: 10px;
}

.log-event {
    color: #E8E8F0;
}

/* Mirror content */
.mirror-content {
    text-align: center;
    max-width: 600px;
}

.iris-reflection {
    padding: 60px;
    border: 2px solid rgba(0, 255, 200, 0.3);
    background: radial-gradient(circle at center, rgba(0, 255, 200, 0.05) 0%, transparent 70%);
}

.mirror-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #E8E8F0;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* Corneal reflections */
.corneal-gloss {
    position: fixed;
    width: 40px;
    height: 20px;
    background: linear-gradient(135deg, #E8E8F0 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 45;
    opacity: 0.4;
    filter: blur(2px);
}

.corneal-1 {
    top: calc(50% - 60px);
    left: calc(50% - 30px);
}

.corneal-2 {
    top: calc(50% - 40px);
    left: calc(50% - 50px);
    opacity: 0.2;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .hud-panel {
        padding: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .mirror-text {
        font-size: clamp(1rem, 2vw, 1.4rem);
    }
}

/* Animations for panel entrance */
.panel {
    opacity: 0;
    animation: panel-fade-in 1s ease-out forwards;
}

@keyframes panel-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.panel-1 {
    animation-delay: 0s;
}

.panel-2 {
    animation-delay: 0.2s;
}

.panel-3 {
    animation-delay: 0.2s;
}

.panel-4 {
    animation-delay: 0.2s;
}

.panel-5 {
    animation-delay: 0.2s;
}
