:root {
  --neon: #74ff20;
  --neon-soft: #b5ff82;
  --ink: #020500;
  --panel: rgba(4, 11, 2, 0.82);
  --line: rgba(116, 255, 32, 0.28);
  --muted: #9bab96;
  --white: #f5fff1;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background: url("q3matrix2.jpeg") center center / cover no-repeat;
  content: "";
  transform: scale(1.015);
}

.site-shell::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(1, 7, 0, 0.62) 56%, #020500 100%),
    radial-gradient(circle at 50% 40%, transparent 12%, rgba(0, 0, 0, 0.58) 100%);
  content: "";
}

.scanlines {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.14) 4px
  );
  opacity: 0.65;
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-size: 0.88rem;
  box-shadow: inset 0 0 14px rgba(116, 255, 32, 0.16), 0 0 16px rgba(116, 255, 32, 0.2);
}

.topbar nav {
  display: flex;
  gap: 28px;
}

.topbar nav a {
  position: relative;
  color: #d9e4d4;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--neon);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 780px;
  margin: 0 auto;
  padding: 148px 0 98px;
  align-items: flex-end;
}

.hero-content {
  max-width: 790px;
  padding: 34px 38px 38px;
  border-left: 2px solid var(--neon);
  background: linear-gradient(90deg, rgba(0, 7, 0, 0.82), rgba(0, 7, 0, 0.42) 66%, transparent);
  box-shadow: -22px 0 52px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--neon);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(4.3rem, 10vw, 8.7rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 0 7px 32px #000;
}

h1 span {
  display: block;
  color: transparent;
  font-size: 0.58em;
  letter-spacing: 0.14em;
  -webkit-text-stroke: 1px var(--neon);
  text-shadow: 0 0 22px rgba(116, 255, 32, 0.35);
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 30px;
  color: #d3dfcf;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-copy strong,
.section-heading strong {
  color: var(--neon-soft);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.button-primary {
  border-color: var(--neon);
  background: var(--neon);
  color: #061000;
  box-shadow: 0 0 26px rgba(116, 255, 32, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 0 36px rgba(116, 255, 32, 0.48);
}

.button-ghost {
  background: rgba(0, 0, 0, 0.52);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--neon);
  background: rgba(116, 255, 32, 0.09);
}

.scroll-hint {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c5d0c0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-hint span:last-child {
  color: var(--neon);
  font-size: 1.1rem;
}

.content-section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
  gap: 48px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading > p {
  margin-bottom: 3px;
  color: var(--muted);
  line-height: 1.65;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.server-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(15px);
}

.server-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 18px var(--neon);
  content: "";
}

.server-card-header {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.status-line {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.server-card h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.port {
  color: var(--neon);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

.tracker-banner {
  display: block;
  margin: 0 -1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #050505;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tracker-banner:hover,
.tracker-banner:focus-visible {
  border-color: var(--neon);
  box-shadow: 0 0 25px rgba(116, 255, 32, 0.24);
}

.tracker-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 95;
  object-fit: contain;
}

.server-address {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.server-address code {
  color: var(--neon-soft);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.chat-section {
  padding-top: 64px;
}

.chat-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.58), 0 0 45px rgba(116, 255, 32, 0.09);
  backdrop-filter: blur(15px);
}

.chat-bar {
  display: flex;
  height: 42px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31452b;
}

.chat-bar span:first-child {
  background: var(--neon);
  box-shadow: 0 0 8px rgba(116, 255, 32, 0.65);
}

.chat-bar p {
  margin: 0 0 0 9px;
  color: #768472;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.67rem;
}

.chat-frame iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  background: #fff;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 30px 0 44px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6d7a68;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: 700px;
  }

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

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

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .content-section,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 16px 0;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .topbar nav {
    gap: 18px;
  }

  .topbar nav a {
    font-size: 0.65rem;
  }

  .hero {
    min-height: 650px;
    padding: 112px 0 50px;
  }

  .hero-content {
    padding: 25px 18px 27px;
  }

  h1 {
    font-size: clamp(3.25rem, 19vw, 5.3rem);
  }

  .scroll-hint {
    display: none;
  }

  .button {
    width: 100%;
  }

  .content-section {
    padding: 78px 0;
  }

  .server-card {
    padding: 17px;
  }

  .server-address {
    display: block;
  }

  .server-address code {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
  }

  .chat-section {
    padding-top: 36px;
  }

  .chat-frame {
    padding: 6px;
  }

  .chat-bar p {
    max-width: calc(100% - 70px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-frame iframe {
    height: 520px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
