:root {
  --bg-primary: #f2f2f5;
  --accent: #24ffd1;
  --accent-alt: #ff2a45;
  --success: #46ff80;
  --text: #101010;
}

body {
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg-primary);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Header */
.hud-header {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 10px 20px;
  backdrop-filter: blur(6px);
}
.hud-label { color: var(--accent-alt); }
.hud-status.success { color: var(--success); }

/* Layout */
.container {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 15px;
  gap: 25px;
}
.sidebar {
  width: 240px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 20px;
  backdrop-filter: blur(12px);
}

/* Nav */
.nav-link {
  display: block;
  padding: 6px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--accent-alt); transform: translateX(3px); }
.nav-link.active { color: var(--accent); }

/* Panels */
.panel {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.panel-label { color: var(--accent); margin-bottom: 10px; }
h1,h2,h3 { color: var(--text); }

/* Cards grid */
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.guide-card {
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 20px;
  word-break: break-word;
  white-space: normal;
  transition: transform .25s ease, box-shadow .25s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(36,255,209,0.15);
}
.guide-card .card-icon { color: var(--accent); margin-bottom: 8px; font-size: 1.5em; }

/* Buttons */
.btn.neon-btn {
  display:inline-block;
  margin-top:10px;
  color:var(--text);
  border:1px solid var(--accent);
  padding:8px 12px;
  border-radius:5px;
  background:rgba(36,255,209,0.15);
  transition:0.3s;
}
.btn.neon-btn:hover {
  background:var(--accent);
  color:#000;
}

/* Compact footer */
.site-footer {
  padding: 20px 0 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.6);
}
.footer-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9em;
  color: rgba(0,0,0,0.6);
}

/* Mobile */
@media (max-width: 900px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-compact { gap: 8px; }
}
.hero-block {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 40px 0;
  display: flex;
  justify-content: center;
}
.terminal-shell {
  background: #0a0a0e;
  color: #24ffd1;
  font-family: 'Share Tech Mono', monospace;
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(36, 255, 209, 0.2);
}
.terminal-header {
  background: #111;
  color: #46ff80;
  padding: 8px 12px;
  font-size: 0.9em;
}
.terminal-body {
  padding: 15px;
  font-size: 0.95em;
  min-height: 150px;
  line-height: 1.45em;
  background: radial-gradient(circle at 50% 15%, #0f0f13, #0a0a0d);
  animation: flicker 3s infinite linear;
}
@keyframes flicker {
  0%,100%{opacity:0.98;}
  50%{opacity:1;}
}

/* onion button */
.btn-onion {
  display: inline-block;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.9em;
  text-decoration: none;
  font-weight: bold;
  transition: all .3s;
}
.btn-onion:hover {
  background: var(--accent-alt);
  color: #fff;
}

/* Footer 3 cols */
.footer-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 0;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1 1 250px;
}
.footer-col {
  flex: 1 1 150px;
}
.footer-col h4 {
  color: var(--accent-alt);
  margin-bottom: 8px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.95em;
  display: block;
  margin-bottom: 4px;
  transition: all .2s;
}
.footer-col a:hover { color: var(--accent); opacity:1; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  padding: 10px 0 20px;
  font-size: 0.9em;
  color: rgba(0,0,0,0.6);
}
/* === Header layout with button === */
.hud-header {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  padding: 12px 24px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95em;
}

