/* ==========================================================================
   audioMCP.ai  |  shared stylesheet
   Dark, on-brand design system for the static marketing pages.
   Accent is driven by CSS variables, so the whole site can flip from the
   current cyan look to a purple/blue look by editing --accent* below.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:            #070912;
  --bg-tint:       #0a0d1e;
  --surface:       #0f1330;
  --surface-2:     #141936;
  --surface-3:     #1a2046;
  --border:        rgba(160, 165, 235, 0.10);
  --border-strong: rgba(150, 150, 255, 0.20);

  /* Text */
  --text:       #eef0fb;
  --text-muted: #a6adcf;
  --text-dim:   #6b7299;

  /* Primary interactive accent (violet, matches the new brand) */
  --accent:       #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-soft:  rgba(139, 92, 246, 0.15);
  --accent-ink:   #ffffff;      /* text sitting on a gradient/solid accent fill */

  /* Brand gradient (magenta -> purple -> blue, matches the logo + banners) */
  --brand-purple: #a855f7;
  --brand-indigo: #6d6bf5;
  --brand-blue:   #4f8bff;
  --grad-brand:   linear-gradient(120deg, #b06bff 0%, #7b6bff 45%, #4f8bff 100%);
  --grad-word:    linear-gradient(100deg, #d16bff 0%, #8b7bff 50%, #4f9bff 100%);

  /* Shape */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  /* Layout */
  --maxw:      1160px;
  --maxw-read: 820px;
  --gutter:    clamp(1.1rem, 4vw, 2rem);

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Elevation */
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -40px rgba(0, 0, 0, 0.9);

  --ring: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient brand glow behind the page, painted once on the body. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 76% -10%, rgba(79, 139, 255, 0.13), transparent 60%),
    radial-gradient(820px 560px at 4% 0%, rgba(168, 85, 247, 0.14), transparent 62%);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 0.6em;
  color: #fff;
}

p { margin: 0 0 1.05rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
main a[href]:not(.btn):not(.footer-link):not(.brand):hover { text-decoration: underline; text-underline-offset: 3px; }

strong { color: var(--text); font-weight: 600; }

:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: var(--ring);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad-word);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  margin: 0 0 0.9rem;
}

.grad-text {
  background: var(--grad-word);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-image: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 34px -14px rgba(124, 107, 255, 0.7);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 18px 44px -14px rgba(124, 107, 255, 0.85); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: #fff; border-color: rgba(255,255,255,0.28); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.3px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand .brand-mark { width: 30px; height: 30px; flex: none; }
.brand .brand-word {
  background: var(--grad-word);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { display: block; width: 100%; padding: 0.55rem 0; font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  /* Keep the Contact button reachable on mobile (it is not in the dropdown). */
  .nav-cta { padding: 0.55rem 1rem; font-size: 0.88rem; }
}

/* ---- Page shell ---------------------------------------------------------- */
main { display: block; }

.page-lead {
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 1.2rem;
  border-bottom: 1px solid var(--border);
}
.page-lead .container { max-width: var(--maxw-read); }
.page-lead h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.1rem);
  margin-bottom: 0.5rem;
}
.page-lead .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--text-muted);
  margin-bottom: 0;
}
.page-lead .lead strong { color: var(--text); }

/* Answer-first + key-takeaways callout */
.answer-block {
  max-width: var(--maxw-read);
  margin: 2.2rem auto 0;
  padding-inline: var(--gutter);
}
.answer-block .answer {
  font-size: 1.1rem;
  color: var(--text);
}
.takeaways {
  margin-top: 1.6rem;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.01)),
    var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
}
.takeaways h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.takeaways ul { margin: 0; padding-left: 1.15rem; }
.takeaways li { margin: 0.4rem 0; color: var(--text); }
.takeaways li::marker { color: var(--accent); }

/* Long-form reading column (legal + article prose) */
.prose {
  max-width: var(--maxw-read);
  margin-inline: auto;
  padding: 2.4rem var(--gutter) 3.4rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; color: var(--text); }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.4rem;
}
.meta-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--border); }

/* ---- Contact layout ------------------------------------------------------ */
.contact-hero { padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.4rem, 6vw, 4rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact-hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.contact-hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 30ch; }
.info-card {
  margin-top: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  color: var(--text-muted);
}
.info-card p { margin: 0; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Forms --------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--accent); margin-left: 2px; }
.field label .opt { color: var(--text-dim); font-weight: 500; margin-left: 4px; }
.field .help { font-size: 0.82rem; color: var(--text-dim); margin: 0.4rem 0 0; }

.input, .textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #0b0e17;
}
.textarea { min-height: 118px; resize: vertical; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
}
.field-check input {
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex: none;
}
.field-check label { margin: 0; font-weight: 500; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.form-actions { margin-top: 1.4rem; }
.form-fineprint {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin: 1rem 0 0;
}
.form-fineprint a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.9rem;
}

/* validation + status */
.input:user-invalid, .textarea:user-invalid { border-color: #f0637a; }
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(139, 92, 246, 0.12); border: 1px solid var(--accent); color: #dccdff; }
.form-status.is-error   { background: rgba(240, 99, 122, 0.10); border: 1px solid #f0637a; color: #ffd0d8; }

/* ---- Self-serve band ----------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2rem;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.35rem; }
.cta-band p { color: var(--text-muted); margin: 0; max-width: 46ch; }
@media (max-width: 720px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-tint);
  padding: 2.4rem 0;
  margin-top: 1rem;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-link { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.footer-link:hover { color: #fff; }
.footer-tag { color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 620px) {
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---- Modal (waitlist) ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 5vh, 4rem) 1rem 2rem;
  overflow-y: auto;
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 520px;
  background:
    radial-gradient(500px 220px at 50% -10%, rgba(124, 107, 255, 0.18), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 4vw, 2.1rem);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head { position: relative; margin-bottom: 1.3rem; padding-right: 2rem; }
.modal-head h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.modal-head p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
.modal-close {
  position: absolute;
  top: -0.3rem; right: -0.3rem;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ---- Utilities ----------------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.5rem; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
