/* ==================================================
   DELTA WORLD WAR
   STYLE.CSS — V2
   PREMIUM AAA COMMAND INTERFACE
================================================== */


/* ==================================================
   ROOT
================================================== */

:root {

    --bg-main: #050505;
    --bg-secondary: #090909;
    --bg-card: rgba(16, 16, 16, 0.78);
    --bg-card-light: rgba(24, 24, 24, 0.72);

    --red: #e50914;
    --red-bright: #ff2633;
    --red-dark: #8f0008;

    --white: #ffffff;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #666666;

    --green: #36d98a;
    --yellow: #f2c94c;

    --border: rgba(255, 255, 255, 0.08);
    --border-red: rgba(229, 9, 20, 0.35);

    --shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);

    --red-shadow:
        0 20px 70px rgba(229, 9, 20, 0.18);

    --radius-small: 16px;
    --radius-medium: 24px;
    --radius-large: 32px;
    --radius-xl: 42px;

    --container: 1240px;

    --transition:
        0.3s cubic-bezier(0.22, 1, 0.36, 1);

}


/* ==================================================
   RESET
================================================== */

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


html {
    scroll-behavior: smooth;
    background: var(--bg-main);
}


body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(229, 9, 20, 0.09),
            transparent 38%
        ),
        var(--bg-main);

    color: var(--text-primary);

    font-family:
        "Vazirmatn",
        Arial,
        sans-serif;

    overflow-x: hidden;

    line-height: 1.8;

}


body::selection {
    background: var(--red);
    color: white;
}


button,
a {
    font-family: inherit;
}


button {
    border: 0;
    outline: none;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
    display: block;
}


/* ==================================================
   PAGE BACKGROUND
================================================== */

.page-background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -5;

    overflow: hidden;

}


.background-grid {

    position: absolute;

    inset: 0;

    opacity: 0.18;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size:
        80px 80px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

}


.background-glow {

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.12;

}


.glow-red {

    top: -280px;
    right: -180px;

    background: var(--red);

}


.glow-dark {

    bottom: -300px;
    left: -220px;

    background: #450006;

}


/* ==================================================
   GLOBAL CONTAINER
================================================== */

.content-section,
.site-header,
.site-footer,
.final-cta-section {

    position: relative;

}


.content-section {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;

}


/* ==================================================
   HEADER
================================================== */

.site-header {

    position: fixed;

    top: 18px;
    left: 0;
    right: 0;

    z-index: 1000;

    padding-inline: 20px;

}


.header-inner {

    width: min(
        100%,
        var(--container)
    );

    height: 76px;

    margin: auto;

    padding:
        0 18px
        0 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    background:
        rgba(9, 9, 9, 0.78);

    border:
        1px solid
        var(--border);

    border-radius:
        24px;

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    box-shadow:
        0 15px 60px
        rgba(0, 0, 0, 0.38);

    transition:
        var(--transition);

}


.site-header.scrolled .header-inner {

    background:
        rgba(5, 5, 5, 0.94);

    border-color:
        rgba(229, 9, 20, 0.2);

}


.site-logo {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: max-content;

}


.logo-symbol {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            var(--red-bright),
            var(--red-dark)
        );

    color: white;

    font-size: 21px;

    font-weight: 900;

    box-shadow:
        0 0 28px
        rgba(229, 9, 20, 0.28);

}


.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.05;

}


.logo-text strong {

    font-size: 15px;

    letter-spacing:
        0.14em;

}


.logo-text span {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 8px;

    letter-spacing:
        0.2em;

}


.site-nav {

    display: flex;

    align-items: center;

    gap: 5px;

}


.site-nav a {

    position: relative;

    padding:
        9px 13px;

    color:
        var(--text-secondary);

    font-size: 12px;

    border-radius: 12px;

    transition:
        var(--transition);

}


.site-nav a::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--red);

    transform:
        translateX(-50%);

    transition:
        var(--transition);

}


.site-nav a:hover {

    color: white;

    background:
        rgba(255, 255, 255, 0.035);

}


.site-nav a:hover::after {

    width: 18px;

}


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

.primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-height: 46px;

    padding:
        0 20px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red)
        );

    color: white;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 35px
        rgba(229, 9, 20, 0.2);

    transition:
        var(--transition);

}


.primary-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 45px
        rgba(229, 9, 20, 0.32);

}


.primary-button:active {

    transform:
        translateY(-1px)
        scale(0.98);

}


.large-button {

    min-height: 56px;

    padding:
        0 25px;

    border-radius: 18px;

    font-size: 13px;

}