.btn-onion {
  background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9em;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(36,255,209,0.4);
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-onion:hover {
  background: linear-gradient(90deg, var(--accent-alt) 0%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,42,69,0.4);
}

/* === CTA button styling (overview) === */
.btn.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #000;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(36,255,209,0.3);
  transition: all 0.3s ease;
}
.btn.cta-btn i { opacity: 0.85; }
.btn.cta-btn:hover {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,42,69,0.4);
  transform: translateY(-3px);
}
.cta-note {
  font-size: 0.9em;
  opacity: 0.75;
  margin-top: 8px;
  line-height: 1.45;
}
/* Fix text overflow and wrapping */
.overview-left {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;              /* важно для grid */
}
.overview-left p {
  line-height: 1.55;
  text-wrap: pretty;         /* современный способ аккуратного переноса */
}
/* === Telemetry Section === */
.telemetry-panel h2 {
  margin-top: 8px;
  margin-bottom: 12px;
}
.telemetry-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0;
}
.telemetry-widget {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.telemetry-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(36,255,209,0.2);
}
.telemetry-value {
  font-size: 2em;
  font-weight: 700;
  color: var(--accent-alt);
}
.telemetry-label {
  font-size: 0.9em;
  opacity: 0.7;
  margin-top: 4px;
}
.telemetry-bar {
  background: rgba(0,0,0,0.1);
  border-radius: 6px;
  width: 100%;
  height: 12px;
  overflow: hidden;
  margin-top: 10px;
}
.bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--success));
  width: 0%;
  height: 100%;
  transition: width 1s ease-out;
}

/* console styled HUD log */
.telemetry-console {
  font-family: 'Share Tech Mono', monospace;
  background: #0b0b0e;
  color: var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  overflow: hidden;
  font-size: 0.9em;
  box-shadow: 0 0 12px rgba(36,255,209,0.15);
}
.console-line {
  white-space: pre-wrap;
  animation: typeIn 5s steps(60,end) 1;
}


/* responsive */
@media (max-width:800px){
  .telemetry-grid { flex-direction: column; align-items:center; }
}
/* === fix text wrapping in telemetry or wide blocks === */
.telemetry-panel,
.telemetry-panel p,
.panel p,
.overview-left {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.telemetry-panel p {
  line-height: 1.55;
  text-wrap: pretty; /* плавный перенос в современных браузерах */
}


/* link cards */
.link-card {
  position: relative;
  text-align: center;
}
.link-text {
  background: rgba(0,0,0,0.05);
  padding: 6px 8px;
  border-radius: 4px;
  display: inline-block;
  word-break: break-all;
  margin-top: 8px;
  font-size: 0.95em;
  user-select: all;
}
.copy-btn {
  margin-top: 10px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}
.copy-btn:hover {
  background: var(--accent-alt);
  color: #fff;
}
.copy-btn i {
  margin-right: 4px;
}
/* === Footer Responsive Fix === */
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 0;
  flex-wrap: wrap;   /* позволяет перенос на новые строки */
  text-align: left;
}

/* нормальное поведение текста и переносов */
.footer-brand p {
  line-height: 1.5;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 300px;
}

.footer-col,
.footer-brand {
  flex: 1 1 220px;   /* одинаковое распределение */
}

.footer-col h4 {
  margin-bottom: 8px;
  color: var(--accent-alt);
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile footer stacking */
@media (max-width: 780px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
  .footer-brand,
  .footer-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
/* toggle content */
.toggle-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all .3s ease;
}
.toggle-btn:hover { background: var(--accent-alt); color: #fff; }
.toggle-content {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border-left: 2px solid var(--accent);
  background: rgba(0,0,0,0.04);
  font-size: 0.9em;
  line-height: 1.45;
}

/* guide grid adjustment */
.guide-grid .guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* === FAQ Section === */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  background: rgba(36,255,209,0.15);
  border: none;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  cursor: pointer;
  transition: background .3s ease;
}
.faq-question:hover { background: rgba(36,255,209,0.25); }
.faq-question.active { background: var(--accent); color: #000; }

.faq-answer {
  display: none;
  padding: 12px 16px;
  font-size: 0.95em;
  line-height: 1.55;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.faq-answer a { color: var(--accent-alt); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .faq-answer { font-size: 0.9em; }
}
/* --- universal text wrap fix --- */
.faq-answer,
.faq-section,
.faq-item,
.panel p,
.footer-brand p,
.overview-left,
.telemetry-panel p {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.faq-answer {
  line-height: 1.55;
  text-wrap: pretty; /* современный мягкий перенос, где поддерживается */
}
/* wiki content wrap + lists */
.panel p, .panel li {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.panel ul.card-list {
  margin-top: 10px;
  padding-left: 20px;
  list-style: square;
  line-height: 1.6;
}
