:root {
  --bg-deep: #050806;
  --bg-card: rgba(13, 22, 17, 0.7);
  --bg-card-hover: rgba(18, 32, 24, 0.85);
  --border-subtle: rgba(125, 255, 90, 0.12);
  --border-bright: rgba(125, 255, 90, 0.35);

  --brand-green: #58f03c;
  --brand-green-glow: rgba(88, 240, 60, 0.35);
  --text-main: #f3f8f4;
  --text-muted: #8ca393;
  --text-dim: #5c7263;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ФОНОВЫЕ ЭФФЕКТЫ */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
}
.spot-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--brand-green-glow) 0%, transparent 70%);
}
.spot-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(40, 160, 90, 0.2) 0%, transparent 70%);
}
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 6, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 12px 20px;
}
.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(88, 240, 60, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-name b { color: var(--brand-green); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brand-green); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: rgba(88, 240, 60, 0.15);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* LAYOUT */
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* HERO */
.hero-section {
  text-align: center;
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(88, 240, 60, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
  width: 100%;
}
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-green);
  color: #041007;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 8px 32px var(--brand-green-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-glow:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.metric-item { display: flex; flex-direction: column; text-align: center; }
.metric-item b { font-size: 18px; font-weight: 700; color: var(--text-main); }
.metric-item span { font-size: 12px; color: var(--text-dim); }
.metric-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* HERO VISUAL (маскот в стеклянной рамке) */
.hero-visual {
  position: relative;
  margin-top: 48px;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(88, 240, 60, 0.14);
}
.hero-visual-glow {
  position: absolute;
  inset: -40% 0 auto 0;
  height: 80%;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--brand-green-glow), transparent 70%);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* CONTENT CARDS */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-header {
  margin-bottom: 28px;
}
.section-tag {
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 6px;
}
.card-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.card-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* TABS & STEPS */
.tab-scroller {
  overflow-x: auto;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.tab-scroller::-webkit-scrollbar { display: none; }
.custom-tabs {
  display: inline-flex;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  gap: 4px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--brand-green);
  color: #050806;
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 12px;
}
.step-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}
.step-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}
.client-link {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* СЕРВЕРЫ */
.servers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.server-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.server-node:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}
.node-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.node-flag {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.07);
  padding: 6px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.node-flag.neon {
  background: rgba(88, 240, 60, 0.15);
  color: var(--brand-green);
}
.node-title {
  font-size: 15px;
  font-weight: 700;
}
.node-desc {
  font-size: 12px;
  color: var(--text-dim);
}
.node-ping {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.node-ping.neon { color: var(--brand-green); }
.badge-mini {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--brand-green);
  color: #050806;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 800;
}

/* ЗЕРКАЛА */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.status-banner.ok {
  border-color: rgba(88, 240, 60, 0.3);
  color: var(--brand-green);
}
.loader-ring {
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-dim);
  border-top-color: var(--brand-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mirrors-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mirror-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 10px;
}
.mirror-box a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}
.mirror-box a:hover { color: var(--brand-green); }
.badge-state {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  white-space: nowrap;
  flex: 0 0 auto;
}
.badge-state.ok {
  background: rgba(88, 240, 60, 0.15);
  color: var(--brand-green);
}
.badge-state.bad {
  background: rgba(255, 60, 60, 0.15);
  color: #ff6060;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 20px;
}
.footer-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--brand-green); }
.footer-legal {
  max-width: 860px;
  margin: 16px auto 0;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* MOBILE STICKY */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(5,8,6,0.95) 30%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
}
.full-width { width: 100%; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .content-card { padding: 24px 18px; }
  .metrics-strip { gap: 16px; padding: 16px; }
  .metric-item b { font-size: 15px; }
  .desktop-break { display: none; }
  .mobile-bar { display: block; }
  .page-body { padding-bottom: 100px; }
}
