/* ============================================
   MAGICA HEALTHTECH — Brand overlay
   Layered on top of style.css (loaded after).
   ============================================ */

:root {
    /* Magica HealthTech brand tokens */
    --mh-violet: #8a5ffa;
    --mh-violet-2: #a78bfa;
    --mh-cyan: #0acddf;
    --mh-cyan-2: #22d3ee;
    --mh-navy: #000232;
    --mh-navy-2: #0a0e2c;

    /* Brand gradient */
    --mh-grad: linear-gradient(135deg, #8a5ffa 0%, #0acddf 100%);
    --mh-grad-soft: linear-gradient(135deg, rgba(138,95,250,0.18), rgba(10,205,223,0.18));
    --mh-grad-deep: linear-gradient(135deg, #5b3ed6 0%, #0891b2 100%);

    /* Per-product accent colors (used in catalogue + product sections) */
    --p-his: #6366f1;       /* MagicaHIS - indigo */
    --p-his-2: #818cf8;
    --p-gesticab: #8a5ffa;  /* GestiCab - brand violet */
    --p-gesticab-2: #a78bfa;
    --p-humaneo: #14b8a6;   /* Humaneo - teal */
    --p-humaneo-2: #2dd4bf;
    --p-gmao: #f59e0b;      /* GMAO - amber */
    --p-gmao-2: #fbbf24;
    --p-labo: #10b981;      /* LaboPharma - emerald */
    --p-labo-2: #34d399;
    --p-cc: #ec4899;        /* Call Center - pink */
    --p-cc-2: #f472b6;
    --p-rdv: #06b6d4;       /* MagicaRDV - cyan */
    --p-gestifile: #0d9488; /* GestiFile - teal-deep */

    /* Override main accents to MH brand */
    --accent-blue: #8a5ffa;
    --accent-cyan: #0acddf;
    --gradient-primary: linear-gradient(135deg, #8a5ffa, #0acddf);
}

/* ============================================
   HEADER : Magica HealthTech lockup
   ============================================ */
.mh-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.mh-logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: block;
}
.mh-logo-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}
.mh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.mh-logo-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: #fff;
}
.mh-logo-name em {
    font-style: normal;
    background: var(--mh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mh-logo-tagline {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}
@media (max-width: 540px) {
    .mh-logo-tagline { display: none; }
    .mh-logo-name { font-size: 16px; }
}

/* ============================================
   HERO : Magica HealthTech — premium ambient
   ============================================ */
.mh-hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    isolation: isolate;
}
.mh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.mh-hero-bg::before,
.mh-hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}
.mh-hero-bg::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--mh-violet) 0%, transparent 60%);
    top: -180px;
    left: -160px;
    animation: mhFloat 14s ease-in-out infinite;
}
.mh-hero-bg::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--mh-cyan) 0%, transparent 60%);
    bottom: -160px;
    right: -120px;
    animation: mhFloat 16s ease-in-out infinite reverse;
}
.mh-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(138,95,250,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,205,223,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
    z-index: -1;
}
@keyframes mhFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
}

.mh-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 1024px) {
    .mh-hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.mh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(138,95,250,0.14);
    border: 1px solid rgba(138,95,250,0.32);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 28px;
}
.mh-hero-eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mh-cyan);
    box-shadow: 0 0 0 0 rgba(10,205,223,0.7);
    animation: mhPulse 2s infinite;
}
@keyframes mhPulse {
    0% { box-shadow: 0 0 0 0 rgba(10,205,223,0.7); }
    70% { box-shadow: 0 0 0 12px rgba(10,205,223,0); }
    100% { box-shadow: 0 0 0 0 rgba(10,205,223,0); }
}

