/* M-Tech Industries LLC public site */
:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: rgba(21, 31, 52, 0.92);
  --surface-soft: rgba(30, 41, 59, 0.56);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.34);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --muted-2: #7f8ca3;
  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --accent-3: #22d3ee;
  --success: #6ee7b7;
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 14% -10%, rgba(56, 189, 248, 0.24), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.20), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 46%, #070b12);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 72%);
}

.site-shell { min-height: 100vh; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 18, 0.76);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(96, 165, 250, 0.08));
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.16);
  color: var(--accent);
}

.brand-mark::before {
  content: "M";
  font-size: 1rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.10);
  outline: none;
}

.hero {
  padding: 92px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 22px rgba(110, 231, 183, 0.85);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 9vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.74);
}

.button.primary {
  border-color: rgba(56, 189, 248, 0.58);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: var(--border-strong);
}

.hero-panel,
.card,
.info-panel,
.legal-section {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(15, 23, 42, 0.62));
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-panel {
  border-radius: 24px;
  padding: 24px;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.metric span,
.card p,
.info-panel p,
.legal-section p,
li {
  color: var(--muted);
}

.section {
  padding: 52px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-grid {
  margin-top: 24px;
}

.card {
  border-radius: 18px;
  padding: 22px;
}

.card p:last-child,
.info-panel p:last-child,
.legal-section p:last-child { margin-bottom: 0; }

.card-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover { color: var(--accent-3); }

.info-panel {
  border-radius: 22px;
  padding: clamp(24px, 5vw, 44px);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.page-hero {
  padding: 70px 0 30px;
}

.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }

.legal-layout {
  display: grid;
  gap: 16px;
  padding-bottom: 56px;
}

.legal-section {
  border-radius: 18px;
  padding: 24px;
}

.legal-section ul { margin: 0; padding-left: 22px; }

.hub-grid {
  align-items: stretch;
}

.release-list {
  display: grid;
  gap: 18px;
}

.release-group {
  margin-top: 12px;
}

.release-group:first-child {
  margin-top: 0;
}

.release-group h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.release-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(180deg, var(--surface), rgba(15, 23, 42, 0.62));
  box-shadow: 0 24px 70px var(--shadow);
}

.release-card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.release-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.release-details.stacked {
  grid-template-columns: 1fr;
}

.release-detail {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.release-detail span {
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-detail strong {
  color: var(--text);
}

.release-section {
  margin-top: 18px;
}

.release-section h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.96rem;
}

.compact-list {
  margin-top: 0;
}

.button.disabled {
  cursor: default;
  color: var(--muted);
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.54);
}

.button.disabled:hover {
  transform: none;
}

.testing-grid {
  margin-bottom: 18px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 28px 0 40px;
  color: var(--muted-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 20px;
}

.footer-inner div {
  display: grid;
  gap: 6px;
}

.footer-inner div:last-child {
  justify-items: end;
}

.footer-inner a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid,
  .grid,
  .grid.three,
  .grid.two,
  .release-details { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .nav-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner div:last-child { justify-items: start; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .nav-links a { background: rgba(148, 163, 184, 0.08); text-align: center; }
  h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .hero-panel { border-radius: 18px; padding: 18px; }
  .hero-actions, .action-row { display: grid; }
}
