:root {
  --bg-warm: #FBF7EF;
  --bg-cream: #F4EDE0;
  --brand-yellow: #F5C542;
  --brand-gold: #E8A317;
  --brand-green: #7FB069;
  --cocoa: #8B5E3C;
  --text-dark: #5C5348;
  --text-light: #8F867A;
  --surface: #FFFDF8;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow-soft: 0 12px 32px rgba(139, 94, 60, 0.08);
  --shadow-glow: 0 8px 24px rgba(245, 197, 66, 0.25);
}

* { 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-warm);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(245, 197, 66, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(127, 176, 105, 0.05) 0%, transparent 40%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.2; }

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

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease;
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(139, 94, 60, 0.05);
  border-bottom: 1px solid rgba(139, 94, 60, 0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 32px; width: auto; object-fit: contain; }
.logo-text { font-size: 20px; font-weight: 900; color: var(--cocoa); letter-spacing: 1px; }
.logo-bean { width: 8px; height: 8px; background: var(--brand-yellow); border-radius: 50%; box-shadow: 0 0 8px var(--brand-yellow); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--text-dark); transition: color 0.2s; }
.main-nav a:hover { color: var(--brand-gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  display: flex; align-items: center; background: var(--surface);
  border: 1px solid rgba(139, 94, 60, 0.1); border-radius: 20px; padding: 8px 16px;
}
.search-box input { border: none; background: transparent; outline: none; font-size: 14px; color: var(--text-dark); width: 120px; }
.search-box input::placeholder { color: var(--text-light); }

.btn-download {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-gold));
  color: #fff; font-weight: bold; padding: 10px 24px; border-radius: 30px;
  font-size: 15px; border: none; cursor: pointer; box-shadow: var(--shadow-glow);
  transition: transform 0.2s;
}
.btn-download:hover { transform: translateY(-2px); }

/* Dropdown */
.download-dropdown {
  position: absolute; top: 80px; right: 24px; width: 320px;
  background: var(--surface); border-radius: var(--radius-md); padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid rgba(139, 94, 60, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.download-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dl-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(139,94,60,0.08); }
.dl-item:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
.dl-title { font-weight: 900; font-size: 16px; color: var(--cocoa); margin-bottom: 4px; }
.dl-desc { font-size: 13px; color: var(--text-light); }
.dl-bonus { color: var(--brand-gold); font-size: 13px; font-weight: bold; margin-top: 8px; text-align: center; }

/* Hero */
.hero {
  padding: 160px 0 80px; min-height: 100vh;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.hero-text .tag {
  display: inline-block; background: rgba(245, 197, 66, 0.15); color: var(--brand-gold);
  padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 24px;
}
.hero-text h1 { font-size: 64px; color: var(--cocoa); margin-bottom: 24px; letter-spacing: -1px; }
.hero-text h1 span {
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero-text p { font-size: 18px; color: var(--text-dark); margin-bottom: 40px; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; }
.btn-primary, .btn-secondary {
  padding: 16px 36px; border-radius: 30px; font-size: 16px; font-weight: bold;
  transition: all 0.3s; cursor: pointer; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-gold)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 197, 66, 0.4); }
.btn-secondary { background: var(--surface); color: var(--cocoa); border: 2px solid rgba(139, 94, 60, 0.1); box-shadow: var(--shadow-soft); }
.btn-secondary:hover { border-color: var(--brand-yellow); }
.hero-stats { display: flex; gap: 40px; }
.stat-item h4 { font-size: 28px; color: var(--cocoa); margin-bottom: 4px; }
.stat-item p { font-size: 14px; color: var(--text-light); font-weight: 500; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.pod-capsule {
  width: 400px; height: 600px; background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(245,197,66,0.2));
  border-radius: 200px 200px 60px 60px; border: 2px solid rgba(245, 197, 66, 0.3);
  box-shadow: 0 0 60px rgba(245, 197, 66, 0.15), inset 0 0 40px rgba(255,255,255,0.5);
  position: relative; display: flex; justify-content: center; align-items: center; padding: 30px;
}
.hero-phone {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: rotate(-3deg); transition: transform 0.5s;
}
.pod-capsule:hover .hero-phone { transform: rotate(0) scale(1.02); }
.hero-phone img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute; background: rgba(255, 253, 248, 0.9); backdrop-filter: blur(10px);
  padding: 12px 20px; border-radius: 20px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.8); font-size: 14px; font-weight: bold; color: var(--cocoa);
  animation: float 4s ease-in-out infinite;
}
.fc-1 { top: 10%; left: -40px; animation-delay: 0s; }
.fc-2 { bottom: 20%; right: -30px; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee-section {
  background: var(--brand-yellow); color: #fff; padding: 16px 0; overflow: hidden; white-space: nowrap;
}
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; font-weight: bold; font-size: 15px; }
.marquee-content span { margin: 0 40px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; color: var(--cocoa); margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 16px; }

