/* ============================================
   PlayerXtreme – Premium Single Product Site
   Brand: #5BADF9 (light) · #043BB1 (deep)
   ============================================ */

:root {
  --primary-light: #5BADF9;
  --primary-deep: #043BB1;
  --hero-gradient: linear-gradient(135deg, #5BADF9 -4.97%, #043BB1 73.68%);
  --dark-bg: #030a1a;
  --dark-bg-soft: #06122e;
  --surface: rgba(4, 59, 177, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(91, 173, 249, 0.2);
  --glow: rgba(91, 173, 249, 0.4);
  --text: #f0f4fc;
  --text-muted: rgba(240, 244, 252, 0.7);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-height: 4rem;
}

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

html {
  /* JS handles smooth scroll for anchors + wheel; avoid double-smoothing */
  scroll-behavior: auto;
  overflow-x: hidden;
  scroll-padding-top: calc(1rem + var(--nav-height) + 1.5rem);
}

body {
  font-family: var(--font-sans);
  background: var(--dark-bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  /* Helps compositor during scroll on some browsers */
  -webkit-font-smoothing: antialiased;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--space-md) var(--space-xl);
  padding-top: calc(1rem + var(--nav-height) + 0.5rem);
  overflow-x: hidden;
  overflow-y: visible;
}

/* Clip background so scale/orbs don’t cause extra scroll */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

/* Premium orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(91, 173, 249, 0.4);
  top: -15%;
  right: -10%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(4, 59, 177, 0.5);
  bottom: 10%;
  left: -5%;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(91, 173, 249, 0.25);
  top: 50%;
  left: 50%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.12), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.15), transparent);
  background-size: 200% 200%;
  pointer-events: none;
}

.hero-light-streaks {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 0%, rgba(91, 173, 249, 0.05) 40%, transparent 60%);
  pointer-events: none;
}

/* Nav — logo outside pill (left), pill with links only (right) */
.nav-wrapper {
  position: absolute;
  top: 1rem;
  left: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 1rem;
}

.nav-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.9;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
}

.nav,
.nav-glass {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 0.6rem var(--space-lg);
  min-height: var(--nav-height);
  height: auto;
  box-sizing: border-box;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0 0.6rem;
  padding: 0.45rem 0.6rem;
  position: relative;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 173, 249, 0.9) 0%, rgba(45, 110, 232, 0.9) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 16px rgba(91, 173, 249, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.nav-cta:hover {
  box-shadow: 0 4px 24px rgba(91, 173, 249, 0.5);
  transform: translateY(-1px);
  opacity: 1;
}

/* Download buttons: no backgrounds — badge image only */
.nav-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-badge-link,
.nav-badge-link:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  line-height: 0;
}

.nav-badge-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(91, 173, 249, 0.35));
}

.nav-badge-link .store-badge {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.store-badges-inner {
  background: none !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}

.store-badges-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
}

.store-badge-link,
.store-badge-link:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  transition: transform 0.25s ease, filter 0.25s ease;
  border-radius: 0;
}

.store-badge-link:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 28px rgba(91, 173, 249, 0.3));
}

.store-badge {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.store-badges-cta .store-badges-inner {
  padding: 1.25rem 1.75rem;
  gap: 1.5rem;
}

.store-badges-cta .store-badge-link {
  padding: 0.6rem;
}

.store-badges-cta .store-badge {
  height: 56px;
}

/* Local download buttons — display as-is (no filter) */
.store-badge-apple,
.store-badge-google {
  filter: none;
}

/* Hero layout — no overlap: content and mockup separated by gap */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(1.25rem, 3vh, 2.5rem);
  padding-bottom: 0;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex: 1 1 auto;
  min-height: 0;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  flex-shrink: 0;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-headline {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.25);
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.btn-icon-apple {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-large .btn-icon-apple {
  width: 1.35rem;
  height: 1.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, #5BADF9 0%, #2d6ee8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(91, 173, 249, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(91, 173, 249, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn-ghost:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ---------- Hero mockup image (PNG) ---------- */
.hero-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.hero-mockup-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 540px);
  object-fit: contain;
  object-position: center center;
  /* drop-shadow follows PNG transparency — no rectangular background */
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.28))
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 72px rgba(91, 173, 249, 0.12));
}

.hero-devices-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-md);
}

/* ---------- Responsive: no overlap, full width ---------- */
@media (max-width: 1200px) {
  .nav-wrapper { left: var(--space-md); right: var(--space-md); }
}

