/* ── Hero ── */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 0; letter-spacing: -0.02em; }

.hero-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 24px;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-link:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.hero-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Product Showcase ── */

.showcase { padding: 80px 0; }

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-item.reversed { direction: rtl; }
.showcase-item.reversed > * { direction: ltr; }

.showcase-text { display: flex; flex-direction: column; gap: 12px; }

.showcase-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.showcase-text h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.showcase-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 440px;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: gap var(--transition), opacity var(--transition);
}

.showcase-link:hover { gap: 10px; opacity: 0.8; }

/* Browser Frame */
.browser-frame {
  background: rgba(12, 12, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.browser-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
}

.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.r { background: #ff5f57; }
.browser-dot.y { background: #febc2e; }
.browser-dot.g { background: #28c840; }

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.browser-badge-live {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.3);
  border-radius: 100px;
  padding: 2px 10px;
  animation: live-pulse 2s ease-in-out infinite;
}

.browser-body { padding: 24px; }

#frame-genres .browser-body { height: 190px; overflow: hidden; }
#frame-streams .browser-body { height: 290px; overflow: hidden; }
#frame-profile .browser-body { height: 230px; overflow: hidden; }

/* Genre Pills */
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-pill {
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 100px;
  font-size: 0.74rem;
  color: var(--color-primary);
  font-weight: 500;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  cursor: default;
}

.genre-pill.visible {
  opacity: 1;
  transform: scale(1);
}

.genre-pill:hover {
  background: rgba(0, 229, 255, 0.12);
}

/* Stream Cards */
.stream-cards { display: flex; flex-direction: column; gap: 8px; }

.stream-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}

.stream-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.stream-card:hover { border-color: var(--color-border-accent); }

.sc-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.sc-name { font-weight: 600; font-size: 0.85rem; flex: 1; }

.sc-genre {
  font-size: 0.68rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-muted);
}

.sc-viewers {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  min-width: 44px;
  text-align: right;
}

/* DJ Profile Card */
.dj-profile { text-align: center; }

.dj-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dj-badge-discovered {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.dj-badge-live {
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.dj-badge-live .sc-live-dot { width: 6px; height: 6px; }

.dj-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dj-genres {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.dj-genre-tag {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 500;
}

.dj-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dj-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
}

.dj-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-heading);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.dj-stat-lbl {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Flow Pipeline ── */

.flow-section {
  padding: 80px 0;
  background: var(--color-bg-surface);
}

.flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.flow-node.fl-visible {
  opacity: 1;
  transform: scale(1);
}

.flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.8);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.flow-node.fl-active .flow-icon {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25), 0 0 32px rgba(0, 229, 255, 0.1);
}

.flow-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.6s ease;
}

.flow-node.fl-active .flow-icon svg { stroke: var(--color-primary); }

.flow-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: opacity 0.6s ease, color 0.6s ease;
  text-align: center;
  max-width: 100px;
}

.flow-node.fl-active .flow-label { opacity: 1; color: var(--color-primary); }

.flow-line {
  width: clamp(60px, 12vw, 140px);
  height: 1.5px;
  background: var(--color-border);
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.flow-line.fl-visible { opacity: 1; }

.flow-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flow-line.fl-filled .flow-line-fill { width: 100%; }

.flow-output {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(0, 229, 255, 0);
  transition: color 0.8s ease;
}

.flow-output.fl-show { color: rgba(0, 229, 255, 0.5); }

.flow-output .fl-check { color: rgba(152, 195, 121, 0.7); }

/* ── Key Numbers ── */

.numbers-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 60px 0;
  flex-wrap: wrap;
}

.num-item {
  text-align: center;
  padding: 0 clamp(20px, 4vw, 48px);
}

.num-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  margin-bottom: 4px;
}

.num-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.num-sep {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Tech Stack ── */

.tech-section { padding: 80px 0; }

.tech-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.tech-tag:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-2px);
}

.tech-tag svg {
  width: 20px; height: 20px;
  fill: var(--color-primary);
}

/* ── Search & Filter Demo ── */

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.search-input:focus {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.search-input:focus ~ .search-icon { stroke: rgba(239, 68, 68, 0.5); }

.search-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-filter-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.search-filter-btn:hover,
.search-filter-btn.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.search-live-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ef4444;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.filter-panel {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  display: none;
}

.filter-panel.open { display: block; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-row:last-child { margin-bottom: 0; }

.filter-row-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  width: 100%;
  margin-bottom: 4px;
}

.filter-chip {
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.filter-chip.selected {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.search-dropdown {
  border-radius: 12px;
  background: rgba(17, 17, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.search-dropdown.visible {
  opacity: 1;
  transform: translateY(0);
}

.sd-group { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.sd-group:last-child { border-bottom: none; }

.sd-group-title {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}

.sd-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: default;
}

.sd-result:hover { background: rgba(255, 255, 255, 0.04); }

.sd-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.sd-info { flex: 1; min-width: 0; }
.sd-name { font-size: 0.8rem; font-weight: 600; }
.sd-meta { font-size: 0.65rem; color: var(--color-text-muted); }

.sd-badge {
  font-size: 0.55rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sd-badge-featured { background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.2); color: #eab308; }
.sd-badge-club { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); color: #a855f7; }
.sd-badge-verified { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.2); color: #22d3ee; }
.sd-badge-live { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.sd-badge-twitch { background: rgba(145, 70, 255, 0.1); border: 1px solid rgba(145, 70, 255, 0.2); color: #9146ff; }

/* Priority Explainer */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.priority-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #frame-genres .browser-body { height: 160px; }
  #frame-streams .browser-body { height: 260px; }
  #frame-profile .browser-body { height: 260px; }
  .dj-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About Block ── */

.about-block {
  padding: 80px 0;
  background: var(--color-bg-surface);
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .showcase-item,
  .showcase-item.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .showcase-item.reversed > * { direction: ltr; }

  .showcase-text { order: 1; }
  .browser-frame { order: 2; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 100px 0 50px; }

  .dj-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .flow-pipeline { flex-wrap: wrap; gap: 12px; }
  .flow-line { width: 40px; }

  .numbers-row { gap: 20px; }
  .num-sep { display: none; }
  .num-item { padding: 10px 20px; }

  .stream-card { flex-wrap: wrap; gap: 8px; }
  .sc-viewers { min-width: auto; text-align: left; }
}

@media (max-width: 480px) {
  .hero-title-row { gap: 10px; }
  .flow-node { gap: 6px; }
  .flow-icon { width: 40px; height: 40px; }
  .flow-icon svg { width: 18px; height: 18px; }
  .flow-label { font-size: 0.58rem; max-width: 72px; }
  .flow-line { width: 28px; }
}
