:root {
  --bg: #07090e;
  --bg-surface: #0e121a;
  --bg-card: rgba(18, 23, 34, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(79, 142, 247, 0.35);
  --text: #f0f3f8;
  --text-muted: #8b94a5;
  --accent: #4f8ef7;
  --accent-glow: rgba(79, 142, 247, 0.25);
  --green: #2dd4a7;
  --green-glow: rgba(45, 212, 167, 0.2);
  --purple: #a855f7;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

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

.bg-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

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

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 10px var(--accent));
}

.logo-text span {
  color: var(--accent);
  font-size: 14px;
  margin-left: 2px;
}

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

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

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

.nav-btn-gh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text) !important;
  transition: all 0.2s ease;
}

.nav-btn-gh:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.hero {
  padding: 80px 0 50px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 212, 167, 0.08);
  border: 1px solid rgba(45, 212, 167, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(45, 212, 167, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 820px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #4f8ef7 0%, #2dd4a7 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: #3b7ee9;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 142, 247, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 36px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

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

.stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.badge-accent {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.featured-card {
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.75) 0%, rgba(14, 18, 26, 0.85) 100%);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(79, 142, 247, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.featured-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 20px;
}

.tag-ai {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.project-version {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--text);
}

.project-status-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(45, 212, 167, 0.15);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.gh-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gh-link-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.platform-item {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

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

.platform-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.platform-top h4 {
  font-size: 15px;
  font-weight: 700;
}

.platform-top p {
  font-size: 12px;
  color: var(--text-muted);
}

.platform-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.download-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.3);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.download-pill:hover {
  background: var(--accent);
  color: #fff;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.p-badge-magisk { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.p-badge-shell  { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.p-badge-rust   { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.p-badge-proxy  { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.p-badge-android{ background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.p-badge-java   { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.p-badge-ui     { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.repo-stars {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

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

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.project-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 9px;
}

.community-box {
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.8) 0%, rgba(13, 17, 28, 0.9) 100%);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.community-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.community-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.community-box p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 28px;
}

.community-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
}

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

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-btn-gh) {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .stats-bar {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .stat-sep {
    width: 60px;
    height: 1px;
  }

  .featured-card {
    padding: 22px;
  }

  .community-box {
    padding: 26px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