/* Emotion Jar */
.emotion-jars { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; flex-wrap: wrap; }
.jar-btn {
  padding: 12px 28px; border-radius: 40px; background: var(--surface); border: 2px solid transparent;
  font-weight: bold; color: var(--text-dark); cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-soft);
}
.jar-btn:hover { border-color: var(--brand-yellow); transform: translateY(-2px); }

.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.drama-card {
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: all 0.3s; cursor: pointer;
}
.drama-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(139, 94, 60, 0.12); }
.cover-img { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.drama-card:hover .cover-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; background: rgba(245, 197, 66, 0.9);
  color: #fff; font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 10px;
}
.card-info { padding: 16px; }
.card-info h3 { font-size: 18px; color: var(--cocoa); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { font-size: 13px; color: var(--text-light); }

/* Rankings */
.rankings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rank-list { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); }
.rank-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(139,94,60,0.06); transition: all 0.3s; }
.rank-item:hover { transform: translateX(6px); background: rgba(245, 197, 66, 0.05); border-radius: 12px; padding-left: 8px; }
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 32px; height: 32px; display: flex; justify-content: center; align-items: center;
  border-radius: 50%; font-weight: 900; font-size: 16px; color: #fff;
}
.rank-1 { background: #F5C542; box-shadow: 0 4px 10px rgba(245, 197, 66, 0.4); }
.rank-2 { background: #C0C0C0; }
.rank-3 { background: #CD7F32; }
.rank-other { background: transparent; color: var(--text-light); }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 16px; margin-bottom: 4px; }
.rank-info p { font-size: 12px; color: var(--text-light); }
.rank-heat { font-size: 14px; font-weight: bold; color: var(--brand-gold); }

/* Exclusives */
.scroll-container { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container .drama-card { min-width: 280px; }

/* AI Section */
.ai-section { background: var(--bg-cream); border-radius: var(--radius-lg); padding: 60px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-text h3 { font-size: 32px; color: var(--cocoa); margin-bottom: 24px; }
.ai-text p { font-size: 16px; color: var(--text-dark); margin-bottom: 24px; }
.ai-features { display: flex; flex-direction: column; gap: 16px; }
.ai-feature-item {
  background: var(--surface); padding: 20px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-soft);
}
.ai-feature-item h4 { font-size: 16px; color: var(--brand-green); }
.ai-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech-card {
  background: var(--surface); padding: 32px 24px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); text-align: center; transition: all 0.3s;
}
.tech-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(139, 94, 60, 0.1); }
.tech-icon { font-size: 32px; margin-bottom: 16px; color: var(--brand-yellow); }
.tech-card h3 { font-size: 18px; color: var(--cocoa); margin-bottom: 8px; }
.tech-card p { font-size: 14px; color: var(--text-light); }

/* VIP */
.vip-section {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-gold));
  border-radius: var(--radius-lg); padding: 80px 60px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.vip-section h2 { font-size: 40px; margin-bottom: 16px; }
.vip-section p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform-card {
  background: var(--surface); border: 1px solid rgba(139,94,60,0.1); padding: 40px 24px;
  border-radius: var(--radius-md); text-align: center;
}
.platform-card h3 { color: var(--cocoa); margin-bottom: 8px; }
.platform-card p { font-size: 13px; color: var(--text-light); }

/* Download CTA */
.download-cta { background: var(--surface); border-radius: var(--radius-lg); padding: 80px 60px; text-align: center; box-shadow: var(--shadow-soft); }
.download-cta h2 { font-size: 48px; color: var(--cocoa); margin-bottom: 40px; }
.dl-buttons { display: flex; justify-content: center; gap: 24px; margin-bottom: 40px; }
.dl-hint { font-size: 14px; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--bg-cream); padding: 80px 0 40px; border-top: 1px solid rgba(139,94,60,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand h2 { font-size: 24px; color: var(--cocoa); margin-bottom: 16px; }
.footer-brand p { color: var(--text-light); font-size: 14px; max-width: 300px; }
.footer-col h4 { color: var(--cocoa); margin-bottom: 20px; font-size: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-light); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-gold); }
.copyright { text-align: center; color: var(--text-light); font-size: 13px; padding-top: 20px; border-top: 1px solid rgba(139,94,60,0.1); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 48px; }
  .hero-inner { gap: 40px; }
  .hero-visual { transform: scale(0.9); }
  .main-nav { display: none; }
  .grid-cards, .tech-grid, .platforms { grid-template-columns: repeat(2, 1fr); }
  .rankings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 40px; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .search-box { display: none; }
  .grid-cards, .tech-grid, .platforms { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-img { display: none; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-dropdown { right: 50%; transform: translate(50%, -10px) scale(0.98); width: 90%; }
  .download-dropdown.active { transform: translate(50%, 0) scale(1); }
  .vip-section, .download-cta { padding: 40px 20px; }
  .vip-section h2, .download-cta h2 { font-size: 32px; }
  .dl-buttons { flex-direction: column; }
}