/* ============================================
   LP Player — Showcase Demo Site
   Terminal Meets Vinyl
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --color-bg: #000000;
  --color-bg-subtle: #0a0a0a;
  --color-bg-card: #111111;
  --color-bg-elevated: #1a1a1a;
  --color-accent: #bccc0f;
  --color-accent-dim: rgba(188, 204, 15, 0.5);
  --color-accent-glow: rgba(188, 204, 15, 0.15);
  --color-text: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;
  --color-border: rgba(188, 204, 15, 0.2);
  --font-mono: 'Inconsolata', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-accent);
  color: #000;
}

/* ============================================
   3. SCANLINE OVERLAY (CRT effect)
   ============================================ */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #bccc0f, #8a9a0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.terminal-prompt {
  color: var(--color-accent);
  opacity: 0.8;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-prompt::before {
  content: '$';
  opacity: 0.5;
}

.cursor-blink::after {
  content: '█';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--color-accent);
}

/* ============================================
   5. LAYOUT — SNAP SECTIONS
   ============================================ */
.page-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 4rem 1.5rem;
}

.page-section > .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Content-heavy sections: natural height */
.page-section.natural-height {
  min-height: auto;
  padding: 5rem 1.5rem;
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(188, 204, 15, 0.15) 20%,
    rgba(188, 204, 15, 0.15) 80%,
    transparent
  );
  max-width: 1200px;
  margin: 0 auto;
}

/* Equalizer decoration */
.eq-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 32px;
  padding: 1rem 0;
}

.eq-bar {
  width: 3px;
  background: var(--color-accent);
  opacity: 0.3;
  border-radius: 1px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { --eq-h: 8px; animation-delay: 0s; }
.eq-bar:nth-child(2) { --eq-h: 16px; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { --eq-h: 24px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { --eq-h: 12px; animation-delay: 0.15s; }
.eq-bar:nth-child(5) { --eq-h: 20px; animation-delay: 0.25s; }
.eq-bar:nth-child(6) { --eq-h: 28px; animation-delay: 0.05s; }
.eq-bar:nth-child(7) { --eq-h: 14px; animation-delay: 0.3s; }
.eq-bar:nth-child(8) { --eq-h: 22px; animation-delay: 0.1s; }
.eq-bar:nth-child(9) { --eq-h: 10px; animation-delay: 0.2s; }

/* ============================================
   6. DOT NAVIGATION (vinyl disc dots)
   ============================================ */
.dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transition: opacity 0.4s ease;
}

.dot-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.dot-nav a {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #222;
  border: 1.5px solid #444;
  transition: all 0.3s ease;
  position: relative;
  /* Vinyl grooves on the dot */
  background-image: repeating-radial-gradient(
    circle at center,
    rgba(80, 80, 80, 0.4) 0px,
    rgba(80, 80, 80, 0.4) 1px,
    transparent 1px,
    transparent 2px
  );
}

.dot-nav a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
  transition: all 0.3s;
}

.dot-nav a:hover {
  border-color: var(--color-accent-dim);
  transform: scale(1.3);
}

.dot-nav a.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  background-color: #1a1a1a;
}

.dot-nav a.active::after {
  background: var(--color-accent);
  box-shadow: 0 0 4px var(--color-accent);
}

/* Tooltip on hover */
.dot-nav a .dot-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: var(--color-text-muted);
  background: #111;
  border: 1px solid rgba(188, 204, 15, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(5px);
}

.dot-nav a:hover .dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================
   7. HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(188, 204, 15, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  background-size: 30px 30px, 100% 100%;
}

/* Hero content — hidden until tonearm drops */
.hero-content {
  opacity: 0;
}

.hero-content.animate-in {
  animation: hero-text-in 0.8s ease-out forwards;
}

