:root {
    --bg: #111216;
    --bg2: #18191f;
    --text: #f4f5f7;
    --mute: #9aa0ab;
    --line: rgba(255,255,255,0.08);
    --teal: #2ee6a8;
    --teal-ink: #04140f;
    --gold: #e8c36a;
    --ice: #c9d7e8;
    --blue: #7eb6ff;
    --font: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, .btn { font-family: inherit; }

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17,18,22,0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-bar {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 16px;
}
.brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.brand span { color: var(--teal); }

.nav-links {
    display: flex;
    gap: 22px;
    color: var(--mute);
    font-size: 14px;
    font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-sale, .sale-chip, .sale-flag { display: none !important; }

.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    place-items: center;
    gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    background: var(--teal);
    color: var(--teal-ink);
    font-weight: 650;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
    background: #22232a;
    color: var(--text);
}
.btn-ghost:hover { background: #2a2b33; filter: none; }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 80px 0 64px;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.72);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(17,18,22,0.55) 70%),
        linear-gradient(180deg, rgba(17,18,22,0.25) 0%, rgba(17,18,22,0.75) 70%, var(--bg) 100%);
}

.hero-copy { z-index: 2; }

.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--mute);
    margin-bottom: 22px;
}
.live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
    display: block;
}
.live.is-off i { background: #8a9099; }

.hero-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(36px, 5.4vw, 60px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    max-width: 16ch;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.hero .lead {
    margin: 16px auto 28px;
    max-width: 520px;
    color: var(--mute);
    font-size: 17px;
}

.hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ip-hint { margin-top: 16px; color: var(--mute); font-size: 14px; }
.ip-hint code {
  color: var(--teal);
  background: rgba(46,230,168,0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stats-grid span { color: var(--mute); font-size: 13px; }

.sec-sub {
  color: var(--mute);
  margin: -16px 0 28px;
  max-width: 52ch;
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards3 .card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.cards3 h3 { font-size: 18px; margin-bottom: 8px; }
.cards3 p { color: var(--mute); font-size: 15px; }

.sys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sys-grid article {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sys-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.sys-grid h4 { padding: 14px 16px 4px; font-size: 16px; }
.sys-grid p { padding: 0 16px 16px; color: var(--mute); font-size: 14px; }

@media (max-width: 900px) {
  .stats-grid, .cards3, .sys-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-grid, .cards3, .sys-grid { grid-template-columns: 1fr; }
}

.factions-wrap { padding: 4px 0 64px; }

.factions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.faction {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--line);
}
.faction::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    z-index: 2;
}
.faction.gang::before { background: #b48cff; }
.faction.pd::before { background: var(--blue); }
.faction.ems::before { background: #e07070; }
.faction.mech::before { background: var(--gold); }
.faction.ranger::before { background: #8cbe62; }
.faction.fish::before { background: var(--teal); }
.faction img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.06);
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: saturate(0.92) brightness(0.95);
}
.faction:hover img {
    transform: scale(1.12);
    filter: saturate(1.05) brightness(1.05);
}
.faction .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.08) 28%, rgba(17,18,22,0.9) 100%);
    pointer-events: none;
}
.faction .txt {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
}
.faction .tag {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}
.faction.gang .tag { color: #c9b4f0; }
.faction.pd .tag { color: #9ec4f5; }
.faction.ems .tag { color: #e8a0a0; }
.faction.mech .tag { color: #e8c36a; }
.faction.ranger .tag { color: #b3d48a; }
.faction.fish .tag { color: var(--teal); }
.faction h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 4px;
}

section { padding: 72px 0; }
.band { border-top: 1px solid var(--line); }

.kicker {
    font-size: 13px;
    color: var(--mute);
    margin-bottom: 10px;
}

.sec-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 14px;
}
.step {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 24px;
    min-height: 220px;
}
.step .badge {
    display: inline-block;
    font-size: 12px;
    color: var(--mute);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.step h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: 15px; }
.step.last {
    background: var(--teal);
    color: var(--teal-ink);
    border-color: transparent;
}
.step.last .badge { background: rgba(4,20,15,0.12); color: var(--teal-ink); }
.step.last p { color: rgba(4,20,15,0.75); }
.step.last .btn {
    margin-top: 18px;
    background: var(--teal-ink);
    color: var(--teal);
}

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--mute); margin-top: 10px; font-size: 15px; }

.discord {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 280px;
    display: grid;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--line);
}
.discord img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}
.discord .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,18,22,0.88), rgba(17,18,22,0.35));
}
.discord .inner { position: relative; z-index: 1; max-width: 460px; }
.discord h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 10px; }
.discord p { color: var(--mute); margin-bottom: 20px; }

.photo-banner {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.photo-banner img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.photo-banner .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.2), var(--bg) 92%);
}
.photo-banner .wrap { padding: 48px 0 28px; }

.page-hero { padding: 56px 0 12px; }
.page-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
}
.page-hero p { color: var(--mute); margin-top: 10px; max-width: 560px; }

