:root {
  --bg-dark: #0c0a16;
  --bg-light: #151026;
  --text-main: #faf6ff;
  --text-muted: #a89fbe;
  --rainbow: linear-gradient(90deg, #ff5a6e, #ff9147, #f7cc55, #3fd39a, #4fb0ff, #a878ff);
  --red: #ff5a6e;
  --orange: #ff9147;
  --yellow: #f7cc55;
  --green: #3fd39a;
  --blue: #4fb0ff;
  --purple: #a878ff;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.pride-bar {
  height: 6px;
  background: var(--rainbow);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
header {
  position: fixed;
  top: 6px;
  left: 0;
  width: 100%;
  background: rgba(12, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 999;
  transition: background 0.3s;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}
.brand img { height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.search-box a { display: flex; align-items: center; }
.search-box a::before { content: "🔍"; margin-right: 4px; font-size: 0.8rem; }
.btn-download {
  background: var(--rainbow);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  transition: opacity 0.2s;
  display: inline-block;
  text-align: center;
}
.btn-download:hover { opacity: 0.9; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}
main { margin-top: 70px; }
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}
.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtext {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}
.fade-in {
  opacity: 1;
  transform: translateY(20px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}
.hero-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  font-size: 1rem;
}
.hero-stats span {
  font-weight: bold;
  color: var(--yellow);
  font-size: 1.2rem;
  margin-right: 6px;
}
.hero-cover {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.cover-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 10px;
  border-radius: 20px;
  background: var(--rainbow);
  box-shadow: 0 0 40px rgba(168, 120, 255, 0.3);
}
.cover-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.floating-tag {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: rgba(12, 10, 22, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.floating-tag::before {
  content: "♂";
  color: var(--blue);
  margin-right: 6px;
  font-weight: bold;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.topic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
}
.topic-card:nth-child(1)::before { background: var(--red); }
.topic-card:nth-child(2)::before { background: var(--orange); }
.topic-card:nth-child(3)::before { background: var(--green); }
.topic-card:nth-child(4)::before { background: var(--blue); }
.topic-icon {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
  display: block;
}
.topic-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.topic-card p { font-size: 0.9rem; color: var(--text-muted); }
.list-glass {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.glass-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 16px;
  gap: 20px;
  transition: background 0.3s;
}
.glass-item:hover { background: rgba(255, 255, 255, 0.08); }
.glass-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.glass-item:nth-child(1) .glass-icon { background: rgba(255, 90, 110, 0.2); color: var(--red); }
.glass-item:nth-child(2) .glass-icon { background: rgba(255, 145, 71, 0.2); color: var(--orange); }
.glass-item:nth-child(3) .glass-icon { background: rgba(63, 211, 154, 0.2); color: var(--green); }
.glass-item:nth-child(4) .glass-icon { background: rgba(79, 176, 255, 0.2); color: var(--blue); }
.glass-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.glass-content p { font-size: 0.9rem; color: var(--text-muted); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 16px;
  gap: 16px;
}
.rank-num {
  font-size: 1.5rem;
  font-weight: bold;
  width: 30px;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num { color: var(--red); }
.rank-item:nth-child(2) .rank-num { color: var(--orange); }
.rank-item:nth-child(3) .rank-num { color: var(--yellow); }
.rank-item:nth-child(4) .rank-num { color: var(--text-muted); }
.rank-item:nth-child(5) .rank-num { color: var(--text-muted); }
.rank-img {
  width: 48px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.rank-info { flex: 1; }
.rank-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 4px; }
.rank-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}
.rank-score {
  color: var(--yellow);
  font-weight: bold;
  font-size: 1.1rem;
}
.library-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
}
.chip.active, .chip:hover {
  background: var(--rainbow);
  color: #fff;
  border-color: transparent;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.lib-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.lib-img-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
}
.lib-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lib-info { padding: 12px; }
.lib-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.phone-demo {
  display: flex;
  align-items: center;
  gap: 40px;
}
.demo-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 12px;
}
.demo-feature h4 { font-size: 1.1rem; margin-bottom: 4px; }
.demo-feature p { font-size: 0.9rem; color: var(--text-muted); }
.phone-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-frame {
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 36px;
  border: 8px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.phone-slider {
  width: 100%; height: 100%;
  position: relative;
}
.phone-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.phone-slide.active { opacity: 1; }
.phone-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.swipe-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.dot.active { background: #fff; width: 12px; border-radius: 3px; }
.reviews-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: start;
}
.rating-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}
.rating-score {
  font-size: 4rem;
  font-weight: bold;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.rating-stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 10px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 16px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rainbow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: bold;
}
.review-name { font-size: 0.85rem; color: var(--text-muted); }
.review-text { font-size: 0.95rem; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 16px;
}
.faq-q {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.faq-q::before {
  content: "Q";
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
}
.faq-a { font-size: 0.95rem; color: var(--text-muted); }
.download-section {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 24px;
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), var(--rainbow);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin: 40px 20px;
}
.download-section h2 { font-size: 2.2rem; margin-bottom: 20px; }
.download-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-large {
  font-size: 1.2rem;
  padding: 16px 48px;
  border-radius: 30px;
}
footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--text-main); }
.copyright-info { margin-top: 20px; }
.copyright-info a { color: rgba(255,255,255,0.6); text-decoration: underline; }

@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-container { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .phone-demo { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .hero-cover { max-width: 100%; }
  .cover-container { max-width: 280px; }
}