/* Soundkeel marketing one-pager. Same token language as the admin console
   (src/admin-ui/src/styles.scss) so the two feel like one product, but this
   page ships as plain static files — a single page never needs a framework
   or a build step, and a public landing page must load fast on any device. */

:root {
  color-scheme: dark;

  --surface: #0a0e16;
  --surface-raised: #10151f;
  --surface-elevated: #141b28;
  --surface-inset: #080b11;
  --border: rgb(255 255 255 / 8%);
  --border-strong: rgb(255 255 255 / 15%);

  --text: #eef2f6;
  --text-muted: #93a1b0;
  --text-faint: #62707f;
  --text-eyebrow: #6f9c8f;

  --accent: #4dd4ac;
  --accent-hover: #66ddb9;
  --accent-ink: #04211a;
  --accent-soft: rgb(77 212 172 / 14%);

  --result-match: #4dd4ac;
  --result-close: #d9a441;
  --result-none: #c96a6a;
  --result-unable: #7f8ea3;

  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 12px 32px -16px rgb(0 0 0 / 65%);
  --content-width: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin-bottom: 0.85rem;
}

.muted {
  color: var(--text-muted);
}

/* ---- Layout ------------------------------------------------------------ */

main > section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5.5rem 1.75rem;
}

.section-lede {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* ---- Top bar ------------------------------------------------------------ */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(10 14 22 / 80%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.bar__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);

  a:not(.btn) {
    text-decoration: none;
    transition: color 0.12s ease;

    &:hover {
      color: var(--text);
    }
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.brand--dim {
  color: var(--text-muted);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;

  &:hover {
    border-color: var(--text-faint);
    background: var(--surface-raised);
  }

  &:active {
    transform: scale(0.97);
  }
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;

  &:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
}

.btn--lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
}

/* ---- Result badge (mirrors the admin console) --------------------------- */

.result {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, currentcolor 16%, transparent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.result--match { color: var(--result-match); }
.result--close_match { color: var(--result-close); }
.result--no_match { color: var(--result-none); }
.result--unable_to_verify { color: var(--result-unable); }

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 7rem !important;
  padding-bottom: 6rem !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2rem 0 auto 0;
  height: 34rem;
  background: radial-gradient(46rem 26rem at 50% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 42rem;
}

.hero__lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* ---- Cards & grids -------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.card__mark {
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---- Steps (how it works) -------------------------------------------------- */

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);

  h3 {
    font-size: 1.125rem;
    margin-bottom: 0.4rem;
  }

  p {
    color: var(--text-muted);
    max-width: 34rem;
  }
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step__no {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---- CTA & footer ---------------------------------------------------------- */

.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .section-lede {
  max-width: 32rem;
}

.cta .btn {
  margin-top: 2rem;
}

.foot {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.75rem;
}

.foot__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.foot p {
  font-size: 0.8125rem;
  max-width: 30rem;
}

/* ---- Scroll reveal --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 40rem) {
  .bar__links {
    gap: 1rem;
  }

  .bar__links a:not(.btn) {
    display: none;
  }

  main > section {
    padding: 3.5rem 1.25rem;
  }
}
