/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0a0a0a;
  --text-color: #f5f5f5;
  --accent-color: #ffffff;
  --secondary-bg: #141414;
  --border-color: #333333;
  --hover-bg: #222222;
  --success-color: #10b981; /* Green for latency */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-padding {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--accent-color);
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #aaa;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #ccc;
  max-width: 600px;
}

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

.adv-card {
  background: var(--secondary-bg);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.adv-card:hover {
  transform: translateY(-10px);
  border-color: #666;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.adv-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.adv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.adv-card p {
  color: #aaa;
}

/* Latency Status */
.latency-container {
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.latency-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.latency-row:last-child {
  border-bottom: none;
}

.latency-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.latency-ping {
  font-family: monospace;
  color: var(--success-color);
  font-size: 1.1rem;
}

/* Pricing Section */
.pricing-table-wrapper {
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--secondary-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.pricing-table th,
.pricing-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  font-weight: 600;
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.pricing-table tr:hover {
  background-color: var(--hover-bg);
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #fff;
}

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

.review-card {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.review-text {
  font-style: italic;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: var(--secondary-bg);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--hover-bg);
}

.faq-answer {
  background: var(--bg-color);
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #aaa;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}

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

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

.kb-card {
  background: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.kb-card:hover {
  border-color: #fff;
  transform: translateY(-5px);
}

.kb-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #eee;
  flex-grow: 1;
}

.kb-link {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: underline;
  margin-top: auto;
}

/* Footer */
footer {
  background: var(--secondary-bg);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: #888;
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu handles this via JS if needed, or simple display for now */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
