:root {
  --bg: #0f141c;
  --bg-card: #18202c;
  --bg-hover: #222d3d;
  --border: #2a3749;
  --primary: #4ade80;
  --primary-hover: #22c55e;
  --primary-text: #052e16;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
/* Mascot Styles */
.mascot-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .mascot-avatar {
  transform: scale(1.15) rotate(-6deg);
}
.hero-mascot-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.hero-mascot-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  animation: floatMascot 3.5s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.15s;
}
.hero-mascot-img:active {
  transform: scale(0.92);
}
.mascot-speech {
  position: absolute;
  top: -12px;
  right: -130px;
  background: #1e293b;
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.mascot-speech::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 18px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #1e293b transparent;
}
@keyframes floatMascot {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.feature-mascot-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  text-decoration: none;
}
.nav a.github-link {
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}
.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-5 { margin-top: 40px; }
.py-5 { padding: 40px 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* Hero */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-content {
  max-width: 800px;
}
.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: left;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.dl-card.primary {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}
.dl-platform {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.dl-card h3 { margin-bottom: 4px; }
.dl-actions {
  margin-top: auto;
  padding-top: 24px;
}

.guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.guide-box ol {
  padding-left: 20px;
  margin-top: 12px;
  color: var(--text-muted);
}
.guide-box li { margin-bottom: 8px; }

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .cta-group { flex-direction: column; }
  .footer-content { flex-direction: column; gap: 16px; text-align: center; }
}
