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

:root {
  --bg-dark:      #060609;
  --panel-dark:   #0d0e18;
  --panel-light:  #161828;
  --accent-cyan:  #3bf7ff;
  --accent-amber: #ff9f00;
  --accent-em:    #00ffcc;
  --accent-purple:#ad3bff;
  --text-main:    #f8fafc;
  --text-muted:   #8a8d93;
  --stat-1: #ff6b6b;
  --stat-2: #ffd93d;
  --stat-3: #6bcb77;
  --stat-4: #4d96ff;
}

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

html, body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,247,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: left 0.1s, top 0.1s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.005) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.navbar {
  position: sticky;
  top: 0;
  background: rgba(6,6,9,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 1.25rem 3.5rem;
  z-index: 100;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.logo-wrapper:hover, .logo-wrapper:focus, .logo-wrapper:active {
  text-decoration: none;
}

.logo-icon-circle {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon-circle img { width: 100%; height: 100%; object-fit: cover; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

.nav-item:hover, .nav-item.active { color: var(--text-main); text-decoration: none; }

.premium-btn {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.premium-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-em), var(--accent-purple), var(--accent-cyan));
  border-radius: 32px;
  z-index: -1;
}

.premium-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(59,247,255,0.25);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.page-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 3.5rem;
}

.rainbow-text {
  background: linear-gradient(90deg,
    #ff0000, #ff5500, #ff9900, #ffee00,
    #00cc44, #0099ff, #6633ff, #cc00ff,
    #ff0000);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 9s linear infinite;
  text-decoration: none;
}

@keyframes rainbow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.fade-in {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  padding: 6rem 1rem 5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--text-main);
  color: var(--bg-dark);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255,255,255,0.2);
  text-decoration: none;
}

.btn-secondary {
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: linear-gradient(145deg, var(--panel-dark) 0%, #090a12 100%);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.2rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stat-1 { color: var(--stat-1); text-shadow: 0 0 20px rgba(255,107,107,0.25); }
.stat-2 { color: var(--stat-2); text-shadow: 0 0 20px rgba(255,217,61,0.25); }
.stat-3 { color: var(--stat-3); text-shadow: 0 0 20px rgba(107,203,119,0.25); }
.stat-4 { color: var(--stat-4); text-shadow: 0 0 20px rgba(77,150,255,0.25); }

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.feature-card {
  background: linear-gradient(145deg, var(--panel-dark) 0%, #08090f 100%);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.2rem;
  border-radius: 12px;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.modules-section {
  background: rgba(13,14,24,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3.5rem 2.5rem;
  border-radius: 16px;
  margin-bottom: 4rem;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.module-card {
  background: var(--panel-dark);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.2rem;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.module-card:hover { border-color: rgba(59,247,255,0.2); }

.module-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.module-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--panel-light);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error { border-color: rgba(255,80,80,0.4); color: #ff8080; }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(6,6,9,0.9);
  padding: 3rem 3.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-brand-icon img { width: 100%; height: 100%; object-fit: cover; }

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.redirect-page {
  text-align: center;
  padding: 8rem 1rem 6rem;
}

.redirect-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.redirect-page h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.redirect-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.md-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.md-page-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.md-page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.md-content {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.75;
}

.md-content h1 { font-size: 2rem; font-weight: 800; margin: 2rem 0 0.75rem; letter-spacing: -0.5px; }
.md-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.75rem 0 0.6rem; }
.md-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.md-content p  { margin-bottom: 1rem; }
.md-content ul, .md-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.md-content li { margin-bottom: 0.35rem; }
.md-content a  { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 3px; }
.md-content code {
  background: var(--panel-dark);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}
.md-content pre {
  background: var(--panel-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.md-content pre code { background: none; border: none; padding: 0; }
.md-content blockquote {
  border-left: 3px solid var(--accent-purple);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
}
.md-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 2rem 0;
}
.md-content del { opacity: 0.6; }
.md-content u  { text-decoration: underline; text-underline-offset: 3px; }
.md-content strong { font-weight: 700; color: #fff; }
.md-content em { font-style: italic; }
.md-content .media-embed {
  border-radius: 8px;
  overflow: hidden;
  margin: 1.25rem 0;
  max-width: 100%;
  background: var(--panel-dark);
  border: 1px solid rgba(255,255,255,0.06);
}
.md-content .media-embed video,
.md-content .media-embed iframe {
  width: 100%;
  display: block;
  border: none;
}
.md-content .media-embed iframe { aspect-ratio: 16/9; }

.credits-page {
  padding: 3rem 1.5rem 5rem;
}

.credits-page h1 {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.credits-page-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.credit-card {
  background: var(--panel-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.credit-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.credit-card.owner {
  box-shadow: 0 0 30px rgba(255,200,50,0.12);
  border-color: rgba(255,200,50,0.25);
}

.credit-card.owner:hover {
  box-shadow: 0 0 40px rgba(255,200,50,0.2);
}

.credit-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid rgba(255,255,255,0.08);
}

.credit-card.owner .credit-avatar {
  border-color: rgba(255,200,50,0.4);
}

.credit-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.credit-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.credit-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .navbar { padding: 1rem 2rem; }
  .page-content { padding: 2rem; }
  .hero-title { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(6,6,9,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255,255,255,0.06);
    z-index: 105;
  }
  .nav-links.open { right: 0; }
  .nav-item { font-size: 1.1rem; padding: 0.5rem 0; width: 100%; }
  .premium-btn { margin-top: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .navbar { padding: 1rem 1.2rem; }
  .page-content { padding: 1.5rem 1rem; }
  .hero { padding: 3rem 0.5rem 2rem; }
  .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .site-footer { padding: 2rem 1.25rem 1.5rem; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
}

@media print {
  .mouse-glow, .grid-overlay, .navbar, .site-footer { display: none; }
  .page-content { padding: 0; }
}
