/* =========================================
   TACTICAL INTELLIGENCE THEME
   Retro Intelligence / CRT Operations Style
========================================= */


/* =========================================
   GOOGLE FONTS IMPORT
========================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap');


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   ROOT VARIABLES
========================================= */

:root {

    /* COLORS */
    --bg-primary: #090b0f;
    --bg-secondary: #11151b;
    --bg-panel: #131922;

    --text-primary: #e8edf2;
    --text-secondary: #8b98a7;

    --accent-primary: #5fa8ff;
    --accent-dim: #2c5d8f;

    --border-color: rgba(255,255,255,0.08);

    --glow-primary:
        0 0 10px rgba(95,168,255,0.15),
        0 0 25px rgba(95,168,255,0.06);

    /* LAYOUT */
    --container-width: 1200px;

    /* TRANSITIONS */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;

}


/* =========================================
   BODY
========================================= */

body {

    font-family: 'Inter', sans-serif;

    background: var(--bg-primary);
    color: var(--text-primary);

    line-height: 1.6;

    overflow-x: hidden;

    position: relative;

}


/* =========================================
   SCANLINE OVERLAY
========================================= */

body::before {

    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 999;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 3px
        );

    opacity: 0.25;

}


/* =========================================
   GRID BACKGROUND
========================================= */

body::after {

    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 200%;
    height: 200%;

    z-index: -1;

    background-image:

        linear-gradient(
            rgba(95,168,255,0.03) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(95,168,255,0.03) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    animation: gridMove 80s linear infinite;

}


/* =========================================
   GRID ANIMATION
========================================= */

@keyframes gridMove {

    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-80px, -80px);
    }

}


/* =========================================
   TYPOGRAPHY
========================================= */

h1, h2, h3, h4 {

    font-weight: 600;

    line-height: 1.1;

    letter-spacing: 1px;

    margin-bottom: 1rem;

    text-transform: uppercase;

}

h1 {

    font-size: 4rem;

}

h2 {

    font-size: 2.5rem;

}

p {

    color: var(--text-secondary);

    margin-bottom: 1rem;

    max-width: 70ch;

}

a {

    color: inherit;

    text-decoration: none;

}


/* =========================================
   MONOSPACE UTILITY
========================================= */

.mono {

    font-family: 'IBM Plex Mono', monospace;

    letter-spacing: 1px;

}


/* =========================================
   CONTAINER
========================================= */

.container {

    width: 90%;
    max-width: var(--container-width);

    margin: 0 auto;

}


/* =========================================
   HEADER
========================================= */

header {

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(10px);

    background: rgba(9,11,15,0.75);

    border-bottom: 1px solid var(--border-color);

}


/* =========================================
   NAVIGATION
========================================= */

nav {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 1.0rem 0;

}

.logo {

    font-family: 'IBM Plex Mono', monospace;

    font-size: 0.9rem;

    color: var(--accent-primary);

    letter-spacing: 2px;

    text-transform: uppercase;

}

nav ul {

    display: flex;

    list-style: none;

    gap: 2rem;

}

nav a {

    position: relative;

    color: var(--text-secondary);

    transition: var(--transition-fast);

    text-transform: uppercase;

    font-size: 0.85rem;

    letter-spacing: 1px;

}

nav a:hover {

    color: var(--accent-primary);

    text-shadow: 0 0 8px rgba(95,168,255,0.35);

}


/* =========================================
   HERO SECTION
========================================= */

.hero {

    min-height: 55vh;

    display: flex;

    align-items: center;

    position: relative;

}

.hero-content {

    max-width: 900px;

}

.hero-subtitle {

    font-family: 'IBM Plex Mono', monospace;

    color: var(--accent-primary);

    margin-bottom: 1rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-size: 0.9rem;

}

.hero h1 {

    margin-bottom: 2rem;

    text-shadow: 0 0 15px rgba(95,168,255,0.08);

}


/* =========================================
   BUTTONS
========================================= */

