/* Danceify · Kinetic Mono — shared site styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0A0A0C;
  --card: #111114;
  --ink: #FAFAFA;
  --dim: rgba(250, 250, 250, 0.55);
  --faint: rgba(250, 250, 250, 0.35);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #FF2D6F;
  --accent-top: #FF4A83;
  --accent-deep: #E51E5E;
  --page-h: 22px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  padding: 0 var(--page-h);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 0 56px;
}

/* === Top bar ===================================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 45, 111, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.tag {
  font-family: 'JetBrains Mono', SFMono-Regular, ui-monospace, monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
}
.topbar .nav {
  display: flex;
  gap: 14px;
}
.topbar .nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  border-bottom: 0;
}
.topbar .nav a:hover { color: var(--accent); }

/* === Wordmark ===================================================== */
.wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(3.6rem, 13vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  position: relative;
}
.wordmark-meta {
  position: absolute;
  top: 8px;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-align: right;
  text-transform: uppercase;
  line-height: 1.55;
}
.hero {
  position: relative;
  padding-top: 8px;
}
.subcaption {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
  line-height: 1.7;
}

/* === Display headline (legal pages) ============================== */
h1.display {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}

/* === Section heading ============================================= */
h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
h2::before {
  content: attr(data-num);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 500;
}

/* === Section blocks — consistent spacing ========================= */
.section-block {
  margin-top: 56px;
}

/* === Body ======================================================== */
p {
  font-size: 0.95rem;
  color: var(--dim);
  margin-bottom: 14px;
  line-height: 1.7;
  font-weight: 400;
}
p strong { color: var(--ink); font-weight: 600; }

ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
ul li {
  font-size: 0.95rem;
  color: var(--dim);
  margin-bottom: 10px;
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
  font-weight: 400;
}
ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
ul li strong { color: var(--ink); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 45, 111, 0.35);
  transition: border-color 0.15s, color 0.15s;
}
a:hover { border-bottom-color: var(--accent); }

/* === Feature row (index) ========================================= */
.feature-block { border: 1px solid var(--line); }
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--faint);
  padding-top: 5px;
  min-width: 28px;
}
.feature .body { flex: 1; }
.feature .body strong {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.feature .body span {
  font-size: 0.9rem;
  color: var(--dim);
  font-weight: 400;
  line-height: 1.55;
}

/* === FAQ Cards (support) ========================================= */
.card {
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 12px;
}
.card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p { margin-bottom: 0; font-size: 0.92rem; }

/* === Footnote ==================================================== */
.footnote {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 28px;
}

/* === Date stamp (legal) ========================================== */
.date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 28px;
}

/* === Inline mono caption ========================================= */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* === Footer ====================================================== */
.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer .links { display: flex; gap: 22px; }
.footer .links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 0;
}
.footer .links a:hover { color: var(--accent); }
.footer .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
}

/* === Ticker ====================================================== */
.ticker {
  margin-top: 36px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.ticker span {
  display: inline-block;
  padding-right: 32px;
  animation: scroll 28s linear infinite;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Wide container (homepage) ====================================== */
.container--wide { max-width: 960px; }

/* === Hero (homepage) ================================================ */
.hero--home {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 24px;
}
.hero--home .wordmark {
  display: block;
  text-align: center;
}
.hero__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 24px;
}
.hero__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 0;
}
.hero__proof {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 0;
}

/* === CTA App Store badge =========================================== */
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-top), var(--accent), var(--accent-deep));
  color: #fff;
  border: none;
  border-bottom: none;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.cta-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: sheen 3s ease-in-out infinite;
}
@keyframes sheen {
  0% { left: -100%; }
  100% { left: 200%; }
}
.cta-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 111, 0.35);
  border-bottom: none;
  color: #fff;
}
.cta-badge__icon { flex-shrink: 0; }
.cta-badge__text { display: flex; flex-direction: column; text-align: left; }
.cta-badge__pre {
  font-size: 9px;
  letter-spacing: 0.5px;
  opacity: 0.85;
  font-weight: 400;
  line-height: 1;
}
.cta-badge__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.cta-badge--hero {
  margin-top: 32px;
  padding: 16px 40px;
}
.cta-badge--hero .cta-badge__title { font-size: 22px; }
.cta-badge--large { margin-top: 0; padding: 16px 36px; }
.cta-badge--large .cta-badge__title { font-size: 22px; }

/* === Subtle inline CTA variant ===================================== */
.cta-badge--subtle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 24px;
}
.cta-badge--subtle::before { display: none; }
.cta-badge--subtle:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 111, 0.08);
  color: var(--ink);
}
.cta-badge--subtle .cta-badge__icon { color: var(--accent); }

/* === Inline CTA placement ========================================== */
.inline-cta {
  text-align: center;
  margin-top: 28px;
}

/* === Steps grid (How It Works) ===================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.step-card {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-card:last-child { border-right: 0; }
.step-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 500;
}
.step-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.step-card__desc {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.55;
}

/* === Dance styles grid — video cards =============================== */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.style-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: none;
  border-bottom: none;
  text-decoration: none;
}
.style-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.style-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
}
.style-card__name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}
.style-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}
.style-card:hover::after {
  background: rgba(0, 0, 0, 0);
}
.style-card:hover {
  border-bottom: none;
}

/* === Use-cases grid ================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.use-case-card {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.use-case-card:nth-child(2n) { border-right: 0; }
.use-case-card:nth-child(n+3) { border-bottom: 0; }
.use-case-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2px;
}
.use-case-card strong {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.use-case-card span {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.55;
}

/* === Bottom CTA section ============================================ */
.cta-section {
  margin-top: 56px;
  text-align: center;
  padding: 48px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}
.cta-section__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.cta-section__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* === Style page hero video ========================================== */
.style-hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--line);
}
.style-hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.style-hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

/* === Showcase grid (premium samples) ================================ */
.showcase-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: -6px;
  margin-bottom: 14px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.showcase-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.showcase-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.showcase-card--large {
  aspect-ratio: 3 / 4;
}
.showcase-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-card .style-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

/* === Sample results grid (style detail pages) ======================= */
.sample-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 14px;
}
.sample-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.sample-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sample-card .style-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

/* === Responsive ==================================================== */
@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step-card:last-child { border-bottom: 0; }

  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-card--large:last-child {
    grid-column: span 2;
  }

  .sample-results-grid {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .use-case-card {
    border-right: 0;
  }
  .use-case-card:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .use-case-card:last-child { border-bottom: 0; }

  .topbar .nav { gap: 10px; }
  .topbar .nav a { font-size: 9px; letter-spacing: 1px; }

  .cta-badge--hero { padding: 14px 28px; }
  .cta-badge--hero .cta-badge__title { font-size: 18px; }
  .cta-badge--large { padding: 14px 24px; }
  .cta-badge--large .cta-badge__title { font-size: 18px; }

  .section-block { margin-top: 44px; }
}

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

  .showcase-grid--featured {
    grid-template-columns: 1fr;
  }
  .showcase-card--large {
    aspect-ratio: 3 / 4;
  }
  .showcase-card--large:last-child {
    grid-column: span 1;
  }

  .style-card__name {
    font-size: 0.75rem;
  }
}
