@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL — smooth scroll + fixed-nav offset
   ═══════════════════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (max-width: 768px) {
  html { scroll-padding-top: 4.5rem; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 4.25rem; }
}

html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════════════════════
   BASE (scoped to .m365-wrap)
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap *,
.m365-wrap *::before,
.m365-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.m365-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0d1117;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.m365-wrap img,
.m365-wrap svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.m365-wrap a { text-decoration: none; color: inherit; }
.m365-wrap button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes m365fadeUp    { from { opacity:0; transform:translateY(32px) } to { opacity:1; transform:translateY(0) } }
@keyframes m365fadeLeft  { from { opacity:0; transform:translateX(48px) } to { opacity:1; transform:translateX(0) } }
@keyframes m365fadeRight { from { opacity:0; transform:translateX(-48px)} to { opacity:1; transform:translateX(0) } }
@keyframes m365scaleIn   { from { opacity:0; transform:scale(0.88) } to { opacity:1; transform:scale(1) } }
@keyframes m365float     { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-10px) } }
@keyframes m365floatR    { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(8px) } }
@keyframes m365pulse     { 0%,100%{ opacity:1 } 50%{ opacity:0.4 } }
@keyframes m365orb       { 0%,100%{ transform:scale(1) translate(0,0) } 33%{ transform:scale(1.08) translate(20px,-15px) } 66%{ transform:scale(0.95) translate(-15px,20px) } }
@keyframes m365barGrow   { from{ width:0 } to{ width:97.5% } }

