:root {
    --bg: #07090c;
    --panel: #0d1116;
    --panel2: #11171d;
    --line: #29313a;
    --soft: #8d99a6;
    --text: #e8edf1;
    --red: #d52323;
    --red2: #8e1414;
    --green: #8df5bd;
    --max: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 75% 0,
            rgba(119, 16, 16, 0.16),
            transparent 34%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px
        );
    background-size: 32px 32px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99;
    padding: 0.7rem;
    background: #fff;
    color: #000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 12, 0.92);
    backdrop-filter: blur(14px);
}

.signal-bar,
.nav-shell,
.section-shell,
.site-footer {
    width: min(calc(100% - 40px), var(--max));
    margin: auto;
}

/* ============================================================
   SIGNAL BAR
   ============================================================ */

.signal-bar {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1d242b;
    color: var(--soft);
    font:
        600 0.72rem / 1.2
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
    letter-spacing: 0.08em;
}

.signal-bar b {
    margin-right: 0.65rem;
    color: var(--green);
}

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

.nav-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
}

.brand span {
    display: grid;
}

.brand strong {
    font-size: 0.98rem;
    letter-spacing: 0.09em;
}

.brand small {
    color: var(--red);
    font:
        500 0.69rem
        ui-monospace,
        SFMono-Regular,
        monospace;
    letter-spacing: 0.08em;
}

.nav-shell nav {
    display: flex;
    gap: 1.5rem;
}

.nav-shell nav a {
    color: #bbc4cc;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-shell nav a:hover {
    color: #fff;
}

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

.hero {
    position: relative;
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
    padding:
        110px
        max(20px, calc((100vw - var(--max)) / 2))
        90px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 9, 0.98) 0%,
            rgba(5, 7, 9, 0.86) 45%,
            rgba(5, 7, 9, 0.4) 100%
        ),
        url("../images/hero.png") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background:
        linear-gradient(
            transparent 96%,
            rgba(213, 35, 35, 0.15) 97%
        );
    background-size: 100% 6px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.65;
    background:
        radial-gradient(
            circle at 75% 45%,
            transparent 0 85px,
            rgba(213, 35, 35, 0.12) 86px 87px,
            transparent 88px 130px,
            rgba(213, 35, 35, 0.08) 131px 132px,
            transparent 133px
        );
}

.hero-content,
.hero-status {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--red);
    font:
        700 0.75rem
        ui-monospace,
        SFMono-Regular,
        monospace;
    letter-spacing: 0.16em;
}

.hero h1 {
    max-width: 900px;
    margin: 0.25rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--red);
}

