:root {
  --banana: #FFD600;
  --banana-dark: #E6C200;
  --cream: #FFF9E6;
  --ink: #111111;
  --signal: #FF3B30;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-title: "Impact", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, .brand-title {
  font-family: var(--font-title);
  letter-spacing: 1px;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}
h1 span { color: var(--signal); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 12px;}
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-white { color: var(--cream); }
.text-yellow { color: var(--banana); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.bg-yellow { background-color: var(--banana); }
.bg-black { background-color: var(--ink); color: var(--cream); }
.bg-cream { background-color: var(--cream); }
.bg-peel { background-color: #E6C200; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background-color: var(--banana); color: var(--ink);
  border: var(--border); border-radius: 8px;
  font-weight: 900; font-size: 1.1rem;
  padding: 12px 24px; min-height: 44px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-black { background-color: var(--ink); color: var(--banana); border-color: var(--banana); box-shadow: var(--shadow-sm);}
.btn-black:hover { box-shadow: 6px 6px 0 var(--banana); }
.btn-outline { background-color: transparent; color: var(--ink); }
.btn-large { font-size: 1.3rem; padding: 16px 36px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--cream);
  border-bottom: var(--border);
  padding: 10px 0;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.5rem; }
.brand img { height: 32px; width: auto; }
.nav-links {
  display: none;
  gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex: 1; margin: 0 20px; justify-content: center;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-tag {
  background: var(--banana); border: 2px solid var(--ink); border-radius: 20px 20px 4px 4px;
  padding: 4px 12px; font-size: 0.9rem; font-weight: bold; white-space: nowrap;
  transition: transform 0.2s;
}
.nav-tag:hover, .nav-tag.active { transform: translateY(4px) rotateX(20deg); background: var(--banana-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; position: relative; }
.header-download { padding: 8px 20px; font-size: 1rem; display: none;}
.qr-popover {
  position: absolute; top: 120%; right: 0;
  background: var(--cream); border: var(--border); border-radius: 8px; box-shadow: var(--shadow);
  padding: 12px; display: none; z-index: 101; text-align: center;
}
.header-actions:hover .qr-popover { display: block; }
.qr-box { width: 100px; height: 100px; background: #fff; border: 2px dashed var(--ink); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #666; }
.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; width: 32px; height: 32px; position: relative; }
.mobile-menu-btn span { display: block; width: 100%; height: 3px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; inset: 0; background: var(--banana); z-index: 200;
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-btn { font-size: 2rem; background: none; border: none; cursor: pointer; font-weight: bold; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.mobile-nav-list a { font-size: 1.2rem; font-weight: bold; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }

/* Hero */
#hero { padding: 40px 0; position: relative; overflow: hidden; border-bottom: var(--border); }
.hero-bg-wall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.3; display: flex; justify-content: center; gap: 10px;}
.hero-bg-col { display: flex; flex-direction: column; gap: 10px; animation: scrollDown 20s linear infinite; }
.hero-bg-col:nth-child(even) { animation: scrollUp 25s linear infinite; }
@keyframes scrollDown { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollUp { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
.hero-bg-col img { width: 180px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.hero-content { position: relative; z-index: 10; display: grid; gap: 32px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-sub { font-size: 1.1rem; font-weight: bold; margin-bottom: 24px; max-width: 400px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.trust-line { font-size: 0.85rem; font-weight: bold; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-line span { background: rgba(255,255,255,0.5); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--ink); }
.hero-side { display: flex; flex-direction: column; gap: 24px; }
.hero-cards { display: flex; gap: 16px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.hero-cards::-webkit-scrollbar { display: none; }
.hero-card-wrap { flex: 0 0 auto; width: 200px; transform: translateY(10px); }
.hero-card-wrap:nth-child(1) { transform: translateY(20px); }
.hero-card-wrap:nth-child(2) { transform: translateY(0); }
.hero-card-wrap:nth-child(3) { transform: translateY(10px); }
.hero-card-wrap:nth-child(4) { transform: translateY(30px); }

/* Flip Card Component */
.flip-card { perspective: 1000px; position: relative; border-radius: 12px; width: 100%; aspect-ratio: 3/4; cursor: pointer; }
.flip-inner { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; position: relative; }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateX(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; border: var(--border); overflow: hidden; display: flex; flex-direction: column;
}
.flip-front { background: var(--banana); z-index: 2; justify-content: space-between; padding: 12px; }
.flip-back { background: var(--ink); transform: rotateX(180deg); z-index: 1; }
.flip-back img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.flip-back-text { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; padding: 30px 12px 12px; font-weight: bold; font-size: 1.1rem; }
.peel-title { font-weight: 900; font-size: 1.2rem; line-height: 1.2; margin-bottom: 4px; }
.peel-meta { font-size: 0.8rem; display: flex; justify-content: space-between; margin-bottom: 8px; }
.peel-tag { background: var(--ink); color: var(--banana); padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }
.peel-surface { font-size: 0.9rem; font-weight: bold; border-top: 2px dashed rgba(0,0,0,0.2); padding-top: 8px; color: #333;}

/* Rank List */
.hero-rank { background: var(--cream); border: var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.rank-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.rank-tab { font-size: 0.9rem; font-weight: bold; cursor: pointer; padding: 4px 12px; border-radius: 20px; border: 2px solid transparent; background: #eee; }
.rank-tab.active { background: var(--signal); color: #fff; border-color: var(--ink); }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 6px; border-bottom: 1px solid #ddd; }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-weight: 900; font-size: 1.2rem; color: var(--signal); width: 20px; }
.rank-img { width: 40px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; border: 1px solid var(--ink); }
.rank-info { flex: 1; }
.rank-title { font-weight: bold; font-size: 0.95rem; }
.rank-desc { font-size: 0.75rem; color: #666; }
.rank-heat { font-size: 0.8rem; font-weight: bold; color: var(--signal); }

/* Quick Bar */
.quick-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; border-top: 2px solid rgba(0,0,0,0.1); padding-top: 20px; position: relative; z-index: 10;}
.genre-pill { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 4px 12px; font-size: 0.9rem; font-weight: bold; }
.stats-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; font-weight: 900; font-size: 1.1rem; position: relative; z-index: 10;}
.stats-row span { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: normal;}
.stats-row strong { font-size: 1.5rem; color: var(--signal); -webkit-text-stroke: 1px var(--ink); }

/* Generic Section */
section { padding: 60px 0; border-bottom: var(--border); position: relative; }
.section-tag { display: inline-block; background: var(--banana); border: 2px solid var(--ink); border-radius: 20px 20px 4px 4px; padding: 4px 16px; font-size: 0.9rem; font-weight: bold; margin-bottom: 16px; }
.hook-line { text-align: center; font-size: 1.2rem; font-weight: bold; margin-top: 40px; border-top: 2px dashed var(--ink); padding-top: 20px; display: inline-block; }

/* Rank Section (List) */
#rank { background: var(--cream); }
.arc-container { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px;}
.arc-card { width: 100%; max-width: 600px; display: flex; background: var(--banana); border: var(--border); border-radius: 80px; padding: 12px 24px; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.arc-card:nth-child(2) { max-width: 500px; background: #fced8a; }
.arc-card:nth-child(3) { max-width: 400px; background: #fceaa0; }
.arc-card img { width: 60px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); }
.arc-info { flex: 1; }
.arc-title { font-weight: 900; font-size: 1.1rem; }
.arc-meta { font-size: 0.8rem; }

/* Genre Section */
#genre .tags-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 24px; }
.genre-tag { flex: 0 0 auto; background: var(--banana); border: var(--border); padding: 8px 16px; font-weight: bold; border-radius: 4px 4px 16px 16px; cursor: pointer; }
.genre-tag.active { transform: translateY(4px); background: var(--banana-dark); border-bottom-color: transparent;}
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

/* Playlist Section */
#playlist { background: var(--cream); }
.stack-wrap { position: relative; max-width: 800px; margin: 0 auto; }
.stack-card { background: var(--banana); border: var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); position: absolute; top: 0; left: 0; right: 0; transition: transform 0.3s; }
.stack-card:nth-child(1) { position: relative; z-index: 3; background: var(--banana); }
.stack-card:nth-child(2) { z-index: 2; transform: scale(0.95) translateY(20px); background: #fced8a; }
.stack-card:nth-child(3) { z-index: 1; transform: scale(0.9) translateY(40px); background: #fceaa0; }
.stack-covers { display: flex; gap: 12px; overflow-x: auto; padding-top: 16px; }
.stack-covers img { width: 100px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }

/* Wall Section */
#wall { background: var(--ink); color: var(--cream); }
.wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .wall-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .wall-grid { grid-template-columns: repeat(6, 1fr); } }

/* Update Section */
#update { background: var(--cream); }
.update-row { display: flex; gap: 16px; overflow-x: auto; padding: 20px 0; }
.update-card { flex: 0 0 200px; background: #fff; border: var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.banana-bar { width: 100%; height: 12px; background: #eee; border-radius: 6px; border: 2px solid var(--ink); margin: 12px 0; position: relative; overflow: hidden; }
.banana-fill { height: 100%; background: var(--banana); border-right: 2px solid var(--ink); }
.banana-fill.ripe { background: var(--banana); background-image: radial-gradient(circle, var(--ink) 1px, transparent 1px); background-size: 4px 4px; }
.countdown { font-family: monospace; font-size: 1.2rem; font-weight: bold; color: var(--signal); }
.today-badge { background: var(--signal); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; }

/* Rhythm Section */
#rhythm { background: var(--cream); }
.routes { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.route-box { background: #fff; border: var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.route-svg { width: 100%; height: 120px; overflow: visible; }
.route-path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.path-long { stroke: #ddd; }
.path-short { stroke: var(--signal); }
.route-label { display: flex; justify-content: space-between; font-weight: bold; margin-top: 12px; }

/* Steps Section */
#steps { background: var(--banana); }
.steps-wrap { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.step-item { display: flex; flex-direction: column; gap: 16px; background: #fff; border: var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.step-num { font-size: 2rem; font-weight: 900; color: var(--signal); -webkit-text-stroke: 1px var(--ink); }
.step-phone { width: 120px; aspect-ratio: 3/4; background: var(--cream); border: 4px solid var(--ink); border-radius: 16px; margin: 0 auto; overflow: hidden; position: relative;}
.step-phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; background: linear-gradient(transparent 50%, rgba(0,0,0,0.7)); }
.phone-btn { background: var(--banana); border: 2px solid var(--ink); border-radius: 4px; height: 20px; margin-top: 4px; }

/* Reviews Section */
#reviews { background: var(--cream); }
.review-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.review-peel { background: var(--banana); border: var(--border); border-radius: 20px 4px 20px 4px; padding: 16px; width: 100%; max-width: 300px; transform: rotate(-2deg); box-shadow: var(--shadow-sm); }
.review-peel:nth-child(even) { transform: rotate(2deg) translateY(10px); border-radius: 4px 20px 4px 20px; }
.review-name { font-weight: 900; font-size: 0.9rem; margin-bottom: 8px; }
.review-text { font-size: 1rem; font-weight: bold; }

/* FAQ Section */
#faq { background: var(--cream); }
.faq-layout { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.faq-side h2 { writing-mode: vertical-rl; text-orientation: upright; font-size: 3rem; margin-bottom: 0; }
.faq-list { flex: 1; }
details { background: #fff; border: var(--border); border-radius: 8px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
summary { padding: 16px; font-weight: bold; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; font-weight: 900; }
details[open] summary::after { content: '-'; }
.faq-content { padding: 0 16px 16px; font-size: 0.95rem; }

/* Final Section */
#final { background: var(--ink); color: var(--cream); text-align: center; position: relative; overflow: hidden; padding: 100px 0; border-bottom: none;}
.final-banana { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; z-index: 0; pointer-events: none; }
.final-content { position: relative; z-index: 10; }
.final-qr { width: 120px; height: 120px; background: #fff; border: 4px solid var(--banana); border-radius: 12px; margin: 24px auto; display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: bold; }
.final-covers { display: flex; justify-content: center; gap: 8px; margin-top: 40px; overflow: hidden; }
.final-covers img { width: 80px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 2px solid var(--cream); }

/* Footer */
footer { background: var(--cream); padding: 40px 0 20px; font-size: 0.8rem; color: #666; text-align: center; border-top: var(--border);}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.footer-links a { color: var(--ink); text-decoration: underline; }
.footer-info { margin-bottom: 8px; }

/* Progress indicator (Desktop) */
.progress-banana { display: none; position: fixed; right: 40px; top: 50%; transform: translateY(-50%); width: 40px; height: 300px; z-index: 90; }
.sleep-peel { width: 100%; height: 100%; background: var(--banana); border: var(--border); border-radius: 20px 20px 40px 40px; position: relative; overflow: hidden; }
.peel-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--ink); opacity: 0.8; transform-origin: top; }

/* Mobile floating bar */
.float-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--cream); border-top: var(--border); padding: 12px; z-index: 99; justify-content: space-between; align-items: center; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); }
.float-bar .btn { flex: 1; margin: 0 4px; }

/* Quotes formatting style override for the specific webp names provided */
.card-img { width: 100%; object-fit: cover; aspect-ratio: 3/4; }

/* Desktop adjustments */
@media (min-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-wrap { flex-direction: row; }
  .step-item { flex: 1; }
  .routes { flex-direction: row; }
  .route-box { flex: 1; }
  .faq-layout { flex-direction: row; }
  .header-download { display: inline-flex; }
  .mobile-menu-btn { display: none; }
  .float-bar { display: none; }
  .nav-links { display: flex; }
  .final-covers img { width: 120px; }
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 4fr 8fr; }
  .progress-banana { display: block; }
  .wall-grid { grid-template-columns: repeat(6, 1fr); }
  .arc-container { flex-direction: row; justify-content: center; gap: 0; }
  .arc-card { flex-direction: column; border-radius: 12px; width: 200px; padding: 12px; }
  .arc-card:nth-child(1) { transform: translateY(-20px); z-index: 3; }
  .arc-card:nth-child(2) { transform: translateY(20px); z-index: 2; margin-left: -20px;}
  .arc-card:nth-child(3) { transform: translateY(-10px); z-index: 1; margin-left: -20px;}
  .arc-card img { width: 100%; aspect-ratio: 3/4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .flip-card:hover .flip-inner { transform: none; }
}