:root {
  --purple: #8A2BE2;
  --cyan: #00F0FF;
  --black: #0B0C10;
  --pink: #FF007F;
  --bg-card: #13141c;
  --text-main: #e0e0e0;
  --text-muted: #888;
}
* { 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(--black);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: #fff; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}
header.scrolled {
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: auto; }
.logo-area span { font-size: 1.2rem; font-weight: bold; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 0.95rem; color: var(--text-main); transition: color 0.3s; }
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.btn-nav {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff; padding: 8px 18px; border-radius: 20px;
  font-weight: bold; font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255, 0, 127, 0.8); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding-top: 80px; overflow: hidden;
}
.halftone-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(var(--purple) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.2; z-index: 0;
  animation: bgScroll 20s linear infinite;
}
@keyframes bgScroll { from { background-position: 0 0; } to { background-position: 0 100px; } }
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.hero-content { flex: 1; max-width: 600px; }
.hero h1 {
  font-size: 3.5rem; margin-bottom: 20px;
  background: linear-gradient(to right, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 20px; }
.btn-primary, .btn-secondary {
  padding: 14px 32px; border-radius: 30px; font-size: 1.1rem; font-weight: bold;
  text-align: center; cursor: pointer; transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff; box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
  border: none;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 0, 127, 0.8); }
.btn-secondary {
  background: transparent; color: var(--cyan); border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.btn-secondary:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }

.hero-images {
  flex: 1; position: relative; height: 500px;
  display: flex; justify-content: center; align-items: center;
}
.hero-img {
  position: absolute; width: 200px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8); border: 1px solid rgba(0, 240, 255, 0.3);
  transition: transform 0.3s ease-out;
}
.hero-img:nth-child(1) { transform: translate(-80px, -20px) rotate(-10deg); z-index: 4; }
.hero-img:nth-child(2) { transform: translate(80px, -30px) rotate(10deg); z-index: 3; }
.hero-img:nth-child(3) { transform: translate(-40px, 80px) rotate(-5deg); z-index: 2; }
.hero-img:nth-child(4) { transform: translate(60px, 90px) rotate(8deg); z-index: 1; }

/* Sections Global */
section { padding: 100px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; text-shadow: 0 0 10px var(--purple); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* Library */
.masonry-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.comic-card {
  background: var(--bg-card); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(138, 43, 226, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; cursor: pointer;
}
.comic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
  border-color: var(--cyan);
}
.comic-card img { width: 100%; height: 300px; object-fit: cover; }
.comic-info { padding: 15px; }
.comic-info h3 { font-size: 1.1rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(0, 240, 255, 0.1); color: var(--cyan); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.status { font-size: 0.8rem; color: var(--pink); margin-top: 10px; }
.comic-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 300px;
  background: rgba(11, 12, 16, 0.7); display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.3s;
}
.comic-card:hover .comic-overlay { opacity: 1; }
.btn-read-more {
  background: var(--cyan); color: var(--black); padding: 10px 20px;
  border-radius: 20px; font-weight: bold; box-shadow: 0 0 15px var(--cyan);
}

/* Features */
.feature-row {
  display: flex; align-items: center; gap: 50px;
  max-width: 1000px; margin: 0 auto 60px; padding: 0 20px;
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 2rem; margin-bottom: 15px; color: var(--cyan); }
.feature-text p { font-size: 1.1rem; color: var(--text-muted); }
.feature-mockup { flex: 1; display: flex; justify-content: center; }
.mockup-phone {
  width: 240px; height: 480px; border-radius: 30px; border: 4px solid #333;
  background: #000; overflow: hidden; position: relative;
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.4); transform: rotate(-5deg);
  transition: transform 0.3s;
}
.mockup-phone:hover { transform: rotate(0deg) scale(1.02); }
.mockup-phone img { width: 100%; height: 100%; object-fit: cover; }

