/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0b0f;
  --bg2: #0f1117;
  --bg3: #13151e;
  --surface: #1a1d2e;
  --surface2: #20243a;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf6;
  --text-muted: #8b8fa8;
  --primary: #5865f2;
  --primary-dark: #4752c4;
  --primary-light: #7289ff;
  --accent: #eb459e;
  --green: #3ba55c;
  --gold: #f0a732;
  --cyan: #00d4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glow: 0 0 40px rgba(88,101,242,0.25);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', 'Noto Sans TC', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: none; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,0.4); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,11,15,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
.nav.scrolled { background: rgba(10,11,15,0.95); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.logo-icon { font-size: 22px; }
.logo-text { background: linear-gradient(135deg, #fff, var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--text-muted); transition: all .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-mobile { display: none; flex-direction: column; padding: 16px 24px 20px; gap: 4px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 10px 14px; border-radius: 8px; color: var(--text-muted); transition: all .2s; }
.nav-mobile a:hover, .nav-mobile a.mobile-invite { color: #fff; }
.nav-mobile .mobile-invite { background: var(--primary); text-align: center; margin-top: 8px; border-radius: 10px; }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 24px 60px; position: relative; overflow: hidden; max-width: 1400px; margin: 0 auto; gap: 60px; }
.hero-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: blobPulse 8s ease-in-out infinite; }
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); top: 50%; right: -100px; animation-delay: 3s; }
.blob-3 { width: 350px; height: 350px; background: var(--cyan); bottom: -100px; left: 30%; animation-delay: 6s; }
.blob-4 { width: 600px; height: 600px; background: var(--primary); top: 50%; left: 50%; transform: translate(-50%,-50%); }
@keyframes blobPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 40px 40px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; line-height: 1.7; }
.hero-desc strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── HERO VISUAL / MOCKUP ─── */
.hero-visual { flex: 1; max-width: 480px; display: flex; justify-content: center; }
.card-mockup { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; width: 100%; max-width: 420px; box-shadow: var(--shadow), var(--glow); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
.mockup-header { background: var(--surface2); padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-title { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mockup-msg { display: flex; gap: 10px; }
.msg-avatar { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.msg-content { flex: 1; }
.msg-name { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.bot-tag { background: var(--primary); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; font-weight: 600; }
.msg-embed { border-left: 3px solid var(--primary); border-radius: 4px; background: var(--bg3); overflow: hidden; display: flex; }
.embed-bar { width: 3px; background: var(--primary); flex-shrink: 0; }
.embed-bar.green { background: var(--green); }
.embed-body { padding: 8px 10px; flex: 1; }
.embed-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.embed-desc { font-size: 12px; color: var(--text-muted); }
.embed-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 100px; margin-top: 6px; font-weight: 700; }
.embed-badge.epic { background: rgba(155,89,182,0.3); color: #c39bd3; border: 1px solid rgba(155,89,182,0.5); }
.msg-text { font-size: 13px; background: var(--bg3); padding: 8px 12px; border-radius: 8px; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; padding: 5px 16px; background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.3); border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.tag-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: var(--text-muted); }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }
.section-header code { background: var(--surface); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: var(--primary-light); }

/* ─── FEATURES ─── */
.features { padding: 100px 0; background: var(--bg2); position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.12); }
.feature-card:hover::before { opacity: 1; }
.card-accent-purple::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.card-accent-blue::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.card-accent-gold::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.card-accent-green::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.card-accent-pink::before { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.card-accent-cyan::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.card-accent-orange::before { background: linear-gradient(90deg, #f97316, #f59e0b); }
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags li { background: var(--bg); padding: 3px 10px; border-radius: 100px; font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); }

/* ─── COMMANDS ─── */
.commands-section { padding: 100px 0; background: var(--bg); }
.commands-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab-btn { padding: 8px 20px; border-radius: 100px; border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.tab-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cmd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; transition: all .2s; }
.cmd-card:hover { border-color: var(--primary); background: var(--surface2); }
.cmd-card code { display: block; font-size: 13px; color: var(--primary-light); background: var(--bg); padding: 6px 10px; border-radius: 6px; margin-bottom: 8px; font-family: 'Noto Sans TC', monospace; }
.cmd-card p { font-size: 13px; color: var(--text-muted); }

/* ─── STATS SECTION ─── */
.stats-section { padding: 80px 0; background: var(--bg2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-card { text-align: center; padding: 40px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-icon { font-size: 36px; margin-bottom: 12px; }
.stat-value { font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg, var(--text), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-name { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ─── CTA ─── */
.cta-section { padding: 120px 0; background: var(--bg); position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 16px; }
.cta-content p { font-size: 17px; color: var(--text-muted); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-inner { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; align-items: center; padding-top: 120px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 32px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
}
