/* M2 BOX Tour — interactive landing + feature detail (RTL) */

.m2bt-hero {
  position: relative;
  padding: 128px 0 100px;
  min-height: 560px;
  background: linear-gradient(155deg, #05141f 0%, #0a2540 42%, #0f3580 72%, #134e8a 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.m2bt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/m2assets/image/demo/binary.svg') center/cover no-repeat;
  opacity: .1;
  pointer-events: none;
}
.m2bt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 15% 50%, rgba(85,200,232,.14) 0%, transparent 65%);
  pointer-events: none;
}
.m2bt-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.m2bt-hero-content {
  max-width: 540px;
}
.m2bt-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(125,211,252,.1);
  border: 1px solid rgba(125,211,252,.22);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}
.m2bt-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.m2bt-hero-lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.35rem;
}
.m2bt-hero-links-label {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: .55rem;
}
.m2bt-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.75rem;
}
.m2bt-hero-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: #e0f2fe;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  padding: .3rem .75rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.m2bt-hero-pill:hover {
  background: rgba(26,86,219,.35);
  border-color: rgba(125,211,252,.45);
  color: #fff;
}
.m2bt-hero-links {
  display: none; /* legacy — pills replace inline links */
}
.m2bt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.m2bt-hero-hint {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.m2bt-hero-hint strong { color: #7dd3fc; font-weight: 600; }
.m2bt-btn-tour {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #1a56db, #0891b2);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(26,86,219,.35);
  transition: transform .2s, box-shadow .2s;
}
.m2bt-btn-tour:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26,86,219,.45);
  color: #fff;
}

/* Floating screenshots (tour hero) */
.m2bt-floats {
  position: relative;
  min-height: 380px;
  display: none;
  margin-top: 1rem;
}
@media (min-width: 992px) { .m2bt-floats { display: block; min-height: 420px; } }
.m2bt-float {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(0,0,0,.4);
  border: 2px solid rgba(255,255,255,.1);
  overflow: hidden;
  animation: m2btFloat 7s ease-in-out infinite;
  background: #0f172a;
}
.m2bt-float img { width: 100%; height: auto; display: block; }
.m2bt-float--1 { width: 48%; top: 2%; right: 8%; animation-delay: 0s; z-index: 3; }
.m2bt-float--2 { width: 36%; top: 20%; left: 2%; animation-delay: .9s; z-index: 2; }
.m2bt-float--3 { width: 32%; top: 46%; right: 2%; animation-delay: 1.8s; z-index: 4; }
.m2bt-float--4 { width: 28%; bottom: 6%; left: 14%; animation-delay: 2.6s; z-index: 1; }
.m2bt-float--5 { width: 26%; bottom: -2%; right: 30%; animation-delay: 3.4s; z-index: 2; opacity: .85; }
@keyframes m2btFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Wave transition hero → content */
.m2bt-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.m2bt-hero-wave svg { display: block; width: 100%; height: 56px; }

@media (max-width: 991px) {
  .m2bt-hero {
    padding: 110px 0 72px;
    min-height: auto;
    text-align: center;
  }
  .m2bt-hero-content { max-width: none; margin: 0 auto; }
  .m2bt-hero-eyebrow { margin-left: auto; margin-right: auto; }
  .m2bt-hero-pills { justify-content: center; }
  .m2bt-hero-actions { justify-content: center; }
}

/* Module filter tabs */
.m2bt-modules {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 72px;
  z-index: 50;
}
.m2bt-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.m2bt-module-tab {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #374151;
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
}
.m2bt-module-tab:hover,
.m2bt-module-tab.active {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}

