* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #08090d;
    color: #f4f4f5;
    font-family: Inter, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.back {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(120, 120, 150, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(60, 90, 120, 0.10), transparent 30%),
        linear-gradient(145deg, #08090d, #0d0f15);
}

.grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 75%, transparent);
}

.soft {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
}

.softa {
    top: 110px;
    left: -120px;
    background: #7b7cff;
}

.softb {
    right: -120px;
    bottom: 80px;
    background: #5aa7ff;
}

.code {
    position: absolute;
    width: 430px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(10px);
    opacity: 0.45;
}

.code pre {
    margin: 0;
    color: rgba(255,255,255,0.32);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.codea {
    top: 18%;
    left: -460px;
    animation: leftpass 30s linear infinite;
}

.codeb {
    top: 48%;
    right: -460px;
    animation: rightpass 34s linear infinite;
}

.codec {
    bottom: 10%;
    left: -460px;
    animation: leftpass 38s linear infinite;
}

.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 7vw;
    background: rgba(8, 9, 13, 0.62);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f4f4f5;
    color: #090a0e;
}

.logo p {
    margin: 0;
}

nav {
    display: flex;
    gap: 28px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

nav a:hover {
    color: #ffffff;
}

.langbox {
    display: flex;
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.langbox button {
    border: 0;
    border-radius: 10px;
    padding: 8px 11px;
    color: rgba(255,255,255,0.58);
    background: transparent;
    cursor: pointer;
}

.langbox button.active {
    color: #090a0e;
    background: #f4f4f5;
}

.page {
    width: min(1100px, 88vw);
    margin: 0 auto;
    padding: 145px 0 72px;
}

.card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    background: rgba(255,255,255,0.045);
    backdrop-filter: blur(16px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

.hero {
    min-height: 430px;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.38);
    font-size: 12px;
    letter-spacing: 0.28em;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 50px);
    letter-spacing: -0.045em;
}

.lead {
    max-width: 760px;
    margin: 26px 0 0;
    color: rgba(255,255,255,0.66);
    font-size: 18px;
    line-height: 1.75;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.tags span {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,0.76);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.layout {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 20px;
    margin-top: 20px;
}

.about,
.stats,
.contact {
    padding: 36px;
}

.about p,
.contact p {
    color: rgba(255,255,255,0.68);
    font-size: 17px;
    line-height: 1.8;
}

.terminal {
    margin-top: 28px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.20);
}

.bar {
    display: flex;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
}

.terminal pre {
    margin: 0;
    padding: 22px;
    min-height: 205px;
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.stats {
    display: grid;
    gap: 14px;
    align-content: start;
}

.stats div {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.045);
}

.stats strong {
    display: block;
    margin-bottom: 6px;
    font-size: 27px;
}

.stats span {
    color: rgba(255,255,255,0.58);
}

.contact {
    margin-top: 20px;
}

.discord {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
}

.discord span {
    font-size: 20px;
    font-weight: 700;
}

.discord button,
.linkbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 13px 17px;
    background: #f4f4f5;
    color: #090a0e;
    font-weight: 700;
    cursor: pointer;
}

.linkbtn {
    width: fit-content;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 28px 7vw 40px;
    color: rgba(255,255,255,0.42);
    font-size: 14px;
}

@keyframes leftpass {
    from {
        left: -500px;
    }
    to {
        left: calc(100vw + 500px);
    }
}

@keyframes rightpass {
    from {
        right: -500px;
    }
    to {
        right: calc(100vw + 500px);
    }
}

@media (max-width: 760px) {
    .top {
        padding: 16px 5vw;
    }

    nav {
        display: none;
    }

    .page {
        width: min(94vw, 1100px);
        padding-top: 116px;
    }

    .hero {
        min-height: 420px;
        padding: 30px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .about,
    .stats,
    .contact {
        padding: 28px;
    }

    .discord {
        flex-direction: column;
        align-items: stretch;
    }
}

/*
     W     W
     W  W  W  z z z  aaaa  rrrr  pppp
     W W W W    z    a  a  r     p  p
      W   W   z z z  aaaa  r     pppp
                                   p
*/