/* Obsidian Charcoal & Tech Amber-Violet Design for iKuuu Wiki (ikuuu.wiki) */
:root {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #8b5cf6 50%, #6366f1 100%);
  --primary-light: rgba(139, 92, 246, 0.12);
  --primary-glow: rgba(139, 92, 246, 0.28);
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --bg-page: #101216;
  --bg-card: #181a22;
  --bg-card-hover: #222531;
  --bg-alt: #13151b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.22);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-code: "JetBrains Mono", Consolas, "SF Mono", Monaco, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 10% 20%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(245, 158, 11, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}
a { color: #a78bfa; text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #c4b5fd; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Bulletproof Navbar */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(16, 18, 22, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 15px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo-img { height: 42px; width: auto; object-fit: contain; }
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
  white-space: nowrap; flex-shrink: 0;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: rgba(255, 255, 255, 0.06);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius-md); text-decoration: none;
  transition: all 0.25s ease; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5);
  color: #fff;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05); color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1); border-color: var(--primary);
  color: #fff;
}
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* Hero Section */
.hero { padding: 85px 0 60px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid var(--border-glow);
  color: #c4b5fd; font-size: 0.84rem; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6;
  box-shadow: 0 0 10px #8b5cf6; animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: 2.75rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 .hl {
  background: var(--primary-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.12rem; color: var(--text-muted); margin-bottom: 30px;
  line-height: 1.7; max-width: 580px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 35px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 25px; border-top: 1px solid var(--border-color);
}
.hero-stat b { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 0.84rem; color: var(--text-dim); }

/* Code / Terminal Mockup */
.code-card {
  background: #0d0f14; border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); padding: 22px; font-family: var(--font-code);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px;
}
.code-dots { display: flex; gap: 6px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-body pre { font-size: 0.84rem; color: #cbd5e1; line-height: 1.6; overflow-x: auto; }
.code-keyword { color: #f472b6; }
.code-string { color: #34d399; }
.code-num { color: #fbbf24; }

/* Sections */
.section { padding: 75px 0; border-top: 1px solid var(--border-color); }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--primary-light); color: #c4b5fd; font-size: 0.82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.section-title { font-size: 2.15rem; font-weight: 800; margin-bottom: 14px; color: #fff; }
.section-sub { font-size: 1.02rem; color: var(--text-muted); line-height: 1.65; }

/* Grid Cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--border-glow);
  box-shadow: var(--shadow-glow); background: var(--bg-card-hover);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px; color: #c4b5fd;
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* Table Styles */
.table-wrap { overflow-x: auto; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; text-align: left; }
table.data-table th, table.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
table.data-table th { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); font-weight: 600; }
table.data-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; color: #34d399; font-weight: 600; font-size: 0.82rem; }

/* Download Cards */
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  transition: all 0.25s ease;
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.dl-icon { font-size: 2.4rem; margin-bottom: 14px; }
.dl-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.dl-card p { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 16px; }

/* FAQ Accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 700; font-size: 1.02rem;
  color: #fff; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body {
  padding: 0 22px 20px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7;
}

/* Floating Mascot Button */
.anime-mascot-float {
  position: fixed; bottom: 25px; right: 25px; z-index: 999;
  display: flex; align-items: flex-end; gap: 10px;
  text-decoration: none !important; cursor: pointer;
  transition: all 0.3s ease;
}
.anime-mascot-float:hover { transform: translateY(-4px); }
.mascot-bubble {
  background: #ffffff; color: #0f172a; font-size: 0.82rem; font-weight: 700;
  padding: 8px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap; position: relative;
  animation: floatBubble 3s ease-in-out infinite;
  text-decoration: none !important;
}
.mascot-bubble::after {
  content: ''; position: absolute; right: -6px; bottom: 14px;
  width: 10px; height: 10px; background: #fff;
  border-right: 1px solid rgba(139, 92, 246, 0.25);
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  transform: rotate(45deg);
}
.mascot-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  object-fit: cover; background: #101216;
  transition: transform 0.25s ease;
}
.mascot-avatar:hover { transform: scale(1.12) rotate(4deg); }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Footer */
.footer {
  background: #0a0b0e; color: var(--text-dim); padding: 60px 0 30px;
  border-top: 1px solid var(--border-color); font-size: 0.88rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-col h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 25px; border-top: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.footer-friendly-links {
  margin-top: 30px; padding: 22px; background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.links-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.links-badge { font-weight: 700; color: #fff; font-size: 0.9rem; }
.links-desc { font-size: 0.8rem; color: var(--text-dim); }
.links-flex { display: flex; flex-wrap: wrap; gap: 12px; }
.friendly-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted); font-size: 0.85rem; border: 1px solid var(--border-color);
  text-decoration: none;
}
.friendly-link:hover {
  background: rgba(139, 92, 246, 0.15); border-color: var(--primary); color: #fff;
}
.friendly-link.current {
  background: rgba(139, 92, 246, 0.25); border-color: var(--primary); color: #fff; font-weight: 600;
}
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; }
.fl-text strong { display: block; font-size: 0.86rem; color: #fff; }
.fl-text small { display: block; font-size: 0.72rem; color: var(--text-dim); }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-links {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; max-width: 50vw;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; max-width: 100%; padding: 4px 0; }
  .hero h1 { font-size: 2.1rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .anime-mascot-float { bottom: 15px; right: 15px; }
  .anime-mascot-float .mascot-bubble { display: none; }
  .mascot-avatar { width: 52px; height: 52px; }
}