.mh-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5.6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 22px;
}
.mh-hero h1 .mh-grad-text {
    background: var(--mh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.mh-hero h1 .mh-period {
    color: var(--mh-cyan);
}

.mh-hero-tagline {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 36px;
}
.mh-hero-tagline strong {
    color: #fff;
    font-weight: 600;
}

.mh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.mh-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 100px;
    background: var(--mh-grad);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 12px 40px rgba(138,95,250,0.42), 0 4px 12px rgba(10,205,223,0.28);
    position: relative;
    overflow: hidden;
}
.mh-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.mh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(138,95,250,0.55), 0 6px 16px rgba(10,205,223,0.4);
    filter: brightness(1.05);
}
.mh-btn-primary:hover::before {
    transform: translateX(100%);
}
.mh-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff !important;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}
.mh-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(138,95,250,0.4);
    transform: translateY(-1px);
}

/* Hero stats band */
.mh-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 640px) {
    .mh-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.mh-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    background: var(--mh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    white-space: nowrap;
}
.mh-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   HERO VISUAL : layered UI mockup
   ============================================ */
.mh-hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 580px;
    margin: 0 auto;
    perspective: 1400px;
}
.mh-hv-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}
.mh-hv-orb-1 { width: 320px; height: 320px; background: var(--mh-violet); top: -10%; left: -5%; }
.mh-hv-orb-2 { width: 280px; height: 280px; background: var(--mh-cyan); bottom: -10%; right: -5%; }

.mh-hv-card {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20,22,45,0.95), rgba(10,12,28,0.95));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(138,95,250,0.1) inset;
    backdrop-filter: blur(18px);
    overflow: hidden;
    transform-style: preserve-3d;
}
.mh-hv-card-main {
    inset: 6% 4% 18% 8%;
    z-index: 2;
    transform: rotateY(-6deg) rotateX(4deg);
    animation: mhFloat3D 8s ease-in-out infinite;
}
.mh-hv-card-side {
    z-index: 3;
    width: 38%;
    aspect-ratio: 1 / 1.2;
    bottom: 4%;
    right: 0%;
    transform: rotateY(-12deg) rotateX(2deg);
    animation: mhFloat3D 10s ease-in-out infinite reverse;
}
@keyframes mhFloat3D {
    0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-6deg) rotateX(4deg) translateY(-12px); }
}

/* Mockup interior */
.mh-mock-bar {
    height: 28px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
}
.mh-mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mh-mock-dot-r { background: #ef4444; }
.mh-mock-dot-y { background: #f59e0b; }
.mh-mock-dot-g { background: #22c55e; }
.mh-mock-bar-title {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-left: auto;
    letter-spacing: 0.04em;
}
.mh-mock-body { padding: 16px 18px; }
.mh-mock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mh-mock-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    flex: 1;
}
.mh-mock-line.mh-grad { background: var(--mh-grad); }
.mh-mock-line.short { max-width: 55%; }
.mh-mock-pill {
    height: 22px;
    border-radius: 6px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    background: rgba(138,95,250,0.18);
    border: 1px solid rgba(138,95,250,0.32);
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 600;
}
.mh-mock-chart {
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(138,95,250,0.06), transparent);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

/* ============================================
   STATS / TRUST STRIP
   ============================================ */
.mh-trust {
    padding: 48px 0;
    background: linear-gradient(180deg, transparent, rgba(138,95,250,0.04));
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mh-trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    align-items: center;
}
@media (max-width: 900px) {
    .mh-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.mh-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}
.mh-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(138,95,250,0.12);
    color: var(--mh-violet-2);
    font-size: 18px;
}
.mh-trust-text strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.mh-trust-text span { font-size: 12px; }

/* ============================================
   CATALOGUE : 6 PRODUCT GRID
   ============================================ */
.mh-catalog {
    padding: var(--section-padding) 0;
    position: relative;
}
.mh-catalog-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.mh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(138,95,250,0.1);
    border: 1px solid rgba(138,95,250,0.25);
    font-size: 12px;
    font-weight: 600;
    color: var(--mh-violet-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.mh-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 18px;
}
.mh-section-title .mh-grad-text {
    background: var(--mh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mh-section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.mh-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 980px) {
    .mh-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mh-catalog-grid { grid-template-columns: 1fr; }
}

/* Product card with per-product theme tint */
.mh-pcard {
    --pc-color: var(--mh-violet);
    --pc-color-2: var(--mh-violet-2);
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.mh-pcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 90% at 100% 0%, color-mix(in srgb, var(--pc-color) 22%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.mh-pcard::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pc-color), var(--pc-color-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.mh-pcard:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--pc-color) 40%, rgba(255,255,255,0.15));
    box-shadow: 0 20px 60px color-mix(in srgb, var(--pc-color) 18%, transparent);
}
.mh-pcard:hover::before { opacity: 1; }
.mh-pcard:hover::after { transform: scaleX(1); }

.mh-pcard-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pc-color), var(--pc-color-2));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--pc-color) 35%, transparent);
}
.mh-pcard-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pc-color-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.mh-pcard-tag.mh-flagship::before {
    content: "★";
    font-size: 12px;
}
.mh-pcard h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.mh-pcard-sub {
    font-size: 13px;
    color: var(--pc-color-2);
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mh-pcard p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: auto;
    padding-bottom: 22px;
}
.mh-pcard-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pc-color-2);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}
.mh-pcard-cta i { transition: transform 0.25s ease; }
.mh-pcard:hover .mh-pcard-cta i { transform: translateX(4px); }

