:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: rgba(9, 20, 35, 0.82);
  --panel-solid: #091523;
  --line: rgba(91, 232, 166, 0.24);
  --green: #5be8a6;
  --green-soft: #9af4c8;
  --red: #ef4057;
  --text: #edf7ff;
  --muted: #8293a7;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(91, 232, 166, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 232, 166, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, #102a36 0, transparent 32%),
    var(--bg);
  background-size: 52px 52px, 52px 52px, auto, auto;
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one { top: 9%; right: -180px; background: rgba(91, 232, 166, 0.13); }
.ambient-two { bottom: 12%; left: -230px; background: rgba(239, 64, 87, 0.09); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(91, 232, 166, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 64, 87, 0.55);
  background: rgba(239, 64, 87, 0.08);
  box-shadow: inset 0 0 24px rgba(239, 64, 87, 0.08), 0 0 24px rgba(239, 64, 87, 0.08);
  clip-path: polygon(13% 0, 87% 0, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0 87%, 0 13%);
}

.brand-mark img { width: 34px; height: 34px; }
.brand strong { display: block; letter-spacing: 0.26em; font-size: 15px; }
.brand small { display: block; margin-top: 1px; color: var(--green); font-size: 9px; letter-spacing: 0.22em; }

.server-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.state-dot,
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2c94c;
  box-shadow: 0 0 12px currentColor;
}

.server-state.online { color: var(--green); }
.server-state.online .state-dot, .online-dot { background: var(--green); }
.server-state.offline { color: var(--red); }
.server-state.offline .state-dot { background: var(--red); }

.hero {
  min-height: 660px;
  padding: 86px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-heading > p,
.download-panel > div > p {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 32px; height: 1px; background: var(--green); box-shadow: 0 0 8px var(--green); }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1 em { color: var(--green); font-style: normal; text-shadow: 0 0 34px rgba(91, 232, 166, 0.18); }

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #9eacbc;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.primary-button,
.secondary-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #04120c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  box-shadow: 0 0 30px rgba(91, 232, 166, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(91, 232, 166, 0.24); background: var(--green-soft); }
.primary-button:focus-visible,
.secondary-button:focus-visible { outline: 3px solid rgba(91, 232, 166, 0.32); outline-offset: 4px; }
.primary-button b { font-size: 19px; line-height: 1; }
.version { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.activation-note { margin: 16px 0 0; color: #687b90; font-size: 12px; }

.system-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 27, 45, 0.96), rgba(5, 13, 23, 0.95));
  box-shadow: var(--shadow), inset 0 0 50px rgba(91, 232, 166, 0.025);
}

.system-card::before,
.system-card::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.system-card::before { top: -1px; left: -1px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.system-card::after { right: -1px; bottom: -1px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }

.system-card-head { height: 34px; display: flex; justify-content: space-between; color: #718398; font: 700 9px/1 "Consolas", monospace; letter-spacing: 0.12em; }
.system-card-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 232, 166, 0.18);
  background: radial-gradient(circle at 50% 40%, #152f3a, #050a10 68%);
}

.screen-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: linear-gradient(rgba(91, 232, 166, 0.06) 1px, transparent 1px);
  background-size: 100% 8px;
}

.play-symbol {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border: 1px solid rgba(91, 232, 166, 0.55);
  border-radius: 50%;
  color: var(--green);
  background: rgba(91, 232, 166, 0.06);
  box-shadow: 0 0 34px rgba(91, 232, 166, 0.12);
}

.screen-caption { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.screen-caption small { display: block; margin-bottom: 3px; color: #6d8297; font-size: 8px; letter-spacing: 0.14em; }
.screen-caption strong { font-size: 10px; color: var(--green); letter-spacing: 0.08em; }

.session-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; }
.session-row > div:first-child { display: flex; align-items: center; gap: 9px; color: #b9c8d7; font-size: 11px; }
.avatars { display: flex; }
.avatars span { width: 27px; height: 27px; display: grid; place-items: center; margin-left: -5px; border: 2px solid var(--panel-solid); border-radius: 50%; background: #173045; color: #bcd1e3; font-size: 9px; font-weight: 800; }
.avatars span:last-child { background: rgba(239, 64, 87, 0.14); color: #ff8495; }

.features { padding: 90px 0; border-top: 1px solid rgba(91, 232, 166, 0.13); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2, .download-panel h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.035em; }
.section-heading.compact { margin-bottom: 32px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { min-height: 260px; padding: 28px; border: 1px solid rgba(91, 232, 166, 0.15); background: var(--panel); transition: border-color 160ms ease, transform 160ms ease; }
.feature-grid article:hover { transform: translateY(-4px); border-color: rgba(91, 232, 166, 0.45); }
.feature-number { color: var(--red); font: 700 11px/1 "Consolas", monospace; letter-spacing: 0.12em; }
.feature-grid h3 { margin: 72px 0 13px; font-size: 20px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.steps { padding: 90px 0; }
.steps ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(91, 232, 166, 0.16); }
.steps li { min-height: 112px; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; border-bottom: 1px solid rgba(91, 232, 166, 0.12); }
.steps li > span { color: var(--green); font: 700 12px/1 "Consolas", monospace; }
.steps b { font-size: 17px; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.download-panel {
  margin-top: 32px;
  margin-bottom: 90px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(239, 64, 87, 0.38);
  background: linear-gradient(100deg, rgba(239, 64, 87, 0.09), rgba(10, 22, 37, 0.9) 58%);
  box-shadow: var(--shadow);
}

.download-panel > div > p { color: var(--red); margin-bottom: 10px; }
.download-panel h2 { font-size: clamp(25px, 3vw, 38px); }
.secondary-button { flex: 0 0 auto; background: transparent; color: var(--green); }
.secondary-button:hover { color: #04120c; }

footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(91, 232, 166, 0.13); color: #5f7083; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 64px; }
  .system-card { width: min(620px, 100%); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 190px; }
  .feature-grid h3 { margin-top: 45px; }
  .download-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 76px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 30px; height: 30px; }
  .server-state span:last-child { display: none; }
  .hero { min-height: auto; padding: 58px 0; }
  h1 { font-size: 43px; }
  .lead { font-size: 16px; }
  .primary-button { width: 100%; }
  .system-card { padding: 11px; }
  .features, .steps { padding: 68px 0; }
  .feature-grid article { padding: 24px; }
  .steps li { grid-template-columns: 38px 1fr; }
  .download-panel { padding: 32px 25px; margin-bottom: 60px; }
  .secondary-button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