@media (max-width: 900px) {
  .nav-link { display: none; }
  .nav-wrapper { top: 0.75rem; justify-content: flex-start; }
  .nav { padding: 0.6rem var(--space-md); min-height: 3.25rem; display: none; }
  .hero { padding-top: calc(0.75rem + 3.25rem + 0.5rem); }
  .hero-inner { padding-top: clamp(1rem, 2.5vh, 1.75rem); gap: clamp(1.25rem, 3vw, 2rem); }
  .store-badges-inner { padding: 0.85rem 1.25rem; gap: 1rem; }
  .store-badge { height: 42px; }
  .store-badges-cta .store-badges-inner { padding: 1rem 1.35rem; gap: 1.25rem; }
  .store-badges-cta .store-badge { height: 48px; }
  .hero-devices-label { font-size: 0.7rem; }
}

@media (max-width: 600px) {
  .nav-wrapper { top: 0.6rem; left: var(--space-sm); right: var(--space-sm); gap: 0.5rem; }
  .nav { padding: 0.55rem var(--space-sm); min-height: 3rem; }
  .logo-text { font-size: 1.2rem; }
  .hero { padding-top: calc(0.6rem + 3rem + 0.5rem); padding-left: var(--space-sm); padding-right: var(--space-sm); padding-bottom: var(--space-lg); }
  .hero-inner { padding-top: clamp(0.75rem, 2vh, 1.25rem); gap: clamp(1rem, 2.5vw, 1.5rem); }
  .hero-cta { gap: 1rem; }
  .store-badges-inner { padding: 0.75rem 1rem; gap: 0.85rem; }
  .store-badge-link { padding: 0.4rem; }
  .store-badge { height: 40px; }
  .store-badges-cta .store-badges-inner { padding: 1rem 1.25rem; gap: 1rem; }
  .store-badges-cta .store-badge { height: 46px; }
  .hero-mockup { margin-top: 0; }
  .hero-badge { font-size: 0.65rem; letter-spacing: 0.06em; padding: 0.3rem 0.6rem; }
  .hero-headline { font-size: clamp(2rem, 10vw, 2.75rem); margin-bottom: 0.5rem; }
  .hero-subheadline { font-size: 0.95rem; margin-bottom: 1rem; }
  .hero-cta { gap: 0.75rem; }
  .btn { padding: 0.75rem 1.35rem; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .nav-wrapper { top: 0.5rem; left: var(--space-xs); right: var(--space-xs); gap: 0.4rem; }
  .nav { padding: 0.5rem var(--space-xs); min-height: 2.75rem; }
  .logo-text { font-size: 1rem; }
  .hero { padding-top: calc(0.5rem + 2.75rem + 0.5rem); padding-left: var(--space-xs); padding-right: var(--space-xs); }
  .hero-inner { padding-top: 0.75rem; gap: 1rem; }
  .store-badges-inner { padding: 0.6rem 0.85rem; gap: 0.65rem; }
  .store-badge { height: 36px; }
  .store-badges-cta .store-badges-inner { padding: 0.85rem 1rem; gap: 0.75rem; }
  .store-badges-cta .store-badge { height: 42px; }
  .hero-headline { font-size: 1.75rem; }
  .hero-devices-label { font-size: 0.6rem; }
}

/* ---------- SECTIONS GLOBAL ---------- */
.section {
  position: relative;
  padding: var(--space-2xl) var(--space-md);
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
}

@media (max-width: 380px) {
  .container { padding-left: var(--space-xs); padding-right: var(--space-xs); }
  .section { padding-left: var(--space-xs); padding-right: var(--space-xs); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.why-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* ---------- WHY SECTION ---------- */
.why-section {
  background: var(--dark-bg);
  /* background: var(--dark-bg-soft); */
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.why-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 173, 249, 0.15);
  border-color: rgba(91, 173, 249, 0.35);
}

.why-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(91, 173, 249, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(91, 173, 249, 0.2);
}

.why-icon {
  font-size: 1.5rem;
}

.why-text h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.why-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- FEATURES GRID ---------- */
.features-section {
  background: var(--dark-bg-soft);
  border-top: 1px solid rgba(91, 173, 249, 0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(91, 173, 249, 0.12);
  border-color: rgba(91, 173, 249, 0.4);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 12px rgba(91, 173, 249, 0.3));
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

/* ---------- STREAM ANYWHERE ---------- */
.stream-section {
  background: var(--dark-bg);
  overflow: hidden;
}

.stream-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stream-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(91, 173, 249, 0.03) 50%, transparent 100%);
  background-size: 200% 100%;
}

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

.network-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.network-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.network-logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 173, 249, 0.12);
  border-color: rgba(91, 173, 249, 0.25);
}