/* ==================================================
   STATUS
================================================== */

.status-line {

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    letter-spacing:
        0.12em;

}


.status-line strong {

    color:
        var(--green);

    font-weight: 800;

}


.status-dot {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 12px
        rgba(54, 217, 138, 0.65);

    animation:
        statusPulse 2s infinite;

}


@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.78);
    }

}


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

.hero-section {

    width: min(
        calc(100% - 40px),
        1240px
    );

    min-height: 900px;

    margin:
        0 auto;

    padding-top:
        155px;

    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    align-items: center;

    gap: 65px;

}


.hero-content {

    position: relative;

    z-index: 2;

}


.hero-kicker {

    margin-top: 18px;

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    font-weight: 800;

    letter-spacing:
        0.18em;

}


.hero-content h1 {

    max-width: 680px;

    margin-top: 14px;

    font-size:
        clamp(
            45px,
            6vw,
            82px
        );

    line-height:
        1.12;

    font-weight: 900;

    letter-spacing:
        -0.04em;

}


.hero-content h1::after {

    content: "";

    display: block;

    width: 75px;
    height: 4px;

    margin-top: 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            transparent
        );

}


.hero-content p {

    max-width: 590px;

    margin-top: 25px;

    color:
        var(--text-secondary);

    font-size: 15px;

    line-height: 2.1;

}


.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

}


.secondary-button {

    min-height: 56px;

    padding:
        0 22px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.035);

    color:
        var(--text-primary);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    backdrop-filter:
        blur(15px);

    transition:
        var(--transition);

}


.secondary-button:hover {

    background:
        rgba(255,255,255,0.065);

    border-color:
        rgba(229,9,20,0.28);

    transform:
        translateY(-3px);

}


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

.hero-stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    max-width: 680px;

    margin-top: 50px;

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    overflow: hidden;

    background:
        rgba(255,255,255,0.025);

    backdrop-filter:
        blur(20px);

}


.hero-stat {

    min-height: 90px;

    padding:
        17px 15px;

    border-left:
        1px solid
        var(--border);

}


.hero-stat:last-child {
    border-left: 0;
}


.hero-stat span {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing:
        0.12em;

}


.hero-stat strong {

    display: block;

    margin-top: 5px;

    font-family:
        Arial,
        sans-serif;

    font-size: 19px;

    font-weight: 800;

}


/* ==================================================
   HERO WORLD MAP
================================================== */

.hero-world {

    position: relative;

    min-height: 590px;

    display: grid;

    place-items: center;

}


.world-frame {

    position: relative;

    width: 100%;

    aspect-ratio: 1.15;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,0.09);

    border-radius:
        38px;

    background:
        radial-gradient(
            circle at center,
            rgba(229,9,20,0.08),
            transparent 55%
        ),
        #080808;

    box-shadow:
        var(--shadow),
        var(--red-shadow);

}


.world-frame::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            transparent 40%,
            rgba(229,9,20,0.08),
            transparent 60%
        );

    animation:
        mapSweep 7s linear infinite;

}


@keyframes mapSweep {

    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }

}


.world-map {

    position: absolute;

    inset: 45px;

    opacity: 0.72;

    background:

        radial-gradient(
            ellipse at 24% 42%,
            rgba(255,255,255,0.11) 0 14%,
            transparent 14.5%
        ),

        radial-gradient(
            ellipse at 46% 30%,
            rgba(255,255,255,0.09) 0 18%,
            transparent 18.5%
        ),

        radial-gradient(
            ellipse at 68% 55%,
            rgba(255,255,255,0.08) 0 14%,
            transparent 14.5%
        ),

        radial-gradient(
            ellipse at 79% 28%,
            rgba(255,255,255,0.07) 0 7%,
            transparent 7.5%
        );

    filter:
        blur(0.2px);

}


.map-grid {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.045) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.045) 1px,
            transparent 1px
        );

    background-size:
        42px 42px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 78%
        );

}


.map-lines {

    position: absolute;

    inset: 0;

}


.map-lines::before,
.map-lines::after {

    content: "";

    position: absolute;

    left: 18%;
    top: 48%;

    width: 65%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(229,9,20,0.6),
            transparent
        );

    transform:
        rotate(-16deg);

    box-shadow:
        0 0 15px
        rgba(229,9,20,0.25);

}


.map-lines::after {

    transform:
        rotate(23deg);

    top: 55%;

}


