/* =========================================================
   ULTRALINK UK — Microsoft 365 Security Services
   microsoft-365-security.css · Workspace Mosaic Hero
   ========================================================= */

.nav-link.active-page {
    color: var(--blue);
    background: var(--bg-soft);
}

[class*="m365-"] { min-width: 0; }

/* ── Buttons ── */
.m365-btn-primary {
    background: linear-gradient(135deg, #5b2d82, #7719aa);
    color: #fff;
    box-shadow: 0 10px 32px rgba(91,25,170,.35);
}
.m365-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(91,25,170,.45);
}
.m365-btn-outline {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
}
.m365-btn-outline:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-2px);
}
.m365-btn-light {
    background: #fff;
    color: #5b2d82;
    box-shadow: 0 10px 32px rgba(0,0,0,.15);
}
.m365-btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* ============================================================
   1. HERO — Workspace Mosaic Split
   ============================================================ */
.m365-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 35%, #3d2066 65%, #4a2575 100%);
    padding: calc(var(--header-h) + var(--hero-y)) 0 var(--hero-y);
    color: #fff;
}
.m365-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.m365-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 45% at 80% 30%, rgba(119,25,170,.35), transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 70%, rgba(91,45,130,.25), transparent 50%);
}
.m365-hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent);
}

.m365-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}
.m365-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50px;
    padding: 7px 16px 7px 10px;
    margin-bottom: clamp(16px, 2.5vw, 22px);
}
.m365-hero-badge i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7719aa, #5b2d82);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem;
}
.m365-hero-badge span {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}
.m365-hero-copy h1 {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: clamp(14px, 2vw, 20px);
    color: #fff;
}
.m365-hero-copy h1 em {
    font-style: normal;
    color: #c084fc;
}
.m365-hero-lead {
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255,255,255,.72);
    margin-bottom: 12px;
    max-width: 520px;
}
.m365-hero-sub {
    font-size: clamp(.84rem, 1.2vw, .92rem);
    line-height: 1.7;
    color: rgba(255,255,255,.52);
    margin-bottom: clamp(20px, 3vw, 28px);
    max-width: 500px;
}
.m365-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(20px, 3vw, 28px);
}
.m365-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 28px);
}
.m365-hero-metric strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: #c084fc;
    line-height: 1.1;
}
.m365-hero-metric span {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

/* Workspace mosaic visual */
.m365-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}
.m365-mosaic-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7719aa, #5b2d82);
    box-shadow: 0 0 40px rgba(119,25,170,.5), 0 8px 24px rgba(0,0,0,.3);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    z-index: 3;
    border: 2px solid rgba(255,255,255,.2);
}
.m365-tile {
    background: rgba(255,255,255,.96);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    transition: transform .3s ease;
}
.m365-tile:hover { transform: translateY(-4px); }
.m365-tile--teams { grid-column: 1; }
.m365-tile--sharepoint { grid-column: 2; }
.m365-tile--outlook { grid-column: 1; }
.m365-tile--security { grid-column: 2; }
.m365-tile-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 800;
    color: #323130;
    margin-bottom: 10px;
    text-align: left;
}
.m365-tile-head i { font-size: .85rem; }
.m365-tile--teams .m365-tile-head i { color: #6264a7; }
.m365-tile--sharepoint .m365-tile-head i { color: #038387; }
.m365-tile--outlook .m365-tile-head i { color: #0078d4; }
.m365-tile--security .m365-tile-head i { color: #107c10; }
.m365-chat-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}
.m365-chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6264a7;
    flex-shrink: 0;
    margin-top: 2px;
}
.m365-chat-bubble {
    background: #f2f2f2;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .62rem;
    color: #323130;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
    text-align: left;
}
.m365-doc-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: .62rem;
    color: #605e5c;
    border-bottom: 1px solid #f3f2f1;
    text-align: left;
    width: 100%;
}
.m365-doc-row:last-child { border-bottom: none; }
.m365-doc-row i { color: #038387; width: 14px; }
.m365-cal-event {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    background: #deecf9;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .62rem;
    color: #323130;
    margin-bottom: 6px;
    text-align: left;
    width: 100%;
}
.m365-cal-event span { text-align: left; flex: 1; min-width: 0; }
.m365-cal-event time { color: #0078d4; font-weight: 700; white-space: nowrap; }
.m365-shield-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .62rem;
    padding: 5px 0;
}
.m365-shield-row span { color: #605e5c; }
.m365-shield-row strong { color: #107c10; font-weight: 700; }
.m365-shield-bar {
    height: 6px;
    background: #f3f2f1;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 8px;
}
.m365-shield-bar span {
    display: block;
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, #107c10, #54b054);
    border-radius: 50px;
}

/* ============================================================
   2. MARQUEE STRIP
   ============================================================ */
.m365-marquee {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
}
.m365-marquee-track {
    display: flex;
    gap: 32px;
    animation: m365-scroll 28s linear infinite;
    width: max-content;
}
.m365-marquee:hover .m365-marquee-track { animation-play-state: paused; }
@keyframes m365-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.m365-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.m365-marquee-item i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-soft);
    display: grid;
    place-items: center;
    font-size: .9rem;
    color: #5b2d82;
}

/* ============================================================
   3. FRICTION — Pain points
   ============================================================ */
.m365-friction {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-friction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-friction-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(18px, 2.5vw, 24px);
    transition: transform var(--transition), border-color var(--transition);
}
.m365-friction-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239,68,68,.25);
}
.m365-friction-card i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fef2f2;
    color: #ef4444;
    display: grid;
    place-items: center;
    font-size: .95rem;
    margin-bottom: 12px;
}
.m365-friction-card p {
    font-size: .84rem;
    line-height: 1.55;
    color: var(--navy);
    font-weight: 600;
}
.m365-friction-foot {
    text-align: center;
    font-size: .94rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 760px;
    margin: 32px auto 0;
}

