:root {
  --bg-dark: #0f1016;
  --bg-card: #181a22;
  --text-main: #f0f0f0;
  --text-muted: #9a9a9a;
  --accent: #6a4cff;
  --accent-hover: #8368ff;
  --gradient-marquee: linear-gradient(90deg, #ff4c4c, #ffb84c, #4cffb8, #4c8aff, #ff4cff);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* For floating window */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 16, 22, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  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;
}

.nav-links {
  display: none;
  gap: 20px;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  padding: 10px 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, #a89aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.image-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: none; /* Firefox */
}
.image-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 70%;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

.marquee-content {
  display: inline-block;
  animation: marquee 15s linear infinite;
  font-weight: bold;
  font-size: 1.1rem;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 100%; /* Start offscreen */
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- Sections --- */
section {
  padding: 50px 20px;
}

.bg-alt { background: #14151c; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #fff;
}

.grid-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(106, 76, 255, 0.2);
  color: #a89aff;
}

.date-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FAQ / Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-a {
  padding: 0 20px 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-a {
  display: block;
}

/* --- Reviews --- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.review-item {
  display: flex;
  gap: 15px;
  background: rgba(255,255,255,0.03);
  padding: 15px;
  border-radius: 8px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.review-content {
  flex: 1;
}

.review-name {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Split Layout --- */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.split-img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
}

.split-text {
  flex: 1;
}

.split-text ul {
  list-style: none;
  padding: 0;
}

.split-text li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.split-text li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

/* --- Timeline --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-dark);
}

.timeline-time {
  font-weight: bold;
  color: #a89aff;
  margin-bottom: 4px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

footer p {
  margin-bottom: 10px;
}

/* --- Floating Window --- */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 26, 34, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(5px);
  width: 90%;
  max-width: 400px;
}

.floating-download img {
  height: 30px;
}

.floating-download .info {
  flex: 1;
  overflow: hidden;
}

.floating-download .title {
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-download .desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-download .btn-small {
  padding: 6px 15px;
  font-size: 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-nav-toggle { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .carousel-item { flex: 0 0 40%; }
  .grid-items { grid-template-columns: repeat(2, 1fr); }
  .split-layout { flex-direction: row; }
  .split-layout.reverse { flex-direction: row-reverse; }
  .floating-download { bottom: 30px; }
}

@media (min-width: 1024px) {
  .carousel-item { flex: 0 0 30%; }
  .grid-items { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3rem; }
}

/* --- Copy Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.modal-box p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  text-align: center;
}

.modal-box .btn {
  width: 100%;
}