/* Dance Knight — homepage styles */

:root {
  --ground: #1b0836;
  --ink: #120524;
  --card: #2e0f5c;
  --gold: #ffc93c;
  --cyan: #47d5ff;
  --pink: #ff5fc8;
  --magenta: #d91c8c;
  --text: #ffffff;
  --text-soft: #f3e9ff;
  --text-muted: #c9b3ea;
  --display: 'Lilita One', 'Arial Black', Impact, sans-serif;
  --body: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); }
a:hover { color: #ffe38a; }

.page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 72% 22%, #5a1cae 0%, rgba(90, 28, 174, 0) 70%),
    radial-gradient(700px 500px at 10% 80%, #3a0f7a 0%, rgba(58, 15, 122, 0) 70%),
    var(--ground);
}

/* ---------- Shared pieces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ground);
  text-decoration: none;
  font-weight: 800;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s ease;
  min-height: 48px;
}
.btn:hover { color: var(--ground); transform: translateY(-3px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.btn--pill {
  background: var(--gold);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 18px;
}
.btn--gold, .btn--cyan {
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
}
.btn--gold { background: var(--gold); }
.btn--cyan { background: var(--cyan); }

.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ground);
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .15s ease;
}
.store:hover { color: var(--ground); transform: translateY(-3px) rotate(-1deg); }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.store--ios { background: var(--gold); }
.store--android { background: var(--cyan); }
.store__text { display: flex; flex-direction: column; line-height: 1.05; }
.store__small { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.store__big { font-family: var(--display); font-size: 26px; }

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: var(--magenta);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.accent { color: var(--gold); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.nav__brand:hover { color: var(--text); }
.nav__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.nav__name {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 72px 0;
  min-height: 780px;
}
.hero__copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 7.5vw, 108px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 6px 6px 0 var(--ink);
}
.hero__lead {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  max-width: 520px;
  color: var(--text-soft);
}
.stores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.hero__meta {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.hero__art {
  flex: 0 0 44%;
  max-width: 640px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.hero__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 63, 176, .55) 0%, rgba(255, 63, 176, 0) 70%);
}
.hero__knight {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 0 rgba(18, 5, 36, .6));
}
.sparkle { position: absolute; z-index: 1; }
.sparkle--a { top: -24px; left: 10px; filter: drop-shadow(0 0 10px var(--gold)); }
.sparkle--b { bottom: 40px; right: -10px; filter: drop-shadow(0 0 8px var(--pink)); }

/* Dance floor */
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 300px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.floor__tiles {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -160px;
  height: 560px;
  transform: perspective(800px) rotateX(58deg);
  transform-origin: 50% 100%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 22%) 80px 80px / 160px 160px,
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 160px),
    repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 160px),
    repeating-conic-gradient(#c41fb0 0 25%, transparent 0 50%) 160px 0 / 320px 320px,
    repeating-conic-gradient(#7a2cff 0 25%, transparent 0 50%) 0 0 / 320px 320px,
    repeating-conic-gradient(#ff3fb0 0 25%, #3b6cff 0 50%) 0 0 / 160px 160px;
}
.floor__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ground) 0%, rgba(27, 8, 54, 0) 55%);
}

/* ---------- Features ---------- */

