﻿@font-face{ font-family:'Wremena'; src:url('../Wremena-Bold.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap }
@font-face{ font-family:'Wremena'; src:url('../Wremena-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap }

:root {
    color-scheme: dark;
    --bg-main: #050b07;
    --bg-alt: rgba(6, 16, 12, 0.8);
    --bg-card: rgba(10, 24, 18, 0.7);
    --border-card: rgba(46, 84, 62, 0.5);
    --border-highlight: rgba(95, 186, 126, 0.9);
    --text-primary: #d6e7d4;
    --text-secondary: #92a698;
    --accent: #4fd080;
    --accent-soft: rgba(64, 128, 93, 0.35);
    --shadow: 0 22px 40px rgba(5, 12, 9, 0.8);
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Wremena','Times New Roman',serif;
    background:
        radial-gradient(circle at top, rgba(27, 54, 39, 0.14), transparent 65%) no-repeat,
        radial-gradient(circle at 15% 20%, rgba(70, 132, 95, 0.06), transparent 40%) no-repeat,
        linear-gradient(180deg, rgba(12, 28, 22, 0.12) 0%, rgba(7, 18, 14, 0.3) 45%, rgba(4, 10, 7, 0.58) 100%),
        url('./fonweapon.webp') center/cover fixed no-repeat;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.back-button {
    position: fixed;
    left: clamp(12px, 4vw, 28px);
    bottom: clamp(16px, 5vw, 32px);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Wremena','Times New Roman',serif;
    color: var(--text-primary);
    background: rgba(7, 18, 14, 0.92);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    z-index: 50;
}

.back-button:hover,
.back-button:focus-visible {
    transform: translateY(-3px);
    background: var(--border-highlight);
    color: #041107;
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(95, 186, 126, 0.35);
    outline: none;
}

body.no-scroll {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='rgba(68,113,87,0.08)' d='M10 10h2v2h-2zM60 40h2v2h-2zM90 90h2v2h-2zM30 70h2v2h-2zM110 20h2v2h-2zM70 110h2v2h-2z'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 60% 15%, rgba(79, 208, 128, 0.05), transparent 60%),
                linear-gradient(180deg, rgba(5, 12, 9, 0.12) 0%, rgba(4, 9, 7, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, rgba(40, 84, 60, 0.12) 0%, rgba(18, 40, 32, 0.3) 55%, rgba(9, 22, 18, 0.48) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 6, 0.04) 0%, rgba(4, 8, 6, 0.3) 100%);
    z-index: 0;
}

.main-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(79, 208, 128, 0.25);
    background: rgba(6, 16, 12, 0.65);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
}

.mute-toggle {
    border: 1px solid rgba(79, 208, 128, 0.3);
    background: rgba(12, 28, 21, 0.55);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.mute-toggle:hover,
.mute-toggle:focus-visible {
    border-color: var(--accent);
    background: rgba(12, 28, 21, 0.8);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: min(45rem, 90%);
    margin-top: clamp(4rem, 10vh, 9rem);
}

.hero__eyebrow {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 35px rgba(79, 208, 128, 0.25);
}

.hero__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero__cta {
    display: inline-block;
    padding: 0.8rem 2.6rem;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(8, 21, 16, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 4.5s ease-in-out infinite;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    transform: translateY(-2px);
    background: rgba(79, 208, 128, 0.1);
    box-shadow: 0 12px 30px rgba(79, 208, 128, 0.18);
}

.hero__cta::after {
    content: '';
    position: absolute;
    top: -160%;
    left: 0;
    width: 35%;
    height: 420%;
    background: linear-gradient(90deg, rgba(79, 208, 128, 0.05) 0%, rgba(79, 208, 128, 0.35) 45%, rgba(79, 208, 128, 0.05) 100%);
    transform: translateX(-120%) rotate(22deg);
    animation: ctaShine 7s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__ambient span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(79, 208, 128, 0.65);
    opacity: 0.8;
    animation: drift 14s linear infinite;
    box-shadow: 0 0 18px rgba(79, 208, 128, 0.55), 0 0 45px rgba(79, 208, 128, 0.2);
    mix-blend-mode: screen;
}

.hero__ambient span:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; animation-duration: 13s; }
.hero__ambient span:nth-child(2) { top: 40%; left: 70%; animation-delay: 2s; animation-duration: 16s; }
.hero__ambient span:nth-child(3) { top: 65%; left: 35%; animation-delay: 4s; animation-duration: 18s; }
.hero__ambient span:nth-child(4) { top: 25%; left: 55%; animation-delay: 6s; animation-duration: 14s; }
.hero__ambient span:nth-child(5) { top: 80%; left: 15%; animation-delay: 8s; animation-duration: 19s; }
.hero__ambient span:nth-child(6) { top: 55%; left: 85%; animation-delay: 10s; animation-duration: 17s; }

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0.2; }
    50% { transform: translate3d(30px, -60px, 0) scale(1.2); opacity: 1; }
    100% { transform: translate3d(-20px, -120px, 0) scale(0.6); opacity: 0; }
}

@keyframes lineFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes emberGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

@keyframes cardRise {
    0% { opacity: 0; transform: translateY(36px) scale(0.94); }
    60% { opacity: 1; transform: translateY(-6px) scale(1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(79, 208, 128, 0); }
    50% { box-shadow: 0 12px 35px rgba(79, 208, 128, 0.25); }
}

@keyframes ctaShine {
    0% { transform: translateX(-120%) rotate(18deg); opacity: 0; }
    20% { opacity: 0.4; }
    50% { transform: translateX(120%) rotate(18deg); opacity: 0; }
    100% { transform: translateX(120%) rotate(18deg); opacity: 0; }
}

main {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    backdrop-filter: blur(2px);
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(79, 208, 128, 0.08), transparent 50%),
        repeating-linear-gradient(90deg, rgba(25, 60, 42, 0.22) 0px, rgba(25, 60, 42, 0.22) 1px, transparent 1px, transparent 80px);
    opacity: 0.35;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
}

.section {
    position: relative;
    margin-bottom: clamp(4rem, 8vw, 6rem);
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    scroll-margin-top: clamp(4rem, 10vw, 7rem);
}

.section:first-of-type {
    padding-top: 0;
}

.section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 208, 128, 0.6) 20%, rgba(34, 89, 63, 0.75) 50%, rgba(79, 208, 128, 0.6) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: lineFlow 7s linear infinite;
    box-shadow: 0 0 14px rgba(79, 208, 128, 0.35);
}

