:root {
  --bg: #0b0d12;
  --panel: #111520;
  --panel-2: #0f131d;
  --text: #e8ecf3;
  --muted: #9aa3b5;
  --accent: #4fd1c5;
  --accent-2: #f4a261;
  --border: #1c2433;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgba(79, 209, 197, 0.08), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(244, 162, 97, 0.08), transparent 25%),
              var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.nav-as {
  display: none;
}

.nav-brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-brand:hover {
  color: var(--text);
}

.nav-links {
  display: none;
}

/* Hero Section */
.hero-as {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 60px 0;
  padding: 40px 0;
}

.asn-badge {
  display: inline-block;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(79, 209, 197, 0.3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-as h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--accent), #3fa6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text);
  font-size: 18px;
  margin: 0 0 8px;
}

.hero-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.hero-meta {
  margin-bottom: 24px;
}

.policy-badge {
  display: inline-block;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(79, 209, 197, 0.3);
  font-size: 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-as {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #3fa6a0);
  color: #051012;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-as:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 209, 197, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

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

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  height: 300px;
}

.network-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.3;
}

.network-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79, 209, 197, 0.8), rgba(79, 209, 197, 0.2));
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(79, 209, 197, 0.5);
  animation: pulse 3s ease-in-out infinite;
}

.node-1 {
  top: 20px;
  left: 30%;
  animation-delay: 0s;
}

.node-2 {
  top: 20px;
  right: 30%;
  animation-delay: 0.5s;
}

.node-3 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(79, 209, 197, 0.8);
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 60px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.stat-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* PoPs Grid */
.pops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.pop-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pop-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.pop-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.pop-location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  display: none;
}

.pop-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pop-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.pop-label {
  color: var(--muted);
  font-weight: 500;
  min-width: 140px;
}

.pop-value {
  color: var(--text);
  font-weight: 600;
}

.upstream-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.upstream-list li {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  margin-left: 140px;
}

.asn-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Info Sections */
.info-section,
.peering-section,
.contact-as {
  margin: 60px 0;
  padding: 40px 0;
}

.info-section h2,
.peering-section h2,
.contact-as h2 {
  font-size: 32px;
  margin: 0 0 32px;
  color: var(--text);
}

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

.info-card {
  padding: 24px;
  background: rgba(79, 209, 197, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Peering Section */
.peering-info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.peering-info p {
  margin: 0 0 20px;
  color: var(--text);
}

.peering-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.peering-list li {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.peering-list strong {
  color: var(--accent);
}

.peering-list a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.peering-list a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-as {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-content h2 {
  margin-bottom: 12px;
}

.contact-as p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent-2);
}

.contact-links span {
  color: var(--muted);
}

/* Footer */
.footer-as {
  padding: 32px 0 60px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.footer-as a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-as {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 40px 0;
  }

  .hero-visual {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-as h1 {
    font-size: 32px;
  }

  .peering-list {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 0 16px;
  }

  .nav-as {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-as,
  .btn-ghost {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-as h1 {
    font-size: 24px;
  }

  .info-section h2,
  .peering-section h2,
  .contact-as h2 {
    font-size: 24px;
  }
}
