/* Modern White & Blue Aesthetic Design System */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --secondary: #0284c7;
  --accent: #38bdf8;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #edf4ff 50%, #e0e7ff 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: #f8fafc;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-hover);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
}

.stat-card .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-card .label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Shared */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 54px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-muted);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Latency Status Board */
.status-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.status-header h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  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 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.node-card {
  background: white;
  border: 1px solid var(--card-border);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag {
  font-size: 24px;
}

.node-name {
  font-weight: 600;
  font-size: 15px;
}

.node-type {
  font-size: 12px;
  color: var(--text-muted);
}

.node-ping {
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ecfdf5;
  color: #059669;
}

.node-ping.medium {
  background: #fffbebf;
  color: #d97706;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 40px -5px rgba(37, 99, 235, 0.25);
  transform: translateY(-8px);
}

.featured-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-main);
}

.pricing-features li i {
  color: #10b981;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 14px;
  font-size: 16px;
}

.review-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.user-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  display: none;
}

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: var(--transition);
  color: var(--primary);
}

/* Tutorials / Knowledge Base Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.15);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Detail Page Specific Styles */
.article-page {
  padding: 130px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.article-content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text-main);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 14px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-cta-box {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-align: center;
}

.article-cta-box h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-hover);
}

.article-cta-box p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .article-content-wrapper { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
