:root {
  --bg: #f4fbf7;
  --mint: #e0f5e9;
  --green: #00a854;
  --green-dark: #007a3d;
  --ink: #1a2e22;
  --ink-light: #4a6b56;
  --peach: #ff9e8e;
  --citrus: #ffb732;
  --currant: #6b4c7a;
  --blueberry: #4a7ebb;
  --dark-bg: #12241a;
  --dark-ink: #d1e8d9;
  --mono: "Courier New", Courier, monospace;
  --radius: 20px;
}
* { 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);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 900; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Top Progress */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--green); width: 0%; z-index: 9999;
  transition: width 0.1s;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(244, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--mint);
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; }
.logo-area img { height: 32px; width: auto; }
.nav-links { display: none; gap: 16px; font-size: 0.9rem; font-weight: bold; overflow-x: auto; white-space: nowrap; }
.nav-links a { padding: 4px 8px; border-radius: 8px; transition: background 0.2s; }
.nav-links a:hover { background: var(--mint); }
.nav-links a.active { background: var(--green); color: #fff; }
.btn-download {
  background: var(--green); color: #fff; padding: 10px 20px; border-radius: 30px;
  font-weight: bold; display: flex; align-items: center; gap: 8px; height: 44px;
  transition: transform 0.2s, background 0.2s;
}
.btn-download:hover { background: var(--green-dark); transform: translateY(-2px); }
.qr-popup {
  position: absolute; top: 100%; right: 24px; background: #fff; padding: 16px;
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); display: none; text-align: center;
}
.qr-popup img { width: 120px; height: 120px; margin-bottom: 8px; }
.btn-download:hover + .qr-popup, .qr-popup:hover { display: block; }

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