/* ═══════════════════════════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.m365-wrap .m365-reveal.visible { opacity: 1; transform: none !important; }
.m365-wrap .m365-reveal.fadeUp    { transform: translateY(32px); }
.m365-wrap .m365-reveal.fadeLeft  { transform: translateX(48px); }
.m365-wrap .m365-reveal.fadeRight { transform: translateX(-48px); }
.m365-wrap .m365-reveal.scaleIn   { transform: scale(0.88); }

/* ═══════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  background: #0E1E45;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.m365-wrap .m365-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.m365-wrap .m365-logo { display: flex; align-items: center; gap: 0.125rem; user-select: none; }
.m365-wrap .m365-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.m365-wrap .m365-logo-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  background: #E8511A;
  border-radius: 7px;
  padding: 0 6px;
  line-height: 1.28;
}

.m365-wrap .m365-nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .m365-wrap .m365-nav-links { display: flex; } }
.m365-wrap .m365-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.m365-wrap .m365-nav-links a:hover { color: #fff; }

.m365-wrap .m365-nav-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .m365-wrap .m365-nav-actions { display: flex; } }

.m365-wrap .m365-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.35);
  transition: transform 0.2s;
}
.m365-wrap .m365-wa-icon:hover { transform: scale(1.1); }

.m365-wrap .m365-btn-nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: #E8511A;
  box-shadow: 0 4px 20px rgba(232,81,26,0.5);
  transition: transform 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.m365-wrap .m365-btn-nav-cta:hover { transform: scale(1.05); color: #fff; }

.m365-wrap .m365-hamburger { display: block; padding: 0.5rem; }
@media (min-width: 768px) { .m365-wrap .m365-hamburger { display: none; } }
.m365-wrap .m365-hamburger-lines {
  width: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.m365-wrap .m365-hamburger-lines span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.3s;
}
.m365-wrap .m365-hamburger.open .m365-hamburger-lines span:nth-child(1) { transform: rotate(45deg) translateY(6px); }
.m365-wrap .m365-hamburger.open .m365-hamburger-lines span:nth-child(2) { opacity: 0; }
.m365-wrap .m365-hamburger.open .m365-hamburger-lines span:nth-child(3) { transform: rotate(-45deg) translateY(-6px); }

.m365-wrap .m365-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 1.5rem 1.5rem;
  background: #0E1E45;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.m365-wrap .m365-mobile-menu.open { display: flex; }
@media (min-width: 768px) { .m365-wrap .m365-mobile-menu { display: none !important; } }
.m365-wrap .m365-mobile-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.m365-wrap .m365-btn-mobile-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #E8511A;
  display: block;
}

/* ─── Language toggle ────────────────────────────────────────────── */
.m365-wrap .m365-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.m365-wrap .m365-lang-toggle:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(232,81,26,0.6);
  transform: translateY(-1px);
}
.m365-wrap .m365-lang-toggle svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  width: 15px;
  height: 15px;
}
.m365-wrap .m365-lang-toggle:hover svg { color: #E8511A; }
.m365-wrap .m365-lang-toggle span {
  display: inline-block;
  min-width: 1.35rem;
  text-align: center;
}
@media (max-width: 480px) {
  .m365-wrap .m365-lang-toggle span { display: none; }
  .m365-wrap .m365-lang-toggle { padding: 0.45rem; }
}
.m365-wrap .m365-lang-toggle-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: color 0.2s;
  background: transparent;
  font-family: inherit;
}
.m365-wrap .m365-lang-toggle-mobile:hover { color: #E8511A; }

/* ═══════════════════════════════════════════════════════════════════════
   CONTAINER + TAG
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-container {
  max-width: min(80rem, 100% - 2rem);
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  width: 100%;
  box-sizing: border-box;
}
.m365-wrap .m365-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.m365-wrap .m365-tag-orange { background: rgba(232,81,26,0.12); color: #E8511A; }
.m365-wrap .m365-tag-blue   { background: rgba(14,30,69,0.08); color: #0E1E45; }
.m365-wrap .m365-tag-white  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.m365-wrap .m365-tag-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  display: inline-block;
  background: #4ade80;
  animation: m365pulse 2s ease infinite;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a3a7a 0%, #0E1E45 55%, #060c1a 100%);
}
.m365-wrap .m365-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.m365-wrap .m365-hero-orb1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,81,26,0.22) 0%, transparent 70%);
  animation: m365orb 12s ease-in-out infinite;
  pointer-events: none;
}
.m365-wrap .m365-hero-orb2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(60,100,220,0.15) 0%, transparent 70%);
  animation: m365orb 16s ease-in-out infinite reverse;
  pointer-events: none;
}
.m365-wrap .m365-hero-content.m365-container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 7rem 1.25rem 5rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .m365-wrap .m365-hero-content.m365-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.m365-wrap .m365-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .m365-wrap .m365-hero-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}
.m365-wrap .m365-hero-text { max-width: 32rem; }
.m365-wrap .m365-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.m365-wrap .m365-hero-title {
  margin-top: 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: #fff;
}
.m365-wrap .m365-accent { color: #E8511A; }
.m365-wrap .m365-hero-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
  color: rgba(255,255,255,0.52);
}
.m365-wrap .m365-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.m365-wrap .m365-btn-primary {
  font-weight: 600;
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  background: #E8511A;
  box-shadow: 0 8px 32px rgba(232,81,26,0.55);
  transition: transform 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.m365-wrap .m365-btn-primary:hover { transform: scale(1.05); color: #fff; }
.m365-wrap .m365-btn-secondary {
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.m365-wrap .m365-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.m365-wrap .m365-hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.m365-wrap .m365-stat-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.m365-wrap .m365-stat-lbl {
  font-size: 0.75rem;
  margin-top: 0.125rem;
  color: rgba(255,255,255,0.38);
}
.m365-wrap .m365-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, #F8F7F4);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   DASHBOARD MOCKUP (hero)
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-dashboard-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform: scale(0.92);
  transform-origin: center right;
}
.m365-wrap .m365-dashboard-glow {
  position: absolute;
  inset: -10%;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 50%, rgba(232,81,26,0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.m365-wrap .m365-dashboard {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.m365-wrap .m365-dash-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.m365-wrap .m365-dash-dots { display: flex; gap: 0.375rem; }
.m365-wrap .m365-dash-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.m365-wrap .m365-dash-url {
  flex: 1;
  margin: 0 1rem;
  border-radius: 0.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: rgba(255,255,255,0.06);
  font-size: 10px;
  color: rgba(255,255,255,0.38);
}
.m365-wrap .m365-dash-body { display: flex; height: 380px; }
@media (max-width: 640px) { .m365-wrap .m365-dash-body { height: 300px; } }
.m365-wrap .m365-dash-sidebar {
  width: 11rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(14,30,69,0.8);
  border-right: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 640px) {
  .m365-wrap .m365-dash-sidebar { width: 7rem; padding: 0.5rem; }
  .m365-wrap .m365-dash-sidebar .m365-logo-text,
  .m365-wrap .m365-dash-sidebar .m365-logo-badge { font-size: 0.8rem; }
}
.m365-wrap .m365-sidebar-label {
  font-size: 7px;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
}
.m365-wrap .m365-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 640px) {
  .m365-wrap .m365-sidebar-item { font-size: 8px; padding: 0.375rem 0.5rem; gap: 0.25rem; }
}
.m365-wrap .m365-sidebar-item.active {
  background: rgba(232,81,26,0.2);
  color: #fff;
  font-weight: 700;
}
.m365-wrap .m365-sidebar-item .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
}
.m365-wrap .m365-sidebar-item.active .dot { background: #E8511A; }
.m365-wrap .m365-dash-main {
  flex: 1;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 640px) { .m365-wrap .m365-dash-main { padding: 0.75rem; } }
.m365-wrap .m365-dash-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.m365-wrap .m365-dash-hdr h3 { font-weight: 700; font-size: 0.875rem; color: #fff; }
.m365-wrap .m365-dash-hdr p  { font-size: 9px; margin-top: 0.125rem; color: rgba(255,255,255,0.35); }
.m365-wrap .m365-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #E8511A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.m365-wrap .m365-card-dark {
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 640px) { .m365-wrap .m365-card-dark { padding: 0.75rem; } }
.m365-wrap .m365-card-dark-title {
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.m365-wrap .m365-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.m365-wrap .m365-status-pill {
  flex: 1;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 9px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
}
.m365-wrap .m365-status-pill .connected { color: #4ade80; }
.m365-wrap .m365-btn-disc {
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: #E8511A;
}
.m365-wrap .m365-status-bar { display: flex; gap: 0.25rem; margin-bottom: 0.625rem; }
.m365-wrap .m365-status-bar span { flex: 1; height: 0.375rem; border-radius: 9999px; }
.m365-wrap .m365-status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.m365-wrap .m365-status-grid .num { font-weight: 700; font-size: 0.875rem; color: #fff; }
.m365-wrap .m365-status-grid .lbl { font-size: 8px; color: rgba(255,255,255,0.38); }
.m365-wrap .m365-campaign-card {
  border-radius: 1rem;
  padding: 0.875rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}
.m365-wrap .m365-campaign-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.m365-wrap .m365-campaign-hdr .name { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.65); }
.m365-wrap .m365-campaign-hdr .pct  { font-size: 8px; font-weight: 700; color: #4ade80; }
.m365-wrap .m365-progress {
  height: 0.375rem;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.m365-wrap .m365-progress .fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  animation: m365barGrow 1.4s cubic-bezier(0.16,1,0.3,1) 1200ms both;
}

/* Float badges (hero) */
.m365-wrap .m365-float-badge {
  position: absolute;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 5;
}
@media (max-width: 640px) {
  .m365-wrap .m365-float-badge { padding: 0.5rem 0.75rem; border-radius: 0.75rem; }
}
.m365-wrap .m365-float-top {
  top: -1.25rem;
  right: -1.25rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  animation: m365float 5s ease-in-out infinite;
  animation-delay: 1s;
}
.m365-wrap .m365-float-bot {
  bottom: -1rem;
  left: -1.25rem;
  background: #E8511A;
  box-shadow: 0 12px 40px rgba(232,81,26,0.45);
  animation: m365floatR 6s ease-in-out infinite;
  animation-delay: 0.5s;
}
.m365-wrap .m365-badge-flex { display: flex; align-items: center; gap: 0.625rem; }
.m365-wrap .m365-badge-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(74,222,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m365-wrap .m365-badge-icon .pdot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #4ade80;
  animation: m365pulse 2s ease infinite;
}
.m365-wrap .m365-badge-big {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
}
.m365-wrap .m365-badge-sm {
  font-size: 10px;
  margin-top: 0.125rem;
  color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-section { padding: 5rem 0; }
@media (min-width: 768px) { .m365-wrap .m365-section { padding: 7rem 0; } }
.m365-wrap .m365-section-light { background: #F8F7F4; }
.m365-wrap .m365-section-white { background: #fff; }
.m365-wrap .m365-section-navy  { background: #0E1E45; }
.m365-wrap .m365-section-dark  { background: #0d1117; }
.m365-wrap .m365-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #0d1117;
}

/* Stats band */
.m365-wrap .m365-stats-band { padding: 4rem 0; background: #0d1117; }
.m365-wrap .m365-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .m365-wrap .m365-stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.m365-wrap .m365-stat-item { display: flex; flex-direction: column; align-items: center; }
.m365-wrap .m365-stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: #E8511A;
  line-height: 1;
}
.m365-wrap .m365-stat-label {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.45);
}

/* Why Choose */
.m365-wrap .m365-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .m365-wrap .m365-why-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; }
}
.m365-wrap .m365-why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .m365-wrap .m365-why-cards { grid-template-columns: 1fr 1fr; }
}
.m365-wrap .m365-why-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: default;
}
.m365-wrap .m365-why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.m365-wrap .m365-why-card.accent { background: #E8511A; box-shadow: 0 20px 50px rgba(232,81,26,0.3); }
.m365-wrap .m365-why-card.plain  { background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.m365-wrap .m365-why-card .stat {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.m365-wrap .m365-why-card.accent .stat { color: #fff; }
.m365-wrap .m365-why-card.plain .stat  { color: #E8511A; }
.m365-wrap .m365-why-card .ctitle {
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  margin-bottom: 0.375rem;
}
.m365-wrap .m365-why-card.accent .ctitle { color: #fff; }
.m365-wrap .m365-why-card.plain .ctitle  { color: #111; }
.m365-wrap .m365-why-card .cdesc { font-size: 0.75rem; line-height: 1.6; }
.m365-wrap .m365-why-card.accent .cdesc { color: rgba(255,255,255,0.65); }
.m365-wrap .m365-why-card.plain .cdesc  { color: #9ca3af; }
.m365-wrap .m365-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.m365-wrap .m365-check-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: rgba(232,81,26,0.12);
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURE GRID — text + shell side-by-side
   ═══════════════════════════════════════════════════════════════════════ */

/* Base: stacked (mobile-first) */
.m365-wrap .m365-feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Side-by-side for tablet landscape & up */
@media (min-width: 900px) {
  .m365-wrap .m365-feat-grid {
    /* Image on left (1.15fr), Text on right (0.85fr) */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: center;
  }
  
  /* If you use the 'flip' class, it will reverse it (Text left, Image right) */
  .m365-wrap .m365-feat-grid.flip > :first-child { order: 2; }
  .m365-wrap .m365-feat-grid.flip > :last-child  { order: 1; }
}

/* Extra breathing room on large screens */
@media (min-width: 1280px) {
  .m365-wrap .m365-feat-grid {
    gap: 4rem;
  }
}

.m365-wrap .m365-feat-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f0f0f0;
}
.m365-wrap .m365-feat-chips.dark { border-top-color: rgba(255,255,255,0.08); }
.m365-wrap .m365-chip-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.m365-wrap .m365-chip-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   SHELL MOCKUP
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-shell {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.09);
  max-width: 100%;
  min-width: 0;
  position: relative;
}
.m365-wrap .m365-shell-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
}
.m365-wrap .m365-shell-dots { display: flex; gap: 0.375rem; }
.m365-wrap .m365-shell-dots span { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.m365-wrap .m365-shell-url {
  flex: 1;
  margin: 0 1rem;
  border-radius: 0.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 10px;
  color: #9ca3af;
}
.m365-wrap .m365-shell-body {
  display: flex;
  min-height: 340px;
  height: auto;
}
@media (max-width: 640px) {
  .m365-wrap .m365-shell-body { min-height: 280px; }
}
.m365-wrap .m365-shell-sidebar {
  width: 9rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  background: #0E1E45;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .m365-wrap .m365-shell-sidebar { width: 7rem; padding: 0.5rem; }
  .m365-wrap .m365-shell-sidebar .m365-logo-text,
  .m365-wrap .m365-shell-sidebar .m365-logo-badge { font-size: 0.75rem; }
}
.m365-wrap .m365-shell-menu {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 9px;
  border-radius: 0.75rem;
  padding: 0.375rem 0.625rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .m365-wrap .m365-shell-menu { font-size: 8px; padding: 0.375rem 0.5rem; gap: 0.25rem; }
}
.m365-wrap .m365-shell-menu.active {
  background: rgba(232,81,26,0.18);
  color: #fff;
  font-weight: 700;
}
.m365-wrap .m365-shell-menu .dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.m365-wrap .m365-shell-menu.active .dot { background: #E8511A; }
.m365-wrap .m365-shell-main {
  flex: 1;
  overflow: visible;
  background: #fafafa;
  padding: 1rem;
  position: relative;
}

/* Floating QR card — matches feature grid breakpoint */
.m365-wrap .m365-qr-float {
  position: absolute;
  top: 2.25rem;
  right: 0.5rem;
  border-radius: 1rem;
  padding: 0.875rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 10;
  width: 11rem;
  animation: m365float 5s ease-in-out infinite;
}
@media (max-width: 899px) {
  .m365-wrap .m365-qr-float {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    animation: none;
  }
}

/* Steps */
.m365-wrap .m365-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .m365-wrap .m365-steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .m365-wrap .m365-steps-grid { grid-template-columns: repeat(4, 1fr); }
}
.m365-wrap .m365-step-card {
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.3s;
  cursor: default;
  height: 100%;
}
.m365-wrap .m365-step-card:hover {
  transform: translateY(-8px);
  background: #0E1E45;
  box-shadow: 0 24px 60px rgba(14,30,69,0.28);
}
.m365-wrap .m365-step-card:hover .m365-step-title,
.m365-wrap .m365-step-card:hover .m365-step-desc { color: rgba(255,255,255,0.9) !important; }
.m365-wrap .m365-step-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #E8511A;
  line-height: 1;
  letter-spacing: -0.04em;
}
.m365-wrap .m365-step-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #0d1117;
  transition: color 0.3s;
}
.m365-wrap .m365-step-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
  transition: color 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .m365-wrap .m365-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}
.m365-wrap .m365-pricing-card {
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%;
}
.m365-wrap .m365-pricing-card:hover { transform: translateY(-8px); }
.m365-wrap .m365-pricing-card.highlight {
  background: #E8511A;
  border: none;
  box-shadow: 0 24px 60px rgba(232,81,26,0.4);
}
@media (max-width: 1023px) {
  .m365-wrap .m365-pricing-card.highlight {
    box-shadow: 0 12px 40px rgba(232,81,26,0.35);
  }
  .m365-wrap .m365-pricing-card:hover { transform: none; }
}
.m365-wrap .m365-pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #0d1117;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.m365-wrap .m365-plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-name { color: rgba(255,255,255,0.75); }
.m365-wrap .m365-plan-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.m365-wrap .m365-plan-period {
  font-size: 0.875rem;
  margin-left: 0.25rem;
  color: rgba(255,255,255,0.38);
}
.m365-wrap .m365-plan-note {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.28);
}
.m365-wrap .m365-plan-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  width: fit-content;
  background: rgba(232,81,26,0.2);
  color: #E8511A;
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-wa {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.m365-wrap .m365-plan-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.42);
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-desc { color: rgba(255,255,255,0.7); }
.m365-wrap .m365-plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
  flex: 1;
}
.m365-wrap .m365-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.52);
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-feature { color: rgba(255,255,255,0.85); }
.m365-wrap .m365-plan-fi {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: rgba(232,81,26,0.25);
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-fi { background: rgba(255,255,255,0.25); }
.m365-wrap .m365-plan-cta {
  display: block;
  text-align: center;
  font-weight: 700;
  padding: 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  margin-top: auto;
  background: #E8511A;
  color: #fff;
  box-shadow: 0 8px 24px rgba(232,81,26,0.4);
}
.m365-wrap .m365-pricing-card.highlight .m365-plan-cta {
  background: #fff;
  color: #E8511A;
  box-shadow: none;
}
.m365-wrap .m365-plan-cta:hover { transform: scale(1.05); color: #fff; }
.m365-wrap .m365-pricing-card.highlight .m365-plan-cta:hover { color: #E8511A; }

/* FAQ */
.m365-wrap .m365-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 42rem;
  margin: 0 auto;
}
.m365-wrap .m365-faq-item {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
}
.m365-wrap .m365-faq-item.open {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.m365-wrap .m365-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}
.m365-wrap .m365-faq-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  background: #f0f0f0;
  font-size: 1.125rem;
  color: #9ca3af;
  line-height: 1;
}
.m365-wrap .m365-faq-item.open .m365-faq-icon {
  background: #E8511A;
  color: #fff;
  transform: rotate(45deg);
}
.m365-wrap .m365-faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
  display: none;
}
.m365-wrap .m365-faq-item.open .m365-faq-answer { display: block; }

