/* Matrix Vault / YoMatrix marketing — shared minimal styles.
   Used by:
   - landing pages (matrixvault.app/, yomatrix.app/) — dark hero + light body
   - legal pages (/privacy/, /terms/, /support/) — light only
   No external fonts, no JS, no third-party assets. */

:root {
  --fg: #0e0f12;
  --fg-muted: #4a5060;
  --fg-on-dark: #ffffff;
  --fg-on-dark-muted: rgba(255, 255, 255, 0.72);
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-alt: #f4f5f7;
  --accent: #0b6cb8;
  --accent-on-dark: #6eb8ff;
  --rule: #d8dade;
  --rule-on-dark: rgba(255, 255, 255, 0.18);
  --maxw-text: 70ch;
  --maxw-wide: 1100px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 18, 0.06);
  --shadow-md: 0 8px 28px rgba(14, 15, 18, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Shared text container (used by legal pages) ---------- */
.wrap {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}
header.site .brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
header.site nav {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
header.site nav a {
  color: var(--fg-muted);
  text-decoration: none;
  margin-right: 1rem;
}
header.site nav a:hover { color: var(--accent); text-decoration: underline; }
h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.5rem;
  color: var(--fg);
}
p, li { color: var(--fg); }
a { color: var(--accent); }
ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.meta {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
footer.site a { color: var(--fg-muted); margin-right: 1rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.lead { font-size: 1.05rem; color: var(--fg); }
strong { font-weight: 600; }

/* ============================================================
   LANDING PAGE — applied only when <body class="landing">
   ============================================================ */
body.landing { background: var(--bg); }

/* Dark hero */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(110, 184, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(110, 184, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0e1426 50%, #0c111f 100%);
  color: var(--fg-on-dark);
  padding: 4.5rem 1.25rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle mesh overlay, pure CSS */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent);
}
.hero-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw-wide);
  margin: 0 auto 3rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--rule-on-dark);
  position: relative;
  z-index: 1;
}
.hero header .brand {
  color: var(--fg-on-dark);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.hero header nav a {
  color: var(--fg-on-dark-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.92rem;
}
.hero header nav a:hover { color: var(--fg-on-dark); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--fg-on-dark);
  font-weight: 700;
}
.hero .tagline {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fg-on-dark-muted);
  margin: 0 0 2rem;
  max-width: 32rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: #ffffff;
  color: #0b1220;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }
.hero-cta .chevron { font-size: 1.1em; line-height: 1; }
.hero-cta--ghost {
  margin-left: 0.75rem;
  background: transparent;
  color: var(--fg-on-dark);
  border: 1px solid var(--rule-on-dark);
  box-shadow: none;
}
.hero-cta--ghost:hover { background: rgba(255,255,255,0.06); }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* Section container for light body content */
.section {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section--narrow { max-width: var(--maxw-text); }
.section h2.section-title {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section .section-lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin: 0 0 2rem;
  max-width: 50rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(11, 108, 184, 0.08);
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.feature .icon svg { width: 22px; height: 22px; display: block; }
.feature h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.feature p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* Trust strip */
.trust {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 1.25rem;
}
.trust-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.trust-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Sibling-product callout */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.callout h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.callout p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }
.callout-cta {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.callout-cta:hover { text-decoration: underline; }

/* Landing footer (matches the dark hero) */
footer.landing-footer {
  background: #0b1220;
  color: var(--fg-on-dark-muted);
  padding: 3rem 1.25rem 2rem;
  text-align: left;
}
footer.landing-footer .footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}
footer.landing-footer a {
  color: var(--fg-on-dark);
  text-decoration: none;
  margin-right: 1.5rem;
}
footer.landing-footer a:hover { text-decoration: underline; }
footer.landing-footer .copy { color: var(--fg-on-dark-muted); }

/* Pill / soon badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-on-dark);
  margin-bottom: 1rem;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6eb8ff;
  box-shadow: 0 0 8px #6eb8ff;
}

/* Mobile */
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero header nav a { margin-left: 1rem; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 220px; }
  .hero-cta--ghost { margin-left: 0; margin-top: 0.75rem; display: inline-flex; }
  .callout { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta { transition: none; }
}