.map-node {

    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        var(--red-bright);

    box-shadow:
        0 0 0 5px
        rgba(229,9,20,0.09),
        0 0 25px
        rgba(229,9,20,0.7);

    animation:
        nodePulse 2.5s infinite;

}


.node-1 {
    top: 32%;
    left: 29%;
}


.node-2 {
    top: 43%;
    left: 51%;
    animation-delay: .5s;
}


.node-3 {
    top: 60%;
    left: 67%;
    animation-delay: 1s;
}


.node-4 {
    top: 25%;
    left: 73%;
    animation-delay: 1.5s;
}


@keyframes nodePulse {

    0%,
    100% {
        box-shadow:
            0 0 0 4px
            rgba(229,9,20,0.08),
            0 0 20px
            rgba(229,9,20,0.45);
    }

    50% {
        box-shadow:
            0 0 0 11px
            rgba(229,9,20,0.02),
            0 0 32px
            rgba(229,9,20,0.85);
    }

}


.map-radar {

    position: absolute;

    width: 170px;
    height: 170px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(229,9,20,0.3);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(229,9,20,0.09),
            transparent 65%
        );

    box-shadow:
        0 0 55px
        rgba(229,9,20,0.1);

}


.map-radar::before,
.map-radar::after {

    content: "";

    position: absolute;

    inset: 20%;

    border:
        1px solid
        rgba(229,9,20,0.2);

    border-radius: 50%;

}


.map-radar::after {

    inset: 0;

    border:
        1px dashed
        rgba(229,9,20,0.25);

    animation:
        radarRotate 8s linear infinite;

}


@keyframes radarRotate {

    to {
        transform:
            rotate(360deg);
    }

}


.world-footer {

    position: absolute;

    bottom: 18px;

    left: 22px;
    right: 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 14px;

    border-top:
        1px solid
        var(--border);

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing:
        0.08em;

}


.world-footer strong {

    color:
        var(--text-primary);

}


/* ==================================================
   GLOBAL TICKER
================================================== */

.global-ticker {

    width: min(
        calc(100% - 40px),
        1240px
    );

    margin:
        10px auto 0;

    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 22px;

    padding:
        0 20px;

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    background:
        rgba(255,255,255,0.025);

    overflow: hidden;

}


.ticker-label {

    display: flex;

    align-items: center;

    gap: 9px;

    flex: 0 0 auto;

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        0.13em;

}


.ticker-content {

    min-width: 0;

    overflow: hidden;

}


.ticker-track {

    display: flex;

    gap: 50px;

    width: max-content;

    animation:
        tickerMove 28s linear infinite;

}


.ticker-item {

    white-space: nowrap;

    color:
        var(--text-secondary);

    font-size: 11px;

}


.ticker-item span {

    margin-left: 9px;

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 800;

}


@keyframes tickerMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }

}


/* ==================================================
   SECTION HEADING
================================================== */

.section-heading {

    display: grid;

    grid-template-columns:
        140px 1fr;

    gap: 30px;

    align-items: start;

    margin-bottom: 45px;

}


.section-number {

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.16em;

}


.section-heading h2 {

    font-size:
        clamp(
            28px,
            4vw,
            48px
        );

    line-height:
        1.25;

    font-weight: 900;

}


.section-heading p {

    margin-top: 9px;

    color:
        var(--text-secondary);

    font-size: 13px;

}


/* ==================================================
   WORLD SECTION
================================================== */

.world-section {

    padding-top: 145px;

}


.world-dashboard {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.dashboard-card {

    position: relative;

    min-height: 170px;

    padding: 23px;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-medium);

    background:
        var(--bg-card);

    backdrop-filter:
        blur(20px);

    box-shadow:
        var(--shadow);

    transition:
        var(--transition);

}


.dashboard-card:hover {

    transform:
        translateY(-7px);

    border-color:
        var(--border-red);

}


.dashboard-card::before {

    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    top: -70px;
    right: -50px;

    border-radius: 50%;

    background:
        var(--red);

    filter:
        blur(55px);

    opacity: 0.09;

}


.dashboard-card span {

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing:
        0.13em;

}


.dashboard-card strong {

    display: block;

    margin-top: 12px;

    font-family:
        Arial,
        sans-serif;

    font-size: 30px;

    font-weight: 800;

}


.dashboard-card small {

    display: block;

    margin-top: 8px;

    color:
        var(--text-secondary);

    font-size: 10px;

}

/* ==================================================
   WORLD ANALYTICS
================================================== */

.world-analytics {

    display: grid;

    grid-template-columns:
        1.35fr .65fr;

    gap: 15px;

    margin-top: 15px;

}


