/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #08080e;
  --bg-secondary: #0d0d15;
  --bg-card: #111119;
  --bg-card-hover: #16161f;
  --bg-glass: rgba(17, 17, 25, 0.85);

  /* Neon Cyan + Pink from banner */
  --neon-cyan: #00d4ff;
  --neon-pink: #e94ecc;
  --neon-blue: #4a7dff;
  --accent-gradient: linear-gradient(135deg, #0080aa 0%, #6e2a90 50%, #b52a7a 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #cc2d8a, #0099cc);
  --accent-glow-cyan: rgba(0, 212, 255, 0.25);
  --accent-glow-pink: rgba(233, 78, 204, 0.25);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a72;
  --text-accent: #7dd8f7;

  --border-color: rgba(0, 212, 255, 0.1);
  --border-hover: rgba(0, 212, 255, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a3040, #2a1540, #3a1530);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #00b8e6, #8b35b5, #d42d8a);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection {
  background: var(--neon-pink);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  border-radius: 10px;
}

/* ===== BACKGROUND ===== */
.bg-grid {
  display: none;
}

/* ===== CONTAINER ===== */
.container {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== BANNER (Neon Text) ===== */
.banner {
  width: 100%;
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 40px 20px 24px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.banner__logo {
  height: 140px;
  width: auto;
  object-fit: contain;
}

.banner__sub {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

/* ===== PROFILE BAR ===== */
.profile-bar {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search */
.profile-bar__search {
  flex: 1;
  position: relative;
}

.profile-bar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.profile-bar__search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.profile-bar__search input::placeholder {
  color: var(--text-muted);
}

.profile-bar__search input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 15px rgba(0, 212, 255, 0.05);
}

/* Social buttons */
.profile-bar__socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.social-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
}

/* ===== MAIN CONTENT ===== */
.main {
  position: relative;
  z-index: 1;
  padding: 32px 0 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Content Column */
.content-col__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.content-col__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Badges */
.badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge--store {
  background: rgba(0, 212, 255, 0.12);
  color: var(--neon-cyan);
}

.badge--more {
  background: rgba(233, 78, 204, 0.12);
  color: var(--neon-pink);
}

/* ===== PRODUCT ITEMS ===== */
.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.product-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.06);
}

.product-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-item__icon svg {
  width: 18px;
  height: 18px;
}

.product-item__icon--cyan {
  background: rgba(0, 212, 255, 0.12);
  color: var(--neon-cyan);
}

.product-item__icon--pink {
  background: rgba(233, 78, 204, 0.12);
  color: var(--neon-pink);
}

.product-item__icon--indigo {
  background: rgba(88, 101, 242, 0.12);
  color: #5865F2;
}

.product-item__info {
  flex: 1;
  min-width: 0;
}

.product-item__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-item__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Download button */
.product-item__download {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--neon-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.product-item__download svg {
  width: 16px;
  height: 16px;
}

.product-item__download:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--neon-cyan);
  transform: scale(1.08);
}

/* Expandable detail */
.product-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item.expanded + .product-detail {
  max-height: 2000px;
  overflow-y: auto;
}

.product-detail__inner {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.product-detail__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}

/* Image carousel */
.carousel {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}

.carousel__track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel__slide img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  display: block;
  background: rgba(0, 0, 0, 0.3);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-fast);
  z-index: 3;
}

.carousel__btn:hover {
  background: rgba(0,212,255,0.3);
}

.carousel__btn--prev { left: 6px; }
.carousel__btn--next { right: 6px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.carousel__dot.active {
  background: var(--neon-cyan);
  transform: scale(1.3);
}

.carousel--empty {
  display: none;
}

/* Empty slot */
.product-item--empty {
  border-style: dashed;
  border-color: var(--border-subtle);
  background: transparent;
  justify-content: center;
  cursor: default;
  padding: 20px 16px;
}

.product-item--empty:hover {
  transform: none;
  background: transparent;
  border-color: var(--border-color);
  box-shadow: none;
}

.product-item--empty span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product wrapper */
.product-wrapper {
  margin-bottom: 10px;
}

.product-wrapper .product-item {
  margin-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.product-wrapper .product-item:not(.expanded) {
  border-radius: var(--radius-sm);
}

.product-wrapper .product-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Search hidden state */
.product-wrapper.hidden,
.product-item.hidden {
  display: none;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  text-align: center;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.banner { animation: fadeInUp 0.6s ease-out both; }
.banner__title { animation: neonFlicker 4s ease-in-out infinite; }
.profile-bar { animation: fadeInUp 0.5s ease-out 0.15s both; }
.content-col:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.25s both; }
.content-col:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.35s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .banner { margin-top: 16px; padding: 32px 16px 20px; }
  .banner__title { font-size: 2.5rem; }
  .banner__sub { font-size: 0.72rem; letter-spacing: 1.5px; }

  .profile-bar__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .profile-bar__search {
    flex: 1;
    max-width: none;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .profile-bar__socials {
    width: 100%;
    order: 3;
  }

  .profile-bar__search {
    order: 2;
  }

  .social-btn {
    flex: 1;
    justify-content: center;
  }
}
