/* CDN Landing - shared */
:root {
  --bg: #070b14;
  --card: #0f1628;
  --card2: #141e34;
  --border: rgba(99, 132, 255, 0.18);
  --text: #e8edf7;
  --muted: #8b9ab8;
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --gold: #f59e0b;
  --green: #22c55e;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(6, 182, 212, 0.1), transparent);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent2); }

.nav-links { display: flex; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* hero */
.hero { text-align: center; padding: 32px 0 56px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.08);
  font-size: 0.82rem;
  color: var(--accent2);
  margin-bottom: 24px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #94b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.btn-telegram {
  background: linear-gradient(135deg, #229ed9, #1a8bc4);
  color: #fff;
  box-shadow: 0 8px 32px rgba(34, 158, 217, 0.3);
}

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

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

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

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

.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1.2;
}

.stat .label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* features */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.feat:hover { border-color: rgba(59, 130, 246, 0.4); }

.feat .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: rgba(59, 130, 246, 0.12);
}

.feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat p { font-size: 0.9rem; color: var(--muted); }

/* compare / use */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.use-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.use-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.use-card ul { list-style: none; }
.use-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.use-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* contact */
.contact-box {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-box h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-box p { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* hub cards on index */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
}

.hub-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}

.hub-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.hub-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.hub-card .arrow { color: var(--accent2); font-weight: 600; font-size: 0.9rem; }

.tag-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-cyan { background: rgba(6,182,212,0.15); color: #22d3ee; }

/* fixed mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  gap: 10px;
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-bar .mb-bot { background: var(--accent); color: #fff; }
.mobile-bar .mb-tg { background: #229ed9; color: #fff; }

footer {
  text-align: center;
  padding: 40px 20px 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-bar { display: flex; }
  .wrap { padding-bottom: 90px; }
  .hero { padding-top: 16px; }
}
