/* ===================================================
   OBS Stream Music Viewer — Showcase Site Stylesheet
   Palette: #000 | #0a0f1e | #0d1b3e | #fff | #c8d6f5 | #4fc3f7
   =================================================== */

/* ── Google Font ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────── */
:root {
  --black: #000000;
  --navy-deep: #070c1a;
  --navy: #0d1b3e;
  --navy-light: #162040;
  --white: #ffffff;
  --grey-light: #c8d6f5;
  --grey-mid: #8a9bbf;
  --blue-light: #4fc3f7;
  --blue-mid: #29b6f6;
  --blue-accent: #0ea5e9;
  --purple: #7c3aed;
  --glass-bg: rgba(13, 27, 62, 0.55);
  --glass-border: rgba(79, 195, 247, 0.18);
  --radius: 14px;
  --font: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font-family: var(--font);
}

/* ── Canvas Background ───────────────────────────── */
#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  z-index: 1;
}

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7, 12, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(79, 195, 247, 0.10);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  color: var(--white);
}

.nav-logo-text span {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-light);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: rgba(79, 195, 247, 0.10);
  color: var(--blue-light);
}

.nav-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-links .btn-download {
  background: var(--blue-accent);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-links .btn-download:hover {
  background: var(--blue-mid);
  color: var(--white) !important;
}

/* ── Hero ─────────────────────────────────────────── */
#hero {
  padding: 140px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.30);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--blue-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Interactive Hover Button ────────────────────── */
.ihb {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: box-shadow var(--transition);
  gap: 0;
}

.ihb .ihb-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s;
  white-space: nowrap;
}

.ihb .ihb-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(40px);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s;
  white-space: nowrap;
}

.ihb .ihb-hover svg {
  width: 18px;
  height: 18px;
}

.ihb .ihb-blob {
  position: absolute;
  left: 18%;
  top: 38%;
  width: 10px;
  height: 10px;
  border-radius: 8px;
  transition: all 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.ihb:hover .ihb-text {
  transform: translateX(-40px);
  opacity: 0;
}

.ihb:hover .ihb-hover {
  opacity: 1;
  transform: translateX(0);
}

.ihb:hover .ihb-blob {
  left: -5%;
  top: -5%;
  width: 115%;
  height: 115%;
  border-radius: 999px;
}

.ihb-primary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--blue-accent);
}

.ihb-primary .ihb-blob {
  background: var(--blue-accent);
}

.ihb-primary:hover {
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.4);
}

.ihb-ghost {
  background: transparent;
  color: var(--grey-light);
  border: 1.5px solid rgba(200, 214, 245, 0.22);
}

.ihb-ghost .ihb-blob {
  background: rgba(200, 214, 245, 0.15);
}

.ihb-ghost:hover .ihb-hover {
  color: var(--white);
}

/* ── Hero Widget Preview ─────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.obs-frame {
  background: rgba(10, 14, 26, 0.82);
  border: 1.5px solid rgba(79, 195, 247, 0.15);
  border-radius: 16px;
  padding: 18px 18px 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(20px);
}

.obs-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.obs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.obs-dot.red {
  background: #ff5f57;
}

.obs-dot.yellow {
  background: #ffbd2e;
}

.obs-dot.green {
  background: #28c940;
}

.obs-label {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--grey-mid);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.widget-preview {
  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.wp-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}

.wp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.wp-info {
  flex: 1;
  min-width: 0;
}

.wp-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.wp-artist {
  font-size: 0.82rem;
  color: #a0a0a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.wp-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.wp-bar-fill {
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-light));
  border-radius: 4px;
  animation: progress-anim 8s linear infinite;
}

@keyframes progress-anim {
  0% {
    width: 10%;
  }

  100% {
    width: 95%;
  }
}

.obs-source-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--grey-mid);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c940;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ── Section Headings ────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── How It Works ────────────────────────────────── */
#how-it-works {
  padding: 110px 0;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.flow-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.flow-step:hover .flow-icon {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(79, 195, 247, 0.15);
}

.flow-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-light);
  line-height: 1.4;
}

.flow-arrow {
  font-size: 1.4rem;
  color: var(--blue-accent);
  opacity: 0.5;
  margin: 0 4px;
  padding-bottom: 20px;
  flex-shrink: 0;
}

/* ── Features ────────────────────────────────────── */
#features {
  padding: 110px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

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

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(79, 195, 247, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--grey-light);
  line-height: 1.7;
}

/* ── Download CTA ────────────────────────────────── */
#download {
  padding: 110px 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.download-card {
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(22, 32, 64, 0.85));
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
}

.download-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(40, 201, 64, 0.14);
  border: 1px solid rgba(40, 201, 64, 0.30);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #28c940;
  margin-bottom: 24px;
}

.download-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.download-subtitle {
  color: var(--grey-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-info {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--grey-mid);
}

.download-info span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(79, 195, 247, 0.08);
  padding: 40px 24px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--grey-mid);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--grey-mid);
  opacity: 0.7;
}

/* ── Scroll-reveal animation delays ─────────────── */
.flow-step:nth-child(1) {
  transition-delay: 0.05s;
}

.flow-step:nth-child(3) {
  transition-delay: 0.15s;
}

.flow-step:nth-child(5) {
  transition-delay: 0.25s;
}

.flow-step:nth-child(7) {
  transition-delay: 0.35s;
}

.flow-step:nth-child(9) {
  transition-delay: 0.45s;
}

.feature-card:nth-child(1) {
  transition-delay: 0.05s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.12s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.19s;
}

.feature-card:nth-child(4) {
  transition-delay: 0.26s;
}

.feature-card:nth-child(5) {
  transition-delay: 0.33s;
}

.feature-card:nth-child(6) {
  transition-delay: 0.40s;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 20px;
  }

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

  .download-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 40px 24px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .flow {
    gap: 8px;
  }

  .flow-arrow {
    display: none;
  }
}

/* ── Hero fade-in on load ─────────────────────────── */
.hero-content {
  animation: fadeUp 0.9s ease forwards;
}

.hero-visual {
  animation: fadeUp 1.1s ease 0.2s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}