:root {
  --bg-dark: #07070C;
  --bg-purple: #120A16;
  --red-main: #FF3B6B;
  --red-light: #FF6B8A;
  --white-flesh: #FFF4E6;
  --green-leaf: #00E6A8;
  --purple-holo: #8A6CFF;
  --text-gray: #A7ACBB;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-purple) 100%);
  color: var(--white-flesh);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: 1px;}
.brand img { height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--text-gray); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--white-flesh); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.search-box {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 8px 16px; color: var(--white-flesh); font-size: 14px;
  width: 180px; transition: border-color 0.3s;
}
.search-box:focus { border-color: var(--red-main); outline: none; }
.search-box::placeholder { color: var(--text-gray); }
.btn-download {
  background: linear-gradient(90deg, var(--red-main), var(--red-light));
  color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 59, 107, 0.3); transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 59, 107, 0.5); }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 15px;
  background: rgba(18, 10, 22, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  width: 280px; padding: 20px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: left;
}
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-item { margin-bottom: 15px; }
.dropdown-item h4 { color: var(--white-flesh); font-size: 15px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px;}
.dropdown-item p { color: var(--text-gray); font-size: 12px; }
.dropdown-item a { display: block; color: var(--green-leaf); font-size: 13px; margin-top: 5px; }
.dropdown-bonus { margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--glass-border); color: var(--red-light); font-size: 13px; text-align: center; font-weight: bold; }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255, 59, 107, 0.05) 0%, transparent 60%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content { max-width: 600px; }
.hero-tag {
  display: inline-block; background: rgba(0, 230, 168, 0.1); color: var(--green-leaf);
  padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 24px;
  border: 1px solid rgba(0, 230, 168, 0.3);
}
.hero h1 {
  font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;
}
.text-gradient {
  background: linear-gradient(90deg, var(--red-main), var(--red-light), var(--white-flesh));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p.subtitle { font-size: 18px; color: var(--text-gray); margin-bottom: 40px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 50px; }
.btn-primary, .btn-secondary {
  padding: 14px 34px; border-radius: 30px; font-size: 16px; font-weight: bold;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--red-main), var(--red-light)); color: #fff;
  box-shadow: 0 5px 20px rgba(255, 59, 107, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 59, 107, 0.6); }
