/* Mxhelix one-page site. Plain CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --bg-dark: #0b1220;
  --fg: #0f172a;
  --fg-muted: #526077;
  --fg-on-dark: #e6edf7;
  --line: #e3e8ef;
  --brand: #d81f26;        /* Mxhelix red */
  --brand-hover: #b6161c;
  --accent: #1d6fe8;       /* Mxhelix blue dot */
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  --radius: 16px;
  --container: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #111a2b;
    --fg: #e6edf7;
    --fg-muted: #9aa8bd;
    --line: #223049;
    --card: #141e31;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section-dark a { color: #8fb6ff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--fg-muted); }
.eyebrow {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 54ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600;
  border: 1px solid var(--brand); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-hover); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { background: rgb(128 128 128 / .12); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--fg); font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 96px) 0;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.05fr 1fr; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-media { margin: 0; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.35rem; font-weight: 800; }
.hero-stats span { font-size: .8rem; color: var(--fg-muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Product cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); }
.card img { border-radius: 10px; margin-bottom: 16px; width: 100%; background: #fff; }
.card p { color: var(--fg-muted); font-size: .95rem; margin: 0; }

.feature-strip {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-strip li {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; font-size: .95rem;
}
.feature-strip img { width: 90px; height: auto; flex: none; background: #fff; border-radius: 8px; padding: 6px; }

/* About */
.about-grid { display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.about-grid p { color: var(--fg-muted); }
.checklist li {
  padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; color: var(--fg-muted);
}
.checklist li strong { display: block; color: var(--fg); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Distributors */
.partners { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--fg); box-shadow: var(--shadow); transition: transform .2s;
}
.partner:hover { transform: translateY(-3px); text-decoration: none; border-color: var(--brand); }
.partner img { height: 44px; width: auto; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; margin-bottom: 8px; }
.partner span { font-weight: 600; }
.partner small { color: var(--fg-muted); font-size: .85rem; }

/* Contact */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.section-dark .eyebrow { color: #ff6b70; }
.section-dark p { color: #b7c3d6; }
address { font-style: normal; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); padding: 28px; }
address p { margin-bottom: 14px; }
address p:last-child { margin: 0; }
address strong { color: #fff; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--fg-muted); }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-wrap img { height: 18px; width: auto; }
.footer-wrap p { margin: 0; }
.footer-wrap nav { display: flex; gap: 20px; }
.footer-wrap nav a { color: var(--fg-muted); }
.footer-wrap nav a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .partner, .btn { transition: none; }
}
