@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  color-scheme: dark;
  --void: #02040c;
  --panel: rgba(8, 14, 28, 0.55);
  --panel-strong: rgba(10, 18, 36, 0.72);
  --text: #e8f1ff;
  --muted: rgba(148, 174, 210, 0.78);
  --cyan: #38bdf8;
  --violet: #a855f7;
  --magenta: #ec4899;
  --amber: #fbbf24;
  --line: rgba(56, 189, 248, 0.28);
  --glow: 0 0 24px rgba(56, 189, 248, 0.35);
  --font-display: "Orbitron", "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-ui: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-cn: "Noto Sans SC", "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
}

a { color: inherit; }

.scene { position: relative; min-height: 100vh; overflow-x: hidden; }

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(30, 58, 120, 0.55), transparent 55%),
    linear-gradient(180deg, #050a18 0%, #02040c 48%, #010208 100%);
}

.scene-bg video,
.scene-bg .scene-image,
.floating-layer { display: none !important; }

.scene-content { position: relative; z-index: 4; }

/* —— Top telemetry HUD —— */
.sys-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1140px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(186, 210, 240, 0.75);
}

.sys-hud__left,
.sys-hud__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.sys-hud__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: hudPulse 2s ease-in-out infinite;
}

.sys-hud__sep {
  width: 1px;
  height: 12px;
  background: rgba(148, 163, 184, 0.25);
}

.sys-hud strong {
  color: var(--cyan);
  font-weight: 700;
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

header { padding: 28px 0 8px; }

nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.brand-orbit::before {
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(56, 189, 248, 0.9) 78%, rgba(236, 72, 153, 0.7) 86%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbitSpin 8s linear infinite;
}

.brand-orbit::after {
  inset: 8px;
  border-color: rgba(168, 85, 247, 0.25);
  animation: orbitSpin 12s linear infinite reverse;
  background: conic-gradient(from 180deg, transparent 0 75%, rgba(168, 85, 247, 0.7) 85%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

.scene .logo.site-avatar {
  width: 64px !important;
  height: 64px !important;
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 28px rgba(56, 189, 248, 0.4) !important;
  position: relative;
  z-index: 1;
}

.brand-title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em 0.85em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.15;
  background: linear-gradient(105deg, #ffffff 8%, #7dd3fc 42%, #c084fc 70%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.25));
}

.brand-motto {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.95);
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.author {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: hudPulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 20px 0 0;
  max-width: 900px;
  font-family: var(--font-cn);
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
}

.hero .hero-intro {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.75;
  text-align: center;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-chip {
  padding: 6px 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(8, 16, 32, 0.55);
  color: rgba(186, 210, 240, 0.85);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  border-color: rgba(56, 189, 248, 0.55);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.22) 55%, rgba(236, 72, 153, 0.18));
  color: #fff;
  box-shadow: var(--glow), inset 0 0 20px rgba(56, 189, 248, 0.1);
}

.btn-secondary {
  background: rgba(6, 12, 26, 0.7);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.25);
}

.btn-telegram {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.35);
}

.panel,
.module {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(12, 20, 40, 0.72), rgba(6, 10, 22, 0.58));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.15);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), transparent 35%, transparent 65%, rgba(236, 72, 153, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0 56px;
}

.module {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 36px rgba(56, 189, 248, 0.18),
    0 28px 56px rgba(0, 0, 0, 0.45);
}

.module-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(56, 189, 248, 0.35), transparent 60%),
    rgba(8, 16, 32, 0.8);
  color: #7dd3fc;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.12);
}

.module h3 {
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.module p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.module p code {
  color: #7dd3fc;
  font-family: var(--font-display);
  font-size: 11px;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.module-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.module-link:hover {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.3);
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

footer a:hover { text-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }

@media (max-width: 820px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-hud { border-radius: 16px; font-size: 9px; }
}

@media (max-width: 560px) {
  .modules { grid-template-columns: 1fr; }
  .sys-hud__right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-orbit::before,
  .brand-orbit::after,
  .sys-hud__dot,
  .btn,
  .module { animation: none !important; transition: none !important; }
}