.btn-secondary {
  background: var(--glass-bg); color: var(--white-flesh); border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.hero-stats { display: flex; gap: 40px; }
.stat-item h3 { font-size: 28px; font-weight: 900; color: var(--white-flesh); }
.stat-item p { font-size: 14px; color: var(--text-gray); }

/* Hero Visual */
.hero-visual { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }
.core-capsule {
  width: 320px; height: 600px; border-radius: 40px; position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 59, 107, 0.1), rgba(0, 230, 168, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 0 50px rgba(255, 59, 107, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px); padding: 12px; overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.core-capsule:hover { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); }
.phone-mockup { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: #000; }
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }
.energy-ring {
  position: absolute; width: 450px; height: 450px; border-radius: 50%; border: 2px solid rgba(255, 59, 107, 0.3);
  animation: spin 10s linear infinite; pointer-events: none; z-index: 1;
}
.energy-ring:nth-child(2) { width: 550px; height: 550px; border: 1px dashed rgba(0, 230, 168, 0.2); animation-direction: reverse; animation-duration: 15s; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.float-card {
  position: absolute; background: rgba(18, 10, 22, 0.8); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px 16px; z-index: 3;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5); animation: float 4s ease-in-out infinite;
}
.float-card.card-1 { top: 15%; left: -10%; }
.float-card.card-2 { bottom: 20%; right: -15%; animation-delay: 2s; }
.float-card p { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.float-card h4 { font-size: 16px; color: var(--green-leaf); font-weight: bold; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Marquee */
.marquee-section {
  background: rgba(255, 59, 107, 0.05); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  padding: 15px 0; overflow: hidden; white-space: nowrap; margin-top: -50px; position: relative; z-index: 10;
}
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-content span { margin: 0 40px; font-size: 14px; color: var(--text-gray); }
.marquee-content span b { color: var(--red-main); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Common */
.section { padding: 100px 0; }
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.section-header p { color: var(--text-gray); font-size: 16px; }

/* Emotion Shop */
.emotion-list { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.emotion-pill {
  padding: 10px 24px; border-radius: 30px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.3s;
}
.emotion-pill.active { background: linear-gradient(90deg, var(--red-main), var(--red-light)); border-color: transparent; color: #fff; box-shadow: 0 4px 15px rgba(255,59,107,0.3); }
.emotion-pill:hover:not(.active) { background: rgba(255, 255, 255, 0.1); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.drama-card {
  background: #0f0a14; border-radius: var(--radius-md); overflow: hidden; position: relative;
  border: 1px solid var(--glass-border); transition: all 0.3s ease; cursor: pointer;
}
.drama-card:hover { transform: translateY(-8px); border-color: var(--red-main); box-shadow: 0 10px 30px rgba(255,59,107,0.15); }
.drama-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.drama-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.drama-card:hover .drama-cover img { transform: scale(1.05); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); opacity: 0;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,59,107,0.9);
  display: flex; justify-content: center; align-items: center; transition: all 0.3s; z-index: 2;
}
.play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 4px; }
.drama-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--red-main); color: #fff;
  font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 10px; z-index: 2;
}
.premium-badge { background: linear-gradient(90deg, #FFD700, #FFA500); color: #000; }
.drama-info { padding: 16px; }
.drama-info h3 { font-size: 16px; font-weight: bold; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-info p { font-size: 13px; color: var(--text-gray); display: flex; justify-content: space-between; }

/* Rank List */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rank-item {
  display: flex; align-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 15px; gap: 15px; transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden;
}
.rank-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--red-main); transform: scaleY(0); transition: transform 0.3s; transform-origin: center;
}
.rank-item:hover::before { transform: scaleY(1); }
.rank-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(5px); }
.rank-num {
  font-size: 24px; font-weight: 900; font-style: italic; width: 40px; text-align: center;
  background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rank-num.top-1 { background: linear-gradient(180deg, #FFD700, #B8860B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 32px;}
.rank-num.top-2 { background: linear-gradient(180deg, #E0E0E0, #808080); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 28px;}
.rank-num.top-3 { background: linear-gradient(180deg, #CD7F32, #8B4513); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 26px;}
.rank-cover { width: 60px; height: 80px; border-radius: 8px; overflow: hidden; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 16px; margin-bottom: 4px; }
.rank-info p { font-size: 12px; color: var(--text-gray); }
.rank-heat { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.rank-heat-bar { height: 100%; background: linear-gradient(90deg, var(--red-main), var(--red-light)); border-radius: 2px; }

/* Scroll Row */
.scroll-row {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; padding-top: 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .drama-card { min-width: 240px; flex: 0 0 auto; }

/* AI Recommendation */
.ai-panel {
  background: linear-gradient(135deg, rgba(138, 108, 255, 0.1), rgba(0, 230, 168, 0.05));
  border: 1px solid rgba(138, 108, 255, 0.3); border-radius: var(--radius-lg); padding: 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center;
}
.ai-info h3 { font-size: 24px; font-weight: bold; margin-bottom: 15px; color: var(--white-flesh); }
.ai-info p { color: var(--text-gray); margin-bottom: 24px; font-size: 15px; }
.ai-match { font-size: 40px; font-weight: 900; color: var(--green-leaf); margin-bottom: 20px; }
.ai-progress { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.ai-progress-bar { height: 100%; background: var(--green-leaf); width: 92%; border-radius: 4px; }
.ai-predict { background: rgba(0,0,0,0.3); padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.ai-predict p { font-size: 13px; margin-bottom: 5px; color: var(--text-gray); }
.ai-predict h4 { font-size: 16px; color: var(--red-light); }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 30px; transition: all 0.3s;
}
.tech-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); border-color: var(--green-leaf); }
.tech-icon { font-size: 32px; margin-bottom: 16px; }
.tech-card h3 { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.tech-card p { font-size: 14px; color: var(--text-gray); }

/* VIP Block */
.vip-block {
  background: linear-gradient(135deg, var(--red-main), #B8003A); border-radius: var(--radius-lg);
  padding: 60px 40px; display: flex; justify-content: space-between; align-items: center;
  color: #fff; box-shadow: 0 20px 40px rgba(255, 59, 107, 0.2);
}
.vip-content h2 { font-size: 36px; font-weight: 900; margin-bottom: 15px; }
.vip-content p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; max-width: 500px; }
.vip-btn {
  background: #fff; color: var(--red-main); padding: 14px 40px; border-radius: 30px; font-weight: bold; font-size: 16px;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.vip-btn:hover { transform: scale(1.05); }

/* Platforms */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 30px 20px; text-align: center; transition: all 0.3s;
}
.platform-card:hover { border-color: var(--red-main); background: rgba(255,59,107,0.05); }
.platform-icon { font-size: 40px; margin-bottom: 16px; }
.platform-card h3 { font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.platform-card p { font-size: 13px; color: var(--text-gray); }

/* Download Section */
.download-section {
  text-align: center; background: rgba(18, 10, 22, 0.6); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 60px 20px; position: relative; overflow: hidden;
}
.download-section::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,59,107,0.15) 0%, transparent 70%);
  z-index: 0;
}
.download-section * { position: relative; z-index: 1; }
.download-section h2 { font-size: 40px; font-weight: 900; margin-bottom: 20px; }
.download-section p { color: var(--text-gray); margin-bottom: 40px; }
.store-btns { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap;}
.store-btn {
  display: flex; align-items: center; gap: 10px; background: #fff; color: #000;
  padding: 12px 24px; border-radius: 12px; font-weight: bold; transition: transform 0.2s;
}
.store-btn:hover { transform: translateY(-2px); }
.qr-code {
  width: 120px; height: 120px; background: #fff; border-radius: 12px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; padding: 10px;
}
.qr-code img { width: 100%; height: 100%; object-fit: contain; }

/* Footer */
.footer {
  background: #050508; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px; font-size: 14px; color: var(--text-gray);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--white-flesh); font-size: 20px; margin-bottom: 15px; font-weight: bold; }
.footer-brand p { line-height: 1.8; margin-bottom: 15px; }
.footer-links h4 { color: var(--white-flesh); font-size: 16px; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--white-flesh); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
  font-size: 12px; color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--text-gray); }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vip-block { flex-direction: column; text-align: center; gap: 30px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .search-box { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .ai-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .store-btns { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero h1 { font-size: 36px; }
  .section { padding: 60px 0; }
}

/* Scroll Animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }