:root {
  --purple-deep: #1a0f2e;
  --purple-mid: #2d1b4e;
  --purple-light: #4a2d7a;
  --orange-sunset: #ff6b35;
  --orange-glow: #f7931e;
  --orange-soft: #ffb347;
  --text-primary: #f5f0ff;
  --text-muted: #b8a9d4;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--purple-deep);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
}

.pixel-title {
  font-family: 'Press Start 2P', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 var(--orange-sunset);
}

.vhs-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: vhs-flicker 0.15s infinite alternate;
}

@keyframes vhs-flicker {
  0% { opacity: 0.03; }
  100% { opacity: 0.06; }
}

.waveform-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  opacity: 0.35;
  overflow: hidden;
}

.waveform-bg canvas {
  width: 100%;
  height: 100%;
}

.gradient-hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 40%, #3d2060 70%, var(--orange-glow) 100%);
}

.gradient-section {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-mid) 50%, var(--purple-deep) 100%);
}

.nav-fixed {
  backdrop-filter: blur(12px);
  background: rgba(26, 15, 46, 0.88);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.btn-download {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--orange-sunset), var(--orange-glow), var(--orange-sunset));
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.45);
}

.btn-download::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: sweep 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sweep {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.btn-secondary {
  border: 2px solid var(--orange-sunset);
  color: var(--orange-soft);
  background: transparent;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 107, 53, 0.15);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.info-card {
  background: rgba(45, 27, 78, 0.6);
  border: 1px solid rgba(255, 107, 53, 0.15);
  backdrop-filter: blur(8px);
}

.feature-card {
  background: rgba(45, 27, 78, 0.5);
  border: 1px solid rgba(183, 169, 212, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

.gallery-item {
  transition: transform 0.3s, filter 0.3s;
}

.gallery-item:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 5, 20, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid var(--orange-sunset);
  border-radius: 4px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 107, 53, 0.3);
  border: 1px solid var(--orange-sunset);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

.lightbox-nav:hover {
  background: rgba(255, 107, 53, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

.accordion-item {
  border: 1px solid rgba(255, 107, 53, 0.2);
  background: rgba(45, 27, 78, 0.4);
}

.accordion-trigger {
  cursor: pointer;
  transition: background 0.2s;
  gap: 1rem;
}

.accordion-trigger > span:first-child {
  flex: 1;
  min-width: 0;
}

.accordion-trigger:hover {
  background: rgba(255, 107, 53, 0.08);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-inner {
  padding: 0 1.25rem 1.25rem;
}

.accordion-icon {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  line-height: 1;
  transition: transform 0.2s;
}

.review-card {
  background: rgba(30, 18, 55, 0.8);
  border: 1px solid rgba(183, 169, 212, 0.15);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--orange-sunset);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange-glow);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(10, 5, 20, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-box {
  background: var(--purple-mid);
  border: 1px solid rgba(255, 107, 53, 0.3);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
}

.tab-btn.active {
  background: var(--orange-sunset);
  color: white;
}

.stars {
  color: var(--orange-glow);
}
