/* ============================================================
   CHORD RUNNER — DEMO Landing Page Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #a29bfe;
  --teal: #06d6a0;
  --gold: #ffd166;
  --pink: #ff6b9d;
  --blue: #3aa8e8;
  --bg: #07080f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf6;
  --muted: rgba(255, 255, 255, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ── Animated starfield background ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(162, 155, 254, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 214, 160, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 209, 102, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo .logo-icon {
  font-size: 1.6rem;
}

.nav-logo .logo-text {
  background: linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 99px;
  padding: 3px 10px;
  margin-left: 8px;
}

nav {
  flex-wrap: wrap;
}

.nav-links {
  display: none;
  width: 100%;
  flex-direction: column;
  padding-top: 16px;
  gap: 8px;
  list-style: none;
}

.nav-links.mobile-open {
  display: flex;
  animation: fadeDown 0.3s ease forwards;
}

.nav-links a {
  display: block;
  padding: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger Menu Toggler (visibile ovunque) */
.hamburger-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.25);
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 32px;
  animation: fadeDown 0.6s ease both;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 28px;
  animation: fadeDown 0.7s 0.1s ease both;
}

.hero-title .line1 {
  display: block;
  color: var(--text);
}

.hero-title > .line2 {
  display: block;
  background: linear-gradient(135deg, var(--purple) 20%, var(--teal) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2rem, 6.5vw, 5rem)
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 48px;
  animation: fadeDown 0.7s 0.2s ease both;
}

/* ── CTA Buttons ─────────────────────────────────────────────── */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeDown 0.7s 0.3s ease both;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  background: linear-gradient(135deg, #a29bfe, #6c63ff);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 8px 32px rgba(108, 99, 255, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.15) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-demo:hover::before {
  opacity: 1;
}

.btn-demo:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.6), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-demo:active {
  transform: scale(0.96) translateY(0);
}

.btn-full-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 64px;
  background: linear-gradient(135deg, #ffd166, #ff9500);
  color: #1a1a2e;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 12px 48px rgba(255, 149, 0, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-full-game:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 24px 64px rgba(255, 149, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  filter: brightness(1.05);
}

.btn-full-game:active {
  transform: scale(0.96) translateY(0);
}

.btn-full-game .btn-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-demo .btn-icon {
  font-size: 1.4rem;
}

.btn-howto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.btn-howto:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.demo-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* ── Floating piano keys decoration ─────────────────────────── */
.piano-deco {
  display: flex;
  gap: 6px;
  margin-top: 56px;
  opacity: 0.35;
  animation: fadeDown 0.7s 0.5s ease both;
}

.key-w {
  width: 32px;
  height: 90px;
  background: linear-gradient(180deg, #f5f5ff 0%, #dcdcf0 100%);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.key-b {
  width: 20px;
  height: 56px;
  background: linear-gradient(180deg, #1a1a2e 0%, #2d2d4e 100%);
  border-radius: 0 0 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 -10px;
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════ */
#how-it-works {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-sub {
  max-width: 520px;
  margin: 0 auto 64px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 64px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, linear-gradient(90deg, var(--purple), var(--teal)));
  opacity: 0.7;
}

.step-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* MIDI requirement callout */
.midi-callout {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.08), rgba(6, 214, 160, 0.06));
  border: 1px solid rgba(162, 155, 254, 0.25);
  border-radius: 24px;
  padding: 36px 40px;
  text-align: left;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.midi-callout-icon {
  font-size: 3rem;
  flex-shrink: 0;
  line-height: 1;
}

.midi-callout h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.midi-callout p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.midi-callout .also-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.midi-callout .also-note strong {
  color: var(--teal);
}

/* ══════════════════════════════════════════════════════════════
   DEMO CONTENT SECTION
══════════════════════════════════════════════════════════════ */
#demo-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  text-align: center;
}

.demo-scope {
  max-width: 760px;
  margin: 0 auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
}

.demo-scope h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.demo-scope .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.demo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.demo-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(6, 214, 160, 0.06);
  border: 1px solid rgba(6, 214, 160, 0.15);
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.demo-feat .feat-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   FULL VERSION SECTION
══════════════════════════════════════════════════════════════ */
#full-version {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
}

.fv-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.fv-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.fv-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.fv-sub {
  max-width: 520px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Chord progression display */
.chord-types-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}

.chord-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid;
  transition: all 0.2s;
}

.chord-pill.demo {
  background: rgba(6, 214, 160, 0.12);
  border-color: rgba(6, 214, 160, 0.4);
  color: var(--teal);
}

.chord-pill.locked {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
}

.chord-pill .lock-icon {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Feature cards grid */
.fv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.fv-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.fv-card::after {
  content: '🔒';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  opacity: 0.3;
}

.fv-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.fv-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.fv-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.fv-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Subtle shimmer on locked cards */
.fv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s;
}

.fv-card:hover::before {
  left: 150%;
}

/* ── Footer CTA ── */
.fv-cta {
  text-align: center;
}

.fv-cta p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT ME SECTION
══════════════════════════════════════════════════════════════ */
#about-me {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  margin-bottom: 24px;
  text-align: left;
}

.about-content .section-label {
  text-align: left;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-signature {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 24px !important;
}

.about-image {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-container:hover .about-image img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 32px 24px;
  }

  .about-content .section-title,
  .about-content .section-label {
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   CONTACTS SECTION
══════════════════════════════════════════════════════════════ */
#contacts {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  text-align: center;
}

.contacts-container {
  max-width: 800px;
  margin: 0 auto;
}

.contacts-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.contacts-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, linear-gradient(90deg, var(--teal), var(--gold)));
  opacity: 0.7;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.22);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatKey {

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

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

.piano-deco .key-w:nth-child(odd) {
  animation: floatKey 3s ease-in-out infinite;
}

.piano-deco .key-w:nth-child(even) {
  animation: floatKey 3s 1.5s ease-in-out infinite;
}

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

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav {
    padding: 14px 20px;
  }

  .midi-callout {
    flex-direction: column;
  }

  .demo-features {
    grid-template-columns: 1fr;
  }

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

  .demo-scope {
    padding: 32px 24px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

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