/* ============================================================
   4. IMPACT — Outcomes bento
   ============================================================ */
.m365-impact {
    padding: var(--section-y) 0;
    background: #fff;
}
.m365-impact-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-impact-card {
    background: linear-gradient(145deg, #faf5ff, #f3e8ff);
    border: 1px solid rgba(91,45,130,.12);
    border-radius: 18px;
    padding: clamp(20px, 2.5vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.m365-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91,45,130,.12);
}
.m365-impact-card:nth-child(1) { grid-column: span 4; }
.m365-impact-card:nth-child(2) { grid-column: span 4; }
.m365-impact-card:nth-child(3) { grid-column: span 4; }
.m365-impact-card:nth-child(4) { grid-column: span 3; }
.m365-impact-card:nth-child(5) { grid-column: span 3; }
.m365-impact-card:nth-child(6) { grid-column: span 3; }
.m365-impact-card:nth-child(7) { grid-column: span 3; }
.m365-impact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b2d82, #7719aa);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
}
.m365-impact-card p {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--navy);
    font-weight: 600;
}
.m365-impact-foot {
    text-align: center;
    font-size: .94rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 720px;
    margin: 32px auto 0;
}

/* ============================================================
   5. SERVICES — Spotlight rows
   ============================================================ */
.m365-services {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}
.m365-spotlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 32px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.m365-spotlight:hover {
    transform: translateX(6px);
    border-color: rgba(91,45,130,.2);
    box-shadow: 0 12px 32px rgba(91,45,130,.08);
}
.m365-spotlight--featured {
    background: linear-gradient(135deg, #1a0a2e, #3d2066);
    border-color: rgba(192,132,252,.25);
    color: #fff;
}
.m365-spotlight--featured:hover {
    border-color: rgba(192,132,252,.4);
    box-shadow: 0 16px 40px rgba(91,45,130,.25);
}
.m365-spotlight--featured .m365-spotlight-icon {
    background: rgba(255,255,255,.12);
    color: #c084fc;
}
.m365-spotlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #5b2d82;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.m365-spotlight-icon i {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}
.m365-spotlight h3 {
    font-family: var(--font-head);
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.25;
}
.m365-spotlight p {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--muted);
}
.m365-spotlight--featured h3 { color: #fff; }
.m365-spotlight--featured p { color: rgba(255,255,255,.72); }

/* ============================================================
   6. CLIENTS
   ============================================================ */
.m365-clients {
    padding: var(--section-y) 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.m365-clients h2 {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 24px;
}
.m365-client-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.m365-client-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}
.m365-client-chip i { color: #5b2d82; }

/* ============================================================
   7. ADOPTION PITFALLS
   ============================================================ */
.m365-pitfalls {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-pitfall-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 36px;
    background: #fff;
}
.m365-pitfall-side {
    padding: clamp(24px, 3vw, 36px);
}
.m365-pitfall-side--bad {
    background: #fef2f2;
    border-right: 1px solid var(--line);
}
.m365-pitfall-side--good {
    background: #f0fdf4;
}
.m365-pitfall-side h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m365-pitfall-side--bad h3 { color: #b91c1c; }
.m365-pitfall-side--good h3 { color: #15803d; }
.m365-pitfall-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m365-pitfall-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--navy);
}
.m365-pitfall-side--bad .m365-pitfall-list i { color: #ef4444; margin-top: 3px; }
.m365-pitfall-side--good .m365-pitfall-list i { color: #22c55e; margin-top: 3px; }
.m365-pitfall-foot {
    text-align: center;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 760px;
    margin: 28px auto 0;
}

/* ============================================================
   8. PROCESS — Vertical timeline
   ============================================================ */
.m365-process {
    padding: var(--section-y) 0;
    background: #fff;
}
.m365-timeline {
    position: relative;
    max-width: 720px;
    margin: 36px auto 0;
    padding-left: 48px;
}
.m365-timeline::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #5b2d82, #c084fc, #5b2d82);
}
.m365-step {
    position: relative;
    padding-bottom: clamp(24px, 4vw, 36px);
}
.m365-step:last-child { padding-bottom: 0; }
.m365-step-marker {
    position: absolute;
    left: -48px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b2d82, #7719aa);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(91,45,130,.3);
}
.m365-step h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}
.m365-step p {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--muted);
}

/* ============================================================
   9. TECH STACK
   ============================================================ */
.m365-stack {
    padding: var(--section-y) 0;
    background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.m365-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-stack-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(20px, 2.5vw, 26px);
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}
.m365-stack-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(91,45,130,.25);
}
.m365-stack-tile i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #5b2d82;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin: 0 auto 12px;
}
.m365-stack-tile strong {
    display: block;
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}
.m365-stack-tile span {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.4;
}
.m365-stack-foot {
    text-align: center;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 680px;
    margin: 28px auto 0;
}

