/* Lo-Fi midnight radio theme */
:root {
  --purple-deep: #1a0f2e;
  --purple-mid: #4a2d7a;
  --orange-sunset: #ff8c5a;
  --orange-glow: #ffb380;
  --text-primary: #f5eef8;
  --text-muted: #b8a8c8;
  --card-bg: rgba(30, 18, 52, 0.85);
  --border-glow: rgba(255, 140, 90, 0.45);
}

html {
  scroll-behavior: smooth;
}

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

.lofi-bg {
  background: linear-gradient(135deg, #1a0f2e 0%, #3d2066 40%, #7a3d5c 75%, #ff8c5a 100%);
  position: relative;
}

.lofi-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  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)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.waveform-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  opacity: 0.25;
  z-index: 0;
}

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

.pixel-title {
  font-family: "Noto Sans SC", monospace;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 0 #4a2d7a, 4px 4px 0 rgba(255, 140, 90, 0.4);
}

.nav-fixed {
  backdrop-filter: blur(12px);
  background: rgba(26, 15, 46, 0.92);
  border-bottom: 1px solid var(--border-glow);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ff8c5a, #ffb380, #ff8c5a);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 0 20px rgba(255, 140, 90, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 140, 90, 0.7), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  animation: sweep 4s ease-in-out infinite;
}

.btn-outline {
  border: 2px solid var(--orange-sunset);
  color: var(--orange-glow);
  background: transparent;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: rgba(255, 140, 90, 0.15);
  box-shadow: 0 0 15px rgba(255, 140, 90, 0.3);
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes sweep {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 140, 90, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 140, 90, 0.2);
}

.info-box {
  background: var(--card-bg);
  border: 1px solid rgba(180, 140, 200, 0.25);
}

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

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

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 140, 90, 0.2);
  border: 1px solid var(--orange-sunset);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 140, 90, 0.4);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.accordion-item {
  border: 1px solid rgba(255, 140, 90, 0.2);
  background: var(--card-bg);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  border: none;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-panel.open {
  grid-template-rows: 1fr;
}

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

.accordion-panel.open .accordion-panel-inner {
  padding-bottom: 1rem;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid rgba(100, 180, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
}

.review-card.visible {
  animation: fadeUp 0.5s ease forwards;
}

.steam-bar {
  background: linear-gradient(90deg, #4c6b22, #66c0f4);
  height: 8px;
  border-radius: 4px;
}

.stars {
  color: #66c0f4;
}

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

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

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

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table th,
.modal-table td {
  border: 1px solid rgba(255, 140, 90, 0.2);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.modal-table th {
  background: rgba(74, 45, 122, 0.5);
}

.tab-btn.active {
  background: rgba(255, 140, 90, 0.25);
  border-color: var(--orange-sunset);
  color: var(--orange-glow);
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(26, 15, 46, 0.7), rgba(26, 15, 46, 0.85));
}

.trust-badge {
  background: rgba(102, 192, 244, 0.15);
  border: 1px solid rgba(102, 192, 244, 0.4);
  color: #a4d7f5;
}

.stat-icon {
  color: var(--orange-sunset);
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-sunset), transparent);
}

@media (max-width: 640px) {
  .pixel-title {
    letter-spacing: 0.08em;
  }
}
