/* ============================================
   Fret Frenzy - Marketing Website Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-dark: #1a1a3d;
  --bg-purple: #2e1c4f;
  --bg-section-alt: #251745;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --fret-red: #d9263a;
  --frenzy-blue: #2659d9;
  --cta-gold: #e6a833;
  --cta-gold-dark: #cc8800;
  --cta-gold-light: rgba(230, 168, 51, 0.3);
  --glow-purple: rgba(140, 60, 220, 0.4);
  --glow-red: rgba(217, 38, 58, 0.6);
  --glow-blue: rgba(38, 89, 217, 0.6);
  --grid-line: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --note-a: rgb(230, 26, 26);
  --note-as: rgb(242, 102, 26);
  --note-b: rgb(255, 153, 0);
  --note-c: rgb(255, 217, 0);
  --note-cs: rgb(153, 204, 0);
  --note-d: rgb(26, 191, 51);
  --note-ds: rgb(0, 166, 140);
  --note-e: rgb(26, 102, 230);
  --note-f: rgb(77, 51, 179);
  --note-fs: rgb(128, 26, 179);
  --note-g: rgb(179, 26, 153);
  --note-gs: rgb(217, 26, 102);
  --section-padding: clamp(3rem, 8vw, 6rem);
  --content-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cta-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--cta-gold), var(--cta-gold-dark));
  color: #1a1a2e;
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--cta-gold-light), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cta-gold-light), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button svg {
  width: 24px;
  height: 24px;
}

/* --- Section Base --- */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-purple) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Light rays */
.hero-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -55%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(140, 60, 220, 0.08) 10deg,
    transparent 20deg,
    transparent 30deg,
    rgba(140, 60, 220, 0.06) 40deg,
    transparent 50deg,
    transparent 60deg,
    rgba(140, 60, 220, 0.08) 70deg,
    transparent 80deg,
    transparent 90deg,
    rgba(140, 60, 220, 0.06) 100deg,
    transparent 110deg,
    transparent 120deg,
    rgba(140, 60, 220, 0.08) 130deg,
    transparent 140deg,
    transparent 150deg,
    rgba(140, 60, 220, 0.06) 160deg,
    transparent 170deg,
    transparent 180deg,
    rgba(140, 60, 220, 0.08) 190deg,
    transparent 200deg,
    transparent 210deg,
    rgba(140, 60, 220, 0.06) 220deg,
    transparent 230deg,
    transparent 240deg,
    rgba(140, 60, 220, 0.08) 250deg,
    transparent 260deg,
    transparent 270deg,
    rgba(140, 60, 220, 0.06) 280deg,
    transparent 290deg,
    transparent 300deg,
    rgba(140, 60, 220, 0.08) 310deg,
    transparent 320deg,
    transparent 330deg,
    rgba(140, 60, 220, 0.06) 340deg,
    transparent 350deg,
    transparent 360deg
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 36px;
  box-shadow: 0 0 60px rgba(140, 60, 220, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.title-fret {
  color: var(--fret-red);
  text-shadow:
    0 0 20px var(--glow-red),
    0 0 40px var(--glow-red),
    0 2px 0 #8b1a24;
  display: block;
}

.title-frenzy {
  color: var(--frenzy-blue);
  text-shadow:
    0 0 20px var(--glow-blue),
    0 0 40px var(--glow-blue),
    0 2px 0 #1a3a8b;
  display: block;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Floating note tiles */
.floating-tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.note-tile {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   VALUE PROPOSITION
   ============================================ */
.value-prop {
  background: var(--bg-section-alt);
}

.value-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.value-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--cta-gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .value-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   GAMEPLAY SHOWCASE
   ============================================ */
.showcase {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-purple) 50%, var(--bg-dark) 100%);
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-phone {
  flex: 0 0 280px;
}

.showcase-text {
  flex: 1;
}

.showcase-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.showcase-text ul {
  list-style: none;
  padding: 0;
}

.showcase-text li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.showcase-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-gold);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .showcase-row,
  .showcase-row.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  .showcase-phone {
    flex: none;
  }
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  background: var(--bg-section-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-card-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.feature-card-images img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.avatar-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.avatar-thumbnails img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
}

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

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

/* ============================================
   BADGE SHOWCASE
   ============================================ */
.badges {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-purple) 100%);
}

.badge-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.badge-strip::-webkit-scrollbar {
  display: none;
}

.badge-item {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.badge-item:hover {
  transform: scale(1.1);
}

.badge-img-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.badge-item:hover .badge-img-wrapper {
  box-shadow: 0 0 20px var(--glow-purple);
}

.badge-item.rarity-common:hover .badge-img-wrapper {
  box-shadow: 0 0 20px rgba(180, 180, 180, 0.5);
}

.badge-item.rarity-rare:hover .badge-img-wrapper {
  box-shadow: 0 0 20px rgba(50, 130, 255, 0.5);
}

.badge-item.rarity-epic:hover .badge-img-wrapper {
  box-shadow: 0 0 20px rgba(160, 50, 220, 0.5);
}

.badge-item.rarity-legendary:hover .badge-img-wrapper {
  box-shadow: 0 0 24px rgba(230, 168, 51, 0.6);
}

.badge-img-wrapper img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.badge-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.rarity-common .badge-label { color: #b4b4b4; }
.rarity-rare .badge-label { color: #5090ff; }
.rarity-epic .badge-label { color: #b050e0; }
.rarity-legendary .badge-label { color: var(--cta-gold); }

/* ============================================
   MUSIC CREDIT
   ============================================ */
.music-credit {
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 3rem 1.5rem;
}

.music-credit img {
  width: 80px;
  height: auto;
  margin: 0 auto 1rem;
  filter: brightness(0.9);
}

.music-credit p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
}

.music-credit a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.music-credit a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.music-credit .credit-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border-glass);
}

.footer-cta {
  margin-bottom: 2rem;
}

.footer-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-brought-to-you {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-brought-to-you a {
  color: var(--cta-gold);
  font-weight: 700;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  padding-top: 3rem;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.privacy-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.privacy-content .last-updated {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--cta-gold);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--cta-gold);
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 28px;
  }
  .note-tile {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  .phone-mockup {
    width: 240px;
  }
  .showcase-phone {
    flex: none;
  }
}
