/* Musicast landing page. Colours mirror the app's daisyUI "dark" theme (assets/css/app.css). */

:root {
  --base-100: oklch(22% 0.04 270);
  --base-200: oklch(18% 0.035 272);
  --base-300: oklch(14% 0.03 274);
  --content: oklch(95% 0.015 265);
  --muted: oklch(95% 0.015 265 / 0.6);
  --faint: oklch(95% 0.015 265 / 0.4);
  --line: oklch(30% 0.04 270);
  --primary: oklch(65% 0.24 265);
  --primary-content: oklch(98% 0.01 265);
  --info: oklch(65% 0.19 250);
  --success: oklch(68% 0.17 165);
  --warning: oklch(75% 0.16 75);
  --error: oklch(62% 0.24 20);
  --radius: 1rem;
  --wrap: 72rem;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base-100);
  color: var(--content);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.text-primary { color: var(--primary); }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--primary); color: var(--primary-content);
  padding: .5rem 1rem; border-radius: .5rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ── Icons ─────────────────────────────────────────────────────────── */
.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--primary { color: var(--primary); width: 1.5rem; height: 1.5rem; }

.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; flex: none;
}
.tile--lg { width: 3rem; height: 3rem; border-radius: 1rem; margin-bottom: 1rem; transition: background-color .2s; }
.tile--primary { color: var(--primary); background: oklch(65% 0.24 265 / 0.1); }
.tile--warning { color: var(--warning); background: oklch(75% 0.16 75 / 0.1); }
.tile--success { color: var(--success); background: oklch(68% 0.17 165 / 0.1); }
.tile--info { color: var(--info); background: oklch(65% 0.19 250 / 0.1); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: .5rem;
  padding: .625rem 1.125rem; min-height: 2.75rem;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--sm { min-height: 2.25rem; padding: .375rem .875rem; font-size: .875rem; }
.btn--lg { min-height: 3.25rem; padding: .75rem 1.5rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--primary); color: var(--primary-content);
  box-shadow: 0 10px 24px -8px oklch(65% 0.24 265 / 0.45);
}
.btn--primary:hover { background: oklch(60% 0.24 265); }
.btn--outline { border-color: oklch(100% 0 0 / 0.25); color: #fff; background: oklch(100% 0 0 / 0.06); }
.btn--outline:hover { background: oklch(100% 0 0 / 0.12); }
.btn--ghost:hover { background: var(--base-200); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ── Header ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: oklch(22% 0.04 270 / 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--base-200);
  transition: box-shadow .2s;
}
.topbar.is-scrolled { box-shadow: 0 6px 20px -12px oklch(0% 0 0 / 0.6); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, oklch(0% 0 0 / 0.85), oklch(0% 0 0 / 0.7), oklch(0% 0 0 / 0.3));
}
.hero__inner { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
.hero__copy { max-width: 42rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .375rem 1rem; margin-bottom: 2rem;
  background: oklch(100% 0 0 / 0.1); border: 1px solid oklch(100% 0 0 / 0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: oklch(100% 0 0 / 0.8); font-size: .875rem; font-weight: 500;
}
.hero h1 {
  color: #fff; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
.hero__lead { margin-top: 1.5rem; max-width: 36rem; color: oklch(100% 0 0 / 0.6); font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.65; }
.hero__ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 1024px) { .hero { min-height: 700px; } }

/* ── Feature strip ─────────────────────────────────────────────────── */
.strip { border-bottom: 1px solid var(--base-200); }
.strip__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.strip__item { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.strip__title { font-size: .875rem; font-weight: 600; }
.strip__sub { font-size: .75rem; color: oklch(95% 0.015 265 / 0.5); }
@media (min-width: 1024px) { .strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Sections ──────────────────────────────────────────────────────── */
.section-head { text-align: center; margin: 0 auto 4rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.features { padding: 4rem 0; background: oklch(18% 0.035 272 / 0.3); scroll-margin-top: 4rem; }
.features__grid { display: grid; gap: 2.5rem; }
.feature h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { color: var(--muted); line-height: 1.65; }
.feature:hover .tile--primary { background: oklch(65% 0.24 265 / 0.15); }
.feature:hover .tile--warning { background: oklch(75% 0.16 75 / 0.15); }
.feature:hover .tile--success { background: oklch(68% 0.17 165 / 0.15); }
.feature:hover .tile--info { background: oklch(65% 0.19 250 / 0.15); }
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { padding: 6rem 0; } }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact { padding: 5rem 0; scroll-margin-top: 4rem; }
.contact__inner { max-width: 44rem; }
.contact .section-head { margin-bottom: 2.5rem; }
.formcard {
  background: var(--base-200); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .375rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--content);
  background: var(--base-300); border: 1px solid var(--line); border-radius: .5rem;
  padding: .75rem .875rem; min-height: 2.75rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.field--pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .9375rem; border-radius: .5rem; padding: .75rem 1rem; }
.form__status--error { background: oklch(62% 0.24 20 / 0.12); color: oklch(80% 0.12 20); border: 1px solid oklch(62% 0.24 20 / 0.35); }
@media (min-width: 640px) {
  .formcard { padding: 2rem; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide, .form__status { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .contact { padding: 7rem 0; } }

.form-done { text-align: center; padding: 1rem 0; }
.form-done__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 999px; margin-bottom: 1rem;
  background: oklch(65% 0.24 265 / 0.15); color: var(--primary); font-size: 1.75rem;
}
.form-done h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.form-done p { color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--base-200); padding: 2.5rem 1rem;
  text-align: center; font-size: .875rem; color: var(--faint);
}
.footer__brand { font-weight: 600; color: var(--muted); }

/* ── Reveal on scroll ──────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