/* ============================================================
   10. WHY ULTRALINK
   ============================================================ */
.m365-why {
    padding: var(--section-y) 0;
    background: #fff;
}
.m365-why-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.m365-why-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: start;
    background: var(--bg-soft);
    border-left: 4px solid #5b2d82;
    border-radius: 0 16px 16px 0;
    padding: clamp(20px, 2.5vw, 28px);
    transition: transform var(--transition);
}
.m365-why-item:hover { transform: translateX(6px); }
.m365-why-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b2d82, #7719aa);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 800;
    flex-shrink: 0;
}
.m365-why-item h3 {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}
.m365-why-item p {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--muted);
}

/* ============================================================
   11. AUDIENCE
   ============================================================ */
.m365-audience {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-audience-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(20px, 2.5vw, 26px);
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}
.m365-audience-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91,45,130,.2);
}
.m365-audience-card i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #5b2d82;
    display: grid;
    place-items: center;
    font-size: 1rem;
    margin: 0 auto 12px;
}
.m365-audience-card span {
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

/* ============================================================
   12. CTA + FAQ
   ============================================================ */
.m365-cta-band {
    background: linear-gradient(135deg, #5b2d82, #7719aa);
    padding: var(--section-y) 0;
    text-align: center;
    color: #fff;
}
.m365-cta-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.m365-cta-inner h2 {
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.m365-cta-inner p {
    font-size: .96rem;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}
.m365-faq {
    background: #fff;
    padding-top: var(--section-y);
    padding-bottom: calc(var(--section-y) + clamp(32px, 5vw, 56px));
}
.m365-faq .faq-wrap { max-width: 820px; margin: 0 auto; }

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .m365-friction-grid { grid-template-columns: repeat(2, 1fr); }
    .m365-impact-card:nth-child(n) { grid-column: span 6; }
    .m365-stack-grid { grid-template-columns: repeat(3, 1fr); }
    .m365-audience-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .m365-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .m365-hero-lead, .m365-hero-sub { margin-left: auto; margin-right: auto; }
    .m365-hero-cta { justify-content: center; }
    .m365-hero-metrics { justify-content: center; }
    .m365-mosaic {
        max-width: 420px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        justify-self: center;
    }
    .m365-tile {
        text-align: left;
        align-items: stretch;
    }
    .m365-tile-head,
    .m365-chat-line,
    .m365-chat-bubble,
    .m365-cal-event,
    .m365-doc-row,
    .m365-shield-row {
        text-align: left;
    }
    .m365-cal-event { justify-content: flex-start; }
    .m365-impact-card:nth-child(n) { grid-column: span 6; }
    .m365-pitfall-panel { grid-template-columns: 1fr; }
    .m365-pitfall-side--bad { border-right: none; border-bottom: 1px solid var(--line); }
    .m365-audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .m365-hero-cta { flex-direction: column; align-items: stretch; }
    .m365-hero-cta .btn { width: 100%; justify-content: center; }
    .m365-tile { min-height: 110px; padding: 12px; }
    .m365-tile-head { font-size: .78rem; }
    .m365-chat-bubble,
    .m365-cal-event,
    .m365-doc-row { font-size: .68rem; }
    .m365-chat-bubble { padding: 8px 12px; }
    .m365-mosaic-hub { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }
    .m365-friction-grid { grid-template-columns: 1fr 1fr; }
    .m365-impact-card:nth-child(n) { grid-column: span 12; }
    .m365-spotlight { grid-template-columns: 1fr; }
    .m365-spotlight-icon { margin-bottom: 4px; }
    .m365-stack-grid { grid-template-columns: repeat(2, 1fr); }
    .m365-client-chip { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 600px) {
    .m365-friction-grid { grid-template-columns: 1fr; }
    .m365-stack-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .m365-audience-grid { grid-template-columns: 1fr 1fr; }
    .m365-timeline { padding-left: 40px; }
    .m365-step-marker { left: -40px; width: 34px; height: 34px; font-size: .74rem; }
    .m365-timeline::before { left: 16px; }
}

@media (max-width: 480px) {
    .m365-hero-copy h1 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
    .m365-hero-lead, .m365-hero-sub { font-size: .88rem; }
    .m365-hero-cta .btn, .m365-cta-inner .btn { white-space: normal; line-height: 1.35; }
    #consult-form .btn { white-space: normal; line-height: 1.35; }
    .m365-mosaic { gap: 10px; }
    .m365-tile { min-height: 100px; }
    .m365-audience-grid { grid-template-columns: 1fr; }
    .m365-stack-grid { grid-template-columns: 1fr; }
    .m365-hero-metrics { flex-direction: column; gap: 12px; align-items: center; }
}

@media (max-width: 380px) {
    .m365-hero-badge span { font-size: .66rem; }
    .m365-marquee-item { font-size: .74rem; }
}

@media (max-height: 720px) and (min-width: 601px) {
    .m365-tile { min-height: 100px; }
}

@media (max-width: 1366px) and (hover: none) {
    .m365-mosaic {
        margin-left: auto;
        margin-right: auto;
        justify-self: center;
    }
    .m365-tile {
        text-align: left;
        align-items: stretch;
    }
    .m365-tile-head,
    .m365-chat-line,
    .m365-chat-bubble,
    .m365-cal-event,
    .m365-doc-row,
    .m365-shield-row {
        text-align: left;
    }
    .m365-cal-event { justify-content: flex-start; }
}

@media (hover: none) {
    .m365-tile:hover, .m365-friction-card:hover, .m365-impact-card:hover,
  .m365-spotlight:hover, .m365-stack-tile:hover, .m365-audience-card:hover,
  .m365-stats-panel:hover,
  .m365-why-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .m365-marquee-track { animation: none; }
}

/* ============================================================
   SECURITY PAGE — stats, assessment, sectors, engagement
   ============================================================ */
.m365-stats {
    padding: var(--section-y) 0;
    background:
        radial-gradient(ellipse 55% 50% at 92% 0%, rgba(119,25,170,.1), transparent 55%),
        radial-gradient(ellipse 40% 40% at 5% 100%, rgba(91,45,130,.08), transparent 50%),
        linear-gradient(180deg, #fff 0%, #faf5ff 50%, #fff 100%);
}
.m365-stats-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 20px);
    max-width: min(1120px, 100%);
    margin: 0 auto;
}
.m365-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: clamp(22px, 3vw, 28px);
    border-radius: 22px;
    background: linear-gradient(145deg, #1a0a2e 0%, #2d1b4e 55%, #3d2066 100%);
    border: 1px solid rgba(192,132,252,.18);
    box-shadow: 0 16px 40px rgba(26,10,46,.16);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.m365-stats-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(192,132,252,.32);
    box-shadow: 0 22px 48px rgba(26,10,46,.22);
}
.m365-stats-panel--accent {
    background: linear-gradient(145deg, #2d1b4e 0%, #3d2066 55%, #4a2575 100%);
    border-color: rgba(192,132,252,.28);
}
.m365-stats-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.m365-stats-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #e9d5ff;
    background: rgba(192,132,252,.18);
    border: 1px solid rgba(192,132,252,.28);
    font-size: 1.1rem;
}
.m365-stats-panel-icon i {
    display: block;
    line-height: 1;
}
.m365-stats-panel-index {
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: rgba(255,255,255,.42);
}
.m365-stats-panel-value {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .95;
    color: #fff;
}
.m365-stats-panel--accent .m365-stats-panel-value {
    background: linear-gradient(135deg, #fff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.m365-stats-panel-headline {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(.92rem, 1.45vw, 1.02rem);
    font-weight: 750;
    line-height: 1.4;
    color: rgba(255,255,255,.92);
}
.m365-stats-panel-text {
    margin: 0;
    flex: 1;
    font-size: clamp(.84rem, 1.3vw, .92rem);
    line-height: 1.65;
    color: rgba(255,255,255,.72);
}
.m365-stats-panel-source {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .74rem;
    line-height: 1.45;
    color: rgba(255,255,255,.58);
}
.m365-stats-panel-source-label {
    font-family: var(--font-head);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c084fc;
}

.m365-assess {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-assess-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 36px;
    background: #fff;
}
.m365-assess-side {
    padding: clamp(24px, 3vw, 36px);
}
.m365-assess-side:first-child {
    border-right: 1px solid var(--line);
    background: #fff;
}
.m365-assess-side:last-child {
    background: linear-gradient(180deg, #faf5ff, #fff);
}
.m365-assess-side h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #5b2d82;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m365-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.m365-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--navy);
}
.m365-check-list i {
    color: #5b2d82;
    margin-top: 3px;
    flex-shrink: 0;
}
.m365-assess-foot {
    text-align: center;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 760px;
    margin: 28px auto 0;
}
.m365-section-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.m365-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-sector-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(22px, 3vw, 28px);
    transition: transform var(--transition), border-color var(--transition);
}
.m365-sector-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91,45,130,.2);
}
.m365-sector-card h3 {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.m365-sector-card > p {
    font-size: .84rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 14px;
}
.m365-sector-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.m365-sector-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--navy);
}
.m365-sector-card li i {
    color: #5b2d82;
    margin-top: 3px;
    font-size: .7rem;
}