.hero-copy {
    max-width: 690px;
    color: #bcc6ce;
    font-size: 1.07rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.button-primary {
    border-color: #ef3a3a;
    background:
        linear-gradient(
            180deg,
            var(--red),
            var(--red2)
        );
    box-shadow: 0 10px 30px rgba(213, 35, 35, 0.17);
    color: #fff;
}

.button-primary:hover {
    filter: brightness(1.12);
}

.button-secondary {
    border-color: #4b555f;
    background: rgba(10, 13, 16, 0.74);
    color: #fff;
}

/* ============================================================
   HERO STATUS PANEL
   ============================================================ */

.hero-status {
    padding: 1.2rem;
    border: 1px solid rgba(141, 153, 166, 0.34);
    background: rgba(8, 11, 14, 0.82);
    font:
        600 0.74rem
        ui-monospace,
        SFMono-Regular,
        monospace;
}

.hero-status > p {
    color: var(--red);
    letter-spacing: 0.14em;
}

.hero-status dl {
    margin: 0;
}

.hero-status dl div {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-top: 1px solid #29313a;
}

.hero-status dt {
    color: var(--soft);
}

.hero-status dd {
    margin: 0;
    color: var(--green);
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */

.section-shell {
    padding: 88px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.mission h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.section-heading > p {
    max-width: 500px;
    margin: 0;
    color: var(--soft);
}

/* ============================================================
   SEARCH CONSOLE
   ============================================================ */

.console {
    border-bottom: 1px solid var(--line);
}

.search-panel {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        190px
        140px
        auto;
    gap: 1rem;
    align-items: end;
    padding: 1.3rem;
    border: 1px solid #303944;
    background:
        linear-gradient(
            135deg,
            #11171d,
            #090c10
        );
}

.search-panel label {
    display: grid;
    gap: 0.45rem;
}

.search-panel label span {
    color: var(--soft);
    font:
        700 0.7rem
        ui-monospace,
        SFMono-Regular,
        monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #35404a;
    border-radius: 0;
    background: #07090c;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus {
    outline: 2px solid rgba(213, 35, 35, 0.6);
    outline-offset: 1px;
}

.quick-targets {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
    font:
        600 0.7rem
        ui-monospace,
        SFMono-Regular,
        monospace;
}

.quick-targets span {
    color: var(--red);
}

.quick-targets a {
    padding: 0.35rem 0.55rem;
    border: 1px solid #2d353d;
    color: #aeb9c2;
    text-decoration: none;
}

.quick-targets a:hover {
    border-color: var(--red);
    color: #fff;
}

/* ============================================================
   SECTOR GRID
   ============================================================ */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 88px;
    margin-bottom: 88px;
    padding: 1px;
    background: var(--line);
}

.sector-grid article {
    min-height: 230px;
    padding: 2rem;
    background: var(--panel);
}

.sector-grid article span {
    color: var(--red);
    font:
        700 0.78rem
        ui-monospace,
        SFMono-Regular,
        monospace;
}

.sector-grid h3 {
    margin: 2.6rem 0 0.7rem;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.sector-grid p {
    color: var(--soft);
    font-size: 0.9rem;
}

/* ============================================================
   NEWS FEED
   ============================================================ */

.feed {
    min-height: 520px;
    border-top: 1px solid var(--line);
}

.feed-heading {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid #28313a;
    background:
        linear-gradient(
            145deg,
            var(--panel2),
            #090c0f
        );
}

.news-card:hover {
    border-color: #5a2323;
}

.card-index {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #4f5a64;
    font:
        700 0.68rem
        ui-monospace,
        SFMono-Regular,
        monospace;
}

.source-line {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem;
    font:
        600 0.7rem
        ui-monospace,
        SFMono-Regular,
        monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.source-line span {
    color: var(--red);
}

.source-line time {
    color: var(--soft);
}

.news-card h3 {
    margin: 0 0 0.9rem;
    padding-right: 4rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

.news-card h3 a {
    color: #f1f4f6;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #ff5959;
}

.news-card > p:not(.source-line) {
    color: #9eabb5;
    font-size: 0.92rem;
}

.report-link {
    margin-top: auto;
    color: #d7dfe5;
    font:
        700 0.72rem
        ui-monospace,
        SFMono-Regular,
        monospace;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

/* ============================================================
   EMPTY AND ERROR STATES
   ============================================================ */

.empty-state,
.system-message {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 2rem;
    border: 1px dashed #38434d;
    text-align: center;
}

.empty-state h3,
.empty-state p {
    margin: 0.2rem;
}

.empty-state p,
.system-message p {
    color: var(--soft);
}

.radar {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--red);
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(213, 35, 35, 0.18);
}

.radar::before,
.radar::after {
    content: "";
    position: absolute;
    background: var(--red);
    opacity: 0.65;
}

.radar::before {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

.radar::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.system-message {
    display: block;
    min-height: auto;
}

.system-message strong {
    color: var(--red);
}

/* ============================================================
   MISSION
   ============================================================ */

.mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    border-top: 1px solid var(--line);
}

.mission-copy {
    color: #aeb9c2;
    font-size: 1.02rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.8rem;
}

.site-footer div {
    display: grid;
}

.site-footer strong {
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus {
    color: inherit;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {
    .nav-shell nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 90px;
    }

    .hero-status {
        max-width: 420px;
        margin-top: 2rem;
    }

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .query-field {
        grid-column: 1 / -1;
    }

    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mission {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {
    .signal-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.55rem 0;
    }

    .nav-shell {
        min-height: 72px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .brand strong {
        font-size: 0.78rem;
    }

    .hero {
        min-height: 620px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .section-shell {
        width: min(calc(100% - 28px), var(--max));
        padding: 64px 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .query-field {
        grid-column: auto;
    }

    .sector-grid {
        grid-template-columns: 1fr;
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer p {
        margin: 0;
    }
}