:root {
  --bg-dark: #0f111a;
  --bg-card: #1a1d2d;
  --primary: #ff4d6d;
  --secondary: #7b61ff;
  --accent: #00e5ff;
  --text-main: #f0f2f8;
  --text-muted: #9aa0b5;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand img { height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--text-muted); transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Hero */
.hero {
  padding: 60px 20px; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-text h1 { font-size: 38px; line-height: 1.3; margin-bottom: 20px; }
.hero-text h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; }
.download-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  padding: 10px 24px; border-radius: 30px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 77, 109, 0.5); }
.btn-outline {
  border: 1px solid var(--text-muted); color: var(--text-main);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual { position: relative; }
.hero-slider {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slide {
  min-width: 200px; flex: 1; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-slide img { width: 100%; height: 320px; object-fit: cover; }

/* Marquee */
.marquee-wrap {
  background: linear-gradient(90deg, #1a1d2d, #2a1b3d, #1a1d2d);
  padding: 10px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-text {
  display: inline-block; animation: scroll 20s linear infinite;
  font-size: 18px; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 28px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); }

/* Core Features */
.core-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--accent); }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Tutorial */
.tutorial-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.tutorial-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.tutorial-img img { width: 100%; height: auto; object-fit: cover; }
.tutorial-list { display: flex; flex-direction: column; gap: 16px; }
.tutorial-item {
  background: var(--bg-card); padding: 16px 20px; border-radius: 12px;
  border-left: 4px solid var(--secondary);
}
.tutorial-item h3 { font-size: 16px; margin-bottom: 6px; }
.tutorial-item p { font-size: 14px; color: var(--text-muted); }

/* Character Square */
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card {
  display: flex; background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.role-card img { width: 120px; height: 100%; object-fit: cover; }
.role-info { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.role-info h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }
.role-info p { font-size: 13px; color: var(--text-muted); }

/* Custom */
.custom-section { background: #1a1d2d; border-radius: var(--radius); padding: 40px; }
.custom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.custom-text h2 { font-size: 24px; margin-bottom: 16px; }
.custom-text ul { list-style: none; }
.custom-text li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.custom-text li::before { content: '✦'; color: var(--accent); }
.custom-img img { border-radius: 12px; width: 100%; height: auto; }

/* Chat & Privacy */
.chat-privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.chat-box { background: var(--bg-card); padding: 30px; border-radius: var(--radius); }
.chat-box h2 { font-size: 22px; margin-bottom: 16px; color: var(--accent); }
.chat-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.privacy-box { background: #2a1b3d; padding: 30px; border-radius: var(--radius); }
.privacy-box h2 { font-size: 22px; margin-bottom: 16px; color: var(--primary); }
.privacy-box p { font-size: 15px; color: #d0d0d0; margin-bottom: 16px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
}
.faq-q { font-weight: 600; color: var(--primary); margin-bottom: 8px; font-size: 15px; }
.faq-a { font-size: 14px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #0a0b10; padding: 40px 20px 20px; font-size: 13px; color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.footer-bottom a { color: var(--text-muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--primary); }

/* Floating Download */
.floating-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); padding: 10px 20px; border-radius: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6); display: flex; align-items: center; gap: 12px;
  z-index: 999; border: 1px solid rgba(255,255,255,0.1);
}
.floating-download img { width: 32px; height: 32px; border-radius: 8px; }
.floating-info { font-size: 12px; }
.floating-info span { color: var(--primary); font-weight: bold; display: block; }

/* Mobile Menu */
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; }

/* Copy Modal */
.copy-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center;
}
.copy-modal.active { display: flex; }
.modal-content {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius);
  max-width: 90%; width: 400px; text-align: center;
}
.modal-content p { margin-bottom: 20px; font-size: 15px; }
.modal-content input {
  width: 100%; padding: 10px; margin-bottom: 20px; background: #0a0b10; border: 1px solid #333;
  color: #fff; border-radius: 8px; text-align: center; font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 30px; }
  .download-btns { justify-content: center; }
  .hero-slider { justify-content: center; }
  .core-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr; }
  .tutorial-wrap, .custom-inner { grid-template-columns: 1fr; }
  .chat-privacy { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 10px 0; }
  .nav-links.active { display: flex; }
  .mobile-menu-toggle { display: block; }
  .hero-text h1 { font-size: 26px; }
  .hero-slide img { height: 240px; }
  .core-grid { grid-template-columns: 1fr; }
  .floating-download { width: 90%; justify-content: center; }
  .custom-section { padding: 20px; }
}