/* ---------- Marketeam section (below Algooryx hero) ---------- */

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.mt-app {
  --mt-accent: #a068ff;
  --mt-bg-dark: #060218;
  --mt-bg-deep: #070319;
  --mt-text-dark: #000000;
  --mt-text-light: #ffffff;
  --mt-text-blue: #4c9bff;
  --mt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mt-font: "Inter", "Segoe UI", system-ui, sans-serif;
  --mt-display: "Urbanist", "Inter", sans-serif;

  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--mt-text-light);
  font-family: var(--mt-font);
  background: #000000;
  overflow: hidden;
  padding-bottom: 0;
}

.mt-app *,
.mt-app *::before,
.mt-app *::after {
  box-sizing: border-box;
}

.mt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px 64px;
  opacity: 0;
  transform: translateY(-20px);
  animation: mtFadeDown 0.8s var(--mt-ease) forwards;
}

.mt-header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.mt-logo {
  display: block;
  height: 32px;
  width: auto;
}

.mt-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mt-nav-link {
  position: relative;
  color: var(--mt-text-dark);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.mt-nav-link::after,
.mt-login::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mt-nav-link:hover::after,
.mt-login:hover::after {
  transform: scaleX(1);
}

.mt-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mt-login {
  position: relative;
  color: var(--mt-text-light);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mt-btn-border-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.mt-btn-border-wrap::before {
  content: none;
}

.mt-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: var(--mt-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 26px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.mt-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.3s var(--mt-ease);
  z-index: -1;
}

.mt-btn:hover::after {
  opacity: 1;
}

.mt-btn-start {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.35) 100%),
    rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 28px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: mtFadeUpSoft 0.7s var(--mt-ease) 3.2s forwards;
  transition: border-color 0.3s var(--mt-ease), box-shadow 0.3s var(--mt-ease), background 0.3s var(--mt-ease);
}

.mt-btn-start:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 34px rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.mt-btn-start::after {
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.mt-btn-start:hover::after {
  opacity: 1;
  transform: none;
}

.mt-btn-start svg {
  flex-shrink: 0;
}

.mt-hero {
  flex: 1;
  display: grid;
  grid-template-areas: "mt-stack";
  place-items: center;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 64px 24px;
  min-height: 0;
}

.mt-hero-left {
  grid-area: mt-stack;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px);
  animation: mtFadeUp 1s var(--mt-ease) forwards;
}

.mt-hero-left a {
  pointer-events: auto;
}

.mt-heading {
  margin: 0;
  font-family: var(--mt-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -1.5px;
  max-width: 720px;
}

.mt-heading-dark {
  color: var(--mt-text-blue);
}

.mt-heading-light {
  color: var(--mt-text-light);
}

.mt-cursor-blink {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--mt-text-blue);
  vertical-align: -0.08em;
  animation: mtBlink 0.8s step-end infinite;
}

.mt-cursor-blink.is-done {
  display: none;
}

.mt-david {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 290px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(12px);
  animation: mtFadeUpSoft 0.7s var(--mt-ease) 3.6s forwards;
}

.mt-david-pointer {
  display: block;
  flex-shrink: 0;
}

.mt-david-label {
  display: inline-flex;
  align-items: center;
  background: var(--mt-text-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
}

.mt-hero-right {
  grid-area: mt-stack;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: scale(0.85);
  animation: mtScaleIn 1.2s var(--mt-ease) 0.3s forwards;
}

.mt-circles {
  position: relative;
  width: 720px;
  height: 720px;
  max-width: 100%;
}

.mt-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mt-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(217, 161, 255, 0) 0%,
    rgba(217, 161, 255, 1) 43%,
    rgba(217, 161, 255, 0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mt-orbit-1 {
  width: 353px;
  height: 353px;
  animation: mtSpinLeft 30s linear infinite;
}

.mt-orbit-2 {
  width: 501px;
  height: 501px;
  animation: mtSpinRight 40s linear infinite;
}

.mt-orbit-3 {
  width: 649px;
  height: 649px;
  animation: mtSpinRight 50s linear infinite;
}

.mt-orbit-4 {
  width: 797px;
  height: 797px;
  animation: mtSpinLeft 60s linear infinite;
}

.mt-orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: mtCounterSpinRight 30s linear infinite;
}

.mt-count {
  font-family: var(--mt-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--mt-text-blue);
}

.mt-count-label {
  margin-top: 6px;
  font-family: var(--mt-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--mt-text-light);
}

.mt-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r))
    rotate(calc(-1 * var(--a)));
  opacity: 0;
  animation: mtAvatarIn 0.9s var(--mt-ease) forwards;
  animation-delay: var(--delay, 0.6s);
  box-shadow: 0 0 14px color-mix(in srgb, var(--glow) 40%, transparent);
  filter: brightness(0.7) saturate(0.8);
}

