:root {
  --mch-base: #0E1116;
  --mch-surface: #171C24;
  --mch-elevated: #212833;
  --mch-text: #F2F4F7;
  --mch-muted: #9AA3B2;
  --mch-accent: #FF6A00;
  --mch-signal: #2EC4B6;
  --mch-line: rgba(242, 244, 247, 0.12);
  --mch-grid: rgba(46, 196, 182, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 0, 0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(46, 196, 182, 0.10), transparent 50%),
    linear-gradient(180deg, #0E1116 0%, #121722 45%, #0E1116 100%) !important;
  color: var(--mch-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--mch-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--mch-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Header */
.wp-site-blocks > header,
header.wp-block-template-part,
.wp-block-group.has-global-padding.is-layout-constrained:has(.wp-block-site-title) {
  backdrop-filter: blur(10px);
}

.wp-block-site-title,
.wp-block-site-title a {
  font-family: "Orbitron", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--mch-text) !important;
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
}

.wp-block-site-title a:hover {
  color: var(--mch-accent) !important;
}

.wp-block-navigation a {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  color: var(--mch-muted) !important;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  color: var(--mch-text) !important;
}

/* Hero */
.mch-hero {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.15) 0%, rgba(14, 17, 22, 0.72) 55%, rgba(14, 17, 22, 0.96) 100%),
    linear-gradient(115deg, rgba(14, 17, 22, 0.75) 0%, rgba(14, 17, 22, 0.2) 48%, transparent 70%),
    url("../img/hero.svg") center/cover no-repeat,
    linear-gradient(135deg, #1a2330, #0e1116 50%, #1c1410);
  border-bottom: 1px solid var(--mch-line);
  animation: mch-fade-in 0.9s ease both;
}

.mch-hero__inner {
  max-width: 720px;
  width: 100%;
}

.mch-hero__brand {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--mch-text);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: mch-rise 0.8s ease 0.1s both;
}

.mch-hero__brand span {
  color: var(--mch-accent);
}

.mch-hero__headline {
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: var(--mch-text);
  max-width: 34ch;
  animation: mch-rise 0.8s ease 0.22s both;
}

.mch-hero__support {
  font-size: 1.05rem;
  color: var(--mch-muted);
  margin: 0 0 1.75rem;
  max-width: 42ch;
  animation: mch-rise 0.8s ease 0.34s both;
}

.mch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: mch-rise 0.8s ease 0.46s both;
}

.mch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mch-btn:hover {
  transform: translateY(-2px);
}

.mch-btn--primary {
  background: var(--mch-accent);
  color: #0E1116 !important;
}

.mch-btn--primary:hover {
  background: #ff8126;
  color: #0E1116 !important;
}

.mch-btn--ghost {
  background: transparent;
  color: var(--mch-text) !important;
  border-color: var(--mch-line);
}

.mch-btn--ghost:hover {
  border-color: var(--mch-signal);
  color: var(--mch-signal) !important;
}

/* Sections */
.mch-section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.mch-section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.mch-section__eyebrow {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mch-signal);
  margin: 0 0 0.6rem;
}

.mch-section__title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.mch-section__text {
  color: var(--mch-muted);
  margin: 0;
  max-width: 48ch;
}

.mch-strip {
  border-block: 1px solid var(--mch-line);
  background: rgba(23, 28, 36, 0.72);
}

/* Products */
ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.woocommerce ul.products li.product,
ul.products li.product {
  background: var(--mch-surface) !important;
  border: 1px solid var(--mch-line) !important;
  border-radius: 4px !important;
  padding: 1rem !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  border-color: rgba(255, 106, 0, 0.45) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--mch-text) !important;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
  color: var(--mch-accent) !important;
  font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-block-button__link {
  background: var(--mch-accent) !important;
  color: #0E1116 !important;
  border-radius: 2px !important;
  border: none !important;
  font-family: "Orbitron", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wp-block-button__link:hover {
  background: #ff8126 !important;
  color: #0E1116 !important;
}

/* Footer */
footer.wp-block-template-part,
.wp-site-blocks > footer {
  border-top: 1px solid var(--mch-line);
  background: rgba(10, 12, 16, 0.9);
}

footer a {
  color: var(--mch-muted) !important;
}

footer a:hover {
  color: var(--mch-accent) !important;
}

/* WooCommerce pages */
.woocommerce-page .woocommerce,
.single-product .product {
  color: var(--mch-text);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--mch-accent) !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--mch-signal) !important;
  background: var(--mch-surface) !important;
  color: var(--mch-text) !important;
}

@keyframes mch-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mch-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .mch-hero {
    min-height: 78vh;
    align-items: flex-end;
  }
}
