/* Jukebox marketing site — homepage-only styles (hero mockups, feature grids, motion). */

.page-home {
  background: radial-gradient(120% 55% at 50% -8%, rgb(26, 16, 48) 0%, rgb(8, 8, 15) 55%);
}

/* ---- Hero ---- */
.hero {
  width: 100%;
  max-width: 1160px;
  padding: 40px 32px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: jbpulse 2.4s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-actions .btn-store {
  animation: jbcta 6s ease-out infinite;
}
.hero-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}

/* ---- Hero mock: stage screen + guest phone ---- */
.hero-mocks {
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 200px;
  background: oklch(0.68 0.2 350 / 0.22);
  filter: blur(70px);
  pointer-events: none;
}
.stage-mock {
  position: relative;
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.stage-mock-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--cyan));
}
.stage-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.stage-mock-head .label { color: var(--muted-dim); }
.stage-mock-head .live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.stage-mock-head .live-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  animation: jbpulse 1.8s ease-in-out infinite;
}
.stage-mock-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  padding: 22px 20px 96px;
}
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.queue-list .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
}
.queue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: jbrow 12s ease-in-out infinite;
}
.queue-row:nth-child(3) { animation-delay: 1.4s; }
.queue-row:nth-child(4) { animation-delay: 2.6s; }
.queue-row:nth-child(5) { animation-delay: 3.8s; }
.queue-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgb(160, 159, 180);
  background: rgb(30, 30, 45);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 6px;
}
.queue-tag.is-current {
  color: rgb(20, 4, 26);
  background: var(--amber);
  border-color: transparent;
}
.queue-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.qr-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.qr-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--fg);
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
}
.qr-mock-pattern {
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(var(--card-dark) 0% 25%, var(--fg) 0% 50%) 0 0 / 15px 15px;
}
.qr-mock-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 7px solid var(--card-dark);
  background: var(--fg);
}
.qr-mock-corner.tl { top: 16px; left: 16px; }
.qr-mock-corner.tr { top: 16px; right: 16px; }
.qr-mock-corner.bl { bottom: 16px; left: 16px; }
.qr-mock-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26px;
  background: linear-gradient(oklch(0.68 0.2 350 / 0), oklch(0.68 0.2 350 / 0.55));
  animation: jbscan 5s ease-in-out infinite;
}
.qr-block .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  text-align: center;
}
.stage-mock-announce {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgb(20, 20, 31);
  border: 1px solid oklch(0.8 0.15 75 / 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  animation: jbannounce 12s ease-in-out infinite;
}
.announce-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}
.announce-bars span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  animation: jbbar 0.9s ease-in-out infinite;
}
.announce-bars span:nth-child(2) { animation-delay: 0.15s; }
.announce-bars span:nth-child(3) { animation-delay: 0.3s; }
.announce-bars span:nth-child(4) { animation-delay: 0.45s; }
.announce-bars span:nth-child(5) { animation-delay: 0.6s; }
.announce-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.announce-copy .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.announce-copy .line {
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg);
}

.guest-mock-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.guest-mock {
  position: relative;
  margin-top: 18px;
  width: 216px;
  background: rgb(20, 20, 31);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: jbfloat 7s ease-in-out infinite;
}
.guest-mock .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}
.guest-mock-field {
  background: rgb(30, 30, 45);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13px;
}
.guest-mock-field.is-active {
  border-color: oklch(0.68 0.2 350 / 0.6);
  color: var(--fg);
}
.guest-mock-cursor { color: var(--pink); }
.guest-mock-song {
  display: flex;
  align-items: center;
  gap: 9px;
  background: oklch(0.68 0.2 350 / 0.14);
  border-radius: 9px;
  padding: 8px 10px;
}
.guest-mock-art {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgb(38, 38, 56) 0 5px, rgb(30, 30, 45) 5px 10px);
}
.guest-mock-song span {
  font-size: 12px;
  font-weight: 500;
}
.guest-mock-submit {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgb(20, 4, 26);
  background: var(--pink);
  border-radius: 999px;
  padding: 9px 0;
}
.guest-mock-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-align: center;
  animation: jbsent 12s ease-in-out infinite;
}
.guest-mock-caption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-dim);
  max-width: 24ch;
}