/* Vinyl Record */
.vinyl-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 3rem;
  cursor: pointer;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #111;
  background-image: repeating-radial-gradient(
    circle at center,
    rgba(80, 80, 80, 0.6) 0px,
    rgba(80, 80, 80, 0.6) 3px,
    transparent 3px,
    transparent 6px
  );
  border: 4px solid rgba(30, 30, 30, 0.8);
  box-shadow:
    0 0 40px rgba(188, 204, 15, 0.12),
    0 0 80px rgba(188, 204, 15, 0.05),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  /* Starts paused — JS triggers spinning */
  animation: spin 4s linear infinite;
  animation-play-state: paused;
  position: relative;
}

.vinyl-record.spinning {
  animation-play-state: running;
}

.vinyl-record::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 2px solid rgba(188, 204, 15, 0.2);
}

.vinyl-record::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  border: 2px solid rgba(80, 80, 80, 0.5);
  z-index: 2;
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
}

.vinyl-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-record .reflection {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
}

/* Tonearm — starts lifted, drops via animation */
.tonearm {
  position: absolute;
  top: 10px;
  right: -20px;
  width: 120px;
  height: 4px;
  transform-origin: right center;
  transform: rotate(-55deg);
  z-index: 3;
  transition: none;
}

.tonearm.dropping {
  animation: tonearm-drop 1.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.tonearm.playing {
  transform: rotate(-30deg);
  animation: tonearm-bob 3s ease-in-out infinite;
}

.tonearm-arm {
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, #444, #666);
  border-radius: 2px;
  position: relative;
}

.tonearm-arm::before {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
  border: 1px solid #777;
}

.tonearm-arm::after {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 1px;
  transform: rotate(45deg);
}

.vinyl-container:hover .vinyl-record.spinning {
  animation-duration: 1.5s;
}

.vinyl-container.playing .vinyl-record {
  animation-duration: 1s;
  box-shadow:
    0 0 60px rgba(188, 204, 15, 0.2),
    0 0 120px rgba(188, 204, 15, 0.08),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.6s;
}

.scroll-indicator.show {
  opacity: 0.4;
}

/* ============================================
   8. PROBLEM CARDS
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: var(--color-accent-dim);
  box-shadow: 0 0 20px var(--color-accent-glow);
  transform: translateY(-2px);
}

.problem-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================
   9. FEATURE CARDS (Bento Grid)
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(50, 50, 50, 0.08) 2px,
    rgba(50, 50, 50, 0.08) 4px
  );
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--color-accent-dim);
  box-shadow: 0 0 25px var(--color-accent-glow);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.feature-card.span-2 {
  grid-column: span 2;
}

/* ============================================
   10. BROWSER MOCKUP
   ============================================ */
.browser-mockup {
  background: var(--color-bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(188, 204, 15, 0.1);
  max-width: 960px;
  margin: 3rem auto;
}

.browser-titlebar {
  background: #1e1e1e;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }

.browser-url {
  flex: 1;
  background: #111;
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-left: 14px;
}

.browser-content {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  position: relative;
  overflow: hidden;
}

.browser-content img,
.browser-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.browser-content.video-content {
  aspect-ratio: auto;
  background: #000;
}

/* Screenshot pan: scroll down to reveal full image, then settle back to top */
.browser-content.screenshot-pan img {
  object-position: top;
}

.browser-content.screenshot-pan.panning img {
  animation: pan-preview 4s ease-in-out forwards;
}

@keyframes pan-preview {
  0%   { object-position: top; }
  40%  { object-position: bottom; }
  70%  { object-position: bottom; }
  100% { object-position: top; }
}

.browser-content .placeholder-icon {
  opacity: 0.15;
  width: 80px;
  height: 80px;
}

/* ============================================
   11. TERMINAL BLOCK (Install section)
   ============================================ */
.terminal-block {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.terminal-header {
  background: #111;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(188, 204, 15, 0.1);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
  margin-right: 36px;
}

.terminal-body {
  padding: 1.5rem 1.75rem;
  font-size: 14px;
  color: var(--color-accent);
  line-height: 2;
  position: relative;
}

.terminal-body .comment {
  color: var(--color-text-muted);
}

.terminal-body .command::before {
  content: '$ ';
  opacity: 0.5;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(188, 204, 15, 0.1);
  border: 1px solid rgba(188, 204, 15, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  background: rgba(188, 204, 15, 0.2);
  color: var(--color-accent);
}

.copy-btn.copied {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Tab system */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(188, 204, 15, 0.1);
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-btn {
  padding: 10px 24px;
  color: var(--color-text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--color-text-secondary);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   11b. DOWNLOAD PANEL
   ============================================ */
.download-panel {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--color-bg-card);
}

.download-detected {
  margin-bottom: 2rem;
}

.detected-os-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.download-btn {
  display: inline-flex;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  gap: 0.75rem;
}

.download-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  transition: all 0.25s;
}

.download-alt-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent-dim);
}

.download-alt-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ============================================
   12. STAT BOXES (Open Source section)
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 600px;
}

.stat-box {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-bg-subtle);
  transition: all 0.3s;
}

.stat-box:hover {
  border-color: var(--color-accent-dim);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   13. INLINE FOOTER (inside open source section)
   ============================================ */
.inline-footer {
  border-top: 1px solid rgba(188, 204, 15, 0.08);
  padding-top: 2rem;
  margin-top: 0;
}

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

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

/* ============================================
   14. BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(188, 204, 15, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-accent-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-outline:hover {
  background: rgba(188, 204, 15, 0.1);
  border-color: var(--color-accent);
}

/* ============================================
   15. KEYFRAME ANIMATIONS
   ============================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Tonearm drops from lifted (-55deg) to playing (-30deg) */
@keyframes tonearm-drop {
  0% { transform: rotate(-55deg); }
  60% { transform: rotate(-28deg); }
  75% { transform: rotate(-32deg); }
  100% { transform: rotate(-30deg); }
}

@keyframes tonearm-bob {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(-27deg); }
}

@keyframes eq-bounce {
  0% { height: 4px; }
  100% { height: var(--eq-h, 16px); }
}

@keyframes shimmer-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(188, 204, 15, 0.2); }
  50% { box-shadow: 0 0 14px rgba(188, 204, 15, 0.5), 0 0 28px rgba(188, 204, 15, 0.25); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   16. SCROLL REVEAL SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Card-specific reveal: scale + fade + slide */
.reveal-card {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-card:nth-child(2) { transition-delay: 0.12s; }
.reveal-card:nth-child(3) { transition-delay: 0.19s; }
.reveal-card:nth-child(4) { transition-delay: 0.26s; }
.reveal-card:nth-child(5) { transition-delay: 0.33s; }
.reveal-card:nth-child(6) { transition-delay: 0.40s; }
.reveal-card:nth-child(7) { transition-delay: 0.47s; }

.reveal-card.visible .card-icon,
.reveal-card.visible .icon svg {
  animation: icon-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes icon-pop {
  from { transform: scale(0.5); opacity: 0.3; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================
   17. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .page-section {
    padding: 3rem 1.25rem;
    min-height: auto;
  }

  .vinyl-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
  }

  .vinyl-record::before { width: 65px; height: 65px; }
  .vinyl-label { width: 44px; height: 44px; }
  .tonearm { width: 80px; right: -10px; }

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

  .bento-grid { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }

  .stat-grid { grid-template-columns: 1fr; max-width: 300px; }

  .browser-mockup { margin: 2rem -0.5rem; border-radius: 8px; }
  .terminal-block { margin: 0 -0.25rem; }

  .tab-btn { padding: 8px 16px; font-size: 13px; }
  .eq-divider { display: none; }
  .dot-nav { display: none; }
}

@media (max-width: 480px) {
  .vinyl-container { width: 160px; height: 160px; }
  .vinyl-record::before { width: 50px; height: 50px; }
  .vinyl-label { width: 34px; height: 34px; }
}
