/* Home landing polish — overrides for .mp-home */

.mp-home {
  --home-ink: #f4f7fb;
  --home-muted: rgba(196, 210, 230, 0.92);
  --home-line: rgba(148, 163, 184, 0.16);
}

.mp-home-hero {
  min-height: min(100svh, 900px);
  min-height: min(100vh, 900px);
  align-items: center;
}

.mp-home-hero-bg {
  z-index: 0;
}

.mp-home-hero-wash {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--mp-accent-teal) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 60% at 0% 100%, color-mix(in srgb, var(--mp-primary) 18%, transparent), transparent 55%),
    linear-gradient(165deg, #050a10 0%, #0a121c 45%, #0b1520 100%);
}

.mp-home-hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: inherit;
  padding: clamp(5rem, 11vh, 6.5rem) 0 clamp(3.25rem, 8vh, 4.75rem);
}

.mp-home-hero-copy {
  max-width: 36rem;
  position: relative;
  z-index: 3;
  margin: 0;
}

.mp-home-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--home-ink);
  animation: mp-home-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mp-home-brand-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mp-home-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.7;
  color: rgba(236, 242, 250, 0.96);
  max-width: 28ch;
  animation: mp-home-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.mp-home-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--home-muted);
  max-width: 40ch;
  animation: mp-home-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.mp-home-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: mp-home-brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.mp-home .mp-home-cta .mp-btn-accent {
  box-shadow: none;
  background: var(--mp-accent-teal);
  border-color: transparent;
}

.mp-home .mp-home-cta .mp-btn-accent:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.mp-home .mp-home-cta .mp-btn-outline {
  background: transparent;
  border-color: rgba(226, 232, 240, 0.3);
  color: #e8eef8;
}

/* Product visual — second grid column (left in RTL) */
.mp-home-hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: mp-home-visual-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes mp-home-visual-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.mp-home-plane-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: min(520px, 62vh);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(12, 18, 30, 0.96), rgba(7, 11, 20, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
  transform-origin: center center;
  animation: mp-home-plane-float 10s ease-in-out infinite;
}

@keyframes mp-home-plane-float {
  0%, 100% { transform: perspective(1200px) rotateY(4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(3deg) rotateX(1.5deg) translateY(-8px); }
}

[dir="rtl"] .mp-home-plane-frame {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center center;
}

[dir="rtl"] .mp-home-plane-frame {
  animation-name: mp-home-plane-float-rtl;
}

@keyframes mp-home-plane-float-rtl {
  0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg) translateY(-8px); }
}

.mp-home-plane-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--home-line);
  background: rgba(2, 6, 16, 0.55);
  flex-shrink: 0;
}

.mp-home-plane-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}

