/* ============================================================
   SkyClub — Minecraft сервер Create Aeronautics
   Стили главной страницы
   Палитра основана на эмблеме сервера: фиолетовое небо + золото
   ============================================================ */

:root {
    --bg-0: #0b0614;
    --bg-1: #140b26;
    --bg-2: #1c1035;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-hover: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.09);
    --gold: #f5b942;
    --gold-2: #ffd97a;
    --violet: #8b5cf6;
    --blue: #60a5fa;
    --text: #ece7f5;
    --muted: #a89fc0;
    --radius: 18px;
    --header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.15;
}

/* ---------- Шапка ---------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(11, 6, 20, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--stroke);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(245, 185, 66, 0.45);
    box-shadow: 0 0 18px rgba(245, 185, 66, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--gold-2);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn svg {
    flex: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    color: #241503;
    box-shadow: 0 8px 28px rgba(245, 185, 66, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(245, 185, 66, 0.45);
}

.btn--ghost {
    background: var(--panel);
    border-color: var(--stroke);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--panel-hover);
    border-color: rgba(245, 185, 66, 0.5);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Кнопка «Мой кабинет» в шапке — светло-зелёный градиент, пока в разработке */
.header__cta {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    color: #04381f;
    box-shadow: 0 8px 28px rgba(52, 211, 153, 0.35);
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(52, 211, 153, 0.45);
}

.header__cta span {
    display: inline;
}

.header__cta::after {
    display: none;
    content: "coming soon";
}

.header__cta:hover span {
    display: none;
}

.header__cta:hover::after {
    display: inline;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 72px;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(96, 165, 250, 0.14), transparent 60%),
        radial-gradient(800px 600px at 60% 110%, rgba(245, 185, 66, 0.10), transparent 60%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    overflow: hidden;
}

/* мерцающие звёзды */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.8), transparent 55%),
        radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,0.55), transparent 55%),
        radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.7), transparent 55%),
        radial-gradient(1px 1px at 71% 45%, rgba(255,255,255,0.5), transparent 55%),
        radial-gradient(1.5px 1.5px at 88% 72%, rgba(255,255,255,0.65), transparent 55%),
        radial-gradient(1px 1px at 44% 88%, rgba(255,255,255,0.45), transparent 55%),
        radial-gradient(1px 1px at 8% 78%, rgba(255,255,255,0.5), transparent 55%),
        radial-gradient(1.5px 1.5px at 93% 18%, rgba(255,255,255,0.6), transparent 55%);
    animation: twinkle 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    from { opacity: 0.45; }
    to   { opacity: 1; }
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.10);
    border: 1px solid rgba(245, 185, 66, 0.35);
    color: var(--gold-2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    background: linear-gradient(120deg, var(--gold-2) 10%, var(--gold) 45%, #e08e1b 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 30px;
}

.hero__subtitle b {
    color: var(--text);
}

/* адреса серверов */
.ips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.ip-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 14px 12px 20px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ip-chip:hover {
    border-color: rgba(245, 185, 66, 0.5);
    background: var(--panel-hover);
    transform: translateY(-1px);
}

.ip-chip__label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ip-chip__value {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gold-2);
}

.ip-chip__copy {
    margin-left: auto;
    color: var(--muted);
    transition: color 0.2s;
}

.ip-chip:hover .ip-chip__copy {
    color: var(--gold-2);
}

.ip-chip.copied {
    border-color: rgba(74, 222, 128, 0.6);
}

.ip-chip.copied .ip-chip__copy {
    color: #4ade80;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* эмблема */
.hero__art {
    position: relative;
    justify-self: center;
}

.hero__art::before {
    content: '';
    position: absolute;
    inset: -12%;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.hero__img {
    position: relative;
    z-index: 1;
    width: min(430px, 82vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid rgba(245, 185, 66, 0.4);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(139, 92, 246, 0.25);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- Секция статистики ---------- */

.stats {
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 34px 0;
}

.stat {
    text-align: center;
    padding: 8px;
}

.stat__value {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    font-weight: 700;
    color: var(--gold-2);
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Секции ---------- */

.section {
    padding: 96px 0;
}

.section--alt {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
        var(--bg-1);
}

.section__head {
    max-width: 640px;
    margin-bottom: 52px;
}

.kicker {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 14px;
}

.section__title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    margin-bottom: 14px;
}

.section__desc {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Преимущества ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 185, 66, 0.4);
    background: var(--panel-hover);
}

.feature__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(139, 92, 246, 0.14));
    border: 1px solid var(--stroke);
}

.feature__title {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.feature__text {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Моды ---------- */

.mods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mod {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.mod:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    background: var(--panel-hover);
}

.mod__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.16), rgba(139, 92, 246, 0.16));
    border: 1px solid var(--stroke);
}