.analytics-panel {

    min-height: 270px;

    padding: 26px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--bg-card);

    backdrop-filter:
        blur(20px);

}


.analytics-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.analytics-title span {

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing:
        .12em;

}


.analytics-title strong {

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;

}


.chart {

    position: relative;

    height: 170px;

    margin-top: 25px;

    overflow: hidden;

    border-radius: 18px;

    background:

        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size:
        45px 45px;

}


.chart::before {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 24px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red),
            transparent
        );

    transform:
        rotate(-7deg);

    box-shadow:
        0 0 20px
        rgba(229,9,20,.5);

}


.tension-value {

    margin-top: 35px;

    font-family:
        Arial,
        sans-serif;

    font-size: 52px;

    font-weight: 900;

}


.tension-value span {

    color:
        var(--text-muted);

    font-size: 13px;

}


.tension-bar {

    height: 8px;

    margin-top: 22px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.07);

}


.tension-bar span {

    display: block;

    height: 100%;

    width: 64%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--red-dark),
            var(--red-bright)
        );

    box-shadow:
        0 0 20px
        rgba(229,9,20,.35);

}


/* ==================================================
   SYSTEMS
================================================== */

.systems-section {

    padding-top: 150px;

}


.systems-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.system-card {

    position: relative;

    min-height: 260px;

    padding: 25px;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(20,20,20,.85),
            rgba(8,8,8,.78)
        );

    transition:
        var(--transition);

}


.system-card:hover {

    transform:
        translateY(-8px);

    border-color:
        var(--border-red);

    box-shadow:
        var(--red-shadow);

}


.system-icon {

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background:
        rgba(229,9,20,.09);

    border:
        1px solid
        rgba(229,9,20,.2);

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-weight: 900;

}


.system-card h3 {

    margin-top: 25px;

    font-size: 20px;

    font-weight: 850;

}


.system-card p {

    margin-top: 9px;

    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.9;

}


.system-card::after {

    content: "";

    position: absolute;

    right: -80px;
    bottom: -80px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        var(--red);

    filter:
        blur(75px);

    opacity: 0.05;

}


/* ==================================================
   WAR
================================================== */

.war-section {

    padding-top: 150px;

}


.war-layout {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 18px;

}


.war-intro {

    position: relative;

    min-height: 420px;

    padding: 38px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border:
        1px solid
        rgba(229,9,20,.18);

    border-radius:
        var(--radius-xl);

    background:

        radial-gradient(
            circle at 70% 25%,
            rgba(229,9,20,.17),
            transparent 40%
        ),

        linear-gradient(
            145deg,
            #120507,
            #070707
        );

}


.war-intro::before {

    content: "WAR";

    position: absolute;

    top: 20px;
    right: 25px;

    color:
        rgba(255,255,255,.025);

    font-family:
        Arial,
        sans-serif;

    font-size: 90px;

    font-weight: 900;

}


.war-intro .section-number {

    margin-bottom: 15px;

}


.war-intro h2 {

    max-width: 450px;

    font-size:
        clamp(
            32px,
            5vw,
            58px
        );

    line-height:
        1.2;

    font-weight: 900;

}


.war-intro p {

    max-width: 470px;

    margin-top: 17px;

    color:
        var(--text-secondary);

    font-size: 13px;

}


.war-data {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

}


.war-stat-card {

    min-height: 202px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--bg-card);

}


.war-stat-card span {

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing:
        .13em;

}


.war-stat-card strong {

    font-family:
        Arial,
        sans-serif;

    font-size: 32px;

}


.war-status {

    color:
        var(--red-bright) !important;

}


/* ==================================================
   DIPLOMACY
================================================== */

.diplomacy-section {

    padding-top: 150px;

}


.diplomacy-panel {

    position: relative;

    padding: 35px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-xl);

    background:
        rgba(12,12,12,.78);

    overflow: hidden;

}


.relation-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;

}


.relation-item {

    padding:
        18px 10px;

    text-align: center;

    border:
        1px solid
        var(--border);

    border-radius:
        17px;

    background:
        rgba(255,255,255,.025);

    transition:
        var(--transition);

}


.relation-item:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--border-red);

}


.relation-item span {

    display: block;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        .09em;

}


.relation-item small {

    display: block;

    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 9px;

}


.relation-item.active {

    background:
        rgba(229,9,20,.08);

    border-color:
        rgba(229,9,20,.3);

}


.relation-item .green {
    color: var(--green);
}


