/* Global Styles */
:root {
  --bg-dark: #0f1015;
  --bg-card: #181920;
  --bg-card-hover: #1f2129;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --accent-blue: #4086f4;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --border-color: #272a35;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 21, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--accent-blue);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Header & Hero */
header {
  padding: 6rem 5% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, rgba(15,16,21,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Node Status */
.node-status-container {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.node-status-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.nodes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-width: 160px;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981; /* Green */
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

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

.node-info {
  display: flex;
  flex-direction: column;
}

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

.node-latency {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

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

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

.pricing-card:hover {
  border-color: #3f4354;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-5px);
}

.pricing-card.popular {
  border-color: rgba(168,85,247,0.5);
}

.price-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f3f4f6;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

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

.plan-price span.desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.cta-button {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.cta-button:hover {
  background-color: #3070e0;
}

.cta-button:active {
  transform: scale(0.98);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.features-list li::before {
  content: '✦';
  color: #8b5cf6;
  font-size: 0.9rem;
}

/* Articles Section */
.articles-section {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.articles-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

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

.article-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

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

/* Article Page Specific */
.article-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.article-container h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.article-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.article-container p {
  margin-bottom: 1.2rem;
  color: #d1d5db;
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  h1 { font-size: 2.2rem; }
  .plan-price { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }
}
