:root {
  --bg-primary: #f9fafc;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #00d4b4;
  --accent-alt: #4745ff;
  --accent-error: #ff426f;
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(0, 212, 180, 0.25);
  --radius: 10px;
}

body {
  margin: 0;
  font-family: 'Inter', 'Share Tech Mono', monospace;
  background: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-primary);
  letter-spacing: 0.01em;
}

h1, h2, h3 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  color: #111;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons now feel tech‑elegant */
.primary-btn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(71,69,255,0.25);
}

/* Accent details for futuristic look */
.panel-label {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent-alt);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}


/* ====== HEADER ====== */
.hud-header {
  backdrop-filter: blur(12px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.hud-title {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.hud-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.primary-btn:hover {
  background: var(--accent-alt);
  box-shadow: var(--shadow-glow);
}

/* ====== LAYOUT ====== */
.container {
  display: flex;
  gap: 40px;
  padding: 60px 80px;
  max-width: 1600px;
  margin: 0 auto;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
}

.main {
  flex: 1;
}

/* ====== SIDEBAR ====== */
.nav-block {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.04);
}
.nav-title {
  color: var(--accent-alt);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.2s ease;
}
.nav-link.active {
  color: var(--accent-alt);
  font-weight: 600;
}
.nav-link:hover {
  color: var(--accent);
}

.status-panel {
  margin-top: 20px;
  padding: 15px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ====== PANELS ====== */
.panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 30px 40px;
  margin-bottom: 40px;
  box-shadow: 0 0 25px rgba(0,0,0,0.05);
}
.panel-label {
  font-size: 0.75rem;
  color: var(--accent-alt);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ====== CARDS ====== */
.card-grid {
  display: grid;
  gap: 25px;
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.guide-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.guide-card.primary { border-left: 4px solid var(--accent); }
.guide-card.success { border-left: 4px solid #46ff80; }
.guide-card.warning { border-left: 4px solid #ffc646; }

.card-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; }
.card-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* ====== FOOTER ====== */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 40px 60px;
  background: #ffffffb0;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.footer-col { flex: 1; padding: 0 20px; }
.footer-col h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin: 8px 0; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

/* ====== UTILS ====== */
.mono { font-family: 'Share Tech Mono', monospace; }
.accent { color: var(--accent); }
.btn-link {
  display: inline-block;
  color: var(--accent-alt);
  font-weight: 600;
  margin-top: 12px;
  text-decoration: none;
}
.btn-link:hover { color: var(--accent); }



/* === Copy Button (Hi-Tech Style) === */
.copy-btn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.copy-btn:hover {
  box-shadow: 0 0 15px rgba(0, 212, 180, 0.35);
  transform: translateY(-2px);
}
.copy-btn.copied {
  background: var(--success);
  color: #000;
}

/* === Mirrors Full Width === */
.mirrors-wide {
  margin-top: 40px;
  width: 100%;
  border-left: 4px solid var(--accent);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.mirrors-wide .card-content {
  margin-top: 10px;
}

.mirror-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.mirror-link {
  padding: 8px 16px;
  background: linear-gradient(90deg, #f3f4f6, #ffffff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent-alt);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}
.mirror-link:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(0,212,180,0.25);
}
.mirror-link.copied {
  background: var(--success);
  color: #000;
}

/* === Two-card grid (upper row) === */
.card-grid--2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}


/* === CTA Block in Overview === */
.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 35px 50px;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0,212,180,0.25);
}
.cta-text h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.6rem;
  color: var(--accent-alt);
  margin-bottom: 10px;
}
.cta-text p {
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
}
.cta-btn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 14px 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cta-btn:hover {
  box-shadow: 0 0 25px rgba(0,212,180,0.25);
  transform: scale(1.03);
}

/* === Footer Brand Column === */
.footer-brand {
  max-width: 280px;
}
.footer-brand .logo-text {
  font-family: 'Satoshi', sans-serif;
  color: var(--accent-alt);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* === Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Table Style === */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.status-table th, .status-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.status-table th {
  color: var(--text-muted);
  font-weight: 600;
}
.status.up { color: var(--accent); font-weight: 600; }
.status.warn { color: #ffa600; font-weight: 600; }

/* === Quote === */
blockquote.tip {
  border-left: 3px solid var(--accent);
  background: rgba(0, 212, 180, 0.05);
  padding: 14px 22px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 6px;
}


/* === Global link styling === */
a {
  color: var(--accent-alt);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

/* Subtle inline underline animation */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  transition: width 0.3s ease;
}

/* Hover effects */
a:hover {
  color: var(--accent);
}
a:hover::after {
  width: 100%;
}

/* Optional for footer  — make lighter and relaxed */
.site-footer a {
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* === Responsive Layout === */
@media (max-width: 1100px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    left: -110%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-soft);
    box-shadow: 8px 0 25px rgba(0,0,0,0.05);
    padding: 25px;
    transition: left 0.35s ease;
    z-index: 99;
  }

  .sidebar.open {
    left: 0;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 10px 0;
  }

  main {
    margin-top: 30px;
  }

  /* HUD Header simplified */
  .hud-header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .hud-status {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 5px;
    font-size: 0.85rem;
  }

  .primary-btn {
    display: none;
  }

  .mobile-launch {
    display: inline-flex;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    border: none;
  }

  /* Burger menu button */
  .menu-toggle {
    width: 36px;
    height: 30px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

/* === Mobile Footer === */
@media (max-width: 800px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-brand {
    order: -1;
    margin-bottom: 30px;
  }
}

/* === Mobile Panels and Cards === */
@media (max-width: 700px) {
  .panel {
    padding: 20px 25px;
  }
  .card-grid--3, .card-grid--2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-block {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .cta-text h2 {
    font-size: 1.3rem;
  }
  .cta-btn {
    margin-top: 20px;
  }
}

/* === Subtle enter animation for opened sidebar === */
.sidebar.open {
  animation: slideIn 0.35s ease;
}
@keyframes slideIn {
  from { left: -260px; opacity: 0; }
  to { left: 0; opacity: 1; }
}


/* ===== Responsive table handling ===== */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  min-width: 600px;
}

.status-table th, .status-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  word-break: break-all;
  white-space: normal;
}

/* Wrap table inside scroll box */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
}

/* For ultra narrow screens */
@media (max-width: 600px) {
  .status-table th, .status-table td {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .status-table th:nth-child(1) { width: 55%; }
  .status-table th:nth-child(2),
  .status-table th:nth-child(3),
  .status-table th:nth-child(4) { width: 15%; }
}
/* === Mirror Card Grid === */
.mirror-card-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 25px;
}

.mirror-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mirror-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,212,180,0.2);
}

.mirror-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
}
.mirror-card-header i {
  color: var(--accent-alt);
}

.mirror-card h3 {
  font-family: 'Satoshi', sans-serif;
  margin: 5px 0 8px 0;
  color: var(--accent-alt);
  font-size: 1.1rem;
}

.mirror-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mirror-link-highlight {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 10px 0 14px 0;
  word-break: break-all;
}

.status.up {
  color: var(--accent);
  font-weight: 600;
}
.status.warn {
  color: #ffa63e;
  font-weight: 600;
}

/* Mirror copy button refined */
.mirror-card .copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mirror-card .copy-btn:hover {
  background: var(--accent-alt);
  box-shadow: 0 0 15px rgba(0,212,180,0.25);
}
.mirror-card .copy-btn.copied {
  background: var(--success);
  color: #000;
}
/* === 2×2 grid for mirror cards === */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 30px;
}