/* CTA */
.m365-wrap .m365-cta-section { padding: 5rem 0; background: #F8F7F4; }
@media (min-width: 768px) { .m365-wrap .m365-cta-section { padding: 6rem 0; } }
.m365-wrap .m365-cta-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, #1a3a7a 0%, #0E1E45 60%, #060c1a 100%);
}
@media (min-width: 768px) { .m365-wrap .m365-cta-box { padding: 5rem; } }
.m365-wrap .m365-cta-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.02;
}
.m365-wrap .m365-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.m365-wrap .m365-cta-badge .pdot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  animation: m365pulse 2s ease infinite;
}
.m365-wrap .m365-cta-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.m365-wrap .m365-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .m365-wrap .m365-cta-btns { flex-direction: row; } }
.m365-wrap .m365-btn-cta-p {
  font-weight: 700;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  background: #E8511A;
  box-shadow: 0 12px 40px rgba(232,81,26,0.55);
  transition: all 0.2s;
  display: inline-block;
}
.m365-wrap .m365-btn-cta-p:hover { transform: scale(1.05); color: #fff; }
.m365-wrap .m365-btn-cta-s {
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
  display: inline-block;
}
.m365-wrap .m365-btn-cta-s:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-footer { padding: 4rem 0 2rem; background: #060c1a; }
.m365-wrap .m365-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .m365-wrap .m365-footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.m365-wrap .m365-footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.m365-wrap .m365-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.m365-wrap .m365-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.32);
  transition: color 0.2s;
}
.m365-wrap .m365-footer-links a:hover { color: rgba(255,255,255,0.7); }
.m365-wrap .m365-footer-policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.m365-wrap .m365-footer-policy-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.m365-wrap .m365-footer-policy-btn:hover {
  color: #E8511A;
  text-decoration: underline;
}
.m365-wrap .m365-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 768px) {
  .m365-wrap .m365-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.m365-wrap .m365-footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
}

