/* ============================================================
   MXT ALGOS — design system  (v2: glass, gradient, depth)
   ============================================================ */

:root {
  /* Base — pure black */
  --bg:          #000000;
  --bg-elev:     #0b0b0c;
  --bg-elev-2:   #141416;
  --border:      #34343b;
  --border-soft: #202024;
  --text:        #f7fafd;
  --text-dim:    #d9e0e9;
  --text-faint:  #a2adba;

  /* Accent — money green with a teal partner */
  --accent:        #2ecc71;
  --accent-bright: #58d68d;
  --accent-2:      #1abc9c;   /* money green */
  --danger:        #f0616d;

  /* Signature gradient + glows */
  --grad:      linear-gradient(120deg, #2ecc71 0%, #1abc9c 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,204,113,0.16), rgba(26,188,156,0.16));
  --glow:      0 10px 40px rgba(46,204,113,0.22);
  --glow-strong: 0 12px 46px rgba(46,204,113,0.4);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;   /* swap "Orbitron" -> "Michroma" to compare */
  --font-mono: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  /* ---- Independent background-layer controls (tune each on its own) ---- */
  --bg-darkness: 0.55;        /* map/background darkening: 0 = map full, 1 = pure black */
  --candle-opacity: 1;        /* candle layer opacity: 0 = hidden, 1 = full */
  --candle-brightness: 1.5;   /* candle layer brightness multiplier (1 = as drawn) */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layer 1: background — black + grey world map (darkness = --bg-darkness) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,var(--bg-darkness)), rgba(0,0,0,calc(var(--bg-darkness) + 0.14))),
    url("../assets/bg-map.svg?v=1") center center / cover no-repeat,
    #000;
}
/* ---------- Layer 2: candles — sit ON TOP (opacity + brightness independent) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/bg-candles.svg?v=17") center center / cover no-repeat;
  opacity: var(--candle-opacity);
  filter: brightness(var(--candle-brightness));
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-bright); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
/* sci-fi display font on the big type only (keeps body + small headings readable) */
h1, h2 { font-family: var(--font-display); letter-spacing: 0; line-height: 1.18; }
p { color: var(--text-dim); }

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

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.accent-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.teal { color: var(--accent-2); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.center { text-align: center; }

/* ---------- Placeholder token ---------- */
.ph {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-bright);
  background: rgba(46,204,113,0.10); border: 1px dashed rgba(46,204,113,0.4);
  border-radius: 5px; padding: 0 6px; white-space: nowrap;
}

/* ============================================================
   Pill badge (eyebrow)
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-bright);
  background: rgba(46,204,113,0.07);
  border: 1px solid rgba(46,204,113,0.22);
  border-radius: 999px; padding: 6px 15px 6px 12px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
   Header — floating glass pill
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 24px 0; }
.site-header .nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: auto; padding: 11px 12px 11px 20px;
  background: rgba(14,14,18,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
/* MX lettermark (Michroma, joined) — freestanding, no badge */
.brand .mark { display: flex; align-items: center; flex: none; }
.brand .mark img.mx-mark { height: 26px; width: auto; display: block; }
@media (max-width: 560px) { .brand .mark img.mx-mark { height: 21px; } }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.10em; font-weight: 700; }
.brand .brand-text b em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .brand-text span { font-size: 0.6rem; color: var(--text-faint); letter-spacing: 0.26em; font-weight: 500; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(14,14,18,0.92); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 14px 22px; width: 100%; border-top: 1px solid var(--border-soft); }
  .nav-links a:first-child { border-top: 0; }
  .nav-toggle { display: block; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 12px 22px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--grad); color: #000000; box-shadow: 0 8px 26px rgba(46,204,113,0.30); font-weight: 700; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow-strong); filter: brightness(1.05); color: #000000; }