/* ---- Sections ---- */
.section {
  width: 100%;
  max-width: 1160px;
  padding: 24px 32px 96px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 40px;
}
.section-head .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dim);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.025em;
}
.section-head .sub {
  font-size: 15px;
  color: var(--muted-dim);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.step-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.step-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pink-link);
}
.step-card.is-final {
  border-color: oklch(0.8 0.15 75 / 0.35);
}
.step-card.is-final:hover {
  border-color: oklch(0.8 0.15 75 / 0.6);
}
.step-card.is-final::before {
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--pink));
}
.step-card.is-final .num { color: var(--amber); }
.step-visual {
  height: 92px;
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* step 1 visual: connect */
.sv-connect .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sv-connect .wire {
  position: relative;
  width: 46px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.sv-connect .wire span {
  position: absolute;
  inset: 0;
  width: 33%;
  background: var(--cyan);
  animation: jbtravel 2.6s linear infinite;
}
.sv-connect .dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: jbpulse 2s ease-in-out infinite;
}

/* step 2 visual: scan */
.sv-scan {
  position: relative;
}
.sv-scan-card {
  width: 62px; height: 62px;
  background: var(--fg);
  border-radius: 6px;
  padding: 5px;
}
.sv-scan-card div {
  width: 100%; height: 100%;
  background: repeating-conic-gradient(var(--card-dark) 0% 25%, var(--fg) 0% 50%) 0 0 / 9px 9px;
}
.sv-scan-beam {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 18px;
  background: linear-gradient(oklch(0.68 0.2 350 / 0), oklch(0.68 0.2 350 / 0.6));
  animation: jbscan 4s ease-in-out infinite;
}

/* step 3 visual: request drops in */
.sv-request {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 7px;
  padding: 12px;
}
.sv-request .bar { height: 9px; border-radius: 999px; background: rgb(30, 30, 45); }
.sv-request .bar.w1 { width: 55%; }
.sv-request .bar.w2 { width: 78%; }
.sv-request .sent-row { display: flex; align-items: center; gap: 7px; }
.sv-request .sent-fill {
  height: 9px;
  flex: 1;
  border-radius: 999px;
  background: oklch(0.68 0.2 350 / 0.55);
}
.sv-request .sent-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--pink-link);
  animation: jbpulse 2.2s ease-in-out infinite;
}

/* step 4 visual: room hears it */
.sv-hear {
  align-items: flex-end;
  gap: 4px;
  padding: 20px 0;
}
.sv-hear span {
  width: 4px;
  height: 44px;
  border-radius: 2px;
  background: var(--amber);
  transform-origin: center bottom;
  animation: jbbar 1s ease-in-out infinite;
}
.sv-hear span:nth-child(2) { animation-delay: 0.12s; }
.sv-hear span:nth-child(3) { animation-delay: 0.24s; }
.sv-hear span:nth-child(4) { animation-delay: 0.36s; }
.sv-hear span:nth-child(5) { animation-delay: 0.48s; }
.sv-hear span:nth-child(6) { animation-delay: 0.6s; }
.sv-hear span:nth-child(7) { animation-delay: 0.72s; }

.feature-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- Final CTA ---- */
.cta-panel {
  position: relative;
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.cta-panel-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--cyan));
}
.cta-panel-glow {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: 90vw;
  height: 200px;
  background: oklch(0.68 0.2 350 / 0.25);
  filter: blur(70px);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.cta-panel p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}
.cta-panel .btn-store {
  animation: jbcta 6s ease-out infinite;
  padding: 13px 26px;
}
.cta-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  padding-top: 4px;
}

/* ---- Keyframes ---- */
@keyframes jbpulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes jbrow {
  0% { opacity: 0; transform: translateY(10px); }
  6%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes jbscan {
  0% { transform: translateY(-6px); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translateY(150px); opacity: 1; }
  62% { opacity: 0; }
  100% { transform: translateY(-6px); opacity: 0; }
}
@keyframes jbannounce {
  0%, 58% { opacity: 0; transform: translateY(8px); }
  66%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes jbbar {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}
@keyframes jbfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes jbsent {
  0%, 40% { opacity: 0; }
  50%, 82% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@keyframes jbcta {
  0%, 34%, 100% { box-shadow: 0 0 0 0 oklch(0.68 0.2 350 / 0.55); }
  40% { box-shadow: 0 0 0 14px oklch(0.68 0.2 350 / 0); }
}
@keyframes jbtravel {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px 24px 64px; gap: 40px; }
  .hero-mocks { max-width: 480px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .support-grid { grid-template-columns: 1fr; }
  .section { padding: 20px 24px 72px; }
  .cta-panel { padding: 44px 24px; }
}

@media (max-width: 640px) {
  .nav { padding: 20px 20px; }
  .nav-links { gap: 4px; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .hero { padding: 20px 20px 56px; }
  .hero-sub { max-width: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .guest-mock-row { flex-direction: column; align-items: flex-start; }
  .guest-mock { width: 100%; }
  .section { padding: 16px 20px 64px; }
}