/* Feature grid (landing) */
.m2bt-grid-section { padding: 3rem 0 5rem; background: #f8fafc; }
.m2bt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.m2bt-grid-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.m2bt-grid-card:hover {
  box-shadow: 0 12px 40px rgba(26,86,219,.12);
  transform: translateY(-4px);
  border-color: #93c5fd;
}
.m2bt-grid-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #0891b2);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .75rem;
}
.m2bt-grid-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
  margin-bottom: .75rem;
  line-height: 1.4;
}
.m2bt-grid-poster {
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16/10;
}
.m2bt-grid-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Compact tour header (feature detail pages) ── */
.m2bt-tour-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 20, 31, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.m2bt-tour-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: .5rem 0;
}
.m2bt-tour-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: .5rem;
}
.m2bt-tour-header__logo img {
  height: 44px !important;
  width: auto !important;
}
.m2bt-tour-header__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  text-decoration: none !important;
  padding: .4rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, color .2s;
}
.m2bt-tour-header__back:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.m2bt-tour-header__title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 .5rem;
}
.m2bt-tour-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.m2bt-tour-header__cta {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: #05141f !important;
  background: #7dd3fc;
  padding: .45rem 1rem;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.m2bt-tour-header__cta:hover {
  background: #fff;
  transform: translateY(-1px);
  color: #05141f !important;
}
.m2bt-tour-header__client {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none !important;
  padding: .4rem .7rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.18);
}
.m2bt-tour-header__client:hover { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 767px) {
  .m2bt-tour-header__back span { display: none; }
  .m2bt-tour-header__client { display: none; }
  .m2bt-tour-header__title { font-size: .78rem; }
}

/* ── Feature detail page ── */
.m2bt-feature-page {
  background: #f8fafc;
  min-height: 70vh;
  padding: 2rem 0 4rem;
}
.m2bt-feature-layout {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 991px) {
  .m2bt-feature-layout { grid-template-columns: 1fr; }
  .m2bt-side-nav { display: none; }
}
.m2bt-side-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none !important;
  color: #6b7280;
  font-size: .72rem;
  font-weight: 600;
  padding: .75rem .5rem;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.m2bt-side-nav a:hover { background: #e0e7ff; color: #1a56db; }
.m2bt-side-nav .arrow { font-size: 1.5rem; line-height: 1; }

.m2bt-feature-main {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 2rem 2.5rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
@media (max-width: 767px) { .m2bt-feature-main { padding: 1.25rem; } }

.m2bt-feature-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #1a56db;
  background: rgba(26,86,219,.08);
  border: 1px solid rgba(26,86,219,.2);
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.m2bt-feature-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
}
.m2bt-feature-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 1.75rem;
}
.m2bt-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.m2bt-video-wrap video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.m2bt-video-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: rgba(255,255,255,.5);
  background: linear-gradient(135deg, #1e3a5f, #1a56db);
}
.m2bt-video-placeholder i { font-size: 2.5rem; opacity: .6; }

/* FAQ / detail blocks */
.m2bt-questions { margin-top: .5rem; }
.m2bt-question {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}
.m2bt-question:first-child { border-top: none; padding-top: 0; }
.m2bt-question h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .5rem;
}
.m2bt-question p {
  font-size: .92rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}
.m2bt-question-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.m2bt-question-label.problem { color: #ef4444; }
.m2bt-question-label.solution { color: #0891b2; }
.m2bt-question-label.benefit { color: #10b981; }
.m2bt-question-label.scenario { color: #8b5cf6; }

.m2bt-feature-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.m2bt-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
  font-size: .88rem;
  padding: .65rem 1.25rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all .2s;
}
.m2bt-slide-btn:hover {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}
.m2bt-slide-btn.disabled {
  opacity: .4;
  pointer-events: none;
}
.m2bt-back-link {
  color: #6b7280;
  font-size: .85rem;
  text-decoration: none !important;
}
.m2bt-back-link:hover { color: #1a56db; }

/* ── Tour footer (m2-footer shell) ─────────────────────────── */
.m2bt-feature-body {
  background: #f1f5f9 !important;
}
.m2bt-site-footer {
  margin-top: 0;
}
.m2bt-site-footer .m2bt-footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  transform: translateY(-100%);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.m2bt-feature-body .m2bt-footer-wave {
  color: #f1f5f9;
}
body:not(.m2bt-feature-body) .m2bt-footer-wave {
  color: #f8fafc;
}
.m2bt-site-footer .footer-top {
  padding-top: 0 !important;
}

.m2-ist-logo img { height: 64px !important; width: auto !important; }