.section__header {
    max-width: 50rem;
    margin-bottom: 2rem;
}

.section__header h2 {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: clamp(2rem, 3vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.8rem;
}

.section__header p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.ships-showcase {
    display: flex;
    flex-direction: column;
    gap: clamp(2.4rem, 4vw, 3.2rem);
    max-width: min(100%, 1180px);
    margin: 0 auto;
    padding-inline: clamp(1rem, 5vw, 3rem);
}

.weapon-card.ship-card {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 1fr);
    align-items: stretch;
    width: 100%;
    margin-inline: auto;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(1.8rem, 3vw, 2.6rem);
}

.weapon-card.ship-card .card-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    align-self: center;
}

.weapon-card.ship-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.weapon-card.ship-card .card-body {
    align-self: center;
    justify-content: center;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    gap: clamp(1rem, 1.6vw, 1.4rem);
}

.weapon-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    animation: cardRise 0.9s ease forwards;
    animation-delay: var(--card-delay, 0s);
    will-change: transform, opacity;
}

.weapon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(205deg, rgba(79, 208, 128, 0.06), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.weapon-card:hover,
.weapon-card:focus-within {
    transform: translateY(-8px);
    border-color: var(--border-card);
    box-shadow: 0 26px 45px rgba(8, 26, 17, 0.55);
}

.weapon-card:hover::before,
.weapon-card:focus-within::before {
    opacity: 1;
}

.grid .weapon-card:nth-child(3n + 1) {
    --card-delay: 0.12s;
}

.grid .weapon-card:nth-child(3n + 2) {
    --card-delay: 0.2s;
}

.grid .weapon-card:nth-child(3n) {
    --card-delay: 0.28s;
}

.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(15, 32, 23, 0.7);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: saturate(0.85);
}