.mod__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mod__name {
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1.3;
}

.mod__note {
    font-size: 0.8rem;
    color: var(--muted);
}

.mod__arrow {
    margin-left: auto;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
}

.mod:hover .mod__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--gold-2);
}

.mods__foot {
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.95rem;
}

.mods__foot a {
    color: var(--gold-2);
    font-weight: 700;
    border-bottom: 1px dashed rgba(245, 185, 66, 0.5);
}

.mods__foot a:hover {
    border-bottom-style: solid;
}

/* ---------- Подключение ---------- */

.connect {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 34px;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(245, 185, 66, 0.5), rgba(139, 92, 246, 0.25));
}

.step:last-child::before {
    display: none;
}

.step__num {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #241503;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 6px 20px rgba(245, 185, 66, 0.3);
}

.step__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
    padding-top: 10px;
}

.step__text {
    color: var(--muted);
    font-size: 0.95rem;
}

.step__text a {
    color: var(--gold-2);
    font-weight: 700;
    border-bottom: 1px dashed rgba(245, 185, 66, 0.5);
}

.step__text a:hover {
    border-bottom-style: solid;
}

.step__text code {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.88em;
    color: var(--gold-2);
    background: rgba(245, 185, 66, 0.10);
    border: 1px solid rgba(245, 185, 66, 0.25);
    border-radius: 6px;
    padding: 1px 7px;
}

/* карточка версии */
.version-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background:
        radial-gradient(400px 240px at 100% 0%, rgba(139, 92, 246, 0.18), transparent 65%),
        var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    padding: 32px;
}

.version-card__title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--stroke);
    font-size: 0.95rem;
}

.spec:last-of-type {
    border-bottom: 0;
}

.spec__key {
    color: var(--muted);
}

.spec__value {
    font-weight: 700;
    text-align: right;
}

.spec__value.gold {
    color: var(--gold-2);
}

.version-card .btn {
    width: 100%;
    margin-top: 22px;
}

/* ---------- Сообщество ---------- */

.links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.link-card:hover {
    transform: translateY(-5px);
    background: var(--panel-hover);
}

.link-card--tg:hover {
    border-color: rgba(34, 165, 227, 0.6);
    box-shadow: 0 14px 40px rgba(34, 165, 227, 0.15);
}

.link-card--map:hover {
    border-color: rgba(74, 222, 128, 0.55);
    box-shadow: 0 14px 40px rgba(74, 222, 128, 0.12);
}

.link-card--bot:hover {
    border-color: rgba(245, 185, 66, 0.55);
    box-shadow: 0 14px 40px rgba(245, 185, 66, 0.12);
}

.link-card--pack:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.15);
}

.link-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
}

.link-card__title {
    font-size: 1.05rem;
}

.link-card__text {
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}

.link-card__go {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gold-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-card:hover .link-card__go {
    text-decoration: underline;
}

/* ---------- CTA ---------- */

.cta {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% -20%, rgba(245, 185, 66, 0.22), transparent 65%),
        radial-gradient(500px 300px at 80% 120%, rgba(139, 92, 246, 0.25), transparent 65%),
        var(--bg-2);
    border: 1px solid var(--stroke);
}

.cta__title {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    margin-bottom: 14px;
}

.cta__text {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 30px;
}

.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Подвал ---------- */

.footer {
    border-top: 1px solid var(--stroke);
    padding: 36px 0;
    margin-top: 96px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer__note {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--gold-2);
}

/* ---------- Появление при прокрутке ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .ips {
        align-items: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .features,
    .mods {
        grid-template-columns: repeat(2, 1fr);
    }

    .links {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect {
        grid-template-columns: 1fr;
    }

    .version-card {
        position: static;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 68px 0;
    }

    .features,
    .mods,
    .links {
        grid-template-columns: 1fr;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(11, 6, 20, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--stroke);
        padding: 8px 0 16px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav__link {
        padding: 14px 6vw;
        font-size: 1.05rem;
    }

    .nav .btn {
        margin: 12px 6vw 0;
    }

    .burger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero__img {
        width: min(340px, 88vw);
    }

    .ip-chip {
        width: 100%;
    }
}
