:root {
  --bg: #f4f7f9;
  --bg-pure: #ffffff;
  --panel: #ffffff;
  --panel-low: #f0f4f8;
  --line: #d1d9e6;
  --line-hl: #00bfff;
  --text: #2d343d;
  --muted: #8a9bb0;
  --p: #00bfff;
  --s: #4faeff;
  --a: #ff6b81;
  --y: #ffcc00;
  --shadow: 0 10px 30px rgba(173, 190, 210, 0.15);
  --r: 0px;
  --trans: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

body.light {
  --bg: #0d121a;
  --bg-pure: #090d14;
  --panel: #131924;
  --panel-low: #1a2230;
  --line: #263142;
  --text: #e1e7f0;
  --muted: #6b7a90;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

img {
  display: block;
  max-width: 100%;
  transition: opacity 0.5s ease;
}

.tactical-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

.halo-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--p);
  opacity: 0.12;
  animation: rotateHalo 24s linear infinite;
}

.h-1 {
  width: 450px;
  height: 450px;
  top: -150px;
  right: -100px;
  border-width: 1.5px;
}

.h-2 {
  width: 250px;
  height: 250px;
  bottom: 50px;
  left: -80px;
  border-style: dashed;
}

@keyframes rotateHalo {
  100% { transform: rotate(360deg); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.light .topbar {
  background: rgba(13, 18, 26, 0.95);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__icon {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--p);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-inner {
  width: 8px;
  height: 8px;
  background: var(--p);
}

.brand__text {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  transition: var(--trans);
  position: relative;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--p);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  height: 40px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: var(--trans);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--action {
  background: var(--p);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.25);
}

.btn--action::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: scanLight 4s infinite;
  pointer-events: none;
}

@keyframes scanLight {
  0%, 50% { left: -100%; }
  100% { left: 200%; }
}

.btn--action:hover {
  transform: translateY(-2px);
  background: var(--s);
}

.btn--primary {
  background: var(--text);
  color: var(--bg-pure);
}

.btn--secondary {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  color: var(--text);
  clip-path: none;
  border-radius: 4px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--panel-low);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--trans);
}

.icon-btn:hover {
  background: var(--p);
  color: #fff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: var(--panel-low);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  transition: var(--trans);
}