.weapon-card:hover .card-image img,
.weapon-card:focus-within .card-image img {
    transform: scale(1.05);
    filter: saturate(1);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.4rem 1.6rem;
}

.card-body h3 {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: 1.45rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 6px 18px rgba(79, 208, 128, 0.2);
}

.card-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: auto 0 0;
}

.card-tags li {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(64, 128, 93, 0.18);
    border: 1px solid rgba(79, 208, 128, 0.25);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.weapon-card:hover .card-tags li,
.weapon-card:focus-within .card-tags li {
    background: rgba(79, 208, 128, 0.28);
    border-color: rgba(79, 208, 128, 0.45);
    color: #f0fff4;
}

.footer {
    position: relative;
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    color: rgba(198, 219, 204, 0.7);
    font-size: 0.9rem;
    border-top: 1px solid rgba(79, 208, 128, 0.15);
    background: rgba(6, 16, 12, 0.85);
    backdrop-filter: blur(8px);
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(340px, 70%);
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 208, 128, 0.7) 50%, transparent 100%);
    filter: blur(0.4px);
    animation: lineFlow 8s linear infinite;
    opacity: 0.65;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lightbox.is-active {
    pointer-events: auto;
    opacity: 1;
}

.lightbox__content {
    position: relative;
    z-index: 1;
    width: min(65vw, 580px);
    background: rgba(9, 20, 15, 0.92);
    border: 1px solid rgba(79, 208, 128, 0.35);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 35px 60px rgba(4, 10, 7, 0.75);
    animation: pop 0.35s ease;
}

.lightbox__content img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: contain;
    background: rgba(12, 26, 19, 0.7);
}

.lightbox__content figcaption {
    padding: 1.4rem 1.8rem 1.8rem;
}

.lightbox__content h3 {
    font-family: 'Wremena','Times New Roman',serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}

.lightbox__content p {
    margin: 0 0 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lightbox__content .card-tags {
    margin: 0;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 7, 0.85);
    backdrop-filter: blur(8px);
}

.lightbox__close {
    position: absolute;
    z-index: 2;
    top: clamp(1.2rem, 4vw, 2rem);
    right: clamp(1.2rem, 4vw, 2rem);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(79, 208, 128, 0.5);
    border-radius: 50%;
    background: rgba(6, 16, 12, 0.75);
    color: var(--text-primary);
    font-size: 1.7rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    transform: scale(1.05);
    border-color: var(--accent);
}

@keyframes pop {
    0% {
        transform: translateY(14px) scale(0.97);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

[hidden]  {
    display: none !important;
}

@media (max-width: 900px) {
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__inner {
        margin-top: clamp(3rem, 15vw, 7rem);
    }

    .weapon-card.ship-card {
        grid-template-columns: 1fr;
        padding: clamp(1.5rem, 5vw, 2.2rem);
        gap: clamp(1.4rem, 4vw, 2rem);
    }

    .weapon-card.ship-card .card-image {
        aspect-ratio: 16 / 9;
    }

    .weapon-card.ship-card .card-body {
        padding: clamp(1.4rem, 5vw, 2rem);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 1.8rem 1.2rem 3.5rem;
    }

    .main-nav {
        border-radius: 18px;
        padding: 0.6rem 1rem;
    }

    .hero__lead {
        font-size: 0.95rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .card-body {
        padding: 1.1rem 1.15rem 1.4rem;
    }

    .lightbox__content {
        width: min(90vw, 420px);
    }

    .lightbox__content img {
        aspect-ratio: 3 / 2;
    }
}




