/* Homepage hero — loaded early from main layout (page-home only) */

.mk-hero--clean {
  position: relative;
  padding: clamp(36px, 5.5vw, 60px) 20px clamp(30px, 4.5vw, 46px);
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 48%, #f8f7fc 100%);
  border-bottom: 1px solid #ececf4;
  overflow: hidden;
  isolation: isolate;
}

.mk-hero-dev-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mk-hero-dev-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 39, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 39, 232, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 78%);
}
.mk-hero-dev-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.mk-hero-dev-bg__glow--1 {
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(108, 39, 232, 0.1);
}
.mk-hero-dev-bg__glow--2 {
  width: min(360px, 40vw);
  height: min(360px, 40vw);
  bottom: -120px;
  right: -60px;
  background: rgba(59, 130, 246, 0.07);
}

.mk-hero-dev-bg__code {
  position: absolute;
  width: min(240px, 26vw);
  border-radius: 12px;
  border: 1px solid rgba(108, 39, 232, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(10, 8, 32, 0.06);
  opacity: 0.5;
}
.mk-hero-dev-bg__code--left {
  top: 18%;
  left: max(2%, calc(50% - 520px));
  transform: rotate(-4deg);
}
.mk-hero-dev-bg__code--right {
  top: 22%;
  right: max(2%, calc(50% - 520px));
  transform: rotate(3deg);
}
.mk-hero-dev-bg__code-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(108, 39, 232, 0.08);
  background: rgba(246, 244, 252, 0.9);
  border-radius: 12px 12px 0 0;
}
.mk-hero-dev-bg__code-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mk-hero-dev-bg__code-bar span:nth-child(1) { background: #fca5a5; }
.mk-hero-dev-bg__code-bar span:nth-child(2) { background: #fcd34d; }
.mk-hero-dev-bg__code-bar span:nth-child(3) { background: #86efac; }
.mk-hero-dev-bg__code-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  min-height: 72px;
}
.mk-hero-dev-bg__code-body span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(108, 39, 232, 0.08);
}
.mk-hero-dev-bg__code--left .mk-hero-dev-bg__code-body span:nth-child(1) { width: 78%; background: rgba(124, 58, 237, 0.14); }
.mk-hero-dev-bg__code--left .mk-hero-dev-bg__code-body span:nth-child(2) { width: 92%; }
.mk-hero-dev-bg__code--left .mk-hero-dev-bg__code-body span:nth-child(3) { width: 64%; background: rgba(37, 99, 235, 0.12); }
.mk-hero-dev-bg__code--left .mk-hero-dev-bg__code-body span:nth-child(4) { width: 48%; }
.mk-hero-dev-bg__code--right .mk-hero-dev-bg__code-body span:nth-child(1) { width: 55%; background: rgba(13, 148, 136, 0.14); }
.mk-hero-dev-bg__code--right .mk-hero-dev-bg__code-body span:nth-child(2) { width: 88%; }
.mk-hero-dev-bg__code--right .mk-hero-dev-bg__code-body span:nth-child(3) { width: 70%; background: rgba(219, 39, 119, 0.1); }
.mk-hero-dev-bg__code--right .mk-hero-dev-bg__code-body span:nth-child(4) { width: 40%; }

.mk-hero-dev-bg__chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgba(108, 39, 232, 0.35);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(108, 39, 232, 0.08);
  box-shadow: 0 8px 24px rgba(108, 39, 232, 0.06);
}
.mk-hero-dev-bg__chip i { font-size: 17px; }
.mk-hero-dev-bg__chip--1 { top: 14%; left: 8%; transform: rotate(-8deg); }
.mk-hero-dev-bg__chip--2 { bottom: 18%; left: 12%; transform: rotate(6deg); }
.mk-hero-dev-bg__chip--3 { top: 20%; right: 10%; color: rgba(119, 123, 180, 0.45); }
.mk-hero-dev-bg__chip--4 { bottom: 16%; right: 14%; color: rgba(108, 39, 232, 0.3); }