.features {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 96px 72px 72px;
  position: relative;
  z-index: 2;
}
.features__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.features__title { display: flex; align-items: center; gap: 20px; }
.features__title h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}
.deco { width: 56px; height: 56px; object-fit: contain; }
.deco--coin { transform: rotate(-10deg); }
.deco--heart { transform: rotate(8deg); }
.features__sub {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  max-width: 420px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink);
  transition: transform .2s ease;
}
.card--a { transform: rotate(-1.5deg); }
.card--b { transform: rotate(1deg); }
.card--c { transform: rotate(-.5deg); }
.card:hover { transform: translateY(-6px) rotate(0deg); }
.card__body { display: flex; flex-direction: column; gap: 16px; }
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
}
.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #e9dcff;
}
.card__art {
  height: 220px;
  border-radius: 20px;
  border: 3px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.card__art--gold { background: var(--gold); }
.card__art--cyan { background: var(--cyan); }
.card__art--pink { background: var(--pink); }
.card__art img { object-fit: contain; object-position: bottom; }
.card__art--gold img { width: 200px; height: 240px; margin-bottom: -10px; }
.card__art--cyan img { width: 230px; height: 246px; margin-bottom: -16px; }
.card__art--pink img { width: 180px; height: 250px; object-position: top; margin-bottom: -40px; }

/* ---------- CTA ---------- */

.cta-wrap {
  padding: 24px 72px 0;
  position: relative;
  z-index: 2;
}
.cta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  background: var(--magenta);
  border: 5px solid var(--ink);
  border-radius: 36px;
  box-shadow: 0 12px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.cta__art { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.cta__knight {
  width: 220px;
  height: 300px;
  object-fit: contain;
  object-position: bottom;
  margin: -60px 0 -70px -10px;
  filter: drop-shadow(0 10px 0 rgba(18, 5, 36, .6));
}
.cta__icon {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  border: 4px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  transform: rotate(-4deg);
}
.cta__copy { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; }
.cta__copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}
.cta__copy p { margin: 0; font-size: 19px; font-weight: 700; color: #ffe1f3; }
.cta__buttons { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 72px 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.footer__links { display: flex; gap: 28px; }
.footer__links a { color: var(--text-muted); text-decoration: none; padding: 10px 0; }
.footer__links a:hover { color: var(--gold); }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .nav, .hero, .features, .cta-wrap, .footer { padding-left: 40px; padding-right: 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-wrap: wrap; }
  .cta__buttons { flex-direction: row; width: 100%; }
  .cta__buttons .btn { flex: 1 1 0; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .nav { padding: 16px 20px; gap: 12px; }
  .nav__icon { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
  .nav__name { font-size: 20px; }
  .btn--pill { padding: 12px 16px; font-size: 15px; }

  .hero {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    padding: 16px 20px 0;
    min-height: 0;
    text-align: center;
  }
  .hero__copy { align-items: center; gap: 20px; width: 100%; }
  .tag { align-self: center; font-size: 13px; padding: 7px 14px; gap: 8px; }
  .tag svg { width: 16px; height: 16px; }
  .hero__title { font-size: 68px; text-shadow: 5px 5px 0 var(--ink); }
  .hero__title br { display: none; }
  .hero__lead { font-size: 17px; line-height: 1.5; }
  .stores { flex-direction: column; width: 100%; gap: 14px; padding-top: 4px; }
  .store { justify-content: center; padding: 14px 20px; }
  .store svg { width: 28px; height: 28px; }
  .store__small { font-size: 12px; }
  .store__big { font-size: 24px; }
  .hero__meta { font-size: 13px; padding-bottom: 24px; }

  .hero__art { flex: none; width: 100%; max-width: 350px; }
  .hero__knight { filter: drop-shadow(0 16px 0 rgba(18, 5, 36, .6)); }
  .sparkle--a { width: 44px; height: 44px; top: -12px; left: 6px; }
  .sparkle--b { width: 28px; height: 28px; bottom: 24px; right: 4px; }

  .floor { height: 140px; bottom: -10px; }
  .floor__tiles {
    bottom: -60px;
    height: 240px;
    transform: perspective(500px) rotateX(58deg);
    background:
      radial-gradient(circle, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 22%) 45px 45px / 90px 90px,
      repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 90px),
      repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 90px),
      repeating-conic-gradient(#c41fb0 0 25%, transparent 0 50%) 90px 0 / 180px 180px,
      repeating-conic-gradient(#7a2cff 0 25%, transparent 0 50%) 0 0 / 180px 180px,
      repeating-conic-gradient(#ff3fb0 0 25%, #3b6cff 0 50%) 0 0 / 90px 90px;
  }

  .features { gap: 20px; padding: 40px 20px 24px; }
  .features__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .features__title { gap: 12px; }
  .features__title h2 { font-size: 40px; }
  .deco { width: 40px; height: 40px; }
  .features__sub { font-size: 16px; }

  .cards { grid-template-columns: 1fr; gap: 22px; padding-top: 8px; }
  .card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    box-shadow: 0 8px 0 var(--ink);
  }
  .card__art { width: 96px; height: 110px; flex-shrink: 0; border-radius: 16px; }
  .card__art--gold img { width: 100px; height: 120px; margin-bottom: -6px; }
  .card__art--cyan img { width: 110px; height: 120px; margin-bottom: -8px; }
  .card__art--pink img { width: 90px; height: 126px; margin-bottom: -22px; }
  .card__body { display: flex; flex-direction: column; gap: 6px; }
  .card h3 { font-size: 24px; }
  .card p { font-size: 15px; }

  .cta-wrap { padding: 16px 20px 0; }
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 22px;
    border-width: 4px;
    border-radius: 28px;
    box-shadow: 0 10px 0 var(--ink);
    text-align: center;
  }
  .cta__art { align-items: flex-end; gap: 8px; }
  .cta__knight { width: 130px; height: 190px; margin: -40px 0 -20px 0; }
  .cta__icon { width: 100px; height: 100px; border-radius: 24px; margin-bottom: 8px; }
  .cta__copy h2 { font-size: 36px; }
  .cta__copy p { font-size: 16px; }
  .cta__buttons { flex-direction: column; width: 100%; gap: 12px; }
  .btn--gold, .btn--cyan { font-size: 20px; padding: 14px 20px; }

  .footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
    padding: 36px 20px 32px;
    font-size: 13px;
  }
  .footer__links { gap: 24px; }
}

/* Mobile card text wrapper */
@media (max-width: 760px) {
  .card h3, .card p { text-align: left; }
}