/* Hero */
.hero { display: flex; flex-direction: column; gap: 40px; }
.hero-text { flex: 1; }
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; color: var(--ink); }
.hero p { font-size: 1.1rem; color: var(--ink-light); margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-btns a { padding: 12px 24px; border-radius: 30px; font-weight: bold; text-align: center; }
.btn-primary { background: var(--green); color: #fff; }
.btn-secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.trust-info { font-size: 0.85rem; color: var(--ink-light); display: flex; gap: 16px; font-family: var(--mono); }
.hero-visual { flex: 2; display: flex; flex-direction: column; gap: 24px; }
.cup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.cup-card { position: relative; text-align: center; transition: transform 0.3s; }
.cup-card:hover { transform: translateY(-5px) rotate(2deg); }
.cup-body { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.cup-body img { width: 100%; height: 100%; object-fit: cover; }
.cup-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.9); padding: 8px; font-size: 0.8rem; font-weight: bold; text-align: left; }
.cup-label .tag { font-size: 0.7rem; color: var(--ink-light); font-weight: normal; display: block; }
.cup-hook { font-size: 0.75rem; color: var(--ink-light); margin-top: 4px; }

/* Sections */
section { padding: 60px 0; }
section h2 { font-size: 2rem; margin-bottom: 32px; text-align: center; }
.section-desc { text-align: center; color: var(--ink-light); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* AI vs Comic */
.ai-comic-wrap { display: flex; gap: 20px; align-items: center; justify-content: center; }
.ai-comic-card { flex: 1; max-width: 300px; text-align: center; }
.ai-comic-card .cup-body { margin-bottom: 16px; }
.ai-comic-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ai-comic-card ul { list-style: none; padding: 0; font-size: 0.9rem; color: var(--ink-light); }
.ai-comic-card li { margin-bottom: 6px; }
.switch { width: 50px; height: 28px; background: var(--green); border-radius: 14px; position: relative; cursor: pointer; margin: 0 auto; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform 0.3s; }
.switch.active::after { transform: translateX(22px); }

/* Dark Section */
.dark-section { background: var(--dark-bg); color: var(--dark-ink); }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .section-desc { color: var(--dark-ink); }
.magic-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.magic-card { width: 200px; text-align: center; }
.magic-card .cup-body { margin-bottom: 12px; }
.magic-date { font-family: var(--mono); font-size: 0.8rem; background: #fff; color: var(--dark-bg); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.magic-desc { font-size: 0.85rem; color: var(--dark-ink); margin-top: 8px; }
.btn-outline { border: 1px solid var(--green); color: var(--green); padding: 10px 24px; border-radius: 30px; background: transparent; display: inline-block; margin-top: 20px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* Genres */
.genres-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.genre-box { padding: 24px; border-radius: var(--radius); transition: transform 0.3s; }
.genre-box:hover { transform: scale(1.02); }
.genre-box h3 { font-size: 1.5rem; margin-bottom: 8px; }
.genre-box p { font-size: 0.9rem; margin-bottom: 16px; }
.genre-cups { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.genre-cups .cup-body { min-width: 100px; }
.genre-cups .cup-body img { border-radius: 8px; }

/* Rhythm */
.rhythm-wrap { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.waveform { display: flex; gap: 4px; align-items: flex-end; height: 100px; width: 100%; max-width: 600px; }
.bar { flex: 1; background: var(--green); border-radius: 4px 4px 0 0; transition: height 0.3s; }
.bar:nth-child(1) { height: 20%; } .bar:nth-child(2) { height: 40%; } .bar:nth-child(3) { height: 60%; } .bar:nth-child(4) { height: 80%; } .bar:nth-child(5) { height: 50%; } .bar:nth-child(6) { height: 100%; } .bar:nth-child(7) { height: 70%; } .bar:nth-child(8) { height: 30%; }
.rhythm-stats { font-size: 2rem; font-family: var(--mono); font-weight: bold; color: var(--green-dark); text-align: center; }

/* Theater */
.theater-wrap { display: flex; flex-direction: column; gap: 32px; }
.calendar { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center; }
.calendar-date { font-size: 3rem; font-family: var(--mono); font-weight: bold; color: var(--green); }
.theater-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }

/* Ranking */
.ranking-wrap { display: flex; gap: 24px; flex-wrap: wrap; }
.ranking-col { flex: 1; min-width: 300px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.rank-list { list-style: none; }
.rank-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mint); }
.rank-num { font-family: var(--mono); font-size: 1.2rem; font-weight: bold; color: var(--ink-light); width: 24px; }
.rank-list li:nth-child(1) .rank-num { color: var(--citrus); font-size: 1.5rem; }
.rank-list li:nth-child(2) .rank-num { color: #c0c0c0; font-size: 1.4rem; }
.rank-list li:nth-child(3) .rank-num { color: #cd7f32; font-size: 1.3rem; }
.rank-cover { width: 40px; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 0.95rem; }
.rank-info p { font-size: 0.75rem; color: var(--ink-light); }

/* Testimonials */
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.receipt { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-family: var(--mono); border-bottom: 4px dashed var(--mint); }

/* Interaction */
.mix-bar { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.flavor-btn { padding: 10px 20px; border: 2px solid var(--green); border-radius: 20px; background: transparent; cursor: pointer; font-weight: bold; transition: all 0.2s; }
.flavor-btn.active { background: var(--green); color: #fff; }

/* FAQ */
.faq-wrap { display: flex; gap: 32px; flex-direction: column; }
.faq-list { flex: 1; }
.faq-item { border-bottom: 1px solid var(--mint); padding: 16px 0; }
.faq-q { font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { display: none; margin-top: 10px; color: var(--ink-light); font-size: 0.9rem; }
.faq-item.open .faq-a { display: block; }

/* Footer */
footer { background: #fff; padding: 40px 24px; border-top: 2px solid var(--mint); font-size: 0.8rem; color: var(--ink-light); }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }

/* Responsive */
@media (min-width: 768px) {
  .hero { flex-direction: row; }
  .hero h1 { font-size: 3rem; }
  .genres-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-comic-wrap { flex-direction: row; }
  .theater-wrap { flex-direction: row; }
  .theater-schedule { flex: 2; grid-template-columns: repeat(3, 1fr); }
  .calendar { flex: 1; }
  .faq-wrap { flex-direction: row; }
  .faq-left { flex: 1; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}