.mk-hero-clean__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mk-hero-clean__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0a0820;
  text-wrap: balance;
}
.mk-hero-clean__lead {
  margin: 0 auto 24px;
  max-width: 540px;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.65;
  color: #5c5a78;
}
.mk-hero-clean__search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 14px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  border: 1.5px solid #e4e0f4;
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(108, 39, 232, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mk-hero-clean__search:focus-within {
  border-color: #a78bfa;
  box-shadow: 0 14px 44px rgba(108, 39, 232, 0.14);
}
.mk-hero-clean__search-icon {
  flex-shrink: 0;
  margin-right: 10px;
  color: #9ca3af;
  font-size: 15px;
}
.mk-hero-clean__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #0a0820;
  padding: 14px 0;
}
.mk-hero-clean__search-input::placeholder { color: #a09ec0; }
.mk-hero-clean__search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6c27e8, #8b46f5);
  box-shadow: 0 6px 18px rgba(108, 39, 232, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-hero-clean__search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(108, 39, 232, 0.36);
}
.mk-hero-clean__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mk-hero-clean__tags-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
}
.mk-hero-clean__tag {
  font-size: 12px;
  font-weight: 600;
  color: #5c5a78;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f6f4fc;
  border: 1px solid #ece8f8;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mk-hero-clean__tag:hover {
  background: #ede8fd;
  border-color: #d6cdfb;
  color: #5b1fd1;
}

.mk-hero-langs {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(108, 39, 232, 0.08);
}
.mk-hero-langs__label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.mk-hero-langs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mk-hero-langs__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--lang-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--lang-color) 22%, #ececf4);
  box-shadow: 0 4px 14px rgba(10, 8, 32, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mk-hero-langs__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 8, 32, 0.08);
  border-color: color-mix(in srgb, var(--lang-color) 45%, #ececf4);
}
.mk-hero-langs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--lang-color);
}
.mk-hero-langs__svg {
  display: block;
  width: 22px;
  height: 22px;
}
.mk-hero-langs__svg path {
  fill: currentColor;
}

/* ── Dual-path CTAs (buy vs hire) ── */
.mk-hero-clean__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 16px auto 0;
}
.mk-hero-clean__path {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(108, 39, 232, 0.14);
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s, background 0.2s;
  box-shadow: 0 2px 12px rgba(108, 39, 232, 0.06);
}
.mk-hero-clean__path:hover {
  border-color: rgba(108, 39, 232, 0.38);
  box-shadow: 0 6px 24px rgba(108, 39, 232, 0.14);
  transform: translateY(-2px);
  background: #fff;
}
.mk-hero-clean__path--hire:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.12);
}
.mk-hero-clean__path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 16px;
}
.mk-hero-clean__path--buy .mk-hero-clean__path-icon {
  background: rgba(108, 39, 232, 0.1);
  color: #6c27e8;
}
.mk-hero-clean__path--hire .mk-hero-clean__path-icon {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
}
.mk-hero-clean__path-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.mk-hero-clean__path-title {
  font-size: 13px;
  font-weight: 700;
  color: #0a0820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-hero-clean__path-sub {
  font-size: 11px;
  color: #7c7a9e;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-hero-clean__path-arrow {
  font-size: 12px;
  color: #b0aece;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.mk-hero-clean__path:hover .mk-hero-clean__path-arrow {
  transform: translateX(3px);
  color: #6c27e8;
}
.mk-hero-clean__path--hire:hover .mk-hero-clean__path-arrow {
  color: #0891b2;
}

@media (max-width: 960px) {
  .mk-hero-dev-bg__code {
    opacity: 0.28;
    width: 180px;
  }
  .mk-hero-dev-bg__code--left { left: 0; top: 6%; }
  .mk-hero-dev-bg__code--right { right: 0; top: 8%; }
  .mk-hero-dev-bg__chip { opacity: 0.45; transform: scale(0.85); }
}
@media (max-width: 560px) {
  .mk-hero--clean { padding-left: 16px; padding-right: 16px; }
  .mk-hero-dev-bg__code,
  .mk-hero-dev-bg__chip { display: none; }
  .mk-hero-langs__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mk-hero-langs__list::-webkit-scrollbar { display: none; }
  .mk-hero-langs__item { flex-shrink: 0; }
  .mk-hero-clean__search { flex-wrap: wrap; padding: 10px; }
  .mk-hero-clean__search-icon { margin-right: 8px; }
  .mk-hero-clean__search-input { width: 100%; padding: 10px 4px; text-align: left; }
  .mk-hero-clean__search-btn { width: 100%; margin-top: 4px; padding: 13px; }
}