.btn {

    display: inline-block;

    padding: 1rem 1.8rem;

    border: 1px solid var(--accent-dim);

    background: rgba(95,168,255,0.05);

    color: var(--text-primary);

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 0.85rem;

    transition: var(--transition-normal);

    cursor: pointer;

}

.btn:hover {

    border-color: var(--accent-primary);

    box-shadow: var(--glow-primary);

    transform: translateY(-2px);

    background: rgba(95,168,255,0.08);

}


/* =========================================
   SECTION
========================================= */

section {

    padding: 2rem 0;

}


/* =========================================
   CARD SYSTEM
========================================= */

.card-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

}

.card {

    background: rgba(19,25,34,0.65);

    border: 1px solid var(--border-color);

    padding: 2rem;

    position: relative;

    overflow: hidden;

    transition: var(--transition-normal);

}

.card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-primary),
        transparent
    );

    opacity: 0;

    transition: var(--transition-normal);

}

.card:hover {

    transform: translateY(-4px);

    border-color: rgba(95,168,255,0.25);

    box-shadow: var(--glow-primary);

}

.card:hover::before {

    opacity: 1;

}


/* =========================================
   PANEL STYLE
========================================= */

.panel {

    background: var(--bg-panel);

    border: 1px solid var(--border-color);

    padding: 2rem;

}


/* =========================================
   FOOTER
========================================= */

footer {

    border-top: 1px solid var(--border-color);

    padding: 3rem 0;

    text-align: center;

}

footer p {

    margin: 0 auto;

    font-size: 0.85rem;

}


/* =========================================
   UTILITIES
========================================= */

.text-center {

    text-align: center;

}

.mt-1 {

    margin-top: 1rem;

}

.mt-2 {

    margin-top: 2rem;

}

.mt-4 {

    margin-top: 4rem;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    h1 {

        font-size: 2.8rem;

    }

    h2 {

        font-size: 2rem;

    }

    nav {

        flex-direction: column;

        gap: 1rem;

    }

    nav ul {

        flex-wrap: wrap;

        justify-content: center;

    }

}


@media (max-width: 600px) {

    h1 {

        font-size: 2.2rem;

    }

    section {

        padding: 5rem 0;

    }

    .card {

        padding: 1.5rem;

    }

}

/* =========================================
   HERO BUTTON GROUP
========================================= */

.hero-buttons {

    display: flex;

    gap: 1rem;

    flex-wrap: wrap;

}


/* =========================================
   SECONDARY BUTTON
========================================= */

.btn-secondary {

    background: transparent;

}


/* =========================================
   SECTION DIVIDER
========================================= */

.section-divider {

    padding: 2rem 0;

}

.divider-line {

    width: 100%;
    height: 1px;

    background: var(--border-color);

    margin-bottom: 1rem;

}

.divider-text {

    color: var(--accent-primary);

    letter-spacing: 2px;

    font-size: 0.8rem;

}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {

    margin-bottom: 2rem;

}

.section-heading p {

    color: var(--accent-primary);

    margin-bottom: 0.5rem;

}


/* =========================================
   CARD LABELS
========================================= */

.card-label {

    color: var(--accent-primary);

    margin-bottom: 1rem;

    font-size: 0.8rem;

}


/* =========================================
   CARD LINKS
========================================= */

.card-link {

    display: inline-block;

    margin-top: 1rem;

    color: var(--accent-primary);

    font-size: 0.85rem;

    letter-spacing: 1px;

}


/* =========================================
   INTELLIGENCE PANEL
========================================= */

.intelligence-panel {

    position: relative;

    overflow: hidden;

}


/* =========================================
   REPORT PREVIEW
========================================= */

.report-preview {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}

.report-item {

    border-left: 1px solid var(--accent-dim);

    padding-left: 1rem;

}

.report-tag {

    color: var(--accent-primary);

    font-size: 0.75rem;

    margin-bottom: 0.5rem;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .hero-buttons {

        flex-direction: column;

    }

}

/* =========================================
   CONTACT FORM
========================================= */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}