.mp-home-plane-chrome span:nth-child(1) { background: #f87171; }
.mp-home-plane-chrome span:nth-child(2) { background: #fbbf24; }
.mp-home-plane-chrome span:nth-child(3) { background: #34d399; }

.mp-home-plane-chrome em {
  margin-inline-start: 0.6rem;
  font-style: normal;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.mp-home-plane-body {
  flex: 1;
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 0;
}

.mp-home-plane-rail {
  border-inline-end: 1px solid var(--home-line);
  background: rgba(8, 12, 22, 0.9);
  padding: 1rem 0.7rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.mp-home-plane-rail i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.mp-home-plane-rail i:first-child {
  width: 70%;
  background: color-mix(in srgb, var(--mp-accent-teal) 45%, rgba(148, 163, 184, 0.2));
}

.mp-home-plane-canvas {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: 0;
}

.mp-home-plane-banner {
  min-height: 110px;
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  background:
    linear-gradient(120deg,
      color-mix(in srgb, var(--mp-primary) 55%, #0b1220),
      color-mix(in srgb, var(--mp-accent-teal) 42%, #0b1220));
}

.mp-home-plane-banner strong {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mp-home-plane-banner span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28ch;
  line-height: 1.5;
}

.mp-home-plane-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.mp-home-plane-tiles b {
  display: block;
  min-height: 64px;
  border-radius: 8px;
  border: 1px solid var(--home-line);
  background: rgba(148, 163, 184, 0.08);
}

.mp-home-plane-tiles b:nth-child(1) {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.05));
}

/* Trust — below fold, not cards */
.mp-home-trust {
  margin: 0 0 3.25rem;
  padding: 1.35rem 0;
  border-block: 1px solid var(--home-line);
  background: transparent;
  gap: 0;
}

.mp-home-trust-item {
  padding: 0.35rem 1rem;
  border-inline-start: 1px solid var(--home-line);
  text-align: start;
}

.mp-home-trust-item:first-child {
  border-inline-start: 0;
}

.mp-home-trust-item strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin-bottom: 0.2rem;
}

.mp-home-trust-item span {
  font-size: 0.82rem;
  color: var(--home-muted);
}

.mp-home-section {
  margin-bottom: 3.5rem;
}

.mp-home .mp-section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.mp-home .mp-section-sub {
  color: var(--home-muted);
}

.mp-home-steps {
  border: 0;
  background: transparent;
  padding: 0;
}

.mp-home-steps-list {
  gap: 0;
  border-top: 1px solid var(--home-line);
}

.mp-home-steps-list li {
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  padding: 1.35rem 0.25rem 1.35rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  box-shadow: none;
}

.mp-home-step-num {
  grid-row: 1 / span 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--mp-accent-teal) 45%, transparent);
  color: var(--mp-accent-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.mp-home-why {
  gap: 0;
  border-top: 1px solid var(--home-line);
}

.mp-home-why-item {
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  padding: 1.25rem 0.15rem;
  box-shadow: none;
}

.mp-home-why-icon {
  background: transparent;
  border: 0;
  color: var(--mp-accent-teal);
  width: auto;
  height: auto;
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.mp-home-finale {
  margin: 2rem 0 1rem;
}

.mp-home-finale-inner {
  border-radius: 0;
  border: 1px solid var(--home-line);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, color-mix(in srgb, var(--mp-accent-teal) 14%, transparent), transparent 55%),
    linear-gradient(160deg, rgba(8, 14, 24, 0.95), rgba(6, 10, 18, 0.98));
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: start;
}

.mp-home-finale h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

@media (max-width: 900px) {
  .mp-home-hero {
    min-height: auto;
  }

  .mp-home-hero-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .mp-home-hero-copy {
    max-width: none;
    text-align: center;
  }

  .mp-home-hero-copy h1,
  .mp-home-lead {
    margin-inline: auto;
    max-width: 34ch;
  }

  .mp-home-cta {
    justify-content: center;
  }

  .mp-home-hero-visual {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
  }

  .mp-home-plane-frame,
  [dir="rtl"] .mp-home-plane-frame {
    transform: none;
    animation: mp-home-plane-float-flat 10s ease-in-out infinite;
    max-height: none;
    aspect-ratio: 16 / 11;
  }

  @keyframes mp-home-plane-float-flat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .mp-home-trust {
    grid-template-columns: 1fr 1fr;
  }

  .mp-home-trust-item:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  .mp-home-brand {
    font-size: clamp(2.2rem, 12vw, 2.8rem);
  }

  .mp-home-plane-body {
    grid-template-columns: 64px 1fr;
  }

  .mp-home-trust {
    grid-template-columns: 1fr;
  }

  .mp-home-trust-item {
    border-inline-start: 0;
    border-bottom: 1px solid var(--home-line);
    padding-inline: 0;
  }

  .mp-home-trust-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-home-brand,
  .mp-home-hero-copy h1,
  .mp-home-lead,
  .mp-home-cta,
  .mp-home-hero-visual,
  .mp-home-plane-frame,
  [dir="rtl"] .mp-home-plane-frame {
    animation: none !important;
  }
}

html[data-theme="light"] .mp-home {
  --home-ink: #0f172a;
  --home-muted: #475569;
  --home-line: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mp-home-hero-wash {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--mp-accent-teal) 16%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 60% at 0% 100%, color-mix(in srgb, var(--mp-primary) 12%, transparent), transparent 55%),
    linear-gradient(165deg, #f7fafc 0%, #eef3f8 50%, #f4f7fb 100%);
}

html[data-theme="light"] .mp-home-plane-frame {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.98));
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mp-home .mp-home-cta .mp-btn-outline {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
}
