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

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 19, 32, 0.75);
  --bg-card-hover: rgba(22, 28, 46, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(108, 99, 255, 0.4);
  --accent-primary: #6c63ff;
  --accent-cyan: #00e5ff;
  --accent-green: #00e676;
  --accent-gold: #ffab00;
  --text-main: #f0f3ff;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, rgba(108, 99, 255, 0.15), transparent 45%),
              radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.08), transparent 40%),
              radial-gradient(circle at 15% 70%, rgba(108, 99, 255, 0.1), transparent 50%),
              var(--bg-dark);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* ── Top Announcement Banner ── */
.announcement-bar {
  background: linear-gradient(90deg, #6c63ff, #00e5ff);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.announcement-bar a {
  background: #000;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Header Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-card);
  padding: 10px 24px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.brand-logo-img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(108, 99, 255, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4b44cc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(108, 99, 255, 0.6);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* ── Hero Section ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.4);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  max-width: 760px;
  margin: 0 auto 36px;
}

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

.repo-sublink {
  margin-bottom: 40px;
}

.repo-sublink a {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 500;
}

.repo-sublink a:hover {
  color: var(--accent-cyan);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

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

/* ── Interactive Carousel Section ── */
.carousel-section {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.carousel-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.6) 70%, transparent 100%);
  padding: 20px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.caption-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 19, 32, 0.85);
  border: 1px solid var(--border-card);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(7, 9, 14, 0.6);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--accent-primary);
}

/* ── Features Grid ── */
.features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ── Redesigned Setup Grid ── */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

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

.setup-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(108, 99, 255, 0.4);
  margin-bottom: 12px;
  line-height: 1;
}

.setup-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.setup-text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.setup-text code {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* ── Overlays Reference ── */
.overlays-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.overlay-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-card);
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td code {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.88rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 80px;
  background: rgba(7, 9, 14, 0.9);
}

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

/* ── Responsive Mobile Media Queries ── */
@media (max-width: 768px) {
  .navbar { padding: 8px 16px; }
  .nav-container { flex-direction: row; justify-content: space-between; gap: 12px; }
  .nav-links { display: flex; gap: 14px; font-size: 0.82rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .carousel-viewport { aspect-ratio: 4 / 3; }
}
