:root {
  --page: #090b10;
  --ink: #f8fafc;
  --text: #f2f6fb;
  --soft: #c8d3df;
  --muted: #8795a7;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --panel: rgba(15, 19, 27, 0.86);
  --panel-strong: rgba(22, 28, 38, 0.94);
  --blue: #26b8ff;
  --red: #ef2f3d;
  --gold: #e8c36c;
  --green: #42d993;
  --danger: #ff5a68;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(38, 184, 255, 0.13), transparent 28rem),
    linear-gradient(245deg, rgba(239, 47, 61, 0.12), transparent 30rem),
    linear-gradient(180deg, #0d1017 0%, var(--page) 42%, #0f1117 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 16, 0.72), transparent 18%, transparent 82%, rgba(9, 11, 16, 0.72)),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.42) 78%);
  pointer-events: none;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 10, 15, 0.76);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(38, 184, 255, 0.28));
}

.brand-logo.is-missing {
  display: none;
}

.brand-fallback {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, #10233a, #11151d);
  color: #fff;
  font-weight: 900;
}

.brand-logo:not(.is-missing) + .brand-fallback {
  display: none;
}

.brand-name {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.main-nav .nav-cta {
  border-color: rgba(232, 195, 108, 0.42);
  background: linear-gradient(180deg, #f0d487, #c49335);
  color: #171006;
  box-shadow: 0 12px 34px rgba(196, 147, 53, 0.22);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  padding: 88px clamp(20px, 5vw, 72px) 96px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    linear-gradient(115deg, rgba(38, 184, 255, 0.14), transparent 38%),
    linear-gradient(245deg, rgba(239, 47, 61, 0.13), transparent 42%);
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 14% 0 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035));
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-logos img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.hero-logos img:first-child {
  filter: drop-shadow(0 0 26px rgba(38, 184, 255, 0.2));
}

.hero-logos img:last-child {
  filter: drop-shadow(0 0 26px rgba(239, 47, 61, 0.2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(3.8rem, 11vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.48rem;
  line-height: 1.1;
}

.hero-text,
.section-heading p,
.discord-copy p {
  max-width: 660px;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(38, 184, 255, 0.36);
  background: linear-gradient(180deg, #32c4ff, #0879d1);
  color: #fff;
  box-shadow: 0 18px 42px rgba(38, 184, 255, 0.22);
}

.button.secondary {
  border-color: rgba(232, 195, 108, 0.42);
  background: linear-gradient(180deg, #f0d487, #c49335);
  color: #171006;
  box-shadow: 0 18px 42px rgba(232, 195, 108, 0.18);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.hero-scene {
  position: absolute;
  right: clamp(18px, 6vw, 108px);
  bottom: 76px;
  width: min(43vw, 560px);
  min-width: 330px;
}

.server-window {
  position: relative;
  min-height: 315px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.96), rgba(9, 12, 18, 0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(255, 255, 255, 0.035) 15px);
  box-shadow: var(--shadow);
  padding: 24px;
  transform: rotate(-1.4deg);
}

.server-window::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(38, 184, 255, 0.18), transparent 36%, rgba(239, 47, 61, 0.12));
  pointer-events: none;
}

.window-bar {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-line {
  position: relative;
  margin: 14px 0;
  color: #dce7f4;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: clamp(0.86rem, 1.15vw, 0.98rem);
}

.terminal-line.accent {
  color: var(--gold);
}

.terminal-line.muted {
  color: var(--muted);
}

.quick-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 25, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.quick-band a {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.quick-band a:hover {
  background: rgba(255, 255, 255, 0.045);
}

.quick-band a:last-child {
  border-right: 0;
}

.quick-band span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-band strong {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.26rem);
  line-height: 1.22;
}

.section,
.split-section,
.life-section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.section-heading,
.life-section,
.split-section {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.server-list {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
}

.server-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.92), rgba(10, 13, 19, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--blue);
  pointer-events: none;
}

.server-card[data-server-id="darkrp-us"]::before {
  border-top-color: var(--red);
}

.server-visual {
  min-height: 238px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(38, 184, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(17, 22, 31, 0.72);
}

.server-card[data-server-id="darkrp-us"] .server-visual {
  background:
    linear-gradient(135deg, rgba(239, 47, 61, 0.19), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(17, 22, 31, 0.72);
}

.server-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.server-logo.is-missing {
  display: none;
}

.server-logo-fallback {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.server-logo:not(.is-missing) + .server-logo-fallback {
  display: none;
}

.server-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-visual p:last-child {
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.62;
}

.server-body {
  padding: 26px 30px 30px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(232, 195, 108, 0.38);
}

.pill.online::before {
  background: var(--green);
  box-shadow: 0 0 16px rgba(66, 217, 147, 0.44);
}

.pill.offline::before {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 90, 104, 0.42);
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.copy-button {
  cursor: pointer;
  font: inherit;
}

.life-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(38, 184, 255, 0.05), rgba(239, 47, 61, 0.05));
}

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

.life-grid div {
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(8, 11, 17, 0.58);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.life-grid div:nth-child(1) {
  border-top: 3px solid var(--blue);
}

.life-grid div:nth-child(2) {
  border-top: 3px solid var(--red);
}

.life-grid div:nth-child(3) {
  border-top: 3px solid var(--gold);
}

.life-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 900;
}

.life-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.1rem;
}

.life-grid p {
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.68fr);
  gap: 44px;
  align-items: center;
}

.discord-panel {
  min-width: 0;
}

.embed-shell {
  min-height: 500px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 31, 45, 0.95), rgba(10, 12, 18, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.embed-shell iframe {
  width: 100%;
  height: 500px;
  border: 0;
}

.embed-placeholder {
  min-height: 500px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.embed-placeholder span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.embed-placeholder strong {
  color: var(--text);
  font-size: 1.5rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 7, 11, 0.72);
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-scene {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 46px;
  }

  .server-window {
    transform: none;
  }

  .quick-band,
  .section-heading,
  .server-list,
  .split-section,
  .life-section,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .quick-band {
    margin-top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .quick-band a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-band a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .main-nav,
  .hero-actions,
  .server-actions {
    width: 100%;
  }

  .main-nav a,
  .hero-actions .button,
  .server-actions .button {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-logos img {
    width: 82px;
    height: 82px;
  }

  .server-visual {
    grid-template-columns: 1fr;
  }

  .server-logo,
  .server-logo-fallback {
    width: 150px;
    height: 150px;
  }

  .status-row {
    grid-template-columns: 1fr;
  }

  .pill {
    white-space: normal;
  }
}
