:root {
    --bg-dark: #151814;
    --bg-olive: #3b412d;
    --bg-olive-light: #565f3d;
    --accent: #f2c94c;
    --accent-soft: #f7e29a;
    --text-main: #f5f5f5;
    --text-dark: #222;
    --text-muted: #9ea3a2;
    --border-subtle: #444;
    --radius-card: 16px;
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.45);
    --transition-fast: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    background: #0b0c0a;
    color: var(--text-main);
}

img, video {
    max-width: 100%;
    display: block;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.section-olive {
    background: var(--bg-olive);
}

.section-dark {
    background: #10130f;
}

.section h2 {
    margin: 0 0 1.5rem;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(12,14,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
}


@media (max-width: 768px) {

    .tests-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .test-card {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
    }

    .test-card img, 
    .test-card video {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }
}


@media (max-width: 768px) {
    .tech-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}



@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #0f110f;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .main-nav.mobile-open {
        display: flex;
    }
}






.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--text-main);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* головна магія */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(242,201,76,0.18), transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
    padding: 6rem 0 4rem;
    padding-left: 1.4rem !important;
    padding-right: 1.4rem !important;    
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    opacity: 0.8;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    margin: 0.8rem 0 0.7rem;
    line-height: 1.15;
}

.hero-sub {
    max-width: 32rem;
    color: var(--text-muted);
}

.hero-actions {
    margin: 1.5rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
    background: var(--accent);
    color: #111;
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.6);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn.ghost:hover {
    border-color: var(--accent);
}

.btn.full {
    width: 100%;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.4rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-metrics span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-soft);
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-device-card {
    background: rgba(10,11,8,0.9);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    max-width: 360px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-device-card img {
    border-radius: 12px;
    margin-bottom: 0.7rem;
}

.hero-device-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section layouts */

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.about-media video {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.06);
}

.caption {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 1.3rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "●";
    color: var(--accent);
    margin-right: 0.6rem;
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.feature-card {
    background: #151812;
    border-radius: var(--radius-card);
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.65);
    border-color: var(--accent);
}

/* Tech specs */

.tech-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .tech-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 32px !important;
    }

    .tech-hud-wrapper {
        margin: 0 auto !important;
        max-width: 320px !important;
        width: 100% !important;
    }
}


.spec-list {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
}

.spec-list li {
    margin-bottom: 0.6rem;
}

.spec-list span {
    color: var(--text-main);
    font-weight: 500;
}

.formulas h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.formula {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.35);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.formula-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ML comparison */

.ml-compare {
    max-width: 700px;
}

.ml-bar {
    margin-bottom: 1.1rem;
}

.ml-bar .label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.bar {
    position: relative;
    height: 26px;
    border-radius: 999px;
    overflow: hidden;
    background: #232623;
}

.bar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.8rem;
    font-size: 0.8rem;
    color: #111;
    font-weight: 600;
}

.bar-baseline {
    width: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.bar-ml {
    width: 40%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.ml-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Workflow */

.workflow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.wf-step {
    min-width: 120px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(0,0,0,0.22);
    font-size: 0.9rem;
    text-align: center;
}

.wf-arrow {
    width: 40px;
    height: 2px;
    background: var(--accent);
    position: relative;
}

.wf-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -5px;
    border-width: 6px 0 6px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent);
}

.workflow-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* Gallery – flex-версія, стабільна на всіх пристроях */

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
}

.gallery-item {
    background: #11130f;
    border-radius: var(--radius-card);
    padding: 0.6rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    flex: 1 1 260px;      /* базова ширина картки на великих екранах */
    max-width: 360px;     /* щоб не роздувались надто */
}

.gallery-item video,
.gallery-item img {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
}

/* wide – більше не розтягуємо по grid, просто даємо трохи більшу мінімальну ширину */
.gallery-item.wide {
    flex: 1 1 320px;
}

.gallery-item figcaption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* Advantages */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.adv-card {
    background: #161915;
    border-radius: var(--radius-card);
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    position: relative;
}

.adv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--accent);
}

.adv-card h3 {
    margin: 0 0 0.4rem;
}