.mt-avatar.is-square {
  border-radius: 20px;
}

.mt-avatar.is-square-lg {
  border-radius: 24px;
}

.mt-avatar.is-logo {
  border-radius: 20px;
  object-fit: contain;
  background: #16161f;
  padding: 12px;
  box-sizing: border-box;
}

.mt-avatar.size-78 {
  width: 78px;
  height: 78px;
}

.mt-avatar.size-88 {
  width: 88px;
  height: 88px;
}

.mt-logos {
  flex-shrink: 0;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 28px 0 40px;
  opacity: 0;
  transform: translateY(40px);
  animation: mtFadeUp 1s var(--mt-ease) 0.6s forwards;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  overflow: hidden;
}

.mt-logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: mtTicker 20s linear infinite;
}

.mt-logos-track img {
  width: 137px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

@keyframes mtFadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mtFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mtFadeUpSoft {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mtScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mtBorderSpin {
  to {
    --border-angle: 360deg;
  }
}

@keyframes mtBlink {
  50% {
    opacity: 0;
  }
}

@keyframes mtSpinLeft {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes mtSpinRight {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes mtCounterSpinRight {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes mtAvatarIn {
  from {
    opacity: 0;
    filter: blur(8px) brightness(0.7) saturate(0.8);
    transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r))
      rotate(calc(-1 * var(--a) - 180deg)) scale(0.3);
  }
  to {
    opacity: 0.55;
    filter: blur(0) brightness(0.7) saturate(0.8);
    transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r))
      rotate(calc(-1 * var(--a))) scale(1);
  }
}

@keyframes mtTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

@media (max-width: 1280px) {
  .mt-circles {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

@media (max-width: 1024px) {
  .mt-header {
    padding: 20px 32px;
  }

  .mt-nav {
    gap: 18px;
  }

  .mt-hero {
    padding: 0 32px 20px;
  }

  .mt-hero-left {
    max-width: 640px;
  }

  .mt-heading {
    font-size: 48px;
    line-height: 52px;
  }

  .mt-circles {
    transform: scale(0.7);
    margin: -40px 0;
  }

  .mt-david {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .mt-nav {
    display: none;
  }

  .mt-header {
    padding: 16px 20px;
  }

  .mt-hero {
    padding: 0 20px 16px;
  }

  .mt-heading {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .mt-circles {
    transform: scale(0.5);
    margin: -120px 0;
  }

  .mt-logos-track {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .mt-header-right {
    gap: 14px;
  }

  .mt-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .mt-btn-start {
    padding: 12px 20px;
    font-size: 14px;
  }

  .mt-heading {
    font-size: 28px;
    line-height: 32px;
  }

  .mt-circles {
    transform: scale(0.4);
    margin: -160px 0;
  }

  .mt-david-label {
    font-size: 14px;
    padding: 6px 12px;
  }

  .mt-logos-track img {
    width: 110px;
    height: 32px;
  }

  .mt-logos-track {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-app *,
  .mt-app *::before,
  .mt-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }

  .mt-header,
  .mt-hero-left,
  .mt-hero-right,
  .mt-logos,
  .mt-btn-start,
  .mt-david {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .mt-orbit {
    animation: none !important;
    transform: translate(-50%, -50%) !important;
  }

  .mt-orbit-center {
    animation: none !important;
    transform: none !important;
  }

  .mt-avatar {
    opacity: 0.55 !important;
    filter: brightness(0.7) saturate(0.8) !important;
    transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r))
      rotate(calc(-1 * var(--a))) !important;
  }

  .mt-cursor-blink {
    display: none;
  }
}
