.nav-bar {
  transform: translateY(-100%);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-bar.visible {
  transform: translateY(0);
  border-bottom: 1px solid var(--hairline);
}

.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(184, 164, 237, 0.15) 0%, rgba(255, 77, 139, 0.05) 25%, transparent 50%);
  z-index: -1;
  animation: rotate-gradient 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-xl);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
  display: block;
}

.hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto var(--space-xxl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.ticker {
  background-color: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-lg) 0;
}

.ticker-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-xxl);
  flex-wrap: wrap;
}

.ticker-item {
  color: var(--ink);
}

.screenshots {
  padding: var(--space-section) 0;
  text-align: center;
  overflow: hidden;
}

.scroll-strip-wrapper {
  display: flex;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  gap: var(--space-xl);
  padding: 24px 0;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: scroll-x 40s linear infinite;
}

.scroll-strip-wrapper:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--space-xl)));
  }
}

.phone-mockup-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.phone-mockup-wrapper:nth-child(even) {
  transform: rotate(2deg);
}

.phone-mockup-wrapper:nth-child(odd) {
  transform: rotate(-2deg);
}

.phone-mockup {
  width: 240px;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  border: 8px solid var(--surface-dark);
  background-color: var(--canvas);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  display: block;
}

.features {
  background-color: var(--surface-card);
  padding: 80px 64px;
  border-radius: 40px;
  margin: 80px auto;
  text-align: center;
}

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

.feature-card {
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.feature-card.flex-row {
  flex-direction: row;
  align-items: center;
}

.feature-card.flex-row .feature-icon-svg {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

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

.feature-icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-xs);
}

.feature-card-1 {
  background-color: var(--accent-violet);
}

.feature-card-2 {
  background-color: var(--accent-pink);
}

.feature-card-3 {
  background-color: var(--accent-sky);
}

.feature-card-4 {
  background-color: var(--accent-peach);
}

.feature-card-5 {
  background-color: var(--accent-ochre);
}

.feature-card-6 {
  background-color: var(--accent-mint);
}

.feature-card .feature-body {
  color: var(--body);
}

.faq {
  padding: var(--space-section) 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.faq-item {
  background-color: var(--canvas);
  border: 2px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item:hover {
  border-color: #d0c8b0;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.open {
  background-color: var(--surface-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  border-color: var(--ink);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 var(--space-lg);
  color: var(--body);
}

.faq-item.open .faq-answer {
  padding-bottom: var(--space-lg);
}

footer {
  background-color: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 12px;
}

.footer-link {
  color: var(--muted);
  transition: color 0.2s ease;
  font-size: 16px;
  font-weight: 500;
}

.footer-disclaimer {
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.4;
}

.social-links {
  display: flex;
  gap: 28px;
}

.social-icon-link {
  display: inline-block;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.social-icon-link img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.support-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.support-msg-bubble {
  background-color: var(--canvas);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  padding: 16px 24px;
  border-radius: 20px 20px 0 20px;
  font-size: 15px;
  font-weight: 600;
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.3s ease;
  pointer-events: none;
  line-height: 1.5;
}

.support-msg-bubble:hover {
  transform: translateY(-2px) scale(1) !important;
  box-shadow: 6px 6px 0px var(--ink) !important;
}

.lastfm-msg-bubble {
  background-color: var(--canvas);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  padding: 12px 16px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lastfm-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--hairline);
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.lastfm-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lastfm-msg-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lastfm-msg-bubble:hover {
  transform: translateY(-2px) scale(1) !important;
  box-shadow: 6px 6px 0px var(--ink) !important;
}

.support-msg-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--ink);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.support-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.support-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: hover) {
  .phone-mockup-wrapper:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.05);
    z-index: 10;
  }

  .feature-card.visible:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 1;
  }

  .footer-link:hover {
    text-decoration: underline;
    color: var(--ink);
  }

  .support-fab:hover .support-btn {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px var(--ink);
  }

  .social-icon-link:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
  }

  .social-icon-link:nth-child(even):hover {
    transform: translateY(-8px) scale(1.15) rotate(-5deg);
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-span-3 {
    grid-column: span 2;
  }

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

  .footer-col-right {
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .screenshots,
  .faq {
    margin: 0 24px;
  }

  .screenshots-header,
  .features-header,
  .faq-header {
    margin-bottom: 32px;
  }

  .ticker {
    padding: 24px 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .ticker-inner {
    gap: var(--space-lg);
  }

  .scroll-strip-wrapper {
    gap: var(--space-lg);
    padding: 16px 0;
  }

  .marquee-group {
    gap: var(--space-lg);
  }

  .phone-mockup {
    width: 180px;
  }

  .features {
    padding: 24px 16px;
    border-radius: 24px;
    margin: 40px 24px;
  }

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

  .col-span-2,
  .col-span-3 {
    grid-column: span 2;
  }

  .feature-card {
    padding: 24px 12px;
    gap: 12px;
  }

  .feature-card.flex-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card.flex-row .feature-icon-svg,
  .feature-card .feature-icon-svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
  }

  .feature-card .title-md {
    font-size: 16px;
  }

  .feature-card .body-sm {
    font-size: 13px;
    line-height: 1.4;
  }

  footer {
    padding: 32px 0 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-col-right {
    align-items: center;
    gap: 24px;
  }

  .footer-disclaimer {
    margin: 16px auto 0;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 16px;
  }

  .support-fab {
    bottom: 24px;
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .feature-card,
  .faq-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