.adv-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.adv-line {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.contact-form {
    background: #141712;
    border-radius: var(--radius-card);
    padding: 1.6rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: 10px;
    border: 1px solid #333;
    padding: 0.55rem 0.8rem;
    background: #0d0f0b;
    color: var(--text-main);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-notes {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    background: #0a0b08;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.1rem 0 1.3rem;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    color: var(--text-muted);
}

/* Animations – scroll reveal */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 1024px) {
    .hero-content,
    .section-grid,
    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-media {
        justify-content: flex-start;
    }
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .hero-content,
    .section-grid,
    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .section {
        padding: 2rem 1rem !important;
    }

    .tech-hud-wrapper {
        max-width: 100%;
        aspect-ratio: 9/16;
    }

    h1, h2, h3 {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-device-card {
        max-width: 100%;
    }
}


/* === HUD відеоблок для секції ТТХ === */

.hud-wrapper {
    aspect-ratio: 9/16;
    max-width: 360px;
}

@media (max-width: 768px) {
    .hud-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* фонове відео */
.hud-video {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.65) contrast(1.15) saturate(1.05);
    object-fit: cover;
}

/* напівпрозорий HUD-шар зверху */
.hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: #f4f4f4;
    font-family: inherit;
}

/* центральний приціл ⊕ */
.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(210, 190, 110, 0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(210, 190, 110, 0.8);
}

.hud-crosshair::before,
.hud-crosshair::after {
    content: "";
    position: absolute;
    background: rgba(210, 190, 110, 0.9);
}

.hud-crosshair::before {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.hud-crosshair::after {
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* підписи CLASSIC / DropPilot ML */
.hud-label {
    position: absolute;
    top: 10%;
    max-width: 40%;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(7, 10, 7, 0.85),
        rgba(18, 24, 16, 0.75)
    );
    border: 1px solid rgba(142, 153, 130, 0.8);
    backdrop-filter: blur(4px);
}

.hud-label--left {
    left: 8%;
}

.hud-label--right {
    right: 8%;
    text-align: right;
}

.hud-label-title {
    display: block;
    color: rgba(210, 190, 110, 0.96);
    font-weight: 600;
}

.hud-label-sub {
    display: block;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0.05em;
    color: rgba(230, 232, 228, 0.75);
}

/* траєкторії (лінії в нижній частині кадру) */
.hud-track {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 2px;
    border-radius: 999px;
    overflow: visible;
}

.hud-track--classic {
    bottom: 16%;
    background: rgba(150, 150, 150, 0.6);
}

.hud-track--ml {
    bottom: 22%;
    background: linear-gradient(
        90deg,
        rgba(210, 190, 110, 0),
        rgba(210, 190, 110, 0.95)
    );
    box-shadow: 0 0 10px rgba(210, 190, 110, 0.6);
}

/* "снаряди" що біжать по лініях */
.hud-bullet {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hud-bullet--classic {
    background: rgba(255, 90, 90, 0.9);
    box-shadow: 0 0 6px rgba(255, 90, 90, 0.9);
    animation: hud-bullet-classic 2.8s linear infinite;
}

.hud-bullet--ml {
    background: rgba(120, 210, 130, 0.95);
    box-shadow: 0 0 8px rgba(120, 210, 130, 0.95);
    animation: hud-bullet-ml 2.8s linear infinite;
}

/* анімації руху "снарядів" */
@keyframes hud-bullet-classic {
    0% {
        left: 8%;
    }
    70% {
        left: 92%;
        transform: translate(-50%, -50%) translateY(6px);
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes hud-bullet-ml {
    0% {
        left: 8%;
    }
    60% {
        left: 88%;
        transform: translate(-50%, -50%) translateY(-4px);
    }
    80% {
        left: 92%;
        transform: translate(-50%, -50%);
    }
    100% {
        left: 92%;
        transform: translate(-50%, -50%);
    }
}

/* нижній інформаційний рядок */
.hud-footer {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6%;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(225, 227, 222, 0.8);
    text-align: center;
    background: linear-gradient(
        90deg,
        rgba(7, 10, 7, 0.9),
        rgba(16, 22, 14, 0.85),
        rgba(7, 10, 7, 0.9)
    );
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(128, 140, 120, 0.8);
}

/* адаптація під мобільні */
@media (max-width: 768px) {
    .hud-label {
        font-size: 0.7rem;
        max-width: 70%;
    }

    .hud-crosshair {
        width: 48px;
        height: 48px;
    }

    .hud-footer {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }
}


.tech-hud-wrapper {
    width: 100%;
    max-width: 320px;          /* ← РОЗМІР ЛІВОЇ СТОРОНИ */
    aspect-ratio: 9 / 16;       /* ← СПІВВІДНОШЕННЯ ЯК У ЛІВОГО БЛОКУ */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #070a07;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.hud-frame {
    width: 100%;
    height: 100%;
    border: none;
}



/* ========================= */
/*  MOBILE NAVIGATION FIX    */
/* ========================= */

@media (max-width: 768px) {

    .site-header {
        padding: 12px 16px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        gap: 16px;
        background: #0f110f;
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .burger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .burger-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
    }
    @media (min-width: 769px) {
        .burger-btn {
            display: none;
        }
    }

}



@media (max-width: 768px) {

    /* Центрує анімацію HUD */
    .tech-grid {
        place-items: center !important;
        text-align: center;
    }

    .tech-hud-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    .tech-hud-wrapper {
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}




/* Фікс: щоб картки не накладалися на середніх екранах */
@media (max-width: 1200px) {
    .test-content {
        flex-wrap: wrap;        /* дозволяє перенос на новий ряд */
        justify-content: center;
        gap: 20px;              /* відступ між елементами */
    }

    .test-card {
        width: 90%;             /* адаптивна ширина */
        max-width: 420px;        /* не більше, ніж потрібно */
        margin: 0 auto;          /* центровані */
    }
}


/* ----------------------------- */
/* FIX for TEST CARDS OVERLAP   */
/* ----------------------------- */

.test-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* картка */
.test-card {
    background: #11130f;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
    max-width: 360px;
    width: 100%;
}

/* адаптація під середні екрани (1024 → 900 px) */
@media (max-width: 1200px) {
    .test-content {
        justify-content: center;
    }
}

/* адаптація під мобільні */
@media (max-width: 768px) {
    .test-card {
        max-width: 100%;
    }
}




/* ===== FIX: text overflow in cards on mobile ===== */
@media (max-width: 900px) {
    .feature-card,
    .capability-card {
        height: auto !important;
        padding: 1.6rem !important;
        overflow: visible !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    .feature-card p,
    .capability-card p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}


/* ===== FIX: gallery video too small on mobile ===== */
@media (max-width: 900px) {

    .gallery-item video {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .gallery-item {
        width: 92% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
}


/* ===== POPUP STYLE ===== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup.show {
    display: flex;
}

.popup-content {
    background: #141712;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 12px 45px rgba(0,0,0,0.6);
}

#popupClose {
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #111;
    font-weight: 600;
    cursor: pointer;
}


.social-links {
    display: flex;
    gap: 14px;
    margin: 18px 0;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #1a1d18;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.social-btn img {
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.social-btn:hover img {
    opacity: 1;
}


.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.footer-social .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1a1d18;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.footer-social .social-btn img {
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

.footer-social .social-btn:hover {
    background: #a8c080;
    border-color: #a8c080;
}

.footer-social .social-btn:hover img {
    opacity: 1;
}


/* HUD pulse animation */
@keyframes hudPulse {
    0% { transform: scale(1); box-shadow: 0 0 6px rgba(200,210,130,0.4); }
    50% { transform: scale(1.18); box-shadow: 0 0 14px rgba(200,210,130,0.9); }
    100% { transform: scale(1); box-shadow: 0 0 6px rgba(200,210,130,0.4); }
}

.social-btn.pulse:hover svg {
    stroke: #f2c94c;
    filter: drop-shadow(0 0 6px #f2c94c);
}

.pulse:hover {
    animation: hudPulse 1.1s ease-in-out infinite;
}


.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.social-btn svg {
    width: 36px;
    height: 36px;
}

/* Mobile */
@media (max-width: 480px) {
    .social-btn {
        width: 42px;
        height: 42px;
    }
    .social-btn svg {
        width: 24px;
        height: 24px;
    }
}

.header-social {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .header-social {
        display: none;
    }
}


