/*
Theme Name: Matrix Vertical Storefront
Theme URI: https://matrix.dustfitter.com/
Author: Matrix OS
Description: A conversion-focused, evidence-safe WooCommerce storefront for Matrix OS vertical stores.
Version: 1.1.0
Text Domain: matrix-vertical-storefront
*/

:root {
  --mx-ink: #11110f;
  --mx-muted: #6c6a63;
  --mx-line: #d9d5cc;
  --mx-bg: #f3f0e9;
  --mx-card: #ffffff;
  --mx-primary: #11110f;
  --mx-accent: #c7ff38;
  --mx-success: #16865b;
  --mx-radius: 28px;
  --mx-shadow: 0 24px 70px rgba(17, 17, 15, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mx-ink);
  background: var(--mx-bg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--mx-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.mx-container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.mx-announcement {
  padding: 8px 18px;
  color: #11110f;
  background: var(--mx-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
}
.mx-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding: 12px 0;
  border-bottom: 0;
  background: rgba(243, 240, 233, .86);
  backdrop-filter: blur(14px);
}
.mx-header-row {
  min-height: 70px; display: flex; align-items: center; gap: 26px;
  padding: 0 14px 0 18px; border: 1px solid rgba(17,17,15,.10);
  border-radius: 22px; background: rgba(255,255,255,.88);
  box-shadow: 0 10px 35px rgba(17,17,15,.06);
}
.mx-brand { display: flex; align-items: center; gap: 12px; color: var(--mx-ink); }
.mx-brand:hover { text-decoration: none; }
.mx-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: #11110f; background: var(--mx-accent);
  font-weight: 950; font-size: 18px; box-shadow: none;
}
.mx-brand-copy strong, .mx-brand-copy small { display: block; }
.mx-brand-copy strong { font-size: 17px; line-height: 1.2; }
.mx-brand-copy small { color: var(--mx-muted); font-size: 11px; }
.mx-nav { margin-left: auto; }
.mx-nav ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.mx-nav a { color: #2e2d29; font-weight: 750; font-size: 13px; }
.mx-header-action, .mx-button, button, input[type=submit], .button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 19px; border: 0; border-radius: 999px; color: #fff !important;
  background: var(--mx-primary) !important; font-weight: 800; cursor: pointer;
  box-shadow: none;
}
.mx-header-action:hover, .mx-button:hover { text-decoration: none; transform: translateY(-1px); }
.mx-button-light { color: var(--mx-ink) !important; background: transparent !important; border: 1px solid #11110f; box-shadow: none; }
.mx-main { min-height: 60vh; }
.mx-hero {
  overflow: hidden; position: relative; padding: 78px 0 76px;
  background:
    radial-gradient(circle at 83% 18%, rgba(199,255,56,.55) 0 7%, transparent 7.2%),
    radial-gradient(circle at 90% 30%, rgba(80,86,255,.13) 0 18%, transparent 18.2%),
    var(--mx-bg);
  color: var(--mx-ink);
}
.mx-hero-grid { display: grid; grid-template-columns: 1.28fr .72fr; gap: 76px; align-items: center; }
.mx-eyebrow { margin: 0 0 14px; color: #55534d; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 900; }
.mx-hero h1 { max-width: 830px; margin: 0; font-size: clamp(46px, 6.7vw, 86px); line-height: .94; letter-spacing: -.065em; font-weight: 850; }
.mx-hero-lead { max-width: 650px; margin: 28px 0 30px; color: #5e5b54; font-size: 18px; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-hero-card {
  overflow: hidden; position: relative; padding: 34px; border: 0; border-radius: 36px;
  color: #fff; background: #11110f; box-shadow: 0 30px 80px rgba(17,17,15,.18);
  transform: rotate(1.5deg);
}
.mx-hero-card::after {
  content: ""; position: absolute; right: -42px; top: -42px; width: 132px; height: 132px;
  border-radius: 50%; background: var(--mx-accent); opacity: .95;
}
.mx-hero-card .mx-eyebrow { color: var(--mx-accent); }
.mx-hero-card h2 { margin: 0 0 12px; font-size: 23px; }
.mx-checks { padding: 0; margin: 18px 0 0; list-style: none; }
.mx-checks li { position: relative; z-index: 1; display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); }
.mx-checks li::before { content: "↗"; color: var(--mx-accent); font-weight: 900; }
.mx-strip { background: #11110f; border-bottom: 0; color: #fff; }
.mx-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mx-proof { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.mx-proof:last-child { border-right: 0; }
.mx-proof strong, .mx-proof span { display: block; }
.mx-proof strong { font-size: 13px; }
.mx-proof span { color: #a9a79f; font-size: 12px; }
.mx-section { padding: 88px 0; }
.mx-section-white { background: #fff; }
.mx-heading { max-width: 720px; margin-bottom: 28px; }
.mx-heading h2 { margin: 0 0 10px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.04; letter-spacing: -.05em; }
.mx-heading p { margin: 0; color: var(--mx-muted); }
.mx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mx-card {
  position: relative; min-height: 250px; padding: 28px; border: 1px solid var(--mx-line); border-radius: var(--mx-radius);
  background: rgba(255,255,255,.72); box-shadow: none;
}
.mx-card:nth-child(2) { background: #ded9ff; border-color: #ded9ff; }
.mx-card:nth-child(3) { background: var(--mx-accent); border-color: var(--mx-accent); }
.mx-card:hover { border-color: #11110f; box-shadow: var(--mx-shadow); transform: translateY(-5px) rotate(-.3deg); }
.mx-card-label { color: #57544e; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 900; }
.mx-card h3 { margin: 12px 0 10px; font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.mx-card p { margin: 0 0 16px; color: var(--mx-muted); }
.mx-card-link { font-weight: 800; }
.mx-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: mxstep; }
.mx-step { counter-increment: mxstep; }
.mx-step::before {
  content: "0" counter(mxstep); display: grid; place-items: center; width: 44px; height: 44px;
  margin-bottom: 18px; border-radius: 50%; color: #11110f; background: var(--mx-accent); font-weight: 900;
}
.mx-step h3 { margin: 0 0 8px; }
.mx-step p { color: var(--mx-muted); }
.mx-content-shell {
  width: min(900px, calc(100% - 36px)); margin: 56px auto; padding: 38px;
  border: 1px solid var(--mx-line); border-radius: 22px; background: #fff; box-shadow: var(--mx-shadow);
}
.mx-content-shell h1 { margin-top: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.035em; }
.mx-content-shell h2 { margin-top: 34px; font-size: 27px; }
.mx-content-shell h3 { margin-top: 25px; }
.mx-content-shell p, .mx-content-shell li { color: #46566d; }
.mx-content-shell li { margin: 7px 0; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; padding: 18px; border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius); background: #fff; box-shadow: 0 10px 30px rgba(19,36,58,.05);
}
.woocommerce ul.products li.product img { border-radius: 13px; }
.woocommerce div.product { padding: 30px; border-radius: 20px; background: #fff; }
.woocommerce span.onsale { background: var(--mx-success); }
.mx-footer { padding: 64px 0 24px; color: #cbc9c2; background: #11110f; }
.mx-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 38px; }
.mx-footer h3, .mx-footer h4 { color: #fff; }
.mx-footer h3 { margin: 0 0 10px; }
.mx-footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.mx-footer p { color: #aebed0; }
.mx-footer ul { padding: 0; margin: 0; list-style: none; }
.mx-footer li { margin: 7px 0; }
.mx-footer a { color: #d7e8f5; }
.mx-legal { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa4b8; font-size: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 900px) {
  .mx-nav { display: none; }
  .mx-header-action { margin-left: auto; }
  .mx-hero { padding: 54px 0 64px; }
  .mx-hero-grid, .mx-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mx-hero-card { transform: none; }
  .mx-strip-grid, .mx-grid, .mx-step-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .mx-container { width: min(100% - 24px, 1180px); }
  .mx-brand-copy small { display: none; }
  .mx-header-action { padding: 9px 12px; font-size: 13px; }
  .mx-header { padding: 8px 0; }
  .mx-header-row { min-height: 64px; border-radius: 18px; }
  .mx-hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .mx-strip-grid, .mx-grid, .mx-step-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .mx-proof { border-right: 0; border-bottom: 1px solid var(--mx-line); }
  .mx-content-shell { width: calc(100% - 24px); margin: 28px auto; padding: 24px; }
}