.burger:hover {
  background: var(--p);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.burger:hover span {
  background: #fff;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes bootUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero { padding: 90px 0; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.tag-label { font-family: monospace; font-size: 12px; font-weight: 900; color: var(--p); margin-bottom: 20px; letter-spacing: 1.5px; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.1s; }
.hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 900; line-height: 1.15; margin: 0 0 28px; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.2s; }
.hero__title .hl { color: var(--p); }
.hero__desc { font-size: 16px; color: var(--muted); max-width: 480px; margin-bottom: 36px; line-height: 1.7; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.3s; }
.hero__typing { margin-bottom: 44px; font-family: monospace; font-size: 14px; background: var(--panel-low); padding: 10px 20px; border-left: 4px solid var(--p); display: inline-flex; gap: 10px; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.4s; }
.typing { font-weight: 900; }
.cursor { color: var(--p); animation: blink 1s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; gap: 18px; margin-bottom: 56px; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.5s; }
.hero__stats { display: flex; gap: 24px; animation: bootUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.6s; }
.stat-card { background: var(--bg-pure); border: 1px solid var(--line); padding: 18px 24px; min-width: 120px; box-shadow: var(--shadow); text-align: center; }
.stat-card__val { font-size: 28px; font-weight: 900; color: var(--p); }
.stat-card__label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

.profile-card { position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); max-height: 520px; overflow: hidden; animation: bootUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both 0.3s; }
.profile-card::before, .shot::before { content: "LOADING..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 10px; color: var(--muted); background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.05), transparent); background-size: 200% 100%; animation: loadingScan 1.5s infinite linear; z-index: 0; }

@keyframes loadingScan { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.profile-card__img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.profile-card__badge { position: absolute; bottom: 24px; left: -12px; background: var(--a); color: #fff; padding: 5px 16px; font-weight: 900; font-size: 13px; transform: skewX(-15deg); z-index: 2; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.tactical-box { position: absolute; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--p); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); z-index: 2; animation: floatY 6s ease-in-out infinite; }
body.light .tactical-box { background: rgba(9, 13, 20, 0.92); }
.tb-label { font-size: 10px; font-weight: 900; color: var(--muted); }
.tb-val { font-size: 13px; font-weight: 900; color: var(--p); }
.tb-1 { top: 40px; right: -24px; }
.tb-2 { bottom: 80px; right: 48px; animation-delay: -3s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.momo-chat { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.chat-msg { display: flex; gap: 16px; align-items: flex-start; }
.chat-msg--right { flex-direction: row-reverse; }
.chat-msg__avatar { width: 48px; height: 48px; background: var(--line); border-radius: 14px; border: 2px solid var(--bg-pure); flex-shrink: 0; }
.chat-msg__name { font-size: 13px; font-weight: 900; color: var(--muted); margin-bottom: 6px; }
.chat-msg__bubble { padding: 14px 20px; border-radius: 4px 18px 18px 18px; background: var(--bg-pure); border: 1px solid var(--line); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); max-width: 440px; }
.chat-msg--right .chat-msg__bubble { background: var(--p); color: #fff; border-color: var(--p); border-radius: 18px 4px 18px 18px; }

.section { padding: 100px 0; }
.section--alt { background: var(--panel-low); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 56px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.section__tag { font-family: monospace; font-size: 13px; color: var(--muted); font-weight: 900; }
.section__title { font-size: 34px; font-weight: 900; margin: 10px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { background: var(--bg-pure); border: 1px solid var(--line); padding: 48px 40px; transition: var(--trans); position: relative; }
.card:hover { border-color: var(--p); transform: translateY(-6px); box-shadow: var(--shadow); }
.card__index { font-size: 64px; font-weight: 900; color: var(--line); position: absolute; top: -10px; right: -10px; opacity: 0.3; }
.card__title { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.card__desc { font-size: 15px; color: var(--muted); font-weight: 600; line-height: 1.6; }

.filters { display: flex; gap: 14px; }
.pill { padding: 8px 20px; font-weight: 900; font-size: 13px; text-transform: uppercase; border: 1px solid var(--line); background: var(--bg-pure); color: var(--text); cursor: pointer; transition: var(--trans); }
.pill.is-active { background: var(--p); color: #fff; border-color: var(--p); }

.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; }
.shot { background: var(--bg-pure); border: 1px solid var(--line); padding: 12px; cursor: pointer; transition: var(--trans); position: relative; overflow: hidden; }
.shot img { width: 100%; height: 240px; object-fit: cover; position: relative; z-index: 1; }
.shot__info { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.shot__info .title { font-weight: 900; }
.shot__info .tag { font-size: 12px; font-weight: 800; color: var(--p); font-family: monospace; }

.cta-banner { background: var(--text); color: var(--bg-pure); padding: 64px; display: flex; justify-content: space-between; align-items: center; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.cta-banner__title { font-size: 36px; font-weight: 900; }
.btn--outline { background: transparent; border: 1.5px solid var(--bg-pure); color: var(--bg-pure); }

.footer { padding: 80px 0 40px; background: var(--panel); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer__links { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.footer__links a { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; transition: var(--trans); display: flex; align-items: center; text-decoration: none; }
.footer__links a::before { content: '//'; color: var(--p); margin-right: 8px; font-family: monospace; }
.footer__links a:hover { color: var(--p); transform: translateX(5px); }
.footer__meta { border-top: 1px solid var(--line); padding-top: 32px; display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); }

.modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); }
.modal__panel { position: relative; background: var(--bg-pure); border: 2.5px solid var(--p); padding: 48px; width: min(480px, 92vw); box-shadow: 20px 20px 0 rgba(0, 191, 255, 0.15); z-index: 1; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; font-weight: 900; color: var(--p); border-bottom: 1px solid var(--line); padding-bottom: 16px; }

.drawer { display: none; position: fixed; inset: 0; z-index: 2000; }
.drawer.active { display: block; }
.drawer__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.drawer.active .drawer__mask { opacity: 1; }

.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 80vw;
  background: var(--bg-pure); border-left: 2px solid var(--p);
  padding: 32px 24px; z-index: 10;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; flex-direction: column;
}
.drawer.active .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-weight: 900; color: var(--p); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.drawer__link { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 900; text-transform: uppercase; text-decoration: none; color: var(--text); font-size: 14px; }

.field { margin-bottom: 24px; }
.field__label { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field__input { width: 100%; padding: 12px; background: var(--panel-low); border: 1px solid var(--line); font-family: inherit; color: var(--text); }

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.sv-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.sv-card:hover {
  border-color: var(--p);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sv-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 3px solid var(--text);
  border-left: 3px solid var(--text);
}

.sv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
}

.sv-name-group .sv-type {
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 1px;
}

.sv-name-group .sv-name {
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
  color: var(--text);
}

.sv-badge {
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sv-badge::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.sv-badge.is-checking { color: var(--y); }
.sv-badge.is-online { color: var(--p); }
.sv-badge.is-offline { color: var(--a); }

.sv-body { flex-grow: 1; }

.sv-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
.sv-stat-label { color: var(--muted); }
.sv-stat-val { font-family: monospace; color: var(--text); font-size: 14px; }

.sv-players {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-btn-copy {
  width: 100%;
  height: 36px;
  background: var(--panel-low);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: var(--trans);
  font-family: monospace;
  letter-spacing: 1px;
}
.sv-btn-copy:hover {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .nav, .topbar__actions .btn { display: none; }
  .burger { display: flex; }
  .hero__cta, .hero__stats, .hero__typing { justify-content: center; }
  .hero__visual { margin-top: 40px; }
  .tb-1, .tb-2 { display: none; }
  .cta-banner { flex-direction: column; text-align: center; gap: 32px; clip-path: none; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__links { justify-content: center; }
  .footer__meta { flex-direction: column; gap: 10px; align-items: center; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0; }
  .hero__title { font-size: 32px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .stat-card { flex: 1; min-width: 0; }
  .section { padding: 60px 0; }
  .cta-banner__title { font-size: 24px; }
  .modal__panel { padding: 24px; }
}