/* Per-product variants */
.mh-pcard.p-his { --pc-color: var(--p-his); --pc-color-2: var(--p-his-2); }
.mh-pcard.p-gesticab { --pc-color: var(--p-gesticab); --pc-color-2: var(--p-gesticab-2); }
.mh-pcard.p-humaneo { --pc-color: var(--p-humaneo); --pc-color-2: var(--p-humaneo-2); }
.mh-pcard.p-gmao { --pc-color: var(--p-gmao); --pc-color-2: var(--p-gmao-2); }
.mh-pcard.p-labo { --pc-color: var(--p-labo); --pc-color-2: var(--p-labo-2); }
.mh-pcard.p-cc { --pc-color: var(--p-cc); --pc-color-2: var(--p-cc-2); }

/* Flagship card : same dimensions as others, but visually emphasized
   (gradient background, glowing border, ★ badge). Grid stays a clean 3×2. */
.mh-pcard.mh-flagship-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(10,205,223,0.06));
    border: 1px solid rgba(99,102,241,0.32);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15) inset, 0 12px 32px rgba(99,102,241,0.12);
}
.mh-pcard.mh-flagship-card::before {
    background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(99,102,241,0.22), transparent 70%);
    opacity: 1;
}
.mh-pcard.mh-flagship-card:hover {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.25) inset, 0 24px 60px rgba(99,102,241,0.25);
}

/* ============================================
   PRODUCT SHOWCASE SECTIONS
   ============================================ */
.mh-product {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}
.mh-product-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.mh-product-inner.reverse {
    direction: rtl;
}
.mh-product-inner.reverse > * {
    direction: ltr;
}
@media (max-width: 980px) {
    .mh-product-inner,
    .mh-product-inner.reverse { grid-template-columns: 1fr; gap: 56px; direction: ltr; }
}

