/* Moosic marketing site — skill accents from constants/skillMenuTileColors.ts */
:root {
  --chords: #1cb0f6;
  --chords-dark: #1899d6;
  --scales: #58cc02;
  --scales-dark: #58a700;
  --harmony: #ce82ff;
  --harmony-dark: #b565d8;
  --progressions: #ff9600;
  --progressions-dark: #e08600;
  --mixed: #ff4b4b;
  --mixed-dark: #ea2b2b;
  --brand: #8b5cf6;
  --text: #1a1a2e;
  --text-muted: #6b6b8a;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 40px rgba(26, 26, 46, 0.06);
  --shadow-soft: 0 2px 12px rgba(26, 26, 46, 0.04);
  --content: 640px;
  --page: 880px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Soft skill-colour atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(28, 176, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 8%, rgba(255, 150, 0, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(206, 130, 255, 0.08), transparent 55%),
    var(--bg);
  pointer-events: none;
}

a {
  color: var(--chords-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.125rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.125rem 0;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--chords-dark);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--chords);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.75rem clamp(3rem, 10vw, 5rem);
}

main.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 8vw, 4.5rem);
}

/* Hero */
.hero {
  text-align: center;
  width: 100%;
  max-width: var(--content);
}

.hero-icon-wrap {
  display: inline-block;
  width: 112px;
  height: 112px;
  margin-bottom: 2rem;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.12);
}

.hero-app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.75rem, 10vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--text) 0%, #3d3d5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
}

.hero .subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.hero .lead {
  margin: 0 auto 2.25rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--chords);
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 176, 246, 0.35);
}

.btn-primary:hover {
  background: var(--chords-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(28, 176, 246, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid rgba(26, 26, 46, 0.1);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: rgba(28, 176, 246, 0.35);
  color: var(--chords-dark);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.06);
}

/* Features */
.features-section {
  width: 100%;
  max-width: var(--content);
}

.features-section .section-label {
  display: block;
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.card h2 {
  margin: 0 0 0;
  font-size: 0;
  height: 0;
  overflow: hidden;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem 1.5rem;
}

@media (min-width: 520px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  padding: 0.35rem 0;
}

.feature-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.feature-dot.chords { background: var(--chords); }
.feature-dot.scales { background: var(--scales); }
.feature-dot.harmony { background: var(--harmony); }
.feature-dot.progressions { background: var(--progressions); }
.feature-dot.mixed { background: var(--mixed); }

/* Inner pages */
main.inner-main {
  max-width: var(--content);
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-intro {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.prose h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.prose p:first-of-type {
  color: var(--text);
}

.prose ul {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose ul.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.15rem;
}

.prose ul.legal-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.prose ul.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--chords);
  font-weight: 700;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.email-link {
  font-weight: 700;
  word-break: break-all;
}

.support-card {
  border-left: none;
  background: linear-gradient(135deg, var(--surface) 0%, #fffaf5 100%);
}

.support-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--chords), var(--progressions));
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 1.75rem 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  font-weight: 600;
  color: var(--chords-dark);
}

.site-footer a:hover {
  text-decoration: none;
  color: var(--chords);
}

@media (max-width: 520px) {
  .header-inner {
    padding: 1rem 1.25rem;
  }

  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav {
    gap: 0.5rem 1.25rem;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    width: 100%;
  }

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