:root {
  --bg-base: #0a0712;
  --bg-card: #141024;
  --bg-card-light: #1c1633;
  --purple-main: #8b5cf6;
  --purple-light: #c4b5fd;
  --purple-dark: #5b21b6;
  --text-main: #f5f3ff;
  --text-muted: #9c94b8;
  --accent-gold: #fbbf24;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; }
.brand-name span { color: var(--purple-main); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-muted); transition: var(--transition);
}
.nav-links a:hover { color: var(--purple-light); }
.mobile-menu-btn {
  display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero-section {
  position: relative; overflow: hidden; padding: 80px 0 60px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-content h1 {
  font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800;
}
.hero-content h1 em {
  font-style: normal; color: var(--purple-main);
  background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 480px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tag {
  background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; color: var(--purple-light);
}
.download-group { display: flex; flex-wrap: wrap; gap: 15px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
  color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6); }
.btn-secondary {
  background: transparent; color: var(--text-main);
  border: 1px solid rgba(139, 92, 246, 0.5);
}
.btn-secondary:hover { background: rgba(139, 92, 246, 0.1); }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-phone-mockup {
  width: 100%; max-width: 280px; aspect-ratio: 9/16;
  background: var(--bg-card); border-radius: 24px;
  border: 4px solid rgba(139, 92, 246, 0.3);
  overflow: hidden; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.hero-phone-mockup img { width: 100%; height: 100%; object-fit: cover; }
.hero-floating-badge {
  position: absolute; padding: 6px 14px; background: rgba(20, 16, 36, 0.9);
  border: 1px solid var(--purple-main); border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--purple-light);
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -10%; animation-delay: 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Section Common */
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
  font-size: 2rem; font-weight: 800; margin-bottom: 15px; letter-spacing: 1px;
}
.section-header h2 span { color: var(--purple-main); }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.drama-card {
  background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); border: 1px solid rgba(139, 92, 246, 0.1);
}
.drama-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15); }
.drama-card .cover { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; }
.drama-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.drama-card:hover .cover img { transform: scale(1.05); }
.drama-info { padding: 14px; }
.drama-info h3 { font-size: 1rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Z-Pattern */
.z-container { display: flex; flex-direction: column; gap: 60px; }
.z-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.z-row.reverse { direction: rtl; }
.z-row.reverse > * { direction: ltr; }
.z-img-wrapper {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  border: 2px solid rgba(139, 92, 246, 0.2);
}
.z-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.z-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--purple-light); }
.z-content p { color: var(--text-muted); margin-bottom: 20px; }
.z-list { display: flex; flex-direction: column; gap: 12px; }
.z-list li {
  display: flex; align-items: center; gap: 10px; font-size: 0.95rem;
}
.z-list li::before {
  content: "✦"; color: var(--purple-main); font-size: 1.2rem;
}

/* Timeline */
.timeline-section { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px 20px; }
.timeline-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; text-align: center; }
.timeline-item {
  position: relative; padding: 20px 10px; background: var(--bg-base);
  border-radius: var(--radius-sm); border: 1px solid rgba(139, 92, 246, 0.2);
  transition: var(--transition);
}
.timeline-item:hover { border-color: var(--purple-main); background: rgba(139, 92, 246, 0.1); }
.timeline-item .time { font-size: 1.2rem; font-weight: 700; color: var(--purple-main); margin-bottom: 8px; }
.timeline-item .title { font-size: 0.9rem; color: var(--text-muted); }

/* Wish Board */
.wish-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.wish-item {
  background: linear-gradient(145deg, var(--bg-card), #1a112e);
  padding: 20px; border-radius: var(--radius-md);
  border-left: 4px solid var(--purple-main);
  display: flex; flex-direction: column; gap: 10px;
}
.wish-user { display: flex; align-items: center; gap: 10px; }
.wish-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--purple-dark); }
.wish-user span { font-size: 0.85rem; color: var(--text-muted); }
.wish-content { font-size: 0.95rem; }

/* Weekly Chart */
.chart-container { display: flex; flex-direction: column; gap: 15px; }
.chart-row {
  display: flex; align-items: center; gap: 20px; padding: 15px 20px;
  background: var(--bg-card); border-radius: var(--radius-md);
  transition: var(--transition);
}
.chart-row:hover { background: var(--bg-card-light); transform: translateX(10px); }
.chart-rank {
  font-size: 1.5rem; font-weight: 900; color: var(--purple-main); width: 40px;
  text-align: center; font-style: italic;
}
.chart-rank.top1 { color: var(--accent-gold); }
.chart-rank.top2 { color: #e5e5e5; }
.chart-rank.top3 { color: #d97706; }
.chart-cover { width: 60px; height: 80px; border-radius: 6px; object-fit: cover; }
.chart-info { flex: 1; }
.chart-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.chart-info p { font-size: 0.85rem; color: var(--text-muted); }
.chart-tag {
  font-size: 0.75rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(139, 92, 246, 0.2); color: var(--purple-light);
}

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-meta h4 { font-size: 0.95rem; }
.review-meta span { font-size: 0.75rem; color: var(--text-muted); }
.review-text { font-size: 0.9rem; color: #d1cce0; font-style: italic; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.1);
}
.faq-question {
  padding: 18px 24px; font-weight: 600; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; user-select: none;
}
.faq-question .icon { color: var(--purple-main); font-size: 1.2rem; transition: var(--transition); }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted); font-size: 0.9rem;
}
.faq-item.active .faq-answer { padding: 0 24px 18px; max-height: 200px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius-md);
  text-align: center; position: relative; border: 1px solid rgba(139, 92, 246, 0.1);
}
.step-num {
  font-size: 3rem; font-weight: 900; color: rgba(139, 92, 246, 0.15);
  position: absolute; top: 10px; right: 20px;
}
.step-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--purple-light); position: relative; z-index: 1; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); position: relative; z-index: 1; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.privacy-item {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius-md);
  display: flex; gap: 20px; align-items: flex-start;
}
.privacy-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(139, 92, 246, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.privacy-text h4 { font-size: 1.1rem; margin-bottom: 8px; }
.privacy-text p { font-size: 0.9rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #06040a; border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 60px 0 30px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 15px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; max-width: 300px; }
.footer-links h4 { font-size: 1rem; margin-bottom: 20px; color: #fff; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--purple-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom .time { opacity: 0.6; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: center; z-index: 1000;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg);
  width: 90%; max-width: 400px; text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transform: scale(0.9); transition: var(--transition);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-box p { margin-bottom: 15px; color: var(--text-muted); }
.modal-link {
  background: var(--bg-base); padding: 12px; border-radius: var(--radius-sm);
  word-break: break-all; margin-bottom: 20px; font-size: 0.9rem;
  border: 1px dashed var(--purple-main); color: var(--purple-light);
}
.modal-btn {
  background: var(--purple-main); color: #fff; border: none; padding: 12px 24px;
  border-radius: 50px; font-weight: 600; cursor: pointer; width: 100%;
  transition: var(--transition);
}
.modal-btn:hover { background: var(--purple-dark); }
.modal-close {
  position: absolute; top: 10px; right: 15px; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.6;
}
.modal-close:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-grid { gap: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 30px; }
  .hero-tags { justify-content: center; }
  .download-group { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .z-row { grid-template-columns: 1fr; }
  .z-row.reverse { direction: ltr; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-brand p { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .btn-download { width: 100%; justify-content: center; }
  .timeline-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}