.form-group label {

    color: var(--accent-primary);

    font-size: 0.8rem;

    letter-spacing: 1px;

}

.form-group input,
.form-group textarea,
.form-group select {

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border-color);

    color: var(--text-primary);

    padding: 1rem;

    font-family: inherit;

    font-size: 1rem;

    outline: none;

    transition: 0.3s ease;

}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color: var(--accent-primary);

    box-shadow: 0 0 10px rgba(60,120,255,0.15);

}

textarea {

    resize: vertical;

    min-height: 150px;

}

/* =========================================
   UI LAYER v2 — MEDIUM TACTICAL
========================================= */

body {
    position: relative;
    padding-top: 44px;
}

/* SYSTEM BAR */
.system-bar {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.65rem 1.5rem;

    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;

    color: rgba(210, 230, 255, 0.85);

    background: rgba(5, 8, 18, 0.65);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(80, 140, 255, 0.25);

    box-shadow: 0 0 20px rgba(80, 140, 255, 0.08);

    z-index: 9999;

}

/* STATUS TEXT */
.system-status {

    color: rgba(80, 160, 255, 0.95);
    text-shadow: 0 0 10px rgba(80, 160, 255, 0.35);

}

/* =========================================
   GRID BACKGROUND (MORE VISIBLE)
========================================= */

/* =========================================
   GRID BACKGROUND (DEBUG + CLEAR VISIBILITY)
========================================= */

body::before {

    content: "";

    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(rgba(120, 180, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, 0.18) 1px, transparent 1px);

    background-size: 50px 50px;

    opacity: 0.8;

    pointer-events: none;

    z-index: -3;

    animation: gridDrift 25s linear infinite;

}

/* DARK OVERLAY (LESS AGGRESSIVE NOW) */
body::after {

    content: "";

    position: fixed;
    inset: 0;

    background: radial-gradient(
        circle at center,
        rgba(10, 14, 28, 0.15),
        rgba(0, 0, 0, 0.75)
    );

    pointer-events: none;

    z-index: -2;

}

/* GRID ANIMATION */
@keyframes gridDrift {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }

}

/* =========================================
   IMPROVED INTERACTION FEEL
========================================= */

a {
    transition: all 0.2s ease;
}

.card,
.panel {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.panel:hover {

    transform: translateY(-6px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

}

/* =========================================
   TERMINATOR-STYLE BOOT SCREEN
========================================= */

#boot-screen {

    position: fixed;
    inset: 0;

    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    overflow: hidden;

    animation: bootFadeOut 1.2s ease forwards;
    animation-delay: 6s;

}

/* =========================================
   DARK TACTICAL OVERLAY
========================================= */

.boot-overlay {

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(25,40,50,0.18),
            rgba(0,0,0,0.97)
        );

    z-index: 0;

}

/* =========================================
   BACKGROUND EMBLEM
========================================= */

.boot-bg-logo {

    position: absolute;

    width: 950px;

    max-width: 95vw;

    opacity: 0;

    filter:
        blur(18px)
        brightness(0.45)
        saturate(0.7);

    transform: scale(1.05);

    z-index: 1;

    pointer-events: none;

    animation:
        bgLogoReveal 5s ease forwards,
        bgLogoPulse 7s ease-in-out infinite;

}

/* =========================================
   CONTENT
========================================= */

.boot-content {

    position: relative;

    width: 90%;
    max-width: 850px;

    text-align: center;

    font-family: monospace;

    color: rgba(170, 195, 205, 0.88);

    text-shadow: 0 0 12px rgba(80, 140, 160, 0.18);

    z-index: 2;

}

/* =========================================
   FOREGROUND LOGO
========================================= */

.boot-logo {

    display: block;

    width: 140px;

    max-width: 35vw;

    margin: 0 auto 1.5rem auto;

    opacity: 0;

    filter:
        drop-shadow(0 0 12px rgba(90, 170, 190, 0.20))
        brightness(1.08);

    animation:
        bootText 1s forwards,
        glitchFlicker 0.15s infinite;

    animation-delay: 0.2s;

}

