:root {
  --bg: #070A0E;
  --surface: #0D131C;
  --surface-glass: rgba(13, 19, 28, 0.75);
  --border: rgba(0, 255, 136, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --accent: #00FF88;
  --accent-glow: rgba(0, 255, 136, 0.25);
  --accent-secondary: #38BDF8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.bg-glow-1 {
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #00FF88, transparent 70%);
}

.bg-glow-2 {
  top: 40%;
  right: -200px;
  background: radial-gradient(circle, #38BDF8, transparent 70%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFF;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: #070A0E;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: #22FF96;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

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

.btn-outline:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-container {
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.badge-tag {
  background: var(--accent);
  color: #070A0E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #00FF88 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.metric-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s;
}

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

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.metric-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.metric-status.online {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent);
}

.metric-status.speed {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-secondary);
}

.metric-status.ping {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent);
}

.metric-status.hit {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Tabs & PoP Grid */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.pops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pop-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.pop-card:hover {
  border-color: var(--border);
  background: rgba(13, 19, 28, 0.9);
}

.pop-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pop-name {
  font-weight: 600;
  color: #FFF;
  font-size: 0.95rem;
}

.pop-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pop-metrics {
  text-align: right;
}

.pop-ping {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.pop-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 30px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Developer Section */
.dev-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 48px;
}

.dev-points {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dev-points span {
  color: var(--accent);
  font-weight: 700;
}

.dev-terminal {
  background: #040608;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #0B0E14;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-code {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.c-comment { color: #64748B; }
.c-cmd { color: var(--accent); font-weight: 600; }
.c-output { color: #CBD5E1; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070A;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-badges {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .dev-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-bottom-content { flex-direction: column; gap: 10px; text-align: center; }
}
