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

:root {
    --bg: #050914;
    --surface: #091224;
    --surface-2: #0d1930;
    --blue: #1e5eff;
    --blue-light: #4b8cff;
    --text: #f5f8ff;
    --muted: #8d9ab2;
    --border: rgba(104, 145, 220, .16);
    --gradient: linear-gradient(110deg, #5ba2ff 0%, #6f6dff 48%, #4ccfff 100%);
    --container: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

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

.background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #0b1d3d 0%, var(--bg) 45%);
}

.orb {
    position: absolute;
    width: 42vw;
    height: 42vw;
    max-width: 650px;
    max-height: 650px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .18;
    animation: float 14s ease-in-out infinite alternate;
}

.orb-one { background: #1558d6; top: -20%; left: -12%; }
.orb-two { background: #1e39a6; right: -18%; top: 30%; animation-delay: -6s; }

.grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(90, 130, 200, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 130, 200, .12) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.noise {
    position: absolute;
    inset: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: .3s ease;
}

.header.scrolled {
    background: rgba(5, 9, 20, .78);
    backdrop-filter: blur(18px);
    border-color: var(--border);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}

.brand-code {
    color: white;
}

.brand-divider {
    color: #58709b;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
}

.typing {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    color: #5d9aff;
    font-weight: 700;
    animation: blink .8s step-end infinite;
}

.desktop-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    color: #aebbd0;
    font-size: 14px;
    transition: .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 7px;
    border-radius: 10px;
    background: var(--gradient);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(9, 18, 36, .7);
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: .25s;
}

.mobile-menu {
    display: none;
}

.section {
    position: relative;
    padding: 130px 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
}

.hero-content {
    max-width: 850px;
}

.eyebrow,
.section-label {
    color: #6e9be8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.eyebrow span {
    width: 26px;
    height: 1px;
    background: var(--blue-light);
}

.hero h1 {
    margin: 0;
    font-size: clamp(68px, 12vw, 150px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 800;
    display: inline-block;
    overflow: visible;
}

.hero h1 span {
    display: inline-block;
    padding-right: 8px;
}
.hero h1 span,
.section-heading h2 span,
.discord-content h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 650px;
    margin: 34px 0 10px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.25;
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: .3s ease;
}

.button span {
    transition: transform .3s ease;
}

.button:hover span {
    transform: translateX(3px);
}

.button-primary {
    border-color: transparent;
    color: white;
    background: linear-gradient(110deg, #1b56d9, #3178ff);
    box-shadow: 0 10px 35px rgba(30, 94, 255, .2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(30, 94, 255, .32);
}

.button-secondary {
    color: #dce6f8;
    background: rgba(12, 24, 47, .7);
}

.button-secondary:hover {
    background: rgba(22, 42, 76, .9);
    border-color: rgba(100, 150, 235, .3);
    transform: translateY(-2px);
}

.scroll-hint {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 100px;
    color: #6e7f9b;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 18px;
    animation: bounce 1.7s infinite;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 18px 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.stats-grid,
.cards-grid {
    display: grid;
    gap: 16px;
}

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

.stat-card,
.feature-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(12, 25, 49, .82), rgba(6, 13, 27, .7));
    border-radius: 16px;
}

.stat-card {
    padding: 30px;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.04em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-title {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}

.stat-text {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

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

.feature-card {
    min-height: 250px;
    padding: 28px;
    transition: .35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(69, 125, 225, .35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25), 0 0 45px rgba(30, 94, 255, .08);
}

.feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 38px;
    border: 1px solid rgba(77, 135, 231, .25);
    border-radius: 12px;
    color: #76aaff;
    background: rgba(30, 94, 255, .08);
    font-size: 18px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.server-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 34px;
    border: 1px solid rgba(70, 120, 210, .22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(25, 79, 180, .18), transparent 40%),
        rgba(8, 18, 36, .8);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #7ca7ee;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}


.server-status.online { color: #79e7aa; }
.server-status.offline { color: #ff7585; }
.server-status.online span {
    background: #49d18d;
    box-shadow: 0 0 12px rgba(73, 209, 141, .8);
}
.server-status.offline span {
    background: #ff5368;
    box-shadow: 0 0 12px rgba(255, 83, 104, .75);
}
#playerCount {
    display: inline-block;
    min-width: 68px;
    transition: transform .2s ease, opacity .2s ease;
}

.server-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49d18d;
    box-shadow: 0 0 12px rgba(73, 209, 141, .8);
}

.server-info h3 {
    margin: 0;
    font-size: 25px;
}

.server-info p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.server-meta {
    display: flex;
    gap: 28px;
}

.server-meta > div {
    min-width: 100px;
}

.meta-label {
    display: block;
    margin-bottom: 7px;
    color: #60728e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.server-meta strong {
    font-size: 13px;
    font-weight: 600;
}

.server-actions {
    display: flex;
    gap: 9px;
    flex-direction: column;
}

.server-actions .button {
    white-space: nowrap;
}

.discord-section {
    padding-top: 70px;
}

.discord-card {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(72, 128, 220, .25);
    border-radius: 24px;
    background: linear-gradient(120deg, #0b1b38, #071122 65%);
}

.discord-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 65px;
}

.discord-content h2 {
    margin: 20px 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.05em;
}

.discord-content p {
    max-width: 530px;
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.8;
}

.discord-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: #1649b4;
    filter: blur(120px);
    opacity: .25;
}

.discord-mark {
    position: absolute;
    right: 8%;
    color: rgba(92, 151, 255, .08);
    font-size: 300px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(-8deg);
}

.footer {
    padding: 50px 0 25px;
    border-top: 1px solid var(--border);
    background: rgba(3, 7, 15, .55);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 45px;
}

.footer-brand {
    font-weight: 800;
    letter-spacing: .05em;
}

.footer-brand span {
    color: #5474a8;
}

.footer-top p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #9ba9c0;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
}

.footer-discord {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: #52617a;
    font-size: 10px;
}

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(8, 18, 36, .85);
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .3s ease;
    backdrop-filter: blur(12px);
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 100;
    transform: translate(-50%, 20px);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(9, 19, 38, .95);
    color: white;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
    backdrop-filter: blur(12px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 35px) scale(1.1); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes bounce {
    50% { transform: translateY(7px); }
}

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .server-card { grid-template-columns: 1fr; }
    .server-actions { flex-direction: row; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 30px), var(--container)); }
    .desktop-nav { display: none; }
    .menu-button { display: block; }

    .mobile-menu {
        position: absolute;
        top: 78px;
        left: 15px;
        right: 15px;
        display: flex;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(7, 15, 29, .96);
        backdrop-filter: blur(20px);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: .25s ease;
    }

    .mobile-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu a {
        padding: 15px;
        border-radius: 8px;
        color: #c2cce0;
    }

    .mobile-menu a:hover { background: rgba(255,255,255,.04); color: white; }

    .section { padding: 95px 0; }
    .hero { min-height: 90vh; }
    .hero h1 { font-size: clamp(58px, 19vw, 100px); }
    .hero-actions { flex-direction: column; max-width: 300px; }
    .scroll-hint { margin-top: 65px; }

    .stats-grid,
    .cards-grid { grid-template-columns: 1fr; }

    .server-card { padding: 25px; }
    .server-meta { flex-direction: column; gap: 15px; }
    .server-actions { flex-direction: column; }

    .discord-content { padding: 38px 25px; }
    .discord-mark { right: -50px; font-size: 220px; }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}
}
