/* Strona glowna (index.php) - tylko to, czego nie ma w site.css */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(860px, calc(100svh - var(--header-h)));
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 48px) 0 72px;
    overflow: hidden;
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: .38;
    filter: saturate(1.1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70rem 34rem at 50% 30%, rgba(var(--accent-rgb), 0.16), transparent 65%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.55) 0%, rgba(5, 8, 13, 0.35) 40%, var(--bg) 96%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(150, 214, 240, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 214, 240, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.6);
    border: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--text-2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-kicker .badge {
    font-size: 10px;
}

.hero-title {
    font-size: clamp(56px, 11vw, 140px);
    letter-spacing: -0.04em;
    line-height: .92;
    text-shadow: 0 20px 80px rgba(var(--accent-rgb), 0.18);
}

.hero-title .text-grad {
    padding-right: .04em;
}

.hero .lead {
    margin: 26px auto 0;
    max-width: 58ch;
    font-size: clamp(15px, 1.5vw, 18px);
}

.hero-cta {
    justify-content: center;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(720px, 100%);
    margin-top: 48px;
}

.hero-stats .stat {
    align-items: center;
    text-align: center;
    background: rgba(8, 14, 22, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stat-copy {
    cursor: pointer;
    border-style: dashed;
    border-color: rgba(var(--accent-rgb), 0.35);
    transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}

.stat-copy:hover {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: rgba(var(--accent-rgb), 0.08);
    transform: translateY(-2px);
}

.stat-copy .stat-value {
    font-size: clamp(22px, 2.6vw, 28px);
    /* ta sama wysokosc linii co w zwyklym .stat-value - etykiety kafelkow w jednej linii */
    line-height: calc(clamp(26px, 3vw, 34px) * 1.05);
    color: var(--accent-hi);
}

.stat-copy.is-copied {
    border-color: rgba(var(--ok-rgb), 0.6);
}

.stat-copy.is-copied .stat-label {
    color: var(--ok);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 26px;
    height: 40px;
    margin-left: -13px;
    border-radius: 99px;
    border: 1.5px solid var(--line-3);
    opacity: .7;
}

.hero-scroll::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: var(--accent);
    animation: scroll-hint 1.8s var(--ease) infinite;
}

@keyframes scroll-hint {
    0% { opacity: 0; transform: translateY(-2px); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 640px) {
    .hero {
        min-height: 0;
        padding-bottom: 56px;
    }

    /* ciasniej, zeby pigulka miescila sie w jednej linii takze na 320px */
    .hero-kicker {
        gap: 8px;
        padding-right: 12px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stats .stat-copy {
        grid-column: 1 / -1;
    }

    .hero-cta .btn-primary {
        flex: 1 1 100%;
    }

    .hero-cta .btn-discord {
        flex: 1 1 auto;
    }

    .hero-cta .btn-icon {
        flex: 0 0 auto;
    }

    .hero-stats .stat {
        padding: 16px 12px;
    }

    .hero-stats .stat-label {
        font-size: 10.5px;
        letter-spacing: 0.08em;
    }

    .hero-stats .stat-label .i {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* ---------- O serwerze ---------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.about-copy .lead {
    margin-top: 18px;
}

.about-points {
    display: grid;
    gap: 12px;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}

.about-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 14.5px;
}

.about-points .i {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--accent);
}

.about-media {
    position: relative;
    justify-self: center;
    width: min(520px, 100%);
}

.about-media::before {
    content: "";
    position: absolute;
    inset: 10% 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.28), transparent);
    filter: blur(30px);
}

.about-media img {
    width: 100%;
}

@media (max-width: 860px) {
    .about {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-media {
        order: -1;
        width: min(380px, 85%);
    }
}

/* ---------- Funkcje ---------- */
.feature {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.feature .card-text code {
    font-size: .85em;
}

/* ---------- Jak dolaczyc ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-hi);
}

.step h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.step p {
    color: var(--text-2);
    font-size: 14px;
}

.step .btn {
    margin-top: 16px;
}

@media (max-width: 860px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- FAQ ---------- */
.faq-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.faq-help {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    overflow: hidden;
}

.faq-help::before {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(88, 101, 242, 0.35), transparent);
    pointer-events: none;
}

.faq-help .card-icon {
    margin-bottom: 18px;
}

.faq-help .card-text {
    margin: 8px 0 20px;
}

@media (max-width: 860px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-help {
        position: relative;
        top: 0;
        order: 2;
    }
}

/* ---------- Zespol ---------- */
.team-group + .team-group {
    margin-top: 40px;
}

.team-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.team-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-2), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.member {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--ease), border-color .3s;
}

.member::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(20rem 10rem at 0% 50%, rgba(var(--accent-rgb), 0.1), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}

.member:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.35);
}

.member:hover::after {
    opacity: 1;
}

.member-avatar {
    position: relative;
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.8), rgba(var(--teal-rgb), 0.3) 60%, transparent);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    background: var(--panel-2);
}

.member-name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.15;
}

.member-role {
    margin-top: 3px;
    font-size: 13.5px;
    color: var(--text-2);
}

.member-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-3);
    transition: color .2s;
}

.member-contact:hover {
    color: #a5b0ff;
}

.member-contact .i {
    width: 16px;
    height: 16px;
}

/* ---------- Pas CTA ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 40px;
    padding: clamp(28px, 4.5vw, 52px);
    border-radius: var(--r-xl);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background:
        radial-gradient(40rem 20rem at 0% 0%, rgba(var(--accent-rgb), 0.18), transparent 60%),
        radial-gradient(30rem 18rem at 100% 100%, rgba(88, 101, 242, 0.2), transparent 60%),
        var(--panel);
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(150, 214, 240, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 214, 240, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}

.cta-band p {
    margin-top: 10px;
    color: var(--text-2);
    max-width: 52ch;
}

@media (max-width: 760px) {
    .cta-band {
        grid-template-columns: minmax(0, 1fr);
    }
}
