/* gunsul.quest - Cyberpunk Data-Viz Dashboard */
/* Palette: #0a0a0f, #12121a, #06b6d4, #ef4444, #3b82f6, #d1d5db, #1a1a2e, #2a2a3e */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
    color: #d1d5db;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================================
   HEXAGONAL GRID OVERLAY
   ================================================ */

.hex-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.08;
}

.hex-grid::before {
    content: '';
    position: absolute;
    inset: -50px;
    background-image:
        linear-gradient(30deg, #1a1a2e 12%, transparent 12.5%, transparent 87%, #1a1a2e 87.5%, #1a1a2e),
        linear-gradient(150deg, #1a1a2e 12%, transparent 12.5%, transparent 87%, #1a1a2e 87.5%, #1a1a2e),
        linear-gradient(30deg, #1a1a2e 12%, transparent 12.5%, transparent 87%, #1a1a2e 87.5%, #1a1a2e),
        linear-gradient(150deg, #1a1a2e 12%, transparent 12.5%, transparent 87%, #1a1a2e 87.5%, #1a1a2e),
        linear-gradient(60deg, #2a2a3e 25%, transparent 25.5%, transparent 75%, #2a2a3e 75%, #2a2a3e),
        linear-gradient(60deg, #2a2a3e 25%, transparent 25.5%, transparent 75%, #2a2a3e 75%, #2a2a3e);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* ================================================
   COMPASS ROSE
   ================================================ */

.compass-rose {
    position: absolute;
    top: 2rem;
    right: 3rem;
    width: 80px;
    height: 80px;
    opacity: 0.35;
}

.compass-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 60px;
    background: #06b6d4;
    transform: translate(-50%, -50%);
}

.compass-cross-h {
    width: 60px;
    height: 2px;
}

.compass-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #06b6d4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.compass-n, .compass-e, .compass-s, .compass-w {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #06b6d4;
    letter-spacing: 0.05em;
}

.compass-n {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.compass-s {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.compass-e {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.compass-w {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ================================================
   INTEL HERO ZONE
   ================================================ */

.intel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    overflow: hidden;
}

.intel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

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

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 5rem);
    color: #d1d5db;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #06b6d4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

.intel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px rgba(6, 182, 212, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(6, 182, 212, 0.6); }
}

.status-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #2a2a3e;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #06b6d4, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* ================================================
   SECTION HEADERS
   ================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1a1a2e;
}

.section-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #2a2a3e;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-divider {
    flex: 1;
    height: 1px;
    background: #1a1a2e;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #06b6d4;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ================================================
   ANALYSIS ZONE
   ================================================ */

.analysis {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
}

.panel {
    background: #12121a;
    border: 1px dashed #2a2a3e;
    border-left: 3px solid #06b6d4;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #06b6d4, transparent);
    opacity: 0.3;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.classification {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #06b6d4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.05);
}

.panel-id {
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    color: #2a2a3e;
    letter-spacing: 0.1em;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 0.6rem;
}

.panel-text {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.7;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1a1a2e;
}

.panel-timestamp {
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    color: #2a2a3e;
}

.panel-status {
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    color: #06b6d4;
    letter-spacing: 0.1em;
}

/* ================================================
   FORCE COMPARISON ZONE
   ================================================ */

.comparison {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.force-group {
    margin-bottom: 1.5rem;
}

.force-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #d1d5db;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-value {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #2a2a3e;
}

.force-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.force-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    width: 40px;
    text-align: center;
    letter-spacing: 0.08em;
}

.blue-label {
    color: #3b82f6;
}

.red-label {
    color: #ef4444;
}

.force-track {
    flex: 1;
    display: flex;
    align-items: center;
    height: 20px;
    background: #12121a;
    border: 1px solid #1a1a2e;
    position: relative;
}

.force-bar-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.force-bar-wrapper.blue-side {
    justify-content: flex-end;
}

.force-bar-wrapper.red-side {
    justify-content: flex-start;
}

.force-bar {
    height: 100%;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.force-bar.animated {
    width: var(--bar-width);
}

.blue-bar {
    background: linear-gradient(to left, #3b82f6, rgba(59, 130, 246, 0.3));
    border-radius: 0 2px 2px 0;
}

.red-bar {
    background: linear-gradient(to right, #ef4444, rgba(239, 68, 68, 0.3));
    border-radius: 2px 0 0 2px;
}

.force-center-line {
    width: 2px;
    height: 100%;
    background: #2a2a3e;
    flex-shrink: 0;
}

.force-summary {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: #12121a;
    border: 1px dashed #2a2a3e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #2a2a3e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.summary-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #3b82f6;
    letter-spacing: 0.05em;
}

/* ================================================
   BRIEFING ZONE
   ================================================ */

.briefing {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

.briefing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.redact-bar {
    width: 280px;
    height: 10px;
    background: #0a0a0a;
    border: 1px solid #1a1a2e;
}

.redact-short {
    width: 160px;
}

.redact-medium {
    width: 220px;
}

.briefing-seal {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.seal-ring {
    position: absolute;
    inset: 0;
    border: 2px solid #1a1a2e;
    border-radius: 50%;
}

.seal-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed #2a2a3e;
    border-radius: 50%;
}

.seal-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.45rem;
    color: #2a2a3e;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.briefing-end {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #4a4a6e;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.briefing-timestamp {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #2a2a3e;
    display: block;
}

.briefing-classification {
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    color: #1a1a2e;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

/* ================================================
   FADE-IN ANIMATION
   ================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   SCAN LINE EFFECT
   ================================================ */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(10, 10, 15, 0.03) 2px,
        rgba(10, 10, 15, 0.03) 4px
    );
    z-index: 9999;
}

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

@media (max-width: 600px) {
    .compass-rose {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .compass-cross {
        height: 36px;
    }

    .compass-cross-h {
        width: 36px;
        height: 2px;
    }

    .analysis,
    .comparison,
    .briefing {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .force-label {
        width: 30px;
        font-size: 0.5rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .redact-bar {
        width: 200px;
    }

    .redact-short {
        width: 120px;
    }

    .redact-medium {
        width: 160px;
    }
}