.relation-item .yellow {
    color: var(--yellow);
}


.relation-visual {

    position: relative;

    min-height: 220px;

    margin-top: 30px;

    display: grid;

    place-items: center;

}


.relation-line {

    position: absolute;

    width: 72%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(229,9,20,.5),
            transparent
        );

}


.relation-node {

    position: relative;

    z-index: 2;

    width: 85px;
    height: 85px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(229,9,20,.25),
            rgba(10,10,10,.95)
        );

    border:
        1px solid
        rgba(229,9,20,.35);

    box-shadow:
        0 0 55px
        rgba(229,9,20,.15);

}


.relation-node strong {

    font-family:
        Arial,
        sans-serif;

    font-size: 16px;

}


.relation-node::before,
.relation-node::after {

    content: "";

    position: absolute;

    border:
        1px solid
        rgba(229,9,20,.18);

    border-radius: 50%;

}


.relation-node::before {
    inset: -22px;
}


.relation-node::after {
    inset: -44px;
}


.relation-tension {

    position: absolute;

    bottom: 0;

    left: 0;
    right: 0;

}


.relation-tension-head {

    display: flex;

    justify-content: space-between;

    color:
        var(--text-secondary);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

}


.relation-tension-bar {

    height: 7px;

    margin-top: 10px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,.07);

}


.relation-tension-bar span {

    display: block;

    width: 42%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #6b5200,
            var(--yellow)
        );

}

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

.news-section {

    padding-top: 150px;

}


.news-grid {

    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr;

    gap: 15px;

}


.news-card {

    position: relative;

    min-height: 310px;

    padding: 28px;

    display: flex;

    flex-direction: column;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--bg-card);

    transition:
        var(--transition);

    overflow: hidden;

}


.news-card:hover {

    transform:
        translateY(-7px);

    border-color:
        var(--border-red);

    box-shadow:
        var(--red-shadow);

}


.featured-news {

    background:

        radial-gradient(
            circle at 80% 15%,
            rgba(229,9,20,.13),
            transparent 35%
        ),

        var(--bg-card);

}


.news-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing:
        .1em;

}


.news-meta span {

    color:
        var(--red-bright);

    font-weight: 900;

}


.news-meta .green {

    color:
        var(--green);

}


.news-meta .yellow {

    color:
        var(--yellow);

}


.news-meta time {

    color:
        var(--text-muted);

}


.news-card h3 {

    margin-top: 35px;

    font-size: 22px;

    line-height: 1.55;

    font-weight: 850;

}


.news-card p {

    margin-top: 13px;

    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.9;

}


.news-card a {

    margin-top: auto;

    padding-top: 25px;

    color:
        var(--red-bright);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 800;

    transition:
        var(--transition);

}


.news-card a:hover {

    transform:
        translateX(-5px);

}


/* ==================================================
   COMMANDER
================================================== */

.commander-section {

    padding-top: 150px;

    padding-bottom: 120px;

}


.commander-layout {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

}


.commander-cta {

    position: relative;

    min-height: 420px;

    padding: 40px;

    overflow: hidden;

    display: flex;

    align-items: flex-end;

    border:
        1px solid
        rgba(229,9,20,.2);

    border-radius:
        var(--radius-xl);

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(229,9,20,.15),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #120507,
            #080808
        );

}


.cta-glow {

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    top: -100px;

    border-radius: 50%;

    background:
        var(--red);

    filter:
        blur(110px);

    opacity: .13;

}


.cta-content {

    position: relative;

    z-index: 2;

}


.cta-content h3 {

    margin-top: 20px;

    font-size:
        clamp(
            34px,
            4vw,
            55px
        );

    line-height:
        1.2;

    font-weight: 900;

}


.cta-content p {

    max-width: 460px;

    margin-top: 15px;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 2;

}


.cta-content .primary-button {

    margin-top: 25px;

}


/* ==================================================
   COMMANDER PROFILE
================================================== */

.commander-profile {

    min-height: 420px;

    padding: 30px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(20,20,20,.82),
            rgba(8,8,8,.88)
        );

    box-shadow:
        var(--shadow);

}


.profile-header {

    display: flex;

    align-items: center;

    gap: 14px;

}


.profile-avatar {

    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            var(--red),
            #450006
        );

    color: white;

    font-family:
        Arial,
        sans-serif;

    font-size: 25px;

    font-weight: 900;

    box-shadow:
        0 0 35px
        rgba(229,9,20,.2);

}


.profile-title {

    min-width: 0;

}


.profile-label {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing:
        .13em;

}