/* =========================================
   BOOT LINES
========================================= */

.boot-line {

    opacity: 0;

    margin-bottom: 0.7rem;

    letter-spacing: 2px;

    font-size: 0.85rem;

    color: rgba(165, 185, 195, 0.72);

    animation: bootText 0.5s forwards;

}

.boot-line:nth-child(2) {
    animation-delay: 1.2s;
}

.boot-line:nth-child(3) {
    animation-delay: 1.8s;
}

.boot-line:nth-child(4) {
    animation-delay: 2.4s;
}

.boot-line:nth-child(5) {
    animation-delay: 3.2s;
}

.boot-line:nth-child(6) {
    animation-delay: 4s;
}

/* =========================================
   MAIN TITLE
========================================= */

.boot-title {

    opacity: 0;

    margin-top: 1.8rem;

    font-size: clamp(1.8rem, 4vw, 3.5rem);

    font-weight: 500;

    letter-spacing: 6px;

    text-transform: uppercase;

    color: #9bb7c2;

    text-align: center;

    text-shadow:
        0 0 6px rgba(110, 170, 190, 0.12),
        0 0 18px rgba(110, 170, 190, 0.08);

    animation:
        bootText 1s forwards,
        glitchFlicker 0.12s infinite;

    animation-delay: 3.8s;

}

/* =========================================
   STATUS TEXT
========================================= */

.boot-status {

    opacity: 0;

    margin-top: 0.8rem;

    text-align: center;

    font-size: 0.8rem;

    letter-spacing: 4px;

    color: rgba(145, 185, 200, 0.60);

    animation: bootText 1.2s forwards;

    animation-delay: 4.8s;

}

/* =========================================
   SCANLINES
========================================= */

#boot-screen::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(120, 170, 190, 0.035) 0px,
            rgba(120, 170, 190, 0.035) 1px,
            transparent 2px,
            transparent 4px
        );

    opacity: 0.16;

    pointer-events: none;

    animation: scanMove 8s linear infinite;

    z-index: 3;

}

/* =========================================
   CRT FLICKER
========================================= */

#boot-screen::after {

    content: "";

    position: absolute;
    inset: 0;

    background: rgba(120, 180, 200, 0.015);

    mix-blend-mode: screen;

    pointer-events: none;

    animation: flicker 0.08s infinite;

    z-index: 4;

}

/* =========================================
   KEYFRAMES
========================================= */

@keyframes bootText {

    0% {

        opacity: 0;
        transform: translateY(10px);

    }

    100% {

        opacity: 1;
        transform: translateY(0);

    }

}

@keyframes bootFadeOut {

    0% {

        opacity: 1;
        visibility: visible;

    }

    100% {

        opacity: 0;
        visibility: hidden;

    }

}

@keyframes flicker {

    0% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.92;
    }

}

@keyframes scanMove {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }

}

@keyframes glitchFlicker {

    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-1px);
    }

    40% {
        transform: translateX(1px);
    }

    60% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }

}

/* =========================================
   BACKGROUND LOGO REVEAL
========================================= */

@keyframes bgLogoReveal {

    0% {

        opacity: 0;

        filter:
            blur(30px)
            brightness(0.2)
            saturate(0.5);

        transform: scale(1.12);

    }

    70% {

        opacity: 0.22;

        filter:
            blur(12px)
            brightness(0.78)
            saturate(0.9);

    }

    100% {

        opacity: 0.46;

        filter:
            blur(2px)
            brightness(1.15)
            saturate(1.08);

        transform: scale(1);

    }

}



/* =========================================
   SUBTLE BACKGROUND PULSE
========================================= */

@keyframes bgLogoPulse {

    0% {

        opacity: 0.08;

    }

    50% {

        opacity: 0.16;

    }

    100% {

        opacity: 0.08;

    }

}

/* =========================================
SKIP BOOT SCREEN
========================================= */

.skip-boot #boot-screen {
    display: none !important;
}