/* App Download */
.app-download {
  background: linear-gradient(180deg, var(--black), #150b24);
  text-align: center;
}
.app-container {
  max-width: 1000px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(19, 20, 28, 0.8); border-radius: 30px;
  padding: 60px; border: 1px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 50px rgba(138, 43, 226, 0.1);
}
.app-images-left { display: flex; gap: -20px; position: relative; width: 300px; height: 400px; }
.app-mockup-1 {
  position: absolute; left: 0; top: 20px; width: 180px; height: 360px;
  border-radius: 20px; border: 2px solid var(--purple); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: rotate(-10deg); z-index: 2;
}
.app-mockup-2 {
  position: absolute; right: 0; top: 0; width: 180px; height: 360px;
  border-radius: 20px; border: 2px solid var(--cyan); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: rotate(5deg); z-index: 1;
}
.app-mockup-1 img, .app-mockup-2 img { width: 100%; height: 100%; object-fit: cover; }
.app-content-right { text-align: left; max-width: 400px; }
.app-content-right h2 { font-size: 2.2rem; margin-bottom: 20px; }
.app-content-right p { color: var(--text-muted); margin-bottom: 30px; }
.btn-download-group { display: flex; flex-direction: column; gap: 15px; }
.btn-dl {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 12px; font-weight: bold; font-size: 1.1rem;
  transition: all 0.3s; cursor: pointer;
}
.btn-ios { background: #fff; color: #000; }
.btn-ios:hover { background: #e0e0e0; box-shadow: 0 0 20px rgba(255,255,255,0.4); }
.btn-android { background: #3ddc84; color: #000; }
.btn-android:hover { background: #2ab86d; box-shadow: 0 0 20px rgba(61, 220, 132, 0.4); }

/* Reviews */
.reviews-wrapper { overflow: hidden; width: 100%; }
.reviews-track {
  display: flex; gap: 30px; width: max-content;
  animation: scroll 20s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card {
  background: var(--bg-card); padding: 25px; border-radius: 16px;
  width: 300px; border: 1px solid rgba(0, 240, 255, 0.2);
  transition: border-color 0.3s;
}
.review-card:hover { border-color: var(--pink); box-shadow: 0 0 15px rgba(255, 0, 127, 0.2); }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); display: flex; justify-content: center; align-items: center; font-weight: bold; }
.review-stars { color: #ffd700; margin-bottom: 10px; }
.review-text { font-size: 0.95rem; color: var(--text-main); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.faq-item { background: var(--bg-card); margin-bottom: 15px; border-radius: 12px; overflow: hidden; }
.faq-question {
  padding: 20px; font-weight: bold; font-size: 1.1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  border-left: 4px solid transparent; transition: all 0.3s;
}
.faq-question:hover { border-left-color: var(--purple); background: rgba(138, 43, 226, 0.05); }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted); font-size: 0.95rem;
}
.faq-item.active .faq-answer { padding: 0 20px 20px 20px; max-height: 200px; }
.faq-item.active .faq-question { border-left-color: var(--pink); color: var(--cyan); }

/* Footer */
footer {
  background: #050508; padding: 60px 20px 20px; border-top: 1px solid rgba(138, 43, 226, 0.2);
  position: relative;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-weight: bold; font-size: 1.2rem; color: #fff; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  font-size: 0.8rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 10px;
}
.footer-bottom a { color: var(--text-muted); text-decoration: underline; transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-images { display: none; }
  .hero-container { justify-content: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .app-container { flex-direction: column; text-align: center; padding: 40px 20px; }
  .app-images-left { margin-bottom: 40px; }
  .app-content-right { text-align: center; }
  .btn-download-group { align-items: center; }
  .btn-dl { width: 100%; max-width: 300px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .feature-row { flex-direction: column; text-align: center; gap: 30px; }
  .feature-row:nth-child(even) { flex-direction: column; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-desc { margin: 0 auto; }
}