:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --surface-soft: #171719;
    --line: #2b2b2f;
    --text: #f2f2f2;
    --muted: #929297;
    --red: #d7192d;
    --red-dark: #99111d;
    --display: "Rajdhani", sans-serif;
    --body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html { scroll-behavior: smooth; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

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

.noise { display: none; }

.wrap {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 50%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.logo img {
    display: block;
    height: auto;
}

.nav > .logo img { width: clamp(205px, 19vw, 230px); }

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

.nav nav a {
    padding: 11px 15px;
    color: #d2d2d4;
    text-decoration: none;
    text-transform: uppercase;
    font: 700 12px/1 var(--display);
    letter-spacing: .05em;
    border-radius: 3px;
    transition: color .15s, background-color .15s, border-color .15s;
}

.nav nav a:not(.nav-cta):hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.nav .nav-cta {
    margin-left: 5px;
    color: #fff;
    background: var(--red-dark);
    border: 1px solid #b41927;
}

.nav .nav-cta:hover { background: #ad1422; }
.nav-cta span { margin-left: 7px; }

.menu {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
}

.menu span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 780px;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 700px) 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 38px;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: 0;
    left: calc((100vw - 100%) / -2);
    right: calc((100vw - 100%) / -2);
    background: url("../background.png") center 42% / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc((100vw - 100%) / -2);
    background:
        linear-gradient(90deg, rgba(5, 5, 6, .94) 0%, rgba(5, 5, 6, .82) 42%, rgba(5, 5, 6, .18) 77%),
        linear-gradient(0deg, rgba(5, 5, 6, .86) 0%, transparent 38%);
}

.hero-copy { align-self: center; }

.eyebrow,
.kicker {
    margin: 0 0 18px;
    color: var(--red);
    text-transform: uppercase;
    font: 700 11px/1 var(--display);
    letter-spacing: .15em;
}

.eyebrow {
    display: flex;
    align-items: center;
    color: #c5c5c7;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    margin-right: 12px;
    background: var(--red);
}

.hero h1,
.section h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    line-height: .94;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(58px, 7vw, 96px);
    letter-spacing: -.035em;
}

.hero h1 em {
    color: var(--red);
    font-style: normal;
}

.lead {
    max-width: 590px;
    margin: 27px 0 31px;
    color: #b6b6ba;
    font-size: 15px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 20px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font: 700 12px/1 var(--display);
    letter-spacing: .06em;
    border-radius: 3px;
    transition: background-color .15s, border-color .15s;
}

.btn.primary {
    background: var(--red-dark);
    border: 1px solid #b71927;
}