.mh-product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--p-color, var(--mh-violet)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--p-color, var(--mh-violet)) 35%, transparent);
    font-size: 12px;
    font-weight: 700;
    color: var(--p-color-2, var(--mh-violet-2));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.mh-product h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 18px;
}
.mh-product h2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--p-color, var(--mh-violet)), var(--p-color-2, var(--mh-cyan)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mh-product-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

/* Product feature grid (4 sub-features inside a product section) */
.mh-pfeats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.mh-pfeat {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s, background 0.3s;
}
.mh-pfeat:hover {
    border-color: color-mix(in srgb, var(--p-color, var(--mh-violet)) 40%, transparent);
    background: color-mix(in srgb, var(--p-color, var(--mh-violet)) 8%, rgba(255,255,255,0.03));
}
.mh-pfeat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--p-color, var(--mh-violet)) 18%, transparent);
    color: var(--p-color-2, var(--mh-violet-2));
    display: grid;
    place-items: center;
    font-size: 15px;
    margin-bottom: 10px;
}
.mh-pfeat strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.mh-pfeat span {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Product KPI strip (right of product header, optional) */
.mh-pkpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    margin-left: auto;
}
.mh-pkpi-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--p-color-2, var(--mh-cyan));
}
.mh-pkpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Product section accents */
.mh-product.s-his { --p-color: var(--p-his); --p-color-2: var(--p-his-2); }
.mh-product.s-gesticab { --p-color: var(--p-gesticab); --p-color-2: var(--p-gesticab-2); }
.mh-product.s-humaneo { --p-color: var(--p-humaneo); --p-color-2: var(--p-humaneo-2); }
.mh-product.s-gmao { --p-color: var(--p-gmao); --p-color-2: var(--p-gmao-2); }
.mh-product.s-labo { --p-color: var(--p-labo); --p-color-2: var(--p-labo-2); }
.mh-product.s-cc { --p-color: var(--p-cc); --p-color-2: var(--p-cc-2); }

.mh-product::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--p-color, var(--mh-violet)) 18%, transparent) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
}
.mh-product:not(.reverse-bg)::before { left: -300px; }
.mh-product.reverse-bg::before { right: -300px; left: auto; }

/* ============================================
   PRODUCT MOCKUP (UI illustration container)
   ============================================ */
.mh-mockup {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,22,45,0.9), rgba(10,12,28,0.95));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 0 0 1px color-mix(in srgb, var(--p-color, var(--mh-violet)) 20%, transparent) inset;
    overflow: hidden;
    isolation: isolate;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s ease;
}
.mh-product-inner.reverse .mh-mockup { transform: perspective(1400px) rotateY(4deg) rotateX(2deg); }
.mh-mockup:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) scale(1.02); }
.mh-product-inner.reverse .mh-mockup:hover { transform: perspective(1400px) rotateY(2deg) rotateX(1deg) scale(1.02); }

.mh-mockup-bar {
    height: 36px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}
.mh-mockup-dots { display: flex; gap: 6px; }
.mh-mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mh-mockup-dots span:nth-child(1) { background: #ef4444; }
.mh-mockup-dots span:nth-child(2) { background: #f59e0b; }
.mh-mockup-dots span:nth-child(3) { background: #22c55e; }
.mh-mockup-url {
    margin-left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    flex: 1;
    max-width: 280px;
}
.mh-mockup-body {
    position: absolute;
    inset: 36px 0 0 0;
    padding: 18px 20px;
    overflow: hidden;
}

/* ============================================
   PATIENT PLATFORMS BAND (MagicaRDV + GestiFile)
   ============================================ */
.mh-patient {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(13,148,136,0.04), transparent);
}
.mh-patient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 800px) { .mh-patient-grid { grid-template-columns: 1fr; } }

.mh-patient-card {
    --pp-color: var(--p-rdv);
    position: relative;
    padding: 40px 36px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    isolation: isolate;
}
.mh-patient-card.gestifile { --pp-color: var(--p-gestifile); }
.mh-patient-card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--pp-color) 22%, transparent), transparent 65%);
    filter: blur(70px);
    top: -180px;
    right: -120px;
    z-index: -1;
}
.mh-patient-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--pp-color) 18%, transparent);
    color: var(--pp-color);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--pp-color) 32%, transparent);
}
.mh-patient-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.mh-patient-card .domain {
    color: var(--pp-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-bottom: 18px;
    display: block;
}
.mh-patient-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
}
.mh-patient-card .mh-pcard-cta { color: var(--pp-color); }

/* ============================================
   "WHY MAGICA HEALTHTECH" : trust pillars
   ============================================ */
