/* ------------------------------------------------------------------
   RS Milow Audio -- shared design tokens + primitives used across every
   page (main site, account pages). Single, deliberately dark visual
   world (a lit rack of analog-style hardware in a dim studio), so this
   stays one committed theme rather than trying to invert into a
   "light mode vintage rack", which isn't a coherent thing. Background
   and every color are painted explicitly regardless of host theme.
-------------------------------------------------------------------*/
:root {
  --ground:      #0c0906;
  --ground-2:    #120d09;
  --surface:     #18120b;
  --surface-2:   #201808;
  --hairline:    #3a2c17;
  --hairline-lo: #241a0e;
  --gold:        #c9a227;
  --gold-hi:     #eecb6b;
  --gold-dim:    #8a6c1f;
  --ink:         #f3e8d2;
  --ink-dim:     #baa87f;
  --ink-faint:   #7c6c4c;
  --danger:      #e2604a;

  --font-display: "Michroma", "Segoe UI", sans-serif;
  --font-body:    "Michroma", "Segoe UI", sans-serif;
  --font-mono:    "Michroma", "Segoe UI", sans-serif;

  --container: 1180px;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { text-wrap: balance; margin: 0; }

a { color: inherit; }

::selection { background: var(--gold-dim); color: var(--ground); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------
   Vintage aged-surface grain, matching Mvox's own in-app "Vibe"
   overlay concept -- recreated in pure CSS/SVG rather than embedding
   the app's heavy source PNGs, so every page stays light.
-------------------------------------------------------------------*/
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 499;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 140% 100% at 50% 100%, transparent 55%, rgba(0,0,0,0.6) 100%);
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------------
   Nav
-------------------------------------------------------------------*/
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 9, 6, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-lo);
}
.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.wordmark .dot { color: var(--gold-hi); text-shadow: 0 0 12px rgba(238,203,107,0.7); }
nav.links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-dim);
}
nav.links a { text-decoration: none; transition: color 0.15s ease; }
nav.links a:hover { color: var(--gold-hi); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-account-link { font-size: 13.5px; color: var(--ink-dim); text-decoration: none; white-space: nowrap; }
.nav-account-link:hover { color: var(--gold-hi); }
.navcta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ground);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  padding: 9px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(238,203,107,0.35), 0 6px 20px -6px rgba(201,162,39,0.55);
}
@media (max-width: 760px) {
  nav.links { display: none; }
}

/* ------------------------------------------------------------------
   Buttons (shared everywhere)
-------------------------------------------------------------------*/
.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-gold {
  color: var(--ground);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 0 1px rgba(238,203,107,0.4), 0 10px 28px -8px rgba(201,162,39,0.6);
}
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(238,203,107,0.6), 0 14px 34px -8px rgba(201,162,39,0.75); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold-hi); }

/* ------------------------------------------------------------------
   Section scaffolding
-------------------------------------------------------------------*/
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.18;
  color: var(--ink);
}
.section-desc {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 56ch;
}

/* ------------------------------------------------------------------
   Footer
-------------------------------------------------------------------*/
footer.site {
  border-top: 1px solid var(--hairline-lo);
  padding: 48px 0 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-row .wordmark { font-size: 13px; }
.footer-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--ink-faint); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-fine { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); }

/* ------------------------------------------------------------------
   Auth forms (login / signup) -- shared card layout
-------------------------------------------------------------------*/
.auth-shell {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(150deg, rgba(201,162,39,0.08), var(--surface) 55%);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  font-size: 14.5px;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field input:focus { border-color: var(--gold-dim); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-switch {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
}
.auth-switch a { color: var(--gold-hi); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-message {
  font-size: 13.5px;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: none;
}
.auth-message.show { display: block; }
.auth-message.error { background: rgba(226,96,74,0.12); border: 1px solid rgba(226,96,74,0.4); color: #f2a591; }
.auth-message.info { background: rgba(201,162,39,0.10); border: 1px solid var(--hairline); color: var(--ink-dim); }