.btn-ghost { border-color: rgba(255,255,255,0.14); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

/* nav CTA sizing */
.nav-links .btn-primary { padding: 9px 18px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover, .nav-links a.btn-primary.active { color: #000000; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 92px 0; position: relative; }
.section-sm { padding: 60px 0; }
.eyebrow { }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 72% 12%, rgba(46,204,113,0.16), transparent 60%),
    radial-gradient(520px 320px at 15% 88%, rgba(26,188,156,0.10), transparent 62%);
}
.hero .container { position: relative; text-align: center; }
.hero h1 { max-width: 20ch; margin: 0 auto 22px; font-weight: 750; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.hero .lede { font-size: 1.22rem; max-width: 62ch; color: var(--text); margin: 0 auto 34px; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 72%);
  opacity: 0.08;
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
}
.trust .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .n { font-family: var(--font-mono); font-size: 1.55rem; color: var(--text); font-weight: 600; }
.trust-item .l { font-size: 0.86rem; color: var(--text-dim); max-width: 22ch; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, #131315, #0b0b0d);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color .18s ease, transform .18s ease, box-shadow .25s ease;
}
.card:hover { border-color: rgba(46,204,113,0.38); transform: translateY(-3px); box-shadow: var(--glow), 0 14px 44px rgba(0,0,0,0.34); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(46,204,113,0.22);
  color: var(--accent-bright); margin-bottom: 18px;
}
.card h3 { margin: 0 0 9px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Product cards ---------- */
.product {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #131315, #0b0b0d);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, border-color .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0,0,0,0.34); border-color: #2f3a4a; }
.product.featured { border-color: transparent; box-shadow: 0 0 0 1.5px rgba(46,204,113,0.5), var(--glow); position: relative; }
.product.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.product-head { padding: 26px 28px 22px; border-bottom: 1px solid var(--border-soft); }
.product-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.product.featured .product-tag { color: var(--accent-bright); }
.product h3 { margin: 8px 0 6px; }
.product .desc { font-size: 0.94rem; margin: 0; }
.product-body { padding: 24px 28px; flex: 1; }
.product .price { font-family: var(--font-mono); font-size: 1.9rem; color: var(--text); font-weight: 600; }
.product .price small { font-size: 0.8rem; color: var(--text-faint); font-weight: 400; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-dim); padding: 6px 0; }
.feature-list li svg { flex: none; margin-top: 3px; color: var(--accent-2); }
.product-foot { padding: 0 28px 28px; }
.product-foot .btn { width: 100%; justify-content: center; }

/* ============================================================
   Validation pipeline
   ============================================================ */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 820px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }
.pipe-step {
  position: relative; padding: 26px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #131315, #0b0b0d); border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.pipe-step:hover { border-color: rgba(46,204,113,0.32); transform: translateY(-2px); }
.pipe-step .step-n { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.pipe-step h4 { margin: 10px 0 8px; font-size: 1.04rem; }
.pipe-step p { font-size: 0.88rem; margin: 0; }
.pipe-step .arrow { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--accent); }
@media (max-width: 820px) { .pipe-step .arrow { display: none; } }

/* ---------- Side-by-side ✕ / ✓ comparison ---------- */
.vs { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:760px){ .vs{ grid-template-columns:1fr; } }
.vs-col { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  background:linear-gradient(180deg,#101115,#0a0a0c); }
.vs-col.yes { border-color:rgba(46,204,113,.4); box-shadow:0 0 0 1px rgba(46,204,113,.18); }
.vs-col .hd { padding:16px 22px; font-family:var(--font-mono); font-size:0.72rem;
  letter-spacing:.13em; text-transform:uppercase; border-bottom:1px solid var(--border-soft); }
.vs-col.no .hd { color:var(--danger); }
.vs-col.yes .hd { color:var(--accent-bright); }
.vs-col ul { list-style:none; margin:0; padding:8px 0; }
.vs-col li { display:flex; gap:11px; align-items:flex-start; padding:12px 22px;
  font-size:0.95rem; color:var(--text-dim); line-height:1.5; }
.vs-col.no li::before { content:"✕"; color:var(--danger); font-weight:700; flex:none; }
.vs-col.yes li::before { content:"✓"; color:var(--accent); font-weight:700; flex:none; }
.vs-col li b { color:var(--text); font-weight:600; }

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: linear-gradient(120deg, rgba(46,204,113,0.06), rgba(14,14,18,0.4));
  border-radius: var(--radius-sm); padding: 22px 26px;
}
.callout.teal { border-left-color: var(--accent-2); }
.callout p { margin: 0; }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(14,14,18,0.5); }
table.data { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.88rem; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
table.data th { color: var(--text-faint); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; background: rgba(255,255,255,0.02); }
table.data td { color: var(--text-dim); }
table.data tr:last-child td { border-bottom: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.badge.pass { color: var(--accent-2); background: rgba(45,212,191,0.14); }
.badge.pend { color: var(--accent-bright); background: rgba(46,204,113,0.14); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(46,204,113,0.10), rgba(26,188,156,0.06) 55%, rgba(14,14,18,0.6));
  border: 1px solid rgba(46,204,113,0.22);
  border-radius: 22px; padding: 58px 40px; text-align: center;
  box-shadow: var(--glow);
}
.cta-band h2 { margin: 0 0 14px; }
.cta-band p { max-width: 54ch; margin: 0 auto 30px; font-size: 1.08rem; }

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(14,14,18,0.6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 13px 15px;
  font-family: var(--font-sans); font-size: 0.95rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,204,113,0.14); }
.field textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border-soft); background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); padding: 60px 0 34px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-about p { font-size: 0.92rem; max-width: 40ch; margin: 14px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.footer-bottom p { font-size: 0.82rem; color: var(--text-faint); margin: 0; }

.disclaimer { font-size: 0.8rem; color: var(--text-faint); line-height: 1.6; }
.disclaimer strong { color: var(--text-dim); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 92px 0 48px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 78% 0%, rgba(46,204,113,0.12), transparent 62%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 0 0 16px; }
.page-hero p { font-size: 1.12rem; max-width: 62ch; }