/* ═══════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6,12,26,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: m365fadeUp 0.25s ease both;
}
.m365-wrap .m365-modal-overlay.open { display: flex; }
.m365-wrap .m365-modal {
  position: relative;
  width: 100%;
  max-width: 48rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  animation: m365scaleIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.m365-wrap .m365-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  flex-shrink: 0;
  background: #0E1E45;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 640px) { .m365-wrap .m365-modal-header { padding: 1rem 1.25rem; } }
.m365-wrap .m365-modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.m365-wrap .m365-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s;
}
.m365-wrap .m365-modal-close:hover { background: rgba(255,255,255,0.1); }
.m365-wrap .m365-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 1.75rem 2rem;
}
@media (max-width: 640px) { .m365-wrap .m365-modal-body { padding: 1.25rem 1rem; } }
.m365-wrap .m365-modal-section { margin-bottom: 1.5rem; }
.m365-wrap .m365-modal-section h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #0E1E45;
}
.m365-wrap .m365-modal-section p,
.m365-wrap .m365-modal-section ul {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
}
.m365-wrap .m365-modal-section ul {
  margin-left: 1rem;
  list-style: disc;
  margin-top: 0.5rem;
}
.m365-wrap .m365-modal-section ul li { margin-bottom: 0.25rem; }
.m365-wrap .m365-modal-section .orange { color: #E8511A; font-weight: 600; }
.m365-wrap .m365-modal-footer {
  flex-shrink: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
@media (max-width: 640px) { .m365-wrap .m365-modal-footer { padding: 0.75rem 1.25rem; } }
.m365-wrap .m365-modal-footer button {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background: #E8511A;
  transition: opacity 0.2s;
}
.m365-wrap .m365-modal-footer button:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════════ */
.m365-wrap .m365-text-center { text-align: center; }
.m365-wrap .m365-mt3  { margin-top: 0.75rem; }
.m365-wrap .m365-mt4  { margin-top: 1rem; }
.m365-wrap .m365-mt5  { margin-top: 1.25rem; }
.m365-wrap .m365-mt10 { margin-top: 2.5rem; }
.m365-wrap .m365-mb35 { margin-bottom: 3.5rem; }
.m365-wrap .m365-mb4  { margin-bottom: 4rem; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — consolidated breakpoints
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet & below (≤1024px) */
@media (max-width: 1024px) {
  .m365-wrap .m365-hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .m365-wrap .m365-hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .m365-wrap .m365-hero-text { max-width: 100%; }
  .m365-wrap .m365-hero-desc { max-width: 34rem; }
  .m365-wrap .m365-hero-visual { justify-content: center; }
  .m365-wrap .m365-dashboard-wrapper {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }

  .m365-wrap .m365-why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .m365-wrap .m365-steps-grid { grid-template-columns: 1fr 1fr; }
}

/* Below 900px — feature grid stacks (matches the "min-width: 900px" rule above) */
@media (max-width: 899px) {
  .m365-wrap .m365-feat-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .m365-wrap .m365-feat-grid.flip > :first-child,
  .m365-wrap .m365-feat-grid.flip > :last-child { order: initial; }
}

/* Phone (≤640px) */
@media (max-width: 640px) {
  .m365-wrap .m365-nav-inner { height: 3.75rem; padding: 0 1rem; }
  .m365-wrap .m365-hero-content.m365-container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    padding-top: 2rem;
  }
  .m365-wrap .m365-hero {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .m365-wrap .m365-hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    margin-top: 1.25rem;
  }
  .m365-wrap .m365-hero-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-top: 1rem;
  }
  .m365-wrap .m365-hero-ctas { margin-top: 1.75rem; gap: 0.625rem; }
  .m365-wrap .m365-hero-stats { margin-top: 2rem; gap: 0.875rem 1rem; }
  .m365-wrap .m365-dashboard-wrapper { max-width: 100%; }

  .m365-wrap .m365-float-badge { padding: 0.5rem 0.75rem; border-radius: 0.75rem; }
  .m365-wrap .m365-badge-big { font-size: 1.1rem; }
  .m365-wrap .m365-badge-sm  { font-size: 8px; }
  .m365-wrap .m365-badge-icon { width: 1.5rem; height: 1.5rem; }
  .m365-wrap .m365-badge-icon .pdot { width: 0.5rem; height: 0.5rem; }

  .m365-wrap .m365-steps-grid,
  .m365-wrap .m365-why-cards,
  .m365-wrap .m365-stats-grid,
  .m365-wrap .m365-footer-grid,
  .m365-wrap .m365-pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Extra-small phones (≤380px) */