.profile-title h3 {

    margin-top: 3px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;

}


.profile-status {

    margin-right: auto;

    display: flex;

    align-items: center;

    gap: 7px;

    color:
        var(--green);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 800;

}


.profile-country {

    margin-top: 32px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius:
        20px;

    background:
        rgba(255,255,255,.025);

}


.profile-country strong {

    display: block;

    margin-top: 6px;

    font-family:
        Arial,
        sans-serif;

    font-size: 18px;

}


.profile-stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    margin-top: 15px;

    border:
        1px solid
        var(--border);

    border-radius:
        20px;

    overflow: hidden;

}


.profile-stat {

    min-height: 90px;

    padding: 17px;

    border-left:
        1px solid
        var(--border);

}


.profile-stat:last-child {

    border-left: 0;

}


.profile-stat span {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing:
        .1em;

}


.profile-stat strong {

    display: block;

    margin-top: 7px;

    font-family:
        Arial,
        sans-serif;

    font-size: 17px;

}


.profile-footer {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-top: 15px;

}


.profile-footer > div {

    padding: 15px;

    border-radius:
        17px;

    background:
        rgba(255,255,255,.025);

}


.profile-footer span {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing:
        .1em;

}


.profile-footer strong {

    display: block;

    margin-top: 5px;

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

}


/* ==================================================
   FINAL CTA
================================================== */

.final-cta-section {

    width: min(
        calc(100% - 40px),
        1240px
    );

    min-height: 420px;

    margin:
        0 auto 120px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border:
        1px solid
        rgba(229,9,20,.18);

    border-radius:
        var(--radius-xl);

    background:

        radial-gradient(
            circle at center,
            rgba(229,9,20,.13),
            transparent 50%
        ),

        #090909;

}


.final-cta-glow {

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        var(--red);

    filter:
        blur(150px);

    opacity: .09;

}


.final-cta-inner {

    position: relative;

    z-index: 2;

    width: min(
        calc(100% - 50px),
        720px
    );

    text-align: center;

}


.final-cta-inner h2 {

    margin-top: 15px;

    font-size:
        clamp(
            32px,
            5vw,
            62px
        );

    line-height:
        1.25;

    font-weight: 900;

}


.final-cta-inner p {

    margin-top: 15px;

    color:
        var(--text-secondary);

    font-size: 13px;

}


.final-cta-inner .primary-button {

    margin-top: 28px;

}


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

.site-footer {

    border-top:
        1px solid
        var(--border);

    background:
        rgba(5,5,5,.88);

}


.footer-inner {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: auto;

    padding:
        65px 0;

    display: grid;

    grid-template-columns:
        1.5fr
        .7fr
        .7fr
        1fr;

    gap: 45px;

}


.footer-logo {

    display: flex;

    align-items: center;

    gap: 11px;

}


.footer-logo strong {

    display: block;

    font-family:
        Arial,
        sans-serif;

    font-size: 15px;

    letter-spacing:
        .15em;

}


.footer-logo > div > span {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing:
        .18em;

}


.footer-brand p {

    max-width: 250px;

    margin-top: 15px;

    color:
        var(--text-muted);

    font-size: 11px;

}


.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

}


.footer-column h4 {

    margin-bottom: 7px;

    color:
        var(--text-primary);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing:
        .15em;

}


.footer-column a {

    color:
        var(--text-muted);

    font-size: 10px;

    transition:
        var(--transition);

}


.footer-column a:hover {

    color:
        var(--red-bright);

    transform:
        translateX(-3px);

}


.footer-status {

    gap: 7px;

}


.footer-status > span {

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

}


.footer-online {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 5px;

}


.footer-online strong {

    color:
        var(--green);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing:
        .07em;

}


.footer-bottom {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    min-height: 65px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-top:
        1px solid
        var(--border);

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing:
        .05em;

}


/* ==================================================
   COMMAND MODAL
================================================== */

.command-modal {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.command-modal.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


.command-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.82);

    backdrop-filter:
        blur(12px);

}


.command-modal-card {

    position: relative;

    z-index: 2;

    width: min(
        100%,
        510px
    );

    padding: 38px;

    border:
        1px solid
        rgba(229,9,20,.22);

    border-radius:
        30px;

    background:
        linear-gradient(
            145deg,
            rgba(22,22,22,.96),
            rgba(7,7,7,.98)
        );

    box-shadow:
        0 40px 120px
        rgba(0,0,0,.7),
        0 0 70px
        rgba(229,9,20,.1);

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .35s
        cubic-bezier(.22,1,.36,1);

}


