:root {
  --bg: #FFF5F7;
  --purple: #8B31FF;
  --pink: #FF7EAA;
  --yellow: #FFD700;
  --text: #2D1B36;
  --text-light: #6B5575;
  --card-bg: #FFFFFF;
  --shadow: 0 12px 36px rgba(255, 126, 170, 0.15);
  --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);
  background-image: 
    linear-gradient(rgba(139, 49, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 49, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* Typography Gradient */
.gradient-text {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}
.logo-area img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFF0F4;
  color: var(--purple);
  font-weight: bold;
}
.btn-download-small {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139, 49, 255, 0.2);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 126, 170, 0.2) 0%, transparent 70%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 49, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(139, 49, 255, 0.1);
  color: var(--purple);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 span {
  display: block;
  color: var(--pink);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(139, 49, 255, 0.3);
}
.btn-outline {
  background: #fff;
  border: 2px solid var(--purple);
  color: var(--purple);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
}
.hero-tags {
  display: flex;
  gap: 12px;
}
.hero-tags span {
  background: #fff;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.css-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(139, 49, 255, 0.2);
  animation: spin 20s linear infinite;
}
.ring-1 { width: 400px; height: 400px; }
.ring-2 { width: 320px; height: 320px; border-color: rgba(255, 126, 170, 0.3); animation-direction: reverse; animation-duration: 15s; }
.ring-3 { width: 240px; height: 240px; animation-duration: 25s; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.hero-cards {
  display: flex;
  position: relative;
  z-index: 10;
  transform: perspective(1000px) rotateY(-15deg);
}
.hero-card-img {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border: 2px solid #fff;
  transition: transform 0.3s;
  margin-left: -40px;
}
.hero-card-img:nth-child(1) { transform: rotate(-5deg) translateY(20px); z-index: 1; margin-left: 0; }
.hero-card-img:nth-child(2) { transform: translateY(-10px) scale(1.1); z-index: 2; }
.hero-card-img:nth-child(3) { transform: rotate(5deg) translateY(20px); z-index: 1; }
.star {
  position: absolute;
  color: var(--yellow);
  font-size: 24px;
  animation: blink 2s infinite alternate;
}
.star-1 { top: 40px; right: 60px; }
.star-2 { bottom: 80px; left: 40px; font-size: 16px; animation-delay: 1s; }
@keyframes blink { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

/* Section Common */
section {
  padding: 80px 0;
}
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.sec-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-label {
  color: var(--pink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}
.sec-header h2 {
  font-size: 32px;
  font-weight: 800;
}
.sec-more {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}
.sec-more:hover { color: var(--purple); }

/* Grid 3-col */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.score {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--yellow);
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 20px;
  padding-left: 4px;
}
.card-info { padding: 16px; }
.card-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card-info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Ranking Section */
.ranking-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.focus-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.focus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focus-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.focus-card-info h3 { font-size: 24px; margin-bottom: 8px; }
.rank-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 24px;
  box-shadow: var(--shadow);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(139, 49, 255, 0.2);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 40px;
}
.rank-thumb {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}
.rank-info { flex: 1; }
.rank-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rank-link { font-size: 13px; color: var(--pink); font-weight: 600; }

/* Category Grid */
.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff, #FFF0F4);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(255, 126, 170, 0.08);
  transition: transform 0.3s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
}
.cat-info h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.cat-info p { font-size: 13px; color: var(--text-light); }
.cat-arrow { margin-left: auto; color: var(--purple); font-size: 18px; transition: transform 0.3s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* Marquee */
.marquee-wrap {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 32px;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span { margin: 0 40px; font-weight: 600; font-size: 15px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.topic-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.topic-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.topic-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.topic-title { font-weight: 700; font-size: 16px; color: var(--purple); }
.topic-desc { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* App Download */
.app-section {
  padding: 0 24px;
}
.app-banner {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: 32px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(var(--pink) 1px, transparent 1px), radial-gradient(var(--yellow) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}
.app-content {
  max-width: 500px;
  color: #fff;
  position: relative;
  z-index: 2;
}
.app-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.app-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.app-content p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }
.app-btns { display: flex; gap: 16px; margin-bottom: 24px; }
.btn-app-white {
  background: #fff;
  color: var(--purple);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 700;
}
.btn-app-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 700;
}
.app-features { display: flex; gap: 16px; font-size: 13px; opacity: 0.8; }
.app-visual {
  position: relative;
  width: 300px;
  height: 360px;
  z-index: 2;
}
.poster-frame {
  position: absolute;
  width: 160px;
  height: 280px;
  border-radius: 12px;
  border: 4px solid rgba(255,255,255,0.3);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; }
.pf-1 { top: 20px; left: 0; transform: rotate(-8deg); z-index: 1; }
.pf-2 { bottom: 0; right: 0; transform: rotate(6deg); z-index: 2; }

/* Features */
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(255, 126, 170, 0.08);
  overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.faq-icon { color: var(--purple); font-size: 20px; font-weight: 300; transition: transform 0.3s; }
.faq-a {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-light);
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Footer */
footer {
  border-top: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  padding: 60px 0 24px;
  margin-top: 40px;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}
.footer-logo img { height: 28px; }
.footer-logo p { font-size: 14px; font-weight: 400; color: var(--text-light); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-light); }
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding-top: 24px;
  border-top: 1px solid #f0e6ea;
}
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(255, 126, 170, 0.4);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-visual { margin-top: 40px; height: 400px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ranking-grid { grid-template-columns: 1fr; }
  .app-banner { flex-direction: column; padding: 40px 24px; text-align: center; }
  .app-btns { justify-content: center; }
  .app-features { justify-content: center; }
  .app-visual { margin-top: 40px; width: 260px; height: 300px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-cards { transform: scale(0.8); }
  .ring-1 { width: 300px; height: 300px; }
  .ring-2 { width: 240px; height: 240px; }
  .ring-3 { width: 180px; height: 180px; }
  .header-inner { height: 60px; }
  .btn-download-small { display: none; }
  .app-banner { padding: 32px 20px; }
  .app-content h2 { font-size: 28px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}