@font-face {
  font-family: 'Fony';
  src: url('/fonts/fony.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #171C2B;
  --panel: #1f2333;
  --panel-2: #20283a;
  --accent: #00F2B8;
  --accent-dim: #00d2a4;
  --text: #ddd;
  --text-dim: #8b93ab;
  --border: #2a3149;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Ruda', monospace, monospace;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.about-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(23, 28, 43, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.about-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.about-logo {
  font-family: 'Fony', monospace;
  color: var(--accent);
  font-size: 1.3rem;
  letter-spacing: 5px;
  text-decoration: none;
  user-select: none;
}
.about-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}
.about-nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.about-nav-links a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1300px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(0, 242, 184, 0.16) 0%, rgba(0, 242, 184, 0.09) 30%, rgba(0, 242, 184, 0.03) 55%, rgba(0, 242, 184, 0) 75%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Genre ticker — styled like an old radio tuning dial */
.ticker {
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
  background: linear-gradient(180deg, #10131e 0%, #1c2135 50%, #10131e 100%);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.3rem 0 1.1rem;
  box-shadow: inset 0 10px 14px -12px rgba(0, 0, 0, 0.7), inset 0 -10px 14px -12px rgba(0, 0, 0, 0.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 8px, transparent 8px 9px, rgba(0, 242, 184, 0.4) 9px 10px, transparent 10px 30px);
  opacity: 0.55;
  pointer-events: none;
}
.ticker::before { top: 0; }
.ticker::after { bottom: 0; transform: scaleY(-1); }
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 48s linear infinite;
  color: var(--text-dim);
  font-family: monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 242, 184, 0.15);
}
.ticker:hover .ticker-track:not(.js-driven) { animation-play-state: paused; }
.ticker-track.js-driven { animation: none; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.tick-word {
  display: inline-block;
  transition: color 0.15s ease, text-shadow 0.15s ease, transform 0.15s ease;
}
.tick-word.lit {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 242, 184, 0.9), 0 0 20px rgba(0, 242, 184, 0.5);
  transform: scale(1.08);
}
.tick-sep { opacity: 0.5; }

/* Tuning needle fixed at dial center */
.dial-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(0, 242, 184, 0.85), 0 0 22px 5px rgba(0, 242, 184, 0.35);
  pointer-events: none;
  z-index: 2;
}
.dial-needle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
}
.dial-needle::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--accent);
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Fony', monospace;
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: 1px;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* Page-wide floating genre-icon background */
.bg-icons {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-icon {
  position: absolute;
  width: var(--size, 24px);
  height: var(--size, 24px);
  background-color: var(--accent);
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.16;
  animation-name: icon-float-a;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.bg-icon:nth-child(even) { animation-name: icon-float-b; }
@keyframes icon-float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -30px) rotate(10deg); }
}
@keyframes icon-float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -22px) rotate(-10deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-icon { animation: none; }
}

.about-nav { z-index: 21; }
main, footer.about-footer { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
h1.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: #fff;
  font-weight: 900;
}
h1.hero-title span { color: var(--accent); }
.free-tag {
  display: inline-block;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.05em 0.4em;
  border-radius: 12px;
  transform: rotate(-3deg);
  margin-top: 0.2rem;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-meta {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
}
.hero-visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 242, 184, 0.25));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.showcase-item {
  margin: 0;
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}
.showcase-item::before {
  content: '';
  position: absolute;
  inset: 8% 8% auto 8%;
  height: 55%;
  background: radial-gradient(circle, rgba(0, 242, 184, 0.16) 0%, rgba(0, 242, 184, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
.showcase-item img {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 130px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.showcase-item:hover img { transform: translateY(-5px) scale(1.05); }
.showcase-item figcaption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.showcase-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.showcase-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.showcase-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.5rem; }
}

/* Sections */
section { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 {
  color: #fff;
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
}
.section-head p { color: var(--text-dim); line-height: 1.6; margin: 0; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px) rotate(-0.6deg); }
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(0, 242, 184, 0.08);
  border: 1px solid rgba(0, 242, 184, 0.25);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.feat-icon svg { width: 22px; height: 22px; }
.feature-card h3 { color: var(--accent); font-size: 1.05rem; margin: 0 0 0.5rem; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-left: 3rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: monospace;
}
.step h3 { margin: 0.1rem 0 0.5rem; color: #fff; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* Fonypedia strip */
.pedia-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.pedia-panel .pedia-text { flex: 1; min-width: 240px; }
.pedia-panel h2 { color: #fff; margin: 0 0 0.6rem; font-size: 1.6rem; }
.pedia-panel p { color: var(--text-dim); line-height: 1.6; margin: 0 0 1.2rem; }
.genre-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 420px;
}
.genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(0, 242, 184, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.genre-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 184, 0.25) 0%, rgba(0, 242, 184, 0.05) 70%);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.genre-chip:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-2deg) translateY(-1px);
}
.genre-chip:hover img { background: rgba(23, 28, 43, 0.25); }
.genre-chip-more {
  padding: 0.3rem 0.9rem;
  color: var(--accent);
  border-style: dashed;
  border-color: rgba(0, 242, 184, 0.4);
  background: transparent;
}
.genre-chip-more:hover { color: var(--bg); background: var(--accent); border-style: solid; }

/* FAQ (native <details>/<summary> accordion) */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-item summary {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

/* Final CTA */
.final-cta {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 242, 184, 0.16) 0%, rgba(0, 242, 184, 0) 70%);
  pointer-events: none;
}
.final-cta .wrap { position: relative; }
.final-cta h2 { color: #fff; font-size: 2rem; margin: 0 0 1rem; }
.final-cta p { color: var(--text-dim); margin: 0 0 2rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.feature-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.feature-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.feature-grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Footer */
footer.about-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
footer.about-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.about-footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1.2rem;
}
footer.about-footer a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  footer.about-footer .wrap { flex-direction: column; text-align: center; }
  footer.about-footer a { margin: 0 0.6rem; }
}