.m365-compliance {
    padding: var(--section-y) 0;
    background: #fff;
}
.m365-compliance-box {
    max-width: 860px;
    margin: 36px auto 0;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 4px solid #5b2d82;
    border-radius: 0 18px 18px 0;
    padding: clamp(24px, 3vw, 32px);
}
.m365-compliance-foot {
    text-align: center;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 760px;
    margin: 24px auto 0;
}

.m365-licensing {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}
.m365-licensing-box {
    max-width: 860px;
    margin: 36px auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 32px);
}
.m365-licensing-foot {
    text-align: center;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 720px;
    margin: 24px auto 0;
    font-weight: 600;
}

.m365-engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.m365-engagement-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(22px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition), border-color var(--transition);
}
.m365-engagement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91,45,130,.2);
}
.m365-engagement-card h3 {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 800;
    color: var(--navy);
}
.m365-engagement-card p {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}
.m365-engagement-foot {
    text-align: center;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 680px;
    margin: 28px auto 0;
}

.m365-why-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}
.m365-why-benefit i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #5b2d82;
    display: grid;
    place-items: center;
    font-size: .85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.m365-why-benefit p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--navy);
    font-weight: 600;
}

.m365-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.m365-hero-question {
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;
    color: #c084fc;
    margin-bottom: 14px;
    max-width: 520px;
}

@media (max-width: 1024px) {
    .m365-stats-panels {
        grid-template-columns: 1fr;
    }
    .m365-assess-panel {
        grid-template-columns: 1fr;
    }
    .m365-assess-side:first-child {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .m365-sector-grid,
    .m365-engagement-grid {
        grid-template-columns: 1fr;
    }
    .m365-hero-question {
        margin-left: auto;
        margin-right: auto;
    }
}