.command-modal.active
.command-modal-card {

    transform:
        translateY(0)
        scale(1);

}


.modal-close {

    position: absolute;

    top: 16px;
    left: 16px;

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        rgba(255,255,255,.045);

    color:
        var(--text-secondary);

    font-size: 22px;

    cursor: pointer;

    transition:
        var(--transition);

}


.modal-close:hover {

    color: white;

    background:
        rgba(229,9,20,.15);

}


.modal-icon {

    width: 64px;
    height: 64px;

    display: grid;

    place-items: center;

    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            var(--red),
            var(--red-dark)
        );

    box-shadow:
        0 0 40px
        rgba(229,9,20,.25);

}


.modal-icon span {

    font-family:
        Arial,
        sans-serif;

    font-size: 29px;

    font-weight: 900;

}


.modal-status {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 22px;

    color:
        var(--green);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        .1em;

}


.command-modal-card h2 {

    margin-top: 15px;

    font-size: 29px;

    font-weight: 900;

}


.command-modal-card > p {

    margin-top: 10px;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 2;

}


.command-modal-card > p strong {

    color:
        white;

    font-family:
        Arial,
        sans-serif;

}


.modal-info-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 25px;

}


.modal-info-grid > div {

    padding: 16px;

    border:
        1px solid
        var(--border);

    border-radius: 17px;

    background:
        rgba(255,255,255,.025);

}


.modal-info-grid span {

    display: block;

    color:
        var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing:
        .1em;

}


.modal-info-grid strong {

    display: block;

    margin-top: 5px;

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

}


.modal-button {

    width: 100%;

    margin-top: 18px;

}

/* ==================================================
   BACK TO TOP
================================================== */

.back-to-top {

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 900;

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background:
        rgba(12,12,12,.8);

    color:
        white;

    font-family:
        Arial,
        sans-serif;

    font-size: 18px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    backdrop-filter:
        blur(15px);

    transition:
        var(--transition);

}


.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


.back-to-top:hover {

    background:
        var(--red);

    border-color:
        var(--red);

    box-shadow:
        0 10px 35px
        rgba(229,9,20,.3);

}


/* ==================================================
   REVEAL ANIMATION
================================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s
        cubic-bezier(.22,1,.36,1);

}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* ==================================================
   SCROLLBAR
================================================== */

::-webkit-scrollbar {

    width: 7px;

}


::-webkit-scrollbar-track {

    background:
        #050505;

}


::-webkit-scrollbar-thumb {

    border-radius: 20px;

    background:
        #292929;

}


::-webkit-scrollbar-thumb:hover {

    background:
        var(--red);

}


/* ==================================================
   RESPONSIVE — TABLET
================================================== */

