@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;700&display=swap');

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

:root {
    --bg: #07111f;
    --bg-2: #0e2038;
    --ice: #8ee8ff;
    --ice-2: #d9f8ff;
    --gold: #f5c66a;
    --danger: #ff6b7a;
    --text: #edf8ff;
    --muted: #9eb5c8;
    --card: rgba(11, 30, 54, 0.76);
    --border: rgba(142, 232, 255, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #163a62 0%, var(--bg) 45%, #020710 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.snow::before,
.snow::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#8ee8ff 1px, transparent 1px);
    background-size: 80px 80px, 130px 130px;
    animation: snowMove 18s linear infinite;
    opacity: 0.28;
    z-index: 1;
}

.snow::after {
    animation-duration: 28s;
    opacity: 0.18;
}

@keyframes snowMove {
    from { transform: translateY(-120px); }
    to { transform: translateY(120px); }
}

.hero,
.sub-hero {
    position: relative;
    min-height: 100vh;
    padding: 28px 7%;
    overflow: hidden;
    isolation: isolate;
}

.sub-hero {
    min-height: 58vh;
}

.hero::before,
.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(3, 10, 20, 0.55), rgba(3, 10, 20, 0.9)),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after,
.sub-hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(142,232,255,.22), transparent 68%);
    right: -220px;
    top: 120px;
    z-index: -1;
}

.navbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(2, 10, 22, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ice), #407cff);
    color: #03101f;
    font-size: 26px;
    box-shadow: 0 0 28px rgba(142,232,255,.5);
}

.brand h1,
.hero-content h2,
.section-title h2,
.sub-hero h2 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand h1 {
    font-size: 24px;
}

.brand p {
    color: var(--muted);
    font-size: 13px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: .25s;
}

.nav-links a:hover {
    color: var(--ice);
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 28px;
}

.hero-content,
.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-top: 130px;
}

.sub-hero-content {
    margin-top: 90px;
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
}

.badge {
    color: #06111f;
    background: linear-gradient(90deg, var(--ice), var(--gold));
    margin-bottom: 22px;
}

.hero-content h2,
.sub-hero h2 {
    font-size: clamp(48px, 8vw, 94px);
    line-height: .9;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(142,232,255,.24);
}

.hero-content p,
.sub-hero p {
    max-width: 650px;
    color: #d7e8f5;
    line-height: 1.8;
    font-size: 18px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}

.btn.primary {
    color: #06111f;
    background: linear-gradient(135deg, var(--ice), var(--gold));
    box-shadow: 0 0 26px rgba(142,232,255,.35);
}

.btn.secondary {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
}

.btn:hover {
    transform: translateY(-3px);
}

.section {
    position: relative;
    z-index: 2;
    padding: 90px 7%;
}

.dark-section {
    background: linear-gradient(180deg, rgba(14,32,56,.55), rgba(3,10,20,.35));
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title p {
    color: var(--ice);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp(34px, 5vw, 56px);
}

.grid {
    display: grid;
    gap: 24px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.card,
.timeline-content,
.comment-form,
.comment-card,
.empty-state,
.war-note {
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(16px);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.card {
    padding: 28px;
    transform: translateY(20px);
    opacity: 0;
    transition: .6s;
}

.card.show,
.timeline-item.show,
.war-note.show,
.comment-form.show {
    transform: translateY(0);
    opacity: 1;
}

.card h3,
.timeline-content h3,
.comment-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    margin: 14px 0;
    color: var(--ice-2);
}

.card ul,
.timeline-content ul {
    padding-left: 20px;
    color: #d8e7f2;
    line-height: 1.75;
}

.tag.blue { background: rgba(64,124,255,.22); color: #a9c5ff; }
.tag.cyan { background: rgba(142,232,255,.18); color: var(--ice); }
.tag.violet { background: rgba(178,123,255,.20); color: #d5bdff; }

.glow-card:hover,
.alliance-card:hover {
    border-color: rgba(142,232,255,.55);
    box-shadow: 0 0 44px rgba(142,232,255,.16);
}

.ratio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ratio span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(142,232,255,.1);
    color: var(--ice-2);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 13px;
}

.timeline {
    max-width: 1000px;
    margin: auto;
    display: grid;
    gap: 22px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    transition: .6s;
}

.number {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ice), #407cff);
    color: #05101f;
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(142,232,255,.32);
}

.timeline-content {
    padding: 26px;
}

.timeline-content p,
.war-note p,
.comment-text,
.empty-state p {
    color: #d8e7f2;
    line-height: 1.8;
}

.war-note {
    max-width: 980px;
    margin: auto;
    text-align: center;
    padding: 46px;
    opacity: 0;
    transform: translateY(20px);
    transition: .6s;
    background: linear-gradient(135deg, rgba(142,232,255,.11), rgba(245,198,106,.09));
}

.war-note h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 46px;
    margin-bottom: 16px;
}

.war-note span {
    display: inline-block;
    margin-top: 22px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 3px;
}

.comment-form {
    max-width: 980px;
    margin: auto;
    padding: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: .6s;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(2,10,22,.72);
    color: var(--text);
    outline: none;
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--ice);
    box-shadow: 0 0 0 3px rgba(142,232,255,.1);
}

textarea {
    resize: vertical;
    margin-bottom: 16px;
}

.alert {
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.alert.success { background: rgba(56, 211, 159, .18); border: 1px solid rgba(56,211,159,.45); }
.alert.warning { background: rgba(245, 198, 106, .18); border: 1px solid rgba(245,198,106,.45); }
.alert.danger { background: rgba(255, 107, 122, .18); border: 1px solid rgba(255,107,122,.45); }

.comments-list {
    max-width: 980px;
    margin: auto;
    display: grid;
    gap: 18px;
}

.comment-card,
.empty-state {
    padding: 24px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.comment-header p,
.comment-header span {
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    text-align: center;
}

.empty-state h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 34px;
    margin-bottom: 10px;
}

.empty-state .btn {
    margin-top: 18px;
}

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 7%;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: rgba(2,10,22,.68);
}

@media (max-width: 900px) {
    .cards-3,
    .cards-2,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 86px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(2,10,22,.94);
    }

    .nav-links.active {
        display: flex;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .hero-content {
        margin-top: 86px;
    }
}

@media (max-width: 520px) {
    .hero,
    .sub-hero,
    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content h2,
    .sub-hero h2 {
        font-size: 44px;
    }

    .comment-header {
        flex-direction: column;
    }
}