.btn.primary:hover { background: #b61523; }

.btn.ghost {
    background: rgba(15, 15, 17, .86);
    border: 1px solid #46464b;
}

.btn.ghost:hover {
    background: #202023;
    border-color: #626268;
}

.hero-art { display: none; }

.stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 710px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.stats div {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.stats div + div { padding-left: 27px; }
.stats div:last-child { border-right: 0; }

.stats strong {
    font: 700 27px/1 var(--display);
}

.stats span {
    color: #8f8f94;
    text-transform: uppercase;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: .09em;
}

.section { padding-block: 110px; }

.section h2 {
    max-width: 650px;
    font-size: clamp(44px, 5vw, 68px);
    letter-spacing: -.02em;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 90px;
}

.section-intro {
    max-width: 520px;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.feature-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature {
    min-height: 215px;
    padding: 30px 34px 34px 0;
}

.feature + .feature {
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.feature > span {
    color: var(--red);
    font: 700 11px/1 var(--display);
}

.feature h3 {
    margin: 39px 0 11px;
    font: 700 24px/1 var(--display);
    text-transform: uppercase;
}

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

.servers {
    background: #0e0e10;
    border-block: 1px solid var(--line);
}

.server-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    margin-bottom: 47px;
}

.server-head > p {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.server-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.server {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 95px minmax(220px, 1fr) 255px 120px;
    align-items: center;
    gap: 24px;
    padding: 22px 25px;
    color: #fff;
    text-decoration: none;
    background: #151517;
    border: 1px solid #303034;
    transition: background-color .15s, border-color .15s;
}

.server::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 76px;
    height: 3px;
    background: var(--red);
}

.server:hover {
    background: #19191c;
    border-color: #4a4a4f;
}

.status {
    justify-self: end;
    color: #99999e;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: .1em;
}

.status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    background: #48a75d;
}

.status.offline i { background: #77777c; }

.server-main { align-self: center; }

.server-main small {
    display: block;
    margin-bottom: 7px;
    color: var(--red);
    text-transform: uppercase;
    font: 700 10px/1 var(--display);
    letter-spacing: .11em;
}

.server-main strong {
    font: 700 clamp(24px, 3vw, 34px)/1 var(--display);
}

.server-main code {
    display: block;
    margin-top: 9px;
    color: #85858a;
    font-size: 11px;
}

.server-live {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 22px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.server-live > span { min-width: 0; }

.server-live small {
    display: block;
    margin-bottom: 7px;
    color: #737378;
    text-transform: uppercase;
    font: 700 9px/1 var(--display);
    letter-spacing: .1em;
}

.server-live strong {
    display: block;
    overflow: hidden;
    color: #dedee0;
    font: 700 17px/1 var(--display);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-live strong b {
    margin-inline: 3px;
    color: #68686d;
    font-weight: 500;
}

.connect {
    position: static;
    justify-self: end;
    padding: 9px 11px;
    color: #d5d5d7;
    text-transform: uppercase;
    font: 700 10px/1 var(--display);
    border: 1px solid #3d3d42;
    border-radius: 3px;
}

.connect b { margin-left: 7px; color: var(--red); }
.server:hover .connect { border-color: #7f1720; }

.community {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.discord-section {
    padding-block: 96px;
    background: #09090a;
    border-block: 1px solid var(--line);
}

.discord-panel {
    position: relative;
    overflow: hidden;
    background: #121214;
    border: 1px solid #343438;
}

.discord-panel::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0 28%, #48131a 28% 100%);
}

.discord-header {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 30px;
    background: #0e0e10;
    border-bottom: 1px solid #343438;
}

.discord-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.discord-identity > img,
.discord-fallback {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    object-fit: cover;
    border: 1px solid #751c25;
    border-radius: 3px;
}

.discord-fallback {
    display: grid;
    place-items: center;
    background: var(--red-dark);
    font: 700 25px/1 var(--display);
}

.discord-identity .kicker {
    margin-bottom: 4px;
    color: var(--red);
}

.discord-guild-name {
    display: block;
    color: #f3f3f4;
    font: 700 22px/1.1 var(--display);
    letter-spacing: .01em;
}

.discord-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding-left: 9px;
    color: #9b9ba2;
    border-left: 2px solid #6d6d74;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .08em;
}

.discord-source i {
    width: 7px;
    height: 7px;
    background: #707078;
    border-radius: 50%;
}

.discord-source.is-live {
    color: #9eaaa1;
    border-left-color: #3d8351;
}
.discord-source.is-live i { background: #49a765; }

.discord-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    color: #fff;
    background: var(--red-dark);
    border: 1px solid #bb1b29;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
    font: 700 11px var(--display);
    letter-spacing: .05em;
    transition: background-color .15s, border-color .15s;
}

.discord-button:hover {
    background: #b61523;
    border-color: #d42a39;
}

.discord-button span {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .24);
}

.discord-content {
    display: block;
}

.discord-content.has-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(370px, .8fr);
    align-items: stretch;
}

.discord-copy {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 46px;
}

.discord-copy::before {
    content: "";
    width: 46px;
    height: 3px;
    margin-bottom: 21px;
    background: var(--red);
}

.discord-copy h2 {
    max-width: 650px;
    font-size: clamp(40px, 4.5vw, 60px);
}

.discord-copy > p {
    max-width: 620px;
    margin: 17px 0 0;
    color: #aaaab0;
    font-size: 14px;
    line-height: 1.75;
}

.discord-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 270px;
    background: #0d0d0f;
    border-left: 1px solid #343438;
}

.discord-metrics.has-voice { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.discord-metrics > div {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 24px;
    border-left: 1px solid #29292e;
}

.discord-metrics > div:first-child { border-left: 0; }

.discord-metrics > div::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 24px;
    width: 32px;
    height: 2px;
    background: var(--red);
}

.discord-metrics strong {
    color: #fff;
    font: 700 clamp(34px, 3.4vw, 50px)/1 var(--display);
}

.discord-metrics span {
    margin-top: 11px;
    color: #a8a8ae;
    text-transform: uppercase;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .08em;
}

.discord-members {
    padding: 30px 32px 34px;
    background: #0e0e10;
    border-top: 1px solid #343438;
}

.discord-members-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.discord-members-head h3 {
    margin: 0;
    padding-left: 10px;
    border-left: 2px solid var(--red);
    text-transform: uppercase;
    font: 700 14px/1 var(--display);
    letter-spacing: .04em;
}

.discord-members-head > span {
    color: #73737a;
    font: 700 10px/1 var(--display);
}

.discord-member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.discord-member {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    background: #171719;
    border: 1px solid #303034;
    border-left: 2px solid #651721;
}

.discord-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.discord-avatar img,
.discord-avatar > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: #27272b;
    border: 1px solid #444449;
    border-radius: 50%;
    font: 700 16px/1 var(--display);
}

.discord-avatar > i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    background: #4aaa67;
    border: 3px solid #171719;
    border-radius: 50%;
}