.network-logo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-logo-icon svg,
.network-logo-icon .network-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.network-logo-plex { color: #e5a00d; }
.network-logo-plex svg { fill: currentColor; }

.network-logo-jellyfin { color: #aa5cc8; }
.network-logo-jellyfin svg { fill: currentColor; }

.network-logo-emby { color: #52b54b; }
.network-logo-emby svg { fill: currentColor; }

.network-logo-protocol { color: var(--primary-light); }
.network-logo-protocol svg { stroke: currentColor; }

.network-logo-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .network-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 600px) {
  .network-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .network-logo-icon {
    width: 48px;
    height: 48px;
  }
}

/* ---------- SMART LIBRARY ---------- */
.library-section {
  background: var(--dark-bg-soft);
  border-top: 1px solid rgba(91, 173, 249, 0.06);
}

.library-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.library-frame {
  padding: var(--space-xl);
  background: var(--glass);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.library-screenshot {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.library-frame:hover .library-screenshot {
  transform: scale(1.02);
}

.library-screenshot:hover {
  box-shadow: 0 12px 32px rgba(91, 173, 249, 0.15);
}

@media (max-width: 900px) {
  .library-showcase {
    max-width: 100%;
  }
  .library-screenshot {
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .library-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-sm);
  }
  .library-screenshot {
    max-width: 100%;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
  background: var(--dark-bg-soft);
  position: relative;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-waveform {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 173, 249, 0.04) 100%);
  opacity: 0.6;
}

.testimonials-waveform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpath fill='none' stroke='%235BADF9' stroke-width='0.5' opacity='0.3' d='M0 40 Q50 20 100 40 T200 40 T300 40 T400 40'/%3E%3Cpath fill='none' stroke='%235BADF9' stroke-width='0.3' opacity='0.2' d='M0 50 Q50 30 100 50 T200 50 T300 50 T400 50'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 400px 80px;
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-xl);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 173, 249, 0.12);
  border-color: rgba(91, 173, 249, 0.3);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-stars {
  color: var(--primary-light);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

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

/* ---------- FINAL CTA ---------- */
.cta-section {
  padding: var(--space-3xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, var(--dark-bg) 0%, #051535 40%, rgba(4, 59, 177, 0.25) 100%); */
  background: var(--dark-bg-soft);
  z-index: 0;
}

.cta-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(91, 173, 249, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}

.cta-section .btn-primary {
  box-shadow: 0 8px 40px rgba(91, 173, 249, 0.4);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 12px 48px rgba(91, 173, 249, 0.5);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #020810;
  border-top: 1px solid rgba(91, 173, 249, 0.08);
}

.footer-top {
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-right {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo .logo-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 0.25rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s, background 0.2s;
  border-radius: 50%;
}

.footer-social-link:hover {
  color: var(--primary-light);
  background: rgba(91, 173, 249, 0.12);
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: 0.15rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 244, 252, 0.5);
  margin: 0 0 0.25rem 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  width: 100%;
  max-width: 380px;
}

.footer-contact .footer-heading {
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(91, 173, 249, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input::placeholder {
  color: rgba(240, 244, 252, 0.4);
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 173, 249, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-response {
  font-size: 0.95rem;
  padding: 0.75rem 0;
  margin: 0;
  min-height: 1.5em;
  transition: opacity 0.3s;
}

.contact-response.success {
  color: var(--primary-light);
}

.contact-response.error {
  color: #f87171;
}

.footer-bottom {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(91, 173, 249, 0.06);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  color: rgba(240, 244, 252, 0.45);
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-legal a {
  color: rgba(240, 244, 252, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary-light);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-right {
    grid-template-columns: minmax(140px, 1fr) 1fr;
    gap: var(--space-xl);
  }
  .footer-contact {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: left;
  }
  .footer-right {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-brand {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(91, 173, 249, 0.08);
  }
  .footer-links {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(91, 173, 249, 0.08);
  }
  .footer-contact {
    max-width: none;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