/* Responsive collapse to 1 column on small screens */
@media (max-width: 900px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Optional: ensure equal card height in the same row */
.mirror-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mirror-card .copy-btn {
  align-self: flex-start;
  margin-top: auto;
}
/* === Flow diagram visual === */
/* === Flow diagram visual (fixed layout) === */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.node {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  border: 2px solid var(--border-soft);
  box-shadow: 0 0 25px rgba(0,212,180,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.node i {
  font-size: 1.7rem;
  color: var(--accent-alt);
  margin-bottom: 6px;
}

.node span {
  font-family: 'Satoshi', sans-serif;
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
}

.node:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(0,212,180,0.35);
}

/* Gradient arrows between nodes */
.arrow {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-alt), var(--accent));
  position: relative;
}
.arrow::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  border: 6px solid transparent;
  border-left-color: var(--accent);
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .flow-diagram {
    flex-direction: column;
    gap: 25px;
  }
  .arrow {
    transform: rotate(90deg);
    width: 40px;
  }
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 25px;
}
.faq-card {
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 22px 26px;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}
.faq-card:hover { box-shadow: 0 0 25px rgba(0,212,180,0.2); transform: translateY(-4px); }
.faq-card h3 { display:flex; align-items:flex-start; gap:8px; color:var(--accent-alt); font-size:1rem; }
.faq-card p { font-size:0.9rem; color:var(--text-muted); line-height:1.5; margin-top:6px; }


/* Header layout */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Access button normal */
.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}
.access-btn:hover {
  box-shadow: 0 0 20px rgba(0,212,180,0.25);
  transform: translateY(-2px);
}

/* Mobile tweaks */
@media (max-width: 950px) {
  .access-btn span {
    display: none; /* убираем текст, оставляем иконку */
  }
  .access-btn {
    padding: 8px 12px;
    border-radius: 8px;
  }
}
/* Hide burger menu on desktop */
.menu-toggle {
  display: none;
}

/* Show only on tablets / mobile */
@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 15px;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* open (active) state cross animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
.legal-list {
  margin: 15px 0;
  padding-left: 25px;
  list-style-type: decimal;
  color: var(--text-main);
  line-height: 1.6;
}
.legal-list li {
  margin-bottom: 8px;
}
/* === Universal mobile text wrapping fix === */
p, li, td, pre, h1, h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Prevent horizontal scroll on small devices */
body, html {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure legal text adapts to small screens */
.legal-list, .panel p {
  font-size: 0.95rem;
  line-height: 1.65;
}
@media (max-width: 700px) {
  .panel {
    padding: 20px 18px;
  }
  .panel h1, .panel h2, .panel h3 {
    word-break: break-word;
    font-size: 1.05rem;
  }
  .legal-list {
    padding-left: 22px;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}
