:root {
  --bg-main: #0A0A0A;
  --bg-section: #141414;
  --brand-cyan: #00E5FF;
  --brand-green: #39FF14;
  --brand-grad: linear-gradient(135deg, #00E5FF, #39FF14);
  --glass-bg: rgba(255,255,255,0.08);
  --text-main: #F0F0F0;
  --text-muted: #A0A0A0;
  --glow-shadow: 0 0 40px rgba(0,229,255,0.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { line-height: 1.3; font-weight: 700; }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-logo { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: bold; }
.header-logo img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: none; gap: 24px; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--brand-cyan); }
.header-btn {
  padding: 8px 20px; border-radius: 20px;
  border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan); font-weight: 500; font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.header-btn:hover { background: rgba(0,229,255,0.1); box-shadow: 0 0 20px rgba(0,229,255,0.4); }

/* Hero */
.hero {
  position: relative;
  padding: 120px 24px 60px;
  min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-content { z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.hero h1 span { display: inline-block; transition: transform 0.3s; }
.hero h1 span:hover { transform: scale(1.05); }
.hero p.subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 16px; justify-content: center; margin-bottom: 48px; }
.btn-primary {
  background: var(--brand-grad); color: #000; padding: 14px 32px;
  border-radius: 30px; font-weight: bold; font-size: 1.1rem;
  box-shadow: var(--glow-shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(57,255,20,0.4); }
.btn-secondary {
  background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-main); padding: 14px 32px; border-radius: 30px;
  font-weight: 500; font-size: 1.1rem; transition: background 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* Mockup */
.hero-mockup {
  position: relative; width: 260px; height: 520px; margin: 0 auto;
  border-radius: 40px; border: 8px solid #333; background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,229,255,0.2);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s;
  overflow: hidden;
}
.hero-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.mockup-screen { width: 100%; height: 100%; position: relative; overflow: hidden; background: #111; border-radius: 32px; }
.mockup-screen img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.mockup-screen img.active { opacity: 1; }
.mockup-water { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, rgba(0,229,255,0.1), transparent); pointer-events: none; }

/* Sections Common */
section { padding: 60px 24px; }
.section-title { font-size: 1.8rem; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.bg-dark { background-color: var(--bg-section); }

/* Showcase */
.scroll-container {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.drama-card {
  flex: 0 0 160px; scroll-snap-align: start;
  background: var(--glass-bg); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.drama-card:hover { transform: translateY(-5px); box-shadow: var(--glow-shadow); border-color: rgba(0,229,255,0.3); }
.drama-cover { position: relative; width: 100%; aspect-ratio: 3/4; background: #222; overflow: hidden; }
.drama-cover img { width: 100%; height: 100%; object-fit: cover; }
.drama-tag {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7);
  color: var(--brand-cyan); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
}
.drama-info { padding: 10px; }
.drama-title { font-size: 0.9rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.drama-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.drama-hot { color: #FF4500; }

/* Tabs */
.tabs-container { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.tabs-container::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 1rem; padding: 6px 12px; cursor: pointer;
  position: relative; white-space: nowrap; transition: color 0.3s;
}
.tab-btn.active { color: var(--brand-cyan); text-shadow: 0 0 8px rgba(0,229,255,0.5); }
.tab-btn::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--brand-grad); transition: width 0.3s;
}
.tab-btn.active::after { width: 80%; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* How to Watch */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 800px; margin: 0 auto 32px; }
.step { display: flex; align-items: center; gap: 16px; background: var(--glass-bg); padding: 20px; border-radius: 16px; }
.step-icon { font-size: 2rem; }
.step-text h3 { font-size: 1.1rem; color: var(--brand-cyan); margin-bottom: 4px; }
.step-text p { font-size: 0.9rem; color: var(--text-muted); }
.cta-center { text-align: center; margin-top: 32px; }

/* Grid Showcase */
.img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; }
.img-grid img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }

/* Download */
.download-section { text-align: center; background: radial-gradient(circle at center, rgba(0,229,255,0.15), transparent 70%); }
.download-section h2 { font-size: 2rem; margin-bottom: 12px; }
.download-actions { display: flex; flex-direction: column; gap: 16px; max-width: 300px; margin: 24px auto; }
.btn-store { background: #fff; color: #000; padding: 14px; border-radius: 8px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-store.android { background: #39FF14; color: #000; }
.download-note { font-size: 0.8rem; color: var(--text-muted); max-width: 400px; margin: 0 auto; line-height: 1.4; text-align: left; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 8px; }

/* FAQ */
.faq-item { background: var(--glass-bg); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 16px 16px; font-size: 0.95rem; color: var(--text-muted); }

/* Footer */
footer { padding: 40px 24px 20px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-logo img { height: 24px; border-radius: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--brand-cyan); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); line-height: 1.8; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--brand-cyan); }
.footer-about { margin-top: 16px; }
.footer-about summary { cursor: pointer; font-size: 0.8rem; color: var(--text-muted); list-style: none; display: inline-block; }
.footer-about summary::-webkit-details-marker { display: none; }
.footer-about .about-content { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-about .about-content a { color: var(--text-muted); font-size: 0.8rem; }
.footer-about .about-content a:hover { color: var(--brand-cyan); }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.9); border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan); padding: 12px 24px; border-radius: 30px;
  font-size: 0.9rem; z-index: 1000; opacity: 0; visibility: hidden;
  transition: all 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 3.5rem; }
  .hero-actions { flex-direction: row; }
  .steps { flex-direction: row; }
  .step { flex: 1; flex-direction: column; text-align: center; }
  .download-actions { flex-direction: row; justify-content: center; max-width: 100%; }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { display: flex; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .hero { flex-direction: row; text-align: left; justify-content: space-between; padding: 120px 10% 60px; }
  .hero-content { max-width: 50%; margin: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-mockup { margin: 0; width: 300px; height: 600px; }
  .img-grid { grid-template-columns: repeat(4, 1fr); }
  .section-title { font-size: 2.2rem; }
  .drama-card { flex: 0 0 180px; }
}