@media (max-width: 380px) {
  .m365-wrap .m365-nav-inner { height: 3.5rem; padding: 0 0.875rem; }
  .m365-wrap .m365-logo-text,
  .m365-wrap .m365-logo-badge { font-size: 1.15rem; }
  .m365-wrap .m365-hero-content.m365-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .m365-wrap .m365-hero { padding-top: 5rem; }
  .m365-wrap .m365-hero-title { font-size: 1.65rem; }
  .m365-wrap .m365-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .m365-wrap .m365-btn-primary,
  .m365-wrap .m365-btn-secondary { text-align: center; }
}

/* Small phones (380px – 640px) */
@media (min-width: 380px) and (max-width: 640px) {
  .m365-wrap .m365-hero {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
  .m365-wrap .m365-hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .m365-wrap .m365-hero-visual { justify-content: center; }
  .m365-wrap .m365-dashboard-wrapper { max-width: 100%; transform: none; }
}

/* Ultra-wide (≥1920px) */
@media (min-width: 1920px) {
  .m365-wrap .m365-container { max-width: 90rem; }
  .m365-wrap .m365-hero-title {
    font-size: clamp(3rem, 5.5vw, 5.5rem) !important;
  }
}

/* 4K (≥2560px) */
@media (min-width: 2560px) {
  .m365-wrap .m365-container { max-width: 110rem; }
  .m365-wrap .m365-hero-title { font-size: 5.5rem !important; }
  .m365-wrap .m365-hero-desc  { font-size: 1.15rem; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .m365-wrap .m365-hero {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
  }
  .m365-wrap .m365-hero-stats { margin-top: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   WORDPRESS THEME INTEGRATION
   ═══════════════════════════════════════════════════════════════════════ */
body:has(.m365-wrap) > .wp-site-blocks > header,
body:has(.m365-wrap) > .wp-site-blocks > .wp-block-template-part:first-child,
body:has(.m365-wrap) > header.wp-block-template-part,
body:has(.m365-wrap) header.wp-block-group:first-of-type {
  display: none !important;
}
body:has(.m365-wrap) h1.wp-block-post-title,
body:has(.m365-wrap) .wp-block-post-title,
body:has(.m365-wrap) .entry-header,
body:has(.m365-wrap) .page-header {
  display: none !important;
}
body:has(.m365-wrap) > .wp-site-blocks > main,
body:has(.m365-wrap) .wp-block-post-content,
body:has(.m365-wrap) .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
}
body.m365-landing-active #wpadminbar { display: none !important; }
body.m365-landing-active {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.m365-landing-active.admin-bar .m365-wrap .m365-nav { top: 0 !important; }
body.m365-landing-active.admin-bar { margin-top: 0 !important; }

.m365-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  position: relative;
  left: 0;
  right: 0;
  box-sizing: border-box;
  overflow-x: clip;
}
body:has(.m365-wrap) .is-layout-constrained,
body:has(.m365-wrap) .wp-block-post-content,
body:has(.m365-wrap) .entry-content,
body:has(.m365-wrap) main,
body:has(.m365-wrap) .wp-site-blocks > main {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body:has(.m365-wrap) .is-layout-constrained > .m365-wrap,
body:has(.m365-wrap) main > .m365-wrap,
body:has(.m365-wrap) main > * > .m365-wrap {
  max-width: 100vw !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
body.m365-landing-active {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip !important;
}
body.m365-landing-active > .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}
body.m365-landing-active > .wp-site-blocks > header,
body.m365-landing-active > .wp-site-blocks > .wp-block-template-part:first-child,
body.m365-landing-active > .wp-site-blocks > footer {
  display: none !important;
}
body.m365-landing-active > .wp-site-blocks > main > *:not(.m365-wrap):not(:has(.m365-wrap)) {
  display: none !important;
}
body.m365-landing-active > .m365-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .m365-wrap .m365-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .m365-wrap * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}