:root {
  color-scheme: dark;
  --bg: #081016;
  --panel: rgba(15, 24, 31, 0.76);
  --panel-strong: rgba(20, 34, 43, 0.92);
  --line: rgba(190, 210, 220, 0.18);
  --text: #f5f7f2;
  --muted: #aebbb7;
  --mint: #72e6bc;
  --gold: #f2c96f;
  --coral: #ff8d7a;
  --blue: #76b8ff;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(114, 230, 188, 0.16), transparent 26rem),
    radial-gradient(circle at 84% 12%, rgba(255, 141, 122, 0.14), transparent 24rem),
    linear-gradient(145deg, #081016 0%, #111817 50%, #191a12 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.68;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0.9rem 0;
  backdrop-filter: blur(18px);
}

.topbar-wide {
  align-items: stretch;
}

.brand,
.nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(114, 230, 188, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(114, 230, 188, 0.9), rgba(118, 184, 255, 0.72)),
    #13211d;
  box-shadow: 0 0 28px rgba(114, 230, 188, 0.26);
}

.nav {
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 12, 16, 0.68);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.nav a {
  min-width: 5.8rem;
  padding: 0.82rem 1rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.nav-primary a {
  border: 1px solid transparent;
}

.nav-primary a:hover,
.nav-primary a:focus-visible,
.nav-primary a[aria-current="page"] {
  border-color: rgba(114, 230, 188, 0.35);
  background: rgba(114, 230, 188, 0.12);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 96px));
  padding: 5rem 0 4rem;
}

.home-hero {
  min-height: min(650px, calc(100vh - 96px));
}

.hero-copy {
  min-width: 0;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(4.1rem, 11vw, 9.4rem);
  line-height: 0.82;
  font-weight: 800;
  overflow-wrap: normal;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.lede {
  max-width: 650px;
  color: #d8dfdb;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(114, 230, 188, 0.42);
  background: var(--mint);
  color: #07120f;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.icon {
  font-size: 1.1rem;
  line-height: 1;
}

.signal-panel {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.live-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.signal-panel strong {
  display: block;
  margin: 1rem 0 1.3rem;
  font-size: 1.55rem;
}

dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 2rem 0 3rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-grid {
  margin-bottom: 4rem;
}

.app-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 218px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 24, 29, 0.72);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(114, 230, 188, 0.48);
  background: var(--panel-strong);
  outline: none;
}

.app-card.featured {
  background:
    linear-gradient(135deg, rgba(114, 230, 188, 0.18), rgba(242, 201, 111, 0.12)),
    rgba(14, 24, 29, 0.82);
}

.discord-card {
  background:
    linear-gradient(135deg, rgba(118, 184, 255, 0.14), rgba(255, 141, 122, 0.1)),
    rgba(14, 24, 29, 0.78);
}

.fivem-card {
  background:
    linear-gradient(135deg, rgba(242, 201, 111, 0.15), rgba(114, 230, 188, 0.1)),
    rgba(14, 24, 29, 0.78);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 1.35rem;
}

.app-meta {
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-card strong {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.app-card span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.status-list span {
  min-width: 8.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-weight: 700;
}

.status-list b {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--text);
  font-size: 1.35rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 2rem;
  padding: 4rem 0 5rem;
}

.about p:last-child {
  align-self: end;
  color: #d6ded9;
  font-size: 1.08rem;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--text);
  font-weight: 700;
}

.simple-page main {
  min-height: calc(100vh - 180px);
}

.legal-panel {
  max-width: 880px;
  padding: 5rem 0 6rem;
}

.legal-panel h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
}

.legal-copy {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  color: #d6ded9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-copy h2 {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-copy p {
  margin-bottom: 0;
}

.project-page {
  max-width: 980px;
  padding: 5rem 0 6rem;
}

.project-page h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 12vw, 9rem);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.server-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.server-list article {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 24, 29, 0.72);
}

.server-list span {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.server-list strong {
  font-size: 1.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.6rem;
}

.detail-grid article {
  min-height: 160px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 24, 29, 0.72);
}

.detail-grid span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav a {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 8rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .section-head,
  .about,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .server-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  main,
  .topbar,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .legal-panel h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .link-row,
  .button {
    width: 100%;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card {
    transition: none;
  }
}
