/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  z-index: 500;
  transition: all var(--transition);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.navbar-logo svg { flex-shrink: 0; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--text); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90,162,255,0.15), transparent 70%);
  top: -10%;
  left: 30%;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,92,255,0.12), transparent 70%);
  top: 20%;
  right: -5%;
  animation-delay: -7s;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61,220,151,0.08), transparent 70%);
  bottom: 10%;
  left: 10%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(90,162,255,0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.feature-icon-blue { background: var(--accent-glow); }
.feature-icon-purple { background: var(--purple-glow); }
.feature-icon-green { background: var(--green-glow); }

.feature-card h3 { margin-bottom: 8px; font-size: 16px; }
.feature-card p { font-size: 14px; line-height: 1.6; }

/* ===== Pricing ===== */
.pricing-config {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pricing-config label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}
.pricing-permonth {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}
.pricing-save {
  display: inline-block;
  background: var(--green-glow);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}
.pricing-features li {
  list-style: none;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-glow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 14px; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  text-align: left;
}
.faq-arrow {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== Promo top bar ===== */
.promo-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: calc(var(--nav-h) + 8px) 16px 8px 16px;
  background: linear-gradient(90deg, rgba(245,158,11,0.18) 0%, rgba(251,191,36,0.12) 100%);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  font-size: 13px;
  color: var(--text-secondary);
}
.promo-topbar svg { color: #f59e0b; flex-shrink: 0; }
.promo-topbar-code {
  font-family: monospace;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.15);
  padding: 1px 7px;
  border-radius: 5px;
  letter-spacing: 1px;
}
.promo-topbar-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.promo-topbar-btn:hover { opacity: 0.85; }

/* ===== Reviews carousel ===== */
.reviews-track-wrap {
  margin-bottom: 48px;
  overflow: hidden;
  margin-top: 32px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviewsScroll 40s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviewsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.review-stars { display: flex; gap: 2px; }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ===== Support section ===== */
.section-support { padding-top: 0; }
.support-block {
  background: linear-gradient(135deg, rgba(90, 162, 255, 0.08) 0%, rgba(167, 119, 255, 0.08) 100%);
  border: 1px solid rgba(90, 162, 255, 0.18);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
}
.support-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.support-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.support-contacts {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.support-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
}
.support-contact-btn:hover { transform: translateY(-2px); opacity: 0.88; }
.support-contact-tg {
  background: #229ed9;
  color: #fff;
}
.support-contact-email {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }
.footer-sep { color: var(--border); font-size: 16px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
}

/* ===== Server Status Preview ===== */
.status-preview {
  display: flex;
  justify-content: center;
}
.status-preview-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
}
.status-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s;
}
.status-preview-dot.ok     { background: #22c55e; box-shadow: 0 0 5px #22c55e66; }
.status-preview-dot.warn   { background: #f59e0b; }
.status-preview-dot.error  { background: #ef4444; }
.status-preview-text { color: var(--text-muted); }
.status-preview-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  opacity: 0.85;
}
.status-preview-link:hover { opacity: 1; }


/* ===========================
   ENHANCED VISUAL ANIMATIONS
   =========================== */

/* Hero: stronger orbs */
.hero-orb-1 {
  background: radial-gradient(circle, rgba(90,162,255,0.32), transparent 70%);
}
.hero-orb-2 {
  background: radial-gradient(circle, rgba(124,92,255,0.24), transparent 70%);
}
.hero-orb-3 {
  background: radial-gradient(circle, rgba(61,220,151,0.18), transparent 70%);
  width: 400px;
  height: 400px;
}

/* Hero: animated dot grid */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(90,162,255,0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 10%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 10%, transparent 90%);
  pointer-events: none;
}

/* Hero badge: glow pulse */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,162,255,0); border-color: rgba(90,162,255,0.15); }
  50% { box-shadow: 0 0 14px rgba(90,162,255,0.22); border-color: rgba(90,162,255,0.38); }
}
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

/* Hero h1: animated gradient */
.hero h1 {
  background-size: 200% 200%;
  animation: h1GradientShift 6s ease infinite;
}
@keyframes h1GradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero stats: gradient accent text */
.hero-stat-value {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature cards: colored glow on hover */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:has(.feature-icon-blue):hover {
  border-color: rgba(90,162,255,0.3);
  box-shadow: 0 8px 32px rgba(90,162,255,0.15), var(--shadow-lg);
}
.feature-card:has(.feature-icon-purple):hover {
  border-color: rgba(124,92,255,0.3);
  box-shadow: 0 8px 32px rgba(124,92,255,0.15), var(--shadow-lg);
}
.feature-card:has(.feature-icon-green):hover {
  border-color: rgba(61,220,151,0.28);
  box-shadow: 0 8px 32px rgba(61,220,151,0.12), var(--shadow-lg);
}
.feature-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Pricing popular: animated pulsing glow */
@keyframes popularGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(90,162,255,0.28), 0 0 60px rgba(90,162,255,0.08); }
  50%       { box-shadow: 0 0 44px rgba(124,92,255,0.38), 0 0 80px rgba(124,92,255,0.14); }
}
.pricing-card.popular {
  animation: popularGlow 4s ease-in-out infinite;
}

/* Steps: connecting gradient line */
@media (min-width: 769px) {
  .steps {
    position: relative;
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 55px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--green));
    opacity: 0.28;
    border-radius: 2px;
  }
}

/* Steps: glowing numbers */
@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(90,162,255,0.5); }
  50%       { box-shadow: 0 0 30px rgba(124,92,255,0.65); }
}
.step-num {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 18px rgba(90,162,255,0.4);
  animation: stepGlow 3s ease-in-out infinite;
}
.step-card:nth-child(2) .step-num { animation-delay: 1s; }
.step-card:nth-child(3) .step-num { animation-delay: 2s; }

/* Primary button shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%, 68%, 100% { left: -75%; opacity: 0; }
  69% { opacity: 1; }
  85% { left: 125%; opacity: 0; }
}

/* Section headers: accent underline */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Support block: breathing border */
@keyframes supportGlow {
  0%, 100% { border-color: rgba(90,162,255,0.18); }
  50%       { border-color: rgba(90,162,255,0.38); }
}
.support-block {
  animation: supportGlow 4s ease-in-out infinite;
}

/* Light theme: dot grid */
[data-theme='light'] .hero-bg::after {
  background-image: radial-gradient(rgba(59,130,246,0.09) 1px, transparent 1px);
}

