/* =========================================================
   mtechsols.com — shared stylesheet
   Brand: light theme, Facebook blue, "mtech." red-dot wordmark
   Fonts: Baloo 2 (display) + Plus Jakarta Sans (body)
   ========================================================= */

:root {
  --blue:      #1877F2;
  --blue-600:  #0E5FD6;
  --blue-700:  #0A4DAE;
  --blue-50:   #EAF2FE;
  --blue-glow: rgba(24, 119, 242, .18);

  --ink:    #0B1324;
  --body:   #3C4858;
  --muted:  #6B7686;
  --line:   #E5EAF2;
  --surface:#F5F7FB;
  --white:  #FFFFFF;

  --dot:      #FF3B3B;
  --dot-soft: rgba(255, 59, 59, .12);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(11, 19, 36, .05);
  --shadow:    0 14px 40px -12px rgba(24, 119, 242, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 19, 36, .25);

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --display: "Baloo 2", system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { color: var(--body); }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--surface { background: var(--surface); }

/* eyebrow with red dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 4px var(--dot-soft); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }

/* ---------- wordmark ---------- */
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.wordmark .dot { color: var(--dot); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 20px 44px -12px var(--blue-glow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: #fff; color: var(--blue); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11,19,36,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { font-weight: 600; font-size: .98rem; color: var(--body); position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active::after { background: var(--dot); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; top: -180px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow), transparent 65%); filter: blur(8px);
}
.hero-inner { max-width: 780px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px;
  background: var(--blue-50); color: var(--blue-700); border-radius: 999px;
  font-weight: 700; font-size: .82rem; margin-bottom: 26px;
}
.hero .pill b { background: var(--blue); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .72rem; letter-spacing: .03em; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue); position: relative; }
.hero h1 .accent .dot { color: var(--dot); }
.hero p { font-size: 1.22rem; color: var(--muted); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .94rem; color: var(--ink); }
.hero-badges svg { width: 20px; height: 20px; color: #16A66B; flex: none; }
.ccard .ar { display: block; direction: rtl; font-family: var(--sans); color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat .lbl { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.stat .sub { font-size: .86rem; color: var(--muted); }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--dot)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--muted); }

/* ---------- mcorex flagship band ---------- */
.flagship {
  position: relative; color: #fff; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--blue) 55%, #2E8BFF);
  padding: clamp(40px, 6vw, 72px);
}
.flagship::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.flagship > * { position: relative; z-index: 1; }
.flagship .eyebrow { color: #cfe2ff; }
.flagship .eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.flagship h2 { color: #fff; max-width: 620px; }
.flagship p { color: rgba(255,255,255,.88); max-width: 560px; margin: 18px 0 30px; font-size: 1.1rem; }
.flagship .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.flagship .chips span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.story p + p { margin-top: 18px; }
.value-list { display: grid; gap: 18px; margin-top: 30px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list .vic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.value-list .vic svg { width: 20px; height: 20px; }
.value-list h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 2px; }
.value-list p { font-size: .95rem; color: var(--muted); }

.media-card {
  background: linear-gradient(150deg, var(--blue-50), #fff); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow);
}
.market { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px dashed var(--line); }
.market:last-child { border-bottom: 0; }
.market .flag { font-size: 1.8rem; }
.market .mname { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.market .mnote { font-size: .88rem; color: var(--muted); }

/* ---------- solutions list ---------- */
.sol-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.sol-row:last-child { border-bottom: 0; }
.sol-row .ic { width: 56px; height: 56px; border-radius: 15px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.sol-row .ic svg { width: 28px; height: 28px; }
.sol-row h3 { margin-bottom: 8px; }
.sol-row p { color: var(--muted); max-width: 640px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: .82rem; font-weight: 600; color: var(--blue-700); background: var(--blue-50); padding: 5px 13px; border-radius: 999px; }

/* product editions grid */
.editions { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.edition { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: .3s var(--ease); }
.edition:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.edition .ename { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.edition .edesc { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); }
.contact-cards { display: grid; gap: 16px; }
.ccard { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: .3s var(--ease); }
.ccard:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: var(--blue); }
.ccard .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.ccard .ic svg { width: 22px; height: 22px; }
.ccard h4 { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 3px; }
.ccard a, .ccard span { color: var(--muted); font-size: .96rem; word-break: break-word; }
.ccard a:hover { color: var(--blue); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-glow); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .wordmark { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 16px; max-width: 280px; font-size: .96rem; }
.footer-col h5 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.78); padding: 6px 0; font-size: .96rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .3s var(--ease); }
.socials a:hover { background: var(--blue); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .88rem; }
.footer-bottom .slogan { font-family: var(--display); font-weight: 700; color: rgba(255,255,255,.7); }
.footer-bottom .slogan .dot { color: var(--dot); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- hero load anim ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: riseIn .8s var(--ease) both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .editions { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
  .grid-3, .grid-2, .editions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sol-row { grid-template-columns: 1fr; }
  .sol-row .ic { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