@media (max-width: 1050px) {


    .site-nav {
        display: none;
    }


    .hero-section {

        grid-template-columns:
            1fr;

        padding-top:
            145px;

    }


    .hero-content {

        text-align: center;

    }


    .hero-content p {

        margin-inline:
            auto;

    }


    .hero-content h1::after {

        margin-inline:
            auto;

    }


    .hero-actions {

        justify-content:
            center;

    }


    .hero-stats {

        margin-inline:
            auto;

    }


    .hero-world {

        min-height:
            500px;

    }


    .world-dashboard {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .systems-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .war-layout {

        grid-template-columns:
            1fr;

    }


    .news-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .featured-news {

        grid-column:
            span 2;

    }


    .commander-layout {

        grid-template-columns:
            1fr;

    }


    .footer-inner {

        grid-template-columns:
            1fr 1fr;

    }

}


/* ==================================================
   RESPONSIVE — MOBILE
================================================== */

@media (max-width: 650px) {


    .site-header {

        top: 10px;

        padding-inline:
            10px;

    }


    .header-inner {

        height:
            66px;

        padding:
            0 10px
            0 14px;

        border-radius:
            19px;

    }


    .site-logo {

        gap: 8px;

    }


    .logo-symbol {

        width: 37px;
        height: 37px;

        border-radius:
            11px;

        font-size:
            18px;

    }


    .logo-text strong {

        font-size:
            12px;

    }


    .logo-text span {

        font-size:
            6px;

    }


    .header-inner
    .primary-button {

        min-height:
            39px;

        padding:
            0 12px;

        border-radius:
            12px;

        font-size:
            8px;

    }


    .hero-section {

        width:
            min(
                calc(100% - 24px),
                1240px
            );

        min-height:
            auto;

        padding-top:
            125px;

        gap:
            35px;

    }


    .hero-content h1 {

        font-size:
            clamp(
                38px,
                12vw,
                60px
            );

    }


    .hero-content p {

        font-size:
            12px;

    }


    .hero-stats {

        grid-template-columns:
            repeat(2, 1fr);

        width: 100%;

    }


    .hero-stat {

        border-bottom:
            1px solid
            var(--border);

    }


    .hero-world {

        min-height:
            350px;

    }


    .world-frame {

        border-radius:
            25px;

    }


    .world-map {

        inset:
            25px;

    }


    .world-footer {

        left: 13px;
        right: 13px;

        font-size:
            7px;

    }


    .map-radar {

        width:
            110px;

        height:
            110px;

    }


    .global-ticker {

        width:
            calc(100% - 24px);

        margin-top:
            25px;

    }


    .ticker-label {

        display:
            none;

    }


    .content-section {

        width:
            calc(100% - 24px);

    }


    .section-heading {

        grid-template-columns:
            1fr;

        gap:
            8px;

        margin-bottom:
            28px;

    }


    .section-heading h2 {

        font-size:
            29px;

    }


    .section-heading p {

        font-size:
            11px;

    }


    .world-section,
    .systems-section,
    .war-section,
    .diplomacy-section,
    .news-section,
    .commander-section {

        padding-top:
            95px;

    }


    .world-dashboard {

        grid-template-columns:
            1fr 1fr;

        gap:
            10px;

    }


    .dashboard-card {

        min-height:
            135px;

        padding:
            18px;

        border-radius:
            20px;

    }


    .dashboard-card strong {

        font-size:
            22px;

    }


    .world-analytics {

        grid-template-columns:
            1fr;

    }


    .analytics-panel {

        min-height:
            220px;

        padding:
            20px;

        border-radius:
            24px;

    }


    .systems-grid {

        grid-template-columns:
            1fr;

    }


    .system-card {

        min-height:
            220px;

    }


    .war-intro {

        min-height:
            350px;

        padding:
            25px;

        border-radius:
            27px;

    }


    .war-data {

        grid-template-columns:
            1fr 1fr;

        gap:
            10px;

    }


    .war-stat-card {

        min-height:
            150px;

        padding:
            18px;

        border-radius:
            20px;

    }


    .war-stat-card strong {

        font-size:
            24px;

    }


    .diplomacy-panel {

        padding:
            20px;

        border-radius:
            27px;

    }


    .relation-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .relation-item:last-child {

        grid-column:
            span 2;

    }


    .news-grid {

        grid-template-columns:
            1fr;

    }


    .featured-news {

        grid-column:
            auto;

    }


    .news-card {

        min-height:
            270px;

        padding:
            23px;

        border-radius:
            24px;

    }


    .commander-cta {

        min-height:
            350px;

        padding:
            25px;

        border-radius:
            27px;

    }


    .commander-profile {

        min-height:
            auto;

        padding:
            22px;

        border-radius:
            27px;

    }


    .profile-header {

        align-items:
            flex-start;

    }


    .profile-status {

        display:
            none;

    }


    .profile-stats {

        grid-template-columns:
            1fr;

    }


    .profile-stat {

        border-left:
            0;

        border-bottom:
            1px solid
            var(--border);

    }


    .profile-stat:last-child {

        border-bottom:
            0;

    }


    .profile-footer {

        grid-template-columns:
            1fr;

    }


    .final-cta-section {

        width:
            calc(100% - 24px);

        min-height:
            350px;

        margin-bottom:
            70px;

        border-radius:
            27px;

    }


    .final-cta-inner {

        width:
            calc(100% - 35px);

    }


    .final-cta-inner h2 {

        font-size:
            32px;

    }


    .final-cta-inner p {

        font-size:
            11px;

    }


    .footer-inner {

        width:
            calc(100% - 30px);

        grid-template-columns:
            1fr 1fr;

        gap:
            35px 20px;

        padding:
            45px 0;

    }


    .footer-brand {

        grid-column:
            span 2;

    }


    .footer-status {

        grid-column:
            span 2;

    }


    .footer-bottom {

        width:
            calc(100% - 30px);

        min-height:
            auto;

        padding:
            20px 0;

        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            7px;

    }


    .command-modal-card {

        padding:
            30px 22px;

        border-radius:
            25px;

    }


    .modal-info-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .back-to-top {

        right:
            14px;

        bottom:
            14px;

        width:
            43px;

        height:
            43px;

        border-radius:
            14px;

    }

}

/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}