.discord-avatar > i.status-idle { background: #d6a94b; }
.discord-avatar > i.status-dnd { background: #d4525a; }
.discord-avatar > i.status-offline { background: #696970; }

.discord-member > div:last-child { min-width: 0; }

.discord-member strong,
.discord-member span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-member strong {
    color: #e5e5e7;
    font-size: 11px;
}

.discord-member span {
    max-width: 220px;
    margin-top: 5px;
    color: #a0a0a8;
    font-size: 11px;
}

.discord-copy h2,
.discord-copy p,
.discord-member strong,
.discord-member span,
.discord-button { overflow-wrap: anywhere; }

.community p:not(.kicker) {
    max-width: 660px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.community .btn { flex: 0 0 auto; }

.footer {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 30px;
    padding-block: 36px;
    color: #77777c;
    font-size: 11px;
    border-top: 1px solid var(--line);
}

.footer-logo img { width: 135px; }

.footer > p {
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.footer > div { display: flex; gap: 24px; }

.footer a {
    color: #a9a9ad;
    text-decoration: none;
}

.footer small {
    grid-column: 1 / -1;
    color: #55555a;
    text-align: right;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s, transform .5s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 800px) {
    .wrap { width: min(100% - 30px, 1160px); }

    .nav { height: 68px; }
    .nav > .logo img { width: 180px; }
    .menu { display: block; }

    .nav nav {
        display: none;
        position: absolute;
        top: 61px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #101012;
        border: 1px solid var(--line);
    }

    .nav nav.open { display: flex; }
    .nav nav a { min-height: 42px; }
    .nav .nav-cta { margin-left: 0; }

    .hero {
        min-height: 720px;
        height: auto;
        display: block;
        padding-top: 145px;
        padding-bottom: 25px;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 5, 6, .92), rgba(5, 5, 6, .48)),
            linear-gradient(0deg, rgba(5, 5, 6, .92), transparent 48%);
    }

    .hero h1 { font-size: clamp(50px, 15vw, 76px); }
    .lead { font-size: 14px; }

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

    .stats div {
        min-height: 68px;
        display: block;
        padding-top: 14px;
        padding-right: 9px;
    }

    .stats div + div { padding-left: 13px; }
    .stats strong { font-size: 23px; }
    .stats span { display: block; margin-top: 5px; }

    .section { padding-block: 78px; }

    .about,
    .server-head { grid-template-columns: 1fr; }

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

    .feature,
    .feature + .feature {
        min-height: auto;
        padding: 27px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .feature:first-child { border-top: 0; }
    .feature h3 { margin-top: 19px; }
    .server-head > p { margin-top: 23px; }
    .server {
        min-height: 145px;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 22px;
    }
    .status { grid-column: 2; grid-row: 1; }
    .server-main { grid-column: 1; grid-row: 1 / 3; }
    .server-live {
        grid-column: 1 / -1;
        grid-row: 3;
        padding: 16px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .connect { grid-column: 2; grid-row: 2; }

    .community {
        flex-direction: column;
        align-items: flex-start;
    }

    .discord-content.has-metrics { grid-template-columns: 1fr; }
    .discord-copy { min-height: 0; padding: 39px 30px; }
    .discord-metrics {
        min-height: 158px;
        border-top: 1px solid #343438;
        border-left: 0;
    }
    .discord-metrics > div { min-height: 158px; }
    .discord-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer { grid-template-columns: 1fr; }
    .footer > p { padding-left: 0; border-left: 0; }
    .footer > div { flex-direction: column; gap: 7px; }
    .footer small { grid-column: auto; text-align: left; }
}

@media (max-width: 600px) {
    .discord-header {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 20px;
    }
    .discord-identity > img,
    .discord-fallback { width: 58px; height: 58px; flex-basis: 58px; }
    .discord-button { width: 100%; }
}

@media (max-width: 430px) {
    .nav > .logo img { width: 165px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .stats strong { font-size: 20px; }
    .stats span { font-size: 8px; }
    .server { padding: 22px; }
    .discord-section { padding-block: 66px; }
    .discord-copy { padding: 32px 20px; }
    .discord-copy h2 { font-size: 34px; }
    .discord-metrics,
    .discord-metrics.has-voice {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .discord-metrics > div {
        min-height: 122px;
        padding: 30px 16px 22px;
    }
    .discord-metrics > div::before { top: 22px; left: 16px; }
    .discord-metrics.has-voice > div:last-child {
        grid-column: 1 / -1;
        min-height: 105px;
        border-top: 1px solid #29292d;
        border-left: 0;
    }
    .discord-metrics span { overflow-wrap: anywhere; }
    .discord-metrics strong { font-size: 30px; }
    .discord-members { padding: 23px 20px; }
    .discord-member-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