.mh-why {
    padding: var(--section-padding) 0;
    position: relative;
}
.mh-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}
@media (max-width: 900px) { .mh-why-grid { grid-template-columns: 1fr; } }
.mh-why-card {
    padding: 32px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.mh-why-card:hover {
    border-color: rgba(138,95,250,0.3);
    transform: translateY(-3px);
}
.mh-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--mh-grad-soft);
    border: 1px solid rgba(138,95,250,0.2);
    display: grid;
    place-items: center;
    color: var(--mh-violet-2);
    font-size: 26px;
    margin-bottom: 20px;
}
.mh-why-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.mh-why-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.96rem;
}

/* ============================================
   CLIENTS LOGOS BAND
   ============================================ */
.mh-clients {
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(138,95,250,0.02), transparent);
}
.mh-clients h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}
.mh-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) { .mh-clients-grid { grid-template-columns: repeat(2, 1fr); } }
.mh-client-chip {
    padding: 18px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.mh-client-chip:hover {
    background: rgba(138,95,250,0.06);
    border-color: rgba(138,95,250,0.25);
    color: #fff;
    transform: translateY(-2px);
}
.mh-client-chip strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.25;
}

/* ============================================
   CTA PRO
   ============================================ */
.mh-final-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mh-final-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(138,95,250,0.12), rgba(10,205,223,0.08));
    border: 1px solid rgba(138,95,250,0.25);
    position: relative;
    overflow: hidden;
}
.mh-final-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(138,95,250,0.18), transparent 70%);
    z-index: 0;
}
.mh-final-cta-inner > * { position: relative; z-index: 1; }
.mh-final-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}
.mh-final-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 28px;
}

/* ============================================
   FOOTER tweaks
   ============================================ */
.mh-footer-mention {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.mh-footer-mention strong { color: var(--text-secondary); font-weight: 600; }
.mh-footer-mention-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99,102,241,0.18);
}
.mh-footer-mention-logo svg { width: 100%; height: 100%; display: block; }
.mh-footer-mention-text { flex: 1; }

/* ============================================
   CERTIFICATIONS strip
   ============================================ */
.mh-certs {
    padding: 56px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(138,95,250,0.02), transparent);
}
.mh-certs-header {
    text-align: center;
    margin-bottom: 32px;
}
.mh-certs-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    margin-top: 6px;
}
.mh-certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 800px) { .mh-certs-grid { grid-template-columns: 1fr; } }

.mh-cert-card {
    position: relative;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}
.mh-cert-card:hover {
    border-color: rgba(138,95,250,0.32);
    transform: translateY(-2px);
}
.mh-cert-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138,95,250,0.18), rgba(10,205,223,0.14));
    border: 1px solid rgba(138,95,250,0.35);
    display: grid;
    place-items: center;
    color: #c4b5fd;
    font-size: 26px;
}
.mh-cert-badge.cert-iso { color: #67e8f9; border-color: rgba(10,205,223,0.4); background: linear-gradient(135deg, rgba(10,205,223,0.18), rgba(99,102,241,0.12)); }
.mh-cert-badge.cert-fse { color: #86efac; border-color: rgba(34,197,94,0.4); background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(20,184,166,0.12)); }
.mh-cert-content { flex: 1; min-width: 0; }
.mh-cert-content strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}
.mh-cert-content span {
    display: block;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Scroll-margin to compensate sticky header on anchored navigation */
section[id] { scroll-margin-top: 90px; }

/* ============================================
   ANIMATIONS — disabled (user preference)
   All entry animations (data-mh-anim + legacy data-animate)
   render in their final state immediately, no transition.
   ============================================ */
[data-mh-anim],
[data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Also kill the floating hero card animations and orb drift */
.mh-hv-card-main,
.mh-hv-card-side {
    animation: none !important;
}
.mh-hero-bg::before,
.mh-hero-bg::after {
    animation: none !important;
}
