@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg-primary: #050810;
  --bg-secondary: #0d1222;
  --bg-card: rgba(18, 26, 47, 0.6);
  --text-main: #f0f5ff;
  --text-muted: #8b9bb4;
  --accent-glow: #e0eaff;
  --moonlight-blue: #2a6bfd;
  --moonlight-cyan: #00d2ff;
  --success-green: #00ff88;
  --gradient-moon: linear-gradient(135deg, var(--moonlight-blue) 0%, var(--moonlight-cyan) 100%);
}

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

body {
  font-family: 'Outfit', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% -20%, rgba(42, 107, 253, 0.15), transparent 60%);
}

/* Glassmorphism Navbar */
header.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-moon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--moonlight-cyan);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 2rem;
}

.dropdown > a {
  margin-left: 0;
}

.dropdown-content {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(5, 8, 16, 0.9);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  z-index: 100;
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  color: var(--text-main);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--moonlight-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem 3rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 234, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

h1.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1.hero-title span {
  display: block;
}

.glow-text {
  background: var(--gradient-moon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(42, 107, 253, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--text-main);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240, 245, 255, 0.2);
  margin-bottom: 3rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 245, 255, 0.4);
  background: #ffffff;
}

/* Dynamic Nodes Section */
.nodes-section {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.nodes-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 10px var(--success-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.node-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.node-card:hover {
  border-color: rgba(42, 107, 253, 0.3);
  transform: translateY(-5px);
  background: rgba(42, 107, 253, 0.05);
}

.node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.flag {
  font-size: 1.5rem;
}

.node-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.ping-bar-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.ping-bar {
  height: 100%;
  background: var(--gradient-moon);
  width: 0%;
  transition: width 0.5s ease-out;
}

.node-ping {
  font-family: 'Outfit', monospace;
  color: var(--success-green);
  font-weight: 700;
  text-align: right;
  font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 5%;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: -1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 107, 253, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pricing-card.recommended {
  border: 2px solid var(--moonlight-blue);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(42, 107, 253, 0.2);
  z-index: 10;
  background: rgba(42, 107, 253, 0.05);
}

.pricing-card.recommended:hover {
  transform: scale(1.05) translateY(-8px);
}

.badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-moon);
  color: var(--bg-primary);
  padding: 0.3rem 1.5rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.plan-price {
  margin-bottom: 2rem;
  color: var(--moonlight-cyan);
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 500;
}

.plan-price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li span {
  color: var(--success-green);
  font-weight: bold;
}

.btn-outline {
  display: block;
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-plan {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--gradient-moon);
  border-radius: 50px;
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
  background: #ffffff;
}

@media (max-width: 768px) {
  .pricing-card.recommended {
    transform: scale(1);
  }
  .pricing-card.recommended:hover {
    transform: translateY(-8px);
  }
}

/* Articles Section */
.articles-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 5%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-moon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 107, 253, 0.2);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Base Page Styling (for Articles) */
.page-container {
  max-width: 800px;
  margin: 8rem auto 4rem;
  padding: 0 5%;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-glow);
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.page-content h2 {
  margin: 2rem 0 1rem;
  color: var(--text-main);
  font-size: 1.5rem;
}

.page-content h3 {
  margin: 1.5rem 0 1rem;
  color: var(--text-main);
}

.page-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content strong {
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }
}
