:root {
  --primary: #00ff88;
  --primary-hover: #00cc6a;
  --bg-dark: #0a0e17;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent: #00e5ff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }

p { margin-bottom: 1rem; color: var(--text-muted); }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Node Status Section */
.node-status {
  background-color: #0f1522;
}

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

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.node-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.node-card:hover::before {
  opacity: 1;
}

.flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.node-location {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.node-latency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s infinite;
}

.latency-value {
  color: #00ff88;
  font-variant-numeric: tabular-nums;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Pricing Section */
.pricing {
  position: relative;
}

.pricing-table-container {
  overflow-x: auto;
  margin-top: 3rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 1rem;
}

.pricing-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: center;
}

.pricing-table th, .pricing-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-table th {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--border-color);
}

.pricing-table td {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background-color: rgba(255,255,255,0.02);
  color: var(--text-main);
}

.plan-name {
  font-weight: 600;
  color: var(--primary) !important;
  text-align: left;
  padding-left: 2rem !important;
}

.price-val {
  font-weight: 500;
  color: var(--text-main);
}

.check-icon {
  color: var(--primary);
  font-weight: bold;
}

.cross-icon {
  color: #ff4757;
  font-weight: bold;
}

/* Background Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Footer */
footer {
  background-color: #070a10;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-links list {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    min-height: 80vh;
  }
}

/* SEO Article specific styles */
.article-header {
  padding-top: 150px;
  padding-bottom: 50px;
  background: var(--bg-card);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-content h2 {
  font-size: 2rem;
  text-align: left;
  margin-top: 2rem;
  color: var(--accent);
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.seo-internal-links {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.seo-internal-links h3 {
  margin-bottom: 1rem;
}

.seo-internal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.seo-internal-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.seo-internal-links a:hover {
  text-decoration: underline;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08); /* slight brightness on hover */
}

.blog-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-card:hover .read-more {
  color: var(--primary);
}
