/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(122, 75, 255, 0.2);
  position: relative;
}

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

.brand-icon {
  font-size: 1.8rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
}

.brand-name {
  font-size: 1.6rem;
  color: #fff;
  font-family: var(--heading-font);
  letter-spacing: 1px;
}

.mobile-toggle {
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  border-color: var(--primary);
  background: rgba(43, 231, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-family: var(--readable-font);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Server Status Section */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 40px 0 80px;
}

.server-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.server-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.server-capacity-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.capacity-number {
  font-size: 2.2rem;
  font-family: var(--heading-font);
  color: var(--primary);
}

.capacity-max {
  font-size: 1.1rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--surface-strong);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 0 12px var(--primary);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps Workflow Section */
.workflow-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 12px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 32px 24px;
  position: relative;
  text-align: left;
}

.step-number {
  font-size: 3rem;
  font-family: var(--heading-font);
  color: rgba(122, 75, 255, 0.35);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--readable-font);
}

/* Mock Terminal */
.terminal-wrapper {
  margin: 60px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #04000d;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
  padding: 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  color: #00ffaa;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.7;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 80px;
}

.faq-item {
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-family: var(--heading-font);
}

.faq-answer {
  display: none;
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--readable-font);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 0, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 0 50px rgba(43, 231, 255, 0.2);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.tab-nav {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--heading-font);
  font-size: 1.15rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Order Success Popup */
.token-display-box {
  background: var(--surface-strong);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.token-code {
  font-size: 2.2rem;
  font-family: var(--heading-font);
  color: var(--primary);
  letter-spacing: 3px;
  margin: 8px 0;
  user-select: all;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(122, 75, 255, 0.2);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-strong);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 12px;
  }
  .nav-links.active {
    display: flex;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .btn {
    padding: 10px 20px;
    font-size: 1.05rem;
  }
  .step-card {
    padding: 24px 18px;
  }
  .modal-box {
    padding: 20px 16px;
  }
}

/* Telegram Mini App Mode - Hide Web Chrome */
.tg-mini-app .site-header,
.tg-mini-app .navbar,
.tg-mini-app .site-footer {
  display: none !important;
}

.tg-mini-app main {
  padding-top: 8px !important;
}