.tiers {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 14px;
}
.tier {
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    background: var(--bg2);
}
.tier img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) brightness(0.8);
}
.tier .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.12) 0%, rgba(17,18,22,0.68) 48%, rgba(17,18,22,0.94) 100%);
}
.tier::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    z-index: 2;
}
.tier.vip::before { background: var(--teal); }
.tier.gold::before { background: var(--gold); }
.tier.plat::before { background: var(--ice); }
.tier.dia::before { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.tier > *:not(img):not(.veil):not(.sale-chip) { position: relative; z-index: 1; }

.tier-name { font-size: 22px; font-weight: 600; padding-right: 58px; }
.price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 12px 0 18px;
    line-height: 1;
}
.price-old {
    font-size: 18px;
    font-weight: 500;
    color: #8b909c;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #9aa0ab;
}
.price-now {
    font-size: 40px;
    font-weight: 650;
}
.tier.dia .price-now { color: var(--teal); }
.tier ul { list-style: none; display: grid; gap: 8px; color: var(--mute); font-size: 14px; margin-bottom: 22px; flex: 1; }
.tier .btn { margin-top: auto; align-self: flex-start; }

.sale-chip {
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 2;
    background: var(--teal);
    color: var(--teal-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 10px;
    border-radius: 999px;
}
.sale-flag {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--teal-ink);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}
.sale-flag span { font-weight: 500; opacity: 0.72; }

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.svc {
    position: relative;
    background: var(--bg2);
    min-height: 200px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}
.svc img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.svc .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.1) 20%, rgba(17,18,22,0.92) 100%);
}
.svc h3, .svc p, .svc-price, .svc .btn { position: relative; z-index: 1; }
.svc .btn { margin-top: 12px; align-self: flex-start; }
.svc h3 { font-size: 18px; font-weight: 600; padding-right: 58px; }
.svc p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.svc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
    line-height: 1;
}
.svc-price .price-old { font-size: 15px; }
.svc-price .price-now { font-size: 26px; font-weight: 650; }
.svc.wide { grid-column: span 2; grid-row: span 2; min-height: 340px; }
.svc.wide h3 { font-size: 28px; }
.svc.wide .svc-price .price-now { font-size: 36px; }
.svc.wide .svc-price .price-old { font-size: 18px; }

.rules-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}
.toc { position: sticky; top: 96px; display: grid; gap: 10px; font-size: 14px; color: var(--mute); }
.toc a:hover { color: var(--teal); }
.chapter { margin-bottom: 48px; }
.chapter h2 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.warn {
    padding: 16px 18px;
    border-left: 3px solid var(--teal);
    background: rgba(46,230,168,0.08);
    margin-bottom: 18px;
    border-radius: 0 10px 10px 0;
}
.rule {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.rule .n { color: var(--teal); font-weight: 650; }
.rule p { color: #c8ccd4; }

.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.keys div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.keys b { color: var(--teal); min-width: 48px; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team.admins { grid-template-columns: repeat(3, 1fr); }
.team article {
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg2);
}
.team h3 { font-size: 22px; font-weight: 600; }
.team p { color: var(--mute); margin-top: 6px; }
.team.leads article { min-height: 120px; }

.about-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}
.about-copy h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.about-copy p {
    color: var(--mute);
    max-width: 46ch;
    margin-bottom: 12px;
}
.about-shot {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--line);
}
.about-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-shot .cap {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    font-size: 13px;
    color: var(--mute);
}

.facts3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.fact {
    position: relative;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.fact img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}
.fact .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.1) 25%, rgba(17,18,22,0.92) 100%);
}
.fact h3, .fact p { position: relative; z-index: 1; }
.fact h3 { font-size: 22px; font-weight: 600; }
.fact p { color: var(--mute); font-size: 14px; margin-top: 6px; }

.owners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.owner {
    position: relative;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.owner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.owner .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,18,22,0.05) 30%, rgba(17,18,22,0.92) 100%);
}
.owner .txt {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
}
.owner .role {
    color: var(--teal);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.owner h3 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-top: 4px;
}

.events article {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.events .when { color: var(--teal); font-weight: 650; }
.events h3 { font-size: 20px; font-weight: 600; }
.events p { color: var(--mute); margin-top: 6px; }

.auth-page { padding-bottom: 80px; max-width: 640px; }
.auth-steps {
    margin-top: 22px;
    padding-left: 20px;
    color: var(--mute);
}
.auth-steps li { margin: 8px 0; }
.auth-warn { margin-top: 16px; color: var(--gold); }

.mig-form {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}
.mig-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ice);
}
.mig-form input,
.mig-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg2);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}
.mig-form textarea { min-height: 90px; resize: vertical; }
.mig-form input:focus,
.mig-form textarea:focus {
    outline: 1px solid var(--teal);
    border-color: transparent;
}

.page-hero h1 { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; }
.page-hero .kicker { color: var(--teal); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.page-hero > p { color: var(--mute); margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 28px;
    color: var(--mute);
    font-size: 14px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}
.foot-grid h3 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.foot-grid a { display: block; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 980px) {
    .steps, .tiers, .bento, .team, .rules-layout, .events article, .keys, .foot-grid, .about-split, .facts3, .owners {
        grid-template-columns: 1fr;
    }
    .tier.dia, .svc.wide { grid-column: auto; }
    .bento { grid-template-columns: 1fr 1fr; }
    .factions { grid-template-columns: 1fr 1fr; }
    .team.admins { grid-template-columns: 1fr 1fr; }
    .toc { position: static; display: flex; flex-wrap: wrap; gap: 12px 18px; }
    .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 720px) {
    .nav-toggle { display: grid; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 12px 24px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 12px;
        z-index: 20;
    }
    body.nav-open .nav-links { display: flex; }
    .bento { grid-template-columns: 1fr; }
    .factions { grid-template-columns: 1